stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
[gnulib.git] / ChangeLog
blob17f835dd92414fe51085da35118a5ab376a5a420
1 2017-05-13  Bruno Haible  <bruno@clisp.org>
3         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
4         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
6 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8         getopt-posix: port to mingw
9         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
10         Problem reported by Daniel P. Berrage in:
11         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
13 2017-05-11 Bruno Haible  <bruno@clisp.org>
15         gettimeofday: Increase precision on mingw.
16         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
17         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
18         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19         GetSystemTimePreciseAsFileTime based implementation always.
20         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
21         mingw.
23 2017-05-11 Bruno Haible  <bruno@clisp.org>
25         poll: Fix confusion between SOCKETs and FDs on native Windows.
26         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
27         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
29 2017-05-11 Bruno Haible  <bruno@clisp.org>
31         doc: Clarify doc about socket functions on native Windows.
32         This reworks doc that was added on 2008-09-29.
33         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
34         clearer wording.
35         * doc/posix-functions/accept.texi: Use clearer wording.
36         * doc/posix-functions/bind.texi: Likewise.
37         * doc/posix-functions/connect.texi: Likewise.
38         * doc/posix-functions/getpeername.texi: Likewise.
39         * doc/posix-functions/getsockname.texi: Likewise.
40         * doc/posix-functions/getsockopt.texi: Likewise.
41         * doc/posix-functions/ioctl.texi: Likewise.
42         * doc/posix-functions/listen.texi: Likewise.
43         * doc/posix-functions/recv.texi: Likewise.
44         * doc/posix-functions/recvfrom.texi: Likewise.
45         * doc/posix-functions/send.texi: Likewise.
46         * doc/posix-functions/sendto.texi: Likewise.
47         * doc/posix-functions/setsockopt.texi: Likewise.
48         * doc/posix-functions/shutdown.texi: Likewise.
49         * doc/posix-functions/socket.texi: Likewise.
51 2017-05-10 Bruno Haible  <bruno@clisp.org>
53         poll: Fix link error on native Windows.
54         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
56 2017-05-10 Bruno Haible  <bruno@clisp.org>
58         time: Fix missing initialization of HAVE_TIMEZONE_T.
59         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
60         here...
61         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
62         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
63         gl_HEADER_SYS_TIME_H_DEFAULTS.
64         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
65         (configure.ac): Remove useless quoting.
67 2017-05-10 Bruno Haible  <bruno@clisp.org>
69         Implement a way to opt out from MSVC support, part 2.
70         * modules/msvc-inval (Include): Document recommended idiom.
71         * modules/msvc-nothrow (Include): Likewise.
73         Implement a way to opt out from MSVC support.
74         This is useful for Emacs.
75         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
76         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
77         * lib/error.c: Likewise.
78         * lib/fcntl.c: Likewise.
79         * lib/flock.c: Likewise.
80         * lib/fstat.c: Likewise.
81         * lib/fsync.c: Likewise.
82         * lib/ioctl.c: Likewise.
83         * lib/isapipe.c: Likewise.
84         * lib/lseek.c: Likewise.
85         * lib/nonblocking.c: Likewise.
86         * lib/poll.c: Likewise.
87         * lib/select.c: Likewise.
88         * lib/sockets.h: Likewise.
89         * lib/sockets.c: Likewise.
90         * lib/stdio-read.c: Likewise.
91         * lib/stdio-write.c: Likewise.
92         * lib/utimens.c: Likewise.
93         * lib/w32sock.h: Likewise.
94         * lib/w32spawn.h: Likewise.
95         * tests/test-cloexec.c: Likewise.
96         * tests/test-dup-safer.c: Likewise.
97         * tests/test-dup2.c: Likewise.
98         * tests/test-dup3.c: Likewise.
99         * tests/test-fcntl.c: Likewise.
100         * tests/test-pipe.c: Likewise.
101         * tests/test-pipe2.c: Likewise.
102         * lib/ftruncate.c: Likewise.
103         (chsize_nothrow): Renamed from chsize.
104         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
105         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
106         * lib/close.c: Likewise.
107         * lib/dup.c: Likewise.
108         * lib/fclose.c: Likewise.
109         * lib/raise.c: Likewise.
110         * tests/test-fgetc.c: Likewise.
111         * tests/test-fputc.c: Likewise.
112         * tests/test-fread.c: Likewise.
113         * tests/test-fwrite.c: Likewise.
114         * lib/getdtablesize.c: Likewise.
115         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
116         * lib/isatty.c: Don't include msvc-inval.h if
117         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
118         Include <io.h> as an alternative to msvc-nothrow.h.
119         * lib/read.c: Likewise.
120         * lib/write.c: Likewise.
121         * lib/dup2.c: Likewise.
122         (dup2_nothrow): New function.
123         (ms_windows_dup2): Use it.
124         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
125         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
126         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
127         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
128         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
129         * m4/read.m4 (gl_FUNC_READ): Likewise.
130         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
131         * doc/windows-without-msvc.texi: New file.
132         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
133         section.
135 2017-05-10 Bruno Haible  <bruno@clisp.org>
137         wait-process: Adjust native Windows support.
138         * lib/wait-process.c: Use the usual condition for recognizing a native
139         Windows platform.
141 2017-05-10 Bruno Haible  <bruno@clisp.org>
143         doc: New chapter "Native Windows Support".
144         * doc/gnulib.texi (Native Windows Support): New chapter.
145         * doc/windows-libtool.texi: Small wording changes.
146         * doc/windows-sockets.texi: Small wording and formatting changes.
148 2017-05-10 Bruno Haible  <bruno@clisp.org>
150         doc: Move section "Library version handling".
151         * doc/gnulib.texi: Move section "Library version handling"
152         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
154 2017-05-10 Bruno Haible  <bruno@clisp.org>
156         doc: Move section "Running self-tests under valgrind".
157         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
158         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
160 2017-05-10 Bruno Haible  <bruno@clisp.org>
162         doc: New chapter "Build Infrastructure Modules".
163         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
165 2017-05-10 Bruno Haible  <bruno@clisp.org>
167         Prepare for reordering sections in the manual.
168         * doc/gnulib.texi: Move several sections to separate files. Include
169         these files.
170         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
171         * doc/obsolete.texi: Likewise.
172         * doc/extra-tests.texi: Likewise.
173         * doc/transversal.texi: Likewise.
174         * doc/namespace.texi: Likewise.
175         * doc/check-version.texi: Likewise.
176         * doc/windows-sockets.texi: Likewise.
177         * doc/windows-libtool.texi: Likewise.
178         * doc/licenses-texi.texi: Likewise.
179         * doc/build-automation.texi: Likewise.
180         * doc/c-locale.texi: Likewise.
182 2017-05-10 Bruno Haible  <bruno@clisp.org>
184         Fix instructions how to update manual on www.gnu.org.
185         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
187 2017-05-09 Bruno Haible  <bruno@clisp.org>
189         tzset: Expand comment about TZ problem on native Windows.
190         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
191         Paul Eggert.
192         * lib/ctime.c (rpl_ctime): Likewise.
193         * lib/localtime.c (rpl_localtime): Likewise.
194         * lib/mktime.c (mktime): Likewise.
195         * lib/strftime-fixes.c (rpl_strftime): Likewise.
196         * lib/wcsftime.c (rpl_wcsftime): Likewise.
198 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
200         intprops: don’t depend on ‘verify’
201         Problem reported by Ævar Arnfjörð Bjarmason in:
202         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00054.html
203         * lib/intprops.h: Do not include verify.h, and move compile-time
204         checks from here ...
205         * tests/test-intprops.c (main): ... to here, if they’re not here
206         already.  Check widths of other standard integer types.
207         * modules/intprops (Depends-on): Remove ‘verify’.
209 2017-05-07 Bruno Haible  <bruno@clisp.org>
211         utimens: On native Windows, support 100ns resolution also if fd < 0.
212         * lib/utime.in.h: Include <time.h>.
213         (_gl_utimens_windows): New declaration.
214         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
215         (utime): Invoke it.
216         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
217         instead of utime.
218         * modules/utime (Depends-on): Add 'time'.
220 2017-05-07 Bruno Haible  <bruno@clisp.org>
222         utimens: Improve error code on native Windows.
223         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
224         error code EACCES, not EINVAL.
226 2017-05-07 Bruno Haible  <bruno@clisp.org>
228         utime: Handle more Windows error codes.
229         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
230         Based on explanations by Billy O'Neal.
232 2017-05-05 Bruno Haible  <bruno@clisp.org>
234         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
235         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
236         union.
237         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
238         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
239         value of cipher->IV.
241 2017-05-05 Bruno Haible  <bruno@clisp.org>
243         wctype-h-c++-tests: Update.
244         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
246 2017-05-05 Bruno Haible  <bruno@clisp.org>
248         wchar-c++-tests: Update.
249         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
251 2017-05-05 Bruno Haible  <bruno@clisp.org>
253         utime-h-c++-tests: New module.
254         * tests/test-utime-h-c++.cc: New file.
255         (utime): Declare, missing since 2017-04-30.
256         * modules/utime-h-c++-tests: New file.
258 2017-05-05 Bruno Haible  <bruno@clisp.org>
260         unistd-c++-tests: Update.
261         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
262         (read): Declare, missing since 2011-04-15.
263         (sethostname): Declare, missing since 2011-12-03.
265 2017-05-05 Bruno Haible  <bruno@clisp.org>
267         time-c++-tests: Update.
268         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
269         (localtime, gmtime): Declare, missing since 2017-04-30.
270         (ctime): Declare, missing since 2017-04-30.
271         (strftime): Declare, missing since 2017-04-30.
272         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
273         2015-07-24.
275 2017-05-05 Bruno Haible  <bruno@clisp.org>
277         sys_resource-c++-tests: New module.
278         * tests/test-sys_resource-c++.cc: New file.
279         (getrusage): Declare, missing since 2012-04-13.
280         * modules/sys_resource-c++-tests: New file.
282 2017-05-05 Bruno Haible  <bruno@clisp.org>
284         strings-c++-tests: New module.
285         * tests/test-strings-c++.cc: New file.
286         (ffs): Declare, missing since 2011-07-12.
287         * modules/strings-c++-tests: New file.
289 2017-05-05 Bruno Haible  <bruno@clisp.org>
291         string-c++-tests: Update.
292         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
293         (ffsll): Declare, missing since 2011-07-15.
295 2017-05-05 Bruno Haible  <bruno@clisp.org>
297         stdlib-c++-tests: Update.
298         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
299         2011-10-18.
300         (ptsname_r): Declare, missing since 2011-11-07.
301         (qsort_r): Declare, missing since 2014-08-29.
302         (random, srandom, initstate, setstate): Declare, missing since
303         2012-01-14.
304         (secure_getenv): Declare, missing since 2013-02-05.
306 2017-05-05 Bruno Haible  <bruno@clisp.org>
308         stdio-c++-tests: Update.
309         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
311 2017-05-05 Bruno Haible  <bruno@clisp.org>
313         signal-h-c++-tests: Update.
314         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
316 2017-05-05 Bruno Haible  <bruno@clisp.org>
318         math-c++-tests: Update.
319         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
320         (fma): Declare, missing since 2011-10-17.
321         (fmal): Declare, missing since 2011-10-17.
323 2017-05-05 Bruno Haible  <bruno@clisp.org>
325         locale-c++-tests: Update.
326         * tests/test-locale-c++.cc (localeconv): Declare, missing since
327         2012-03-25.
329 2017-05-05 Bruno Haible  <bruno@clisp.org>
331         inttypes-c++-tests: New module.
332         * tests/test-inttypes-c++.cc: New file.
333         (strtoimax): Declare, missing since 2012-01-05.
334         (strtoumax): Declare, missing since 2012-01-05.
335         * modules/inttypes-c++-tests: New file.
337 2017-05-05 Bruno Haible  <bruno@clisp.org>
339         dirent-c++-tests: Update.
340         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
341         (rewinddir): Declare, missing since 2011-09-13.
342         (dirfd): Declare, missing since 2010-03-08.
344 2017-05-04 Bruno Haible  <bruno@clisp.org>
346         argp: Fix mistake in 2017-04-23 commit.
347         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
348         assume that strerror_r returns 'int', not 'char *'.
350 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
352         argp: Fix typo.
353         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
355 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
357         utimens: port to Emacs + MS-Windows
358         Skip the new MS-Windows-specific code if Emacs.
359         * lib/utimens.c [EMACS_CONFIGUATION]:
360         Avoid new MS-Windows-specific code.
361         (USE_SETFILETIME): New macro.
362         (fdutimens): Use it.
364 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
366         tzset: update doc for TZ problems on MS-Windows
367         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
368         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
369         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
370         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
371         * doc/posix-functions/wcsftime.texi:
372         Mention some issues with TZ under MS-Windows.
374 2017-05-01  Bruno Haible  <bruno@clisp.org>
376         copy-file: Fix build error on mingw.
377         * modules/copy-file (Depends-on): Add 'close'.
379 2017-05-01  Bruno Haible  <bruno@clisp.org>
381         tzset: Work around TZ problem on native Windows.
382         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
383         Windows, set REPLACE_TZSET to 1.
384         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
385         invoke '_tzset' instead of 'tzset'.
386         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
388         * modules/time_rz (Depends-on): Add tzset.
389         * lib/time_rz.c (tzset): Remove fallback definition.
390         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
392 2017-05-01  Bruno Haible  <bruno@clisp.org>
394         mktime: Fix dependencies.
395         * modules/mktime (Depends-on): Add 'time'.
397 2017-05-01  Bruno Haible  <bruno@clisp.org>
399         New module 'localtime-buffer', split off from module 'gettimeofday'.
400         * lib/localtime-buffer.h: New file.
401         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
402         * lib/time.in.h (tzset): New declaration.
403         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
404         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
405         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
406         moved to lib/localtime-buffer.c or lib/tzset.c.
407         * m4/localtime-buffer.m4: New file.
408         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
409         HAVE_TZSET, REPLACE_TZSET.
410         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
411         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
412         gl_LOCALTIME_BUFFER_NEEDED.
413         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
414         since 2007-01-18.
415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
416         tzset.
417         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
418         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
419         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
420         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
421         * modules/localtime-buffer: New file.
422         * modules/time (Depends-on): Remove 'gettimeofday'.
423         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
424         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
425         * modules/tzset (Description): Enable hyperlink to POSIX spec.
426         (Files): Add lib/tzset.c.
427         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
428         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
429         gl_TIME_MODULE_INDICATOR.
430         * modules/gettimeofday (Depends-on): Add localtime-buffer.
432 2017-05-01  Bruno Haible  <bruno@clisp.org>
434         copy-file: Preserve sub-second time stamps.
435         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
436         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
437         transport the time stamps from the original file to the destination
438         file.
439         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
440         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
441         utime-h.
443 2017-05-01  Bruno Haible  <bruno@clisp.org>
445         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
446         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
447         also on MSVC.
448         Reported by Eli Zaretskii <eliz@gnu.org>.
450 2017-05-01  Bruno Haible  <bruno@clisp.org>
452         wchar: Fix compilation error with the original mingw.org mingw.
453         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
454         <stddef.h> instead.
455         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
456         gl_WCTYPE_H.
457         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
458         gl_TYPE_WINT_T_PREREQ instead.
459         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
460         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
461         Reported by Eli Zaretskii <eliz@gnu.org>.
463 2017-04-30  Bruno Haible  <bruno@clisp.org>
465         utimecmp: Add support for native Windows.
466         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
468 2017-04-30  Bruno Haible  <bruno@clisp.org>
470         utimens: Add support for native Windows.
471         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
472         (fdutimens): Provide a native Windows implementation, like utime.c with
473         added tv_nsec support.
474         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
475         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
477 2017-04-30  Bruno Haible  <bruno@clisp.org>
479         wcsftime: New module.
480         * lib/wchar.in.h (wcsftime): New declaration.
481         * lib/wcsftime.c: New file.
482         * m4/wcsftime.m4: New file.
483         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
484         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
485         HAVE_WCSFTIME, REPLACE_WCSFTIME.
486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
487         HAVE_WCSFTIME, REPLACE_WCSFTIME.
488         * modules/wcsftime: New file.
489         * doc/posix-functions/wcsftime.texi: Mention the new module.
491 2017-04-30  Bruno Haible  <bruno@clisp.org>
493         strftime-fixes: New module.
494         * lib/time.in.h (strftime): New declaration.
495         * lib/strftime-fixes.c: New file.
496         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
497         (gl_FUNC_STRFTIME): Remove macro.
498         * m4/strftime-fixes.m4: New file.
499         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
500         REPLACE_STRFTIME.
501         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
502         REPLACE_STRFTIME.
503         * modules/strftime-fixes: New file.
504         * doc/posix-functions/strftime.texi: Mention the new module.
506 2017-04-30  Bruno Haible  <bruno@clisp.org>
508         mktime: Work around TZ problem on native Windows.
509         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
510         from the native Windows workaround.
511         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
512         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
513         'guessing no'.
514         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
515         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
516         NEED_MKTIME_WINDOWS.
517         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
518         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
519         NEED_MKTIME_INTERNAL.
520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
521         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
522         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
523         not REPLACE_MKTIME.
524         * doc/posix-functions/mktime.texi: Mention the native Windows
525         workaround.
527 2017-04-30  Bruno Haible  <bruno@clisp.org>
529         localtime: New module.
530         * lib/time.in.h (localtime): Declare also if requested by module
531         'localtime'.
532         * lib/localtime.c: New file.
533         * m4/localtime.m4: New file.
534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
535         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
536         * modules/localtime: New file.
537         * doc/posix-functions/localtime.texi: Mention the new module.
539 2017-04-30  Bruno Haible  <bruno@clisp.org>
541         ctime: New module.
542         * lib/time.in.h (ctime): New declaration.
543         * lib/ctime.c: New file.
544         * m4/ctime.m4: New file.
545         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
546         REPLACE_CTIME.
547         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
548         * modules/ctime: New file.
549         * doc/posix-functions/ctime.texi: Mention the new module.
551 2017-04-30  Bruno Haible  <bruno@clisp.org>
553         gettimeofday: Provide higher resolution on native Windows.
554         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
555         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
556         (initialize): Initialize it.
557         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
558         'struct timeval'. Don't use _ftime().
559         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
560         <sys/timeb.h> and _ftime.
562 2017-04-30  Bruno Haible  <bruno@clisp.org>
564         Document the problem with the Cygwin environment variable TZ.
565         * doc/posix-functions/tzset.texi: Add note about TZ.
566         * doc/posix-functions/ctime.texi: Likewise.
567         * doc/posix-functions/localtime.texi: Likewise.
568         * doc/posix-functions/mktime.texi: Likewise.
569         * doc/posix-functions/strftime.texi: Likewise.
570         * doc/posix-functions/wcsftime.texi: Likewise.
571         * doc/pastposix-functions/ftime.texi: Likewise.
573 2017-04-30  Bruno Haible  <bruno@clisp.org>
575         utime-tests: New module.
576         * tests/test-utime.c: New file, based on tests/test-utimens.h.
577         * tests/test-utimens-common.h: Include <sys/stat.h>.
578         * modules/utime-tests: New file.
580 2017-04-29  Bruno Haible  <bruno@clisp.org>
582         utime: New module.
583         * lib/utime.in.h: Add comment for snippets.
584         (utime): New declaration.
585         * lib/utime.c: New file.
586         * m4/utime.m4: New file.
587         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
588         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
589         REPLACE_UTIME.
590         * modules/utime-h (Depends-on): Add snippets.
591         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
592         Insert snippets.
593         * modules/utime: New file.
594         * doc/posix-functions/utime.texi: Mention the new module.
596 2017-04-29  Bruno Haible  <bruno@clisp.org>
598         utime-h: Modernize handling of 'struct utimbuf'.
599         * lib/utime.in.h: Include next <utime.h> if it exists.
600         (utimbuf): Define to _utimbuf on native Windows.
601         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
602         Set UTIME_H on native Windows.
603         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
604         * modules/utime-h (Depends-on): Add include_next.
605         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
606         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
608         * lib/utimens.c (utimbuf): Remove fallback definition.
609         * m4/utimens.m4 (gl_UTIMENS): Don't require
610         gl_CHECK_TYPE_STRUCT_UTIMBUF.
611         * m4/utimbuf.m4: Remove file.
612         * modules/utimens (Files): Remove m4/utimbuf.m4.
614 2017-04-29  Bruno Haible  <bruno@clisp.org>
616         Make use of module 'utime-h'.
617         * modules/copy-file (Depends-on): Add utime-h.
618         * lib/copy-file.c: Assume that <utime.h> exists.
619         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
621         * modules/utimens (Depends-on): Add utime-h.
622         * lib/utimens.c: Assume that <utime.h> exists.
624 2017-04-29  Bruno Haible  <bruno@clisp.org>
626         utime-h: New module.
627         * m4/utime_h.m4: New file.
628         * lib/utime.in.h: New file.
629         * modules/utime-h: New file.
630         * doc/posix-headers/utime.texi: Mention the new module.
632         * tests/test-utime-h.c: New file.
633         * modules/utime-h-tests: New file.
635 2017-04-30  Bruno Haible  <bruno@clisp.org>
637         Fix a few typos.
638         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
639         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
640         * doc/posix-functions/fstat.texi: Fix a plural typo.
641         * doc/posix-functions/stat.texi: Likewise.
642         * m4/include_next.m4: Update comments.
644 2017-04-29  Bruno Haible  <bruno@clisp.org>
646         error: Fix mistake in 2017-04-23 commit.
647         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
648         assume that strerror_r returns 'int', not 'char *'.
650 2017-04-29  Bruno Haible  <bruno@clisp.org>
652         stat: Fix time_t values and other problems on native Windows platforms.
653         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
654         implementations of stat().
655         * lib/stat.c: Include filename.h instead of dosname.h. Include
656         malloca.h, stat-w32.h.
657         (is_unc_root): New function.
658         (rpl_stat): New implementation for native Windows. Remove
659         REPLACE_FUNC_STAT_DIR code.
660         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
661         Don't define REPLACE_FUNC_STAT_DIR.
662         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
663         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
664         (Depends-on): Remove dosname. Add filename, malloca.
665         (configure.ac): Also compile lib/stat-w32.c.
667 2017-04-29  Bruno Haible  <bruno@clisp.org>
669         fstat: Fix time_t values on native Windows platforms.
670         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
671         * lib/stat-w32.h: New file.
672         * lib/stat-w32.c: New file.
673         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
674         stat-w32.h instead.
675         (fstat_nothrow): Remove function.
676         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
677         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
678         always.
679         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
680         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
681         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
682         (configure.ac): Also compile lib/stat-w32.c.
684 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
686         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
687         Problem reported by Assaf Gordon and Gavin Smith in:
688         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html
689         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
690         #define this, too.
692 2017-04-29  Bruno Haible  <bruno@clisp.org>
694         strerror_r-posix: Fixes for MSVC 14.
695         * lib/strerror_r.c: Include <stdarg.h>.
696         (strerror_r): Provide error messages for errno values 100...140.
697         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
699 2017-04-28  Bruno Haible  <bruno@clisp.org>
701         noreturn: New module.
702         * lib/noreturn.h: New file.
703         * modules/noreturn: New file.
704         * tests/test-noreturn.c: New file.
705         * modules/noreturn-tests: New file.
706         * tests/test-noreturn-c++.cc: New file.
707         * modules/noreturn-c++-tests: New file.
709 2017-04-27  Bruno Haible  <bruno@clisp.org>
711         wctype-h: Fix compilation error with the original mingw.org mingw.
712         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
713         HAVE_CRTDEFS_H.
714         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
715         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
716         <stddef.h> instead.
717         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
719 2017-04-26  Pádraig Brady  <P@draigBrady.com>
721         nap.h: Fix compilation on non windows platforms
722         * tests/nap.h: Move misplaced endif.
724 2017-04-26  Pádraig Brady  <P@draigBrady.com>
725         and Paul Eggert  <eggert@cs.ucla.edu>
727         time_rz: fix heap buffer overflow vulnerability
728         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
729         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
730         whether there is enough buffer space available, thus avoiding
731         the problematic promotion of signed to unsigned causing an invalid
732         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
733         the start of the buffer.
734         * tests/test-parse-datetime.c (main): Add a test case written by
735         Paul Eggert, which overwrites enough of the heap so that
736         standard glibc will fail with "free(): invalid pointer"
737         without the patch applied.
739 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
741         xalloc: add missing integer overflow check
742         * lib/xalloc.h (x2nrealloc): Also check for multiplication
743         overflow when P is null.
745 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
747         parse-datetime: make it standalone
748         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
749         (_GL_ATTRIBUTE_FORMAT): New macro.
750         These are needed to get './gnulib-tool --test parse-datetime' to work.
752 2017-04-23  Bruno Haible  <bruno@clisp.org>
754         nap.h: Port to native Windows.
755         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
756         use nap_fd instead. On native Windows, close and reopen nap_fd.
757         (nap_works): Don't compare the ctimes, because on native Windows, these
758         are the creation times.
759         (nap): Update.
761 2017-04-23  Bruno Haible  <bruno@clisp.org>
763         nap.h: Fix logic.
764         * tests/nap.h (nap): Avoid signed integer overflow in loop.
766 2017-04-23  Bruno Haible  <bruno@clisp.org>
768         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
769         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
770         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
771         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
772         * lib/argp-help.c (__argp_failure): Likewise.
774 2017-04-23  Bruno Haible  <bruno@clisp.org>
776         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
777         * m4/strerror_r.m4: Revert changes since 2016-10-16.
778         * lib/strerror_r.c: Likewise.
780 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
782         Target a C99 subset, not a C89 subset
783         For many years Gnulib has targeted C89 and has resisted using C99
784         features, as some Gnulib-using programs still wanted to target
785         C89.  As this no longer seems to be the case, relax the porting
786         requirements to allow some C99 features.  This is merely a change
787         to the documentation, to give other Gnulib developers a chance to
788         weigh in on the topic.
789         * doc/extern-inline.texi (extern inline):
790         * doc/gnulib-readme.texi (Portability guidelines):
791         * doc/gnulib-tool.texi (Initial import):
792         * doc/gnulib.texi (Header files):
793         Modernize to talk about C99 and C11 instead of C89 and C99.
794         * doc/gnulib-readme.texi (Portability guidelines):
795         Now a section, not merely a subsection, so that it
796         can be split up.  Modernize a bit.
797         (C language versions, C99 features assumed)
798         (C99 features avoided):
799         New sections.
801 2017-04-23  Bruno Haible  <bruno@clisp.org>
803         doc: New section "Modules that modify the way other modules work".
804         * doc/gnulib.texi (Modules that modify the way other modules work): New
805         section.
807 2017-04-23  Bruno Haible  <bruno@clisp.org>
809         stat-time: Update comments.
810         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
811         * tests/test-utimens-common.h: Add reference regarding st_ctime on
812         Windows.
814 2017-04-01  Bruno Haible  <bruno@clisp.org>
816         glob: Fix more memory leaks.
817         * lib/glob.c (glob): Free allocated memory before returning.
818         Reported by Coverity via Tim Rühsen.
820 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
822         poll: improve fast check for out-of-range NFD
823         * lib/poll.c: Do not include intprops.h.
824         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
825         * modules/poll (Depends-on): Remove intprops.
827         ftoastr: cite a newer paper
828         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
829         instead of Loitsch 2010.
831 2017-04-22  Bruno Haible  <bruno@clisp.org>
833         poll: Enable argument check also in the Windows implementation.
834         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
835         Reported by Paul Eggert.
837 2017-04-22  Bruno Haible  <bruno@clisp.org>
839         getlogin_r: Work around bug in Mac OS X 10.12.
840         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
841         bug.
842         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
843         given size minus 1, call getlogin_r a second time, on a larger buffer.
844         * modules/getlogin_r (Depends-on): Add malloca.
845         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
847 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
849         parse-datetime: fix %z and prefer signed int
850         %z problem reported by Pádraig Brady in:
851         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
852         While fixing it, I decided to prefer signed ints to size_t, as
853         they are less error-prone (e.g., ubsan catches overflow).
854         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
855         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
856         counts, since signed integers make for better debugging.
857         (date): Don’t assume %z works in printf formats.
858         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
859         sizes of buffers known to be small, e.g., because we’re using snprintf.
860         (parse_datetime2): Simplify call to debug_mktime_not_ok.
862 2017-04-22  Bruno Haible  <bruno@clisp.org>
864         *printf: Work around rounding bug on Mac OS X.
865         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
866         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
867         Mac OS X and FreeBSD.
868         * doc/glibc-functions/*printf.texi: Likewise.
870 2017-04-22  Bruno Haible  <bruno@clisp.org>
872         vasnprintf tests: Avoid warnings.
873         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
874         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
875         test.
877 2017-04-22  Bruno Haible  <bruno@clisp.org>
879         sys_file tests: Avoid warning.
880         * tests/test-sys_file.c (main): Add a default clause to the switch
881         statement.
883 2017-04-22  Bruno Haible  <bruno@clisp.org>
885         sethostname: Update doc.
886         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
887         Mac OS X.
889 2017-04-22  Bruno Haible  <bruno@clisp.org>
891         quotearg tests: Avoid warnings.
892         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
893         false.
895 2017-04-22  Bruno Haible  <bruno@clisp.org>
897         poll: Enable argument check.
898         * lib/poll.c: Include intprops.h.
899         (poll): Check value of nfd correctly.
900         * modules/poll (Depends-on): Add intprops.
902 2017-04-22  Bruno Haible  <bruno@clisp.org>
904         get-rusage-data: Avoid warnings on Mac OS X.
905         * lib/get-rusage-data.c: On Mac OS X, don't define
906         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
907         (get_rusage_data) [Mac OS X]: Just return 0.
909 2017-04-22  Bruno Haible  <bruno@clisp.org>
911         xbinary-io: Fix build error.
912         * modules/xbinary-io (Depends-on): Add gettext-h.
913         * lib/xbinary-io.c: Include gettext.h and define _().
914         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
915         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
917 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
919         parse-datetime: overflow and debug cleanups
920         This long patch was triggered by this bug report from Ruediger Meier:
921         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
922         I fixed the bug he noted, then found some others nearby, and then
923         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
924         up some of the code to follow GNU standards while I was at it.
925         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
926         use c_isdigit.
927         (EPOCH_YEAR): Remove; unused.
928         (TM_YEAR_BASE): Now an enum rather than a macro.
929         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
930         time zone offset, since timezones now are in terms of seconds and
931         not minutes.
932         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
933         appropriate.  Verify that intmax_t is wide enough.
934         (time_overflow, time_zone_str): New functions, used to deal
935         more reliably with overflow.
936         (dbg_printf): Add printf attribute, to help catch integer width errors.
937         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
938         (%union, to_hour, yylex, parse_datetime2):
939         Use intmax_t instead of long int and/or long_time_t.
940         All uses changed.
941         (DBGBUFSIZE): Move earlier.
942         (relative_time, set_hhmmss, parser_control):
943         Just use int for nanoseconds and for time zones; that’s wide enough.
944         (parser_control): Use bool for members like year_seen that can
945         be booleans instead of counters.  All uses changed.
946         Remove debug_default_input_timezone; no longer needed.
947         All uses removed.
948         (apply_relative_time): Return a bool overflow flag.
949         All uses changed to check for overflow.
950         (apply_relative_time, zone, date, relunit, relunit_snumber)
951         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
952         Check for integer overflow portably.
953         (str_days): Use just int for N, as it’s wide enough.
954         Prefer 2D char arrays to arrays of char * when it looks like
955         2D is a win on typical platforms.
956         Prefer snprintf to strncpy/strncat, for simplicity;
957         all buffers are smaller than INT_MAX so this is safe.
958         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
959         (debug_print_current_time): Don’t assume tv_nsec is of type long,
960         as this is not true on x32.  Output "." before any nanoseconds.
961         (debug_print_current_time, parse_datetime2):
962         Output local zones using a more-consistent format.
963         (debug_print_current_time, date, parse_datetime2):
964         (main) [TEST]:
965         Don’t assume time_t is the same width as long.
966         (print_rel_part): New function, replacing ...
967         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
968         (debug_print_relative_time): Use bool for boolean.
969         (local_zone): dsts_seen now counts only tDST instances.
970         (date): Fix printf of size_t to use %z.  Do not assume numeric
971         tokens have negative values merely because the context suggests
972         a syntax with "-" separating tokens.
973         (time_zone_hhmm): Return bool success indicator, which checks for
974         overflow.  Store result into PC->time_zone instead.  All callers
975         changed.
976         (tm_year_str): New function.  Return a bool success indicator and
977         store the result into a buffer.  All callers changed.  Output the
978         numerically correct string even if adding 1900 to the year would
979         overflow.
980         (to_tm_year): New function, replacing the old to_year.  All
981         callers changed.
982         (tm_diff): Sync with glibc.
983         (lookup_word): Use to_uchar instead of doing it by hand.
984         (TZBUFSIZE): Now local to the only function that needs it.
985         (debug_strfdatetime): Simplify now that time zones are int seconds.
986         (debug_strfdate): Work even if tm_year + 1900 would overflow.
987         (get_effective_timezone): Remove.  All uses removed.
988         (parse_datetime2): Use fprintf in pieces instead of snprintfing
989         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
990         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
991         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
992         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
993         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
994         * modules/parse-datetime (Depends-on): Add inttypes.
996 2017-04-21  Bruno Haible  <bruno@clisp.org>
998         gettext-h: Avoid -Wundef warning.
999         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
1000         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
1001         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
1003 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
1005         error: Avoid "function declaration isn't a prototype" warning.
1006         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
1008 2017-04-21  Bruno Haible  <bruno@clisp.org>
1010         vasnprintf: Fix for MSVC 14.
1011         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
1012         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
1013         of !HAVE_SNPRINTF_RETVAL_C99.
1015 2017-04-21  Bruno Haible  <bruno@clisp.org>
1017         mbrtowc tests: Fix test failures on MSVC 14.
1018         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
1019         behaviour for invalid input.
1021 2017-04-21  Bruno Haible  <bruno@clisp.org>
1023         mbsinit: Fix for MSVC 14.
1024         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
1025         implementation that is in sync with mbrtowc.c. On other platforms, use
1026         an adequate ad-hoc implementation.
1028 2017-04-21  Bruno Haible  <bruno@clisp.org>
1030         Fix test-mbrtowc5.sh failure on native Windows.
1031         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
1032         "C".
1034 2017-04-21  Bruno Haible  <bruno@clisp.org>
1036         Avoid accidental use of native Windows APIs on Cygwin.
1037         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
1038         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
1039         * lib/localename.c (WINDOWS_NATIVE): Likewise.
1041 2017-04-20  Bruno Haible  <bruno@clisp.org>
1043         Remove red warnings from the generated MODULES.html.
1044         * modules/fcntl (Description): Disambiguate function references.
1045         * modules/getcwd-lgpl (Description): Likewise.
1046         * modules/hostent (Description): Likewise.
1047         * modules/servent (Description): Likewise.
1048         * modules/tempname (Description): Likewise.
1050 2017-04-20  Bruno Haible  <bruno@clisp.org>
1052         verify tests: Fix spurious failure with parallel make.
1053         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
1054         EXTRA_PROGRAMS.
1055         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
1056         * tests/test-verify-try.c: New file.
1057         * modules/verify-tests (Files): Add it.
1058         (EXTRA_PROGRAMS): Add test-verify-try.
1059         (MOSTLYCLEANFILES): Update accordingly.
1060         Reported by Adam James Stewart <ajstewart@anl.gov>.
1062 2017-04-18  Bruno Haible  <bruno@clisp.org>
1064         vma-iter: Fix compilation error on Solaris 7.
1065         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
1066         like on IRIX, OSF/1.
1067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1069 2017-04-18  Bruno Haible  <bruno@clisp.org>
1071         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
1072         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
1073         included.
1074         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
1075         <sys/procfs.h>.
1076         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
1077         <sys/procfs.h> cannot be included.
1078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1080 2017-04-18  Bruno Haible  <bruno@clisp.org>
1082         getopt-gnu: Add comments.
1083         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
1084         * modules/getopt-gnu (configure.ac): Likewise.
1086 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
1088         regex: port better to Solaris 10
1089         Solaris 10 <locale.h> includes <libintl.h>, which #defines
1090         gettext, and this causes a double #define.
1091         Problem reported by Gavin Smith in:
1092         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
1093         * lib/regex_internal.h (gettext): #undef before #defining.
1095 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
1097         intprops: improve comments
1098         * lib/intprops.h: Improve and shorten commentary.
1099         For the record, if we ever run into a pedantic compiler that
1100         behaves differently from GCC when converting an out-of-range value
1101         to a signed integer, we can work around the problem with something
1102         like the following code, where UCT is the signed counterpart of T
1103         (UCT is sometimes narrower than UT) and all callers are changed
1104         accordingly:
1105         #if __SUNPRO_C <= 0x5120
1106         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
1107            ((t) ((ut) (a) op (ut) (b)))
1108         #else
1109         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
1110            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
1111             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
1112                + TYPE_MINIMUM (t)) \
1113             : (t) (uct) ((ut) (a) op (ut) (b)))
1114         #endif
1116 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
1118         intprops: try to avoid tickling similar bugs
1119         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
1120         needs to be the same width as T; it can be wider.
1121         Change callers so that UT is at least as wide as unsigned int,
1122         as I suspect that this is less likely to run into compiler bugs.
1124         intprops: port to Oracle Studio 12.3 x86
1125         Problem reported by Gavin Smith in:
1126         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
1127         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
1128         Convert unsigned to signed via the usual rather than the standard way,
1129         to avoid a compiler bug in Oracle Studio 12.3 x86.
1131 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1133         getopt: prefer - to _ in new file names
1134         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
1135         * lib/getopt-core.h: Rename from lib/getopt_core.h.
1136         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
1137         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
1138         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
1139         All uses changed.
1141         getopt: port recent getopt changes to macOS
1142         Problem reported by Harald Maier (Bug#26398).
1143         The macOS C compiler uses __nonnull for its own purposes and that
1144         clashes with glibc's __nonnull.
1145         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
1146         * lib/getopt_cdefs.in.h (__nonnull): Remove.
1147         * lib/getopt_core.h (getopt):
1148         * lib/getopt_ext.h (getopt_long, getopt_long_only):
1149         Use _GL_ARG_NONNULL, not __nonnull.
1150         * lib/unistd.in.h: Move snippet hooks to before where the getopt
1151         .h files are included, so that _GL_ARG_NONNULL is defined in time.
1152         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
1153         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
1155 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1157         getopt-gnu: omit some duplicate code
1158         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
1159         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
1160         gnulib-tool already does this.
1161         * modules/getopt-gnu (configure.ac): Omit code duplicated from
1162         getopt-posix, which we depend on.
1164         getopt-posix: use angle-bracket include
1165         * lib/getopt1.c: Include <config.h>, not "config.h".
1167 2017-04-06  Zack Weinberg  <zackw@panix.com>
1169         getopt: annotate files with relationship to glibc
1171         As the final act in this patchset, adjust the message at the top of
1172         each file to indicate which files are synced with glibc.  (This has
1173         already been done for most of the headers.)
1175         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
1176         Mention in top-of-file boilerplate that these files are shared
1177         between glibc and gnulib.
1180         getopt: split up getopt.in.h and eliminate __need_getopt
1182         Over in glibc, all of the __need macros are being phased out in favor
1183         of small headers that declare only the necessary components, as this
1184         is much simpler and less prone to bugs.  As getopt is shared with
1185         glibc, gnulib needs to do the same for __need_getopt.
1187         __need_getopt is misnamed; what it really means is "we want only the
1188         getopt features specified in POSIX, not the GNU extensions".  glibc
1189         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
1190         these files can be shared verbatim with gnulib.  The portability
1191         wrapper, on the other hand, they have renounced altogether; glibc's
1192         getopt.h will no longer be shared with gnulib at all.  In exchange,
1193         certain glibc-specific quirks (having to do with __posix_getopt) no
1194         longer need appear in gnulib's headers at all.
1196         This patch merges getopt_core.h and getopt_ext.h from glibc, and
1197         splits up the current gnulib-side portability wrapper into three
1198         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
1199         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
1200         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
1201         unistd.in.h just use them.  All new files are clearly marked with
1202         whether they are shared with glibc.
1204         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
1205         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
1206         with glibc, and ...
1207         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
1208         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
1209         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
1210         instead of defining __need_getopt and including the full getopt.h.
1212         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
1213         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
1214         * modules/getopt-posix (Files): Add new headers and sort list.
1215         (Depends-on): No longer need snippet/arg-nonnull.
1216         (Makefile.am): Generate getopt_cdefs.h.
1219         getopt: better handling of ambiguous options
1221         glibc's getopt uses alloca to construct a linked list of possibilities
1222         for an "ambiguous" long option.  In gnulib, malloc should be used
1223         instead.  Providing for both cases complicates things a fair bit.
1225         This patch rewrites ambiguous-option handling to use a boolean vector
1226         instead of a linked list.  There is then only one allocation that
1227         might need freeing; in glibc it can honor __libc_use_alloca as usual,
1228         and in gnulib we define __libc_use_alloca to always be false, so we
1229         don't need ifdefs in the middle of the function.  This should also be
1230         slightly more efficient in the normal case of long options being fully
1231         spelled out -- I think most people aren't even aware they _can_
1232         sometimes abbreviate long options.
1234         One interesting consequence is that the list of possibilities is now
1235         printed in exactly the order they appear in the list of long options,
1236         instead of the first possibility being shuffled to the end.
1238         (The patch looks bigger than it really is because there's a fair bit
1239         of reindentation and code rearrangement.)
1241         * lib/getopt.c: When used standalone, define __libc_use_alloca
1242         as always false and alloca to abort if called.
1243         (process_long_option): Rewrite handling of ambiguous long options
1244         to use a single boolean vector, not a linked list; use
1245         __libc_use_alloca to decide whether to allocate this using alloca.
1248         getopt: refactor long-option handling
1250         There were two copies of the bulk of the code to handle long options.
1251         Now there is only one.
1253         This change temporarily removes the logic to avoid using alloca when
1254         standalone; the next patch in the series will restore it.
1256         * lib/getopt.c (process_long_option): New function split out
1257         from _getopt_internal_r.
1258         (_getopt_internal_r): Replace both copies of the long-option
1259         processing code with calls to process_long_option.
1262         getopt: tidy up _getopt_initialize a bit
1264         _getopt_data.__posixly_correct is completely redundant to
1265         _getopt_data.__ordering, and some work that logically belongs in
1266         _getopt_initialize was being done by _getopt_internal_r, making the
1267         code harder to understand.
1269         As a side effect, getenv will no longer be called if the first
1270         character of the options string is '+' or '-', which is probably a
1271         Good Thing.  (Perhaps we should have a flag character that
1272         specifically asks for the permutation behavior?)
1274         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
1275         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
1276         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
1279         getopt: merge from glibc: repetition reduction
1281         The definitions of the entry point functions 'getopt' and
1282         '__posix_getopt' can be made substantially less repetitive with a
1283         helper macro.
1285         While I was merging the const-correctness changes from gnulib into
1286         glibc I noticed there are still some unnecessary casts in
1287         _getopt_internal_r.
1289         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
1290         a macro.  Consistently cast 'argv' to 'char **' when calling
1291         _getopt_internal.
1292         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
1295         getopt: clean up error reporting
1297         getopt can print a whole bunch of error messages, and when used
1298         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
1299         cancellation point and getopt isn't, and also applying fprintf to a
1300         stream in wide-character mode is not allowed.  So every single error
1301         reporting case has an #ifdef _LIBC block in which it calls internal
1302         libc functions instead.  The counterpart patch series in glibc makes
1303         it possible to simplify all of that down to a set of #defines at the
1304         top of the file; core code is written as if it is safe to just call
1305         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
1306         call any *other* stdio functions.)
1308         * lib/getopt.c: When _LIBC is defined, define fprintf to
1309         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
1310         to _IO_funlockfile.  When neither _LIBC nor
1311         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
1312         funlockfile as no-ops.
1313         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
1314         standalone error-printing code can now be used for libc as well.
1315         Add an flockfile/funlockfile pair around one case where the error
1316         message is printed in several chunks.  Don't use fputc.
1319         getopt: fix fencepost error in ambiguous-W-option handling
1321         getopt_long contains an undocumented (AFAICT) feature in which, if you
1322         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
1323         treated as equivalent to '--foo'.  This is implemented with a partial
1324         second copy of the code for handling long options, and that code
1325         increments optind one too many times when recovering from an ambiguous
1326         abbreviated option, which can cause the main loop to walk past the end
1327         of argv and crash.
1329         I discovered this while writing a test case that tries to exercise all
1330         of getopt's error reporting paths; I wouldn't be surprised to learn
1331         that this feature is never used by real applications.
1333         * lib/getopt.c (_getopt_internal_r): Don't increment
1334         d->optind a second time when reporting ambiguous -W options.
1337         getopt: clean up getopt.c and getopt1.c file headers
1339         In getopt.c, there is no need to include wchar.h at all, and it is
1340         safe nowadays to assume that stdlib.h does declare getenv (several
1341         other gnulib modules make this assumption).
1343         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
1344         by using "" inclusions consistently, and there is no actual need to
1345         include stdlib.h (except in the #ifdef TEST block, where it should be
1346         unconditional), nor to provide a backup definition of NULL at all.
1348         * lib/getopt1.c: Simplify #ifdeffage at top of file.
1349         Move inclusion of stdlib.h to #ifdef TEST block and make
1350         unconditional.  Do not define NULL.
1351         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
1352         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
1353         * modules/getopt-gnu, modules/getopt-posix: Don't call
1354         gl_PREREQ_GETENV.
1357         getopt: harmonize comments with glibc
1359         The comments explaining how the behavior of 'getopt' varies depending
1360         on whether it's the standalone version and whether there are special
1361         characters at the beginning of the options string were inconsistent
1362         between gnulib and glibc, and also out of sync with the code.
1364         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
1367         getopt: remove USE_NONOPTION_FLAGS
1369         getopt includes code to parse an environment variable named
1370         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
1371         in decimal); but all of it has been #ifdefed out since 2001, with no
1372         official way to turn it back on.
1374         According to commentary in glibc's config.h.in, bash version 2.0
1375         set this environment variable to indicate argv elements that were
1376         the result of glob expansion and therefore should not be treated
1377         as options, but the feature was "disabled later" because "it
1378         caused problems".  According to bash's CHANGES file, "later" was
1379         release 2.01; it gives no more detail about what the problems
1380         were.
1382         Version 2.0 of bash was released on the last day of 1996, and version
1383         2.01 in June of 1997.  Twenty years later, I think it is safe to
1384         assume that this environment variable isn't coming back.
1386         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1387         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1388         __libc_argc and __libc_argv externs, which were only used by
1389         #ifdef USE_NONOPTION_FLAGS blocks.
1392         getopt: tabify, in preparation for merge with glibc
1394         glibc sticks to the GNU default of indenting with a mix of
1395         8-column tabs and spaces; make the gnulib copy match.
1397         getopt.h is not included because it is *not* going to be merged in its
1398         present form.
1400         * getopt.c, getopt1.c, getopt_int.h: Tabify.
1402 2017-04-02  Bruno Haible  <bruno@clisp.org>
1404         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
1405         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
1406         like it was done in modules/relocatable-lib on 2011-05-21 and in
1407         modules/relocatable-prog on 2011-08-15.
1408         Reported by Reuben Thomas <rrt@sc3d.org>.
1410 2017-03-31  Bruno Haible  <bruno@clisp.org>
1412         glob: Fix invalid free() call.
1413         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
1414         static storage to home_dir.
1415         Reported by Coverity via Tim Rühsen.
1417 2017-03-31  Bruno Haible  <bruno@clisp.org>
1419         glob: Fix memory leaks.
1420         * lib/glob.c (glob): Free allocated memory before returning.
1421         Reported by Coverity via Tim Rühsen.
1423 2017-03-31  Bruno Haible  <bruno@clisp.org>
1425         md5, sha1, sha256, sha512: Add comments regarding correctness.
1426         * lib/md5.h (buflen): Add comments regarding range.
1427         * lib/sha1.h (buflen): Likewise.
1428         * lib/sha256.h (buflen): Likewise.
1429         * lib/sha512.h (buflen): Likewise.
1430         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
1431         * lib/sha1.c (sha1_process_bytes): Likewise.
1432         * lib/sha256.c (sha256_process_bytes): Likewise.
1433         * lib/sha512.c (sha512_process_bytes): Likewise.
1434         Reported by Coverity via Tim Rühsen.
1436 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
1438         getopt: merge from glibc
1439         This does not change anything substantial; it merely simplifies
1440         hypothetical merges back to glibc.
1441         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
1442         Change copyright notice to match what is in glibc.
1443         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
1444         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
1445         __open_memstream rather than open_memstream and __glibc_likely
1446         instead of __builtin_expect.
1447         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
1449 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1451         dfa: make [0-9] faster in non-C locales
1452         Problem reported by John P. Linderman (Bug#26193).
1453         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
1454         If both ends of the range are ASCII digits, do not worry about
1455         multi-character collating sequences and the like.  Be consistent
1456         about using isalpha as a precondition for setbit_case_fold_c.
1458 2017-03-19  Bruno Haible  <bruno@clisp.org>
1460         lock: Fix compilation error with HP-UX IA64 cc.
1461         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
1462         weak on non-glibc platforms.
1464 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1466         stdalign: tweak version# and test for HP-UX IA64
1467         Problems reported by Bruno Haible in:
1468         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
1469         * lib/stdalign.in.h (_Alignas):
1470         * m4/stdalign.m4 (gl_STDALIGN_H):
1471         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
1472         used octal (as that is how they document it), but it is decimal in
1473         practice now and the ancient implementations no longer matter.
1474         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
1476 2017-03-19  Bruno Haible  <bruno@clisp.org>
1478         vma-iter: Add support for Solaris.
1479         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
1480         approach.
1481         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
1482         * lib/get-rusage-as.c: Update comment about Solaris.
1483         * lib/get-rusage-data.c: Likewise.
1485 2017-03-19  Bruno Haible  <bruno@clisp.org>
1487         vma-iter: Prefer HP-UX specific API on HP-UX.
1488         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
1489         * lib/vma-iter.h: Update.
1490         Just in case HP-UX ever implements mquery().
1492 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
1494         stdalign: restore previous behavior for HP-UX IA64
1495         See Bruno Haible's email in:
1496         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
1497         which cites p 150 of a manual saying that 'aligned' works on Itanium.
1498         * lib/stdalign.in.h (_Alignas):
1499         Assume the '061200' applies to Itanium, not to PA-RISC.
1500         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
1502 2017-03-17  Bruno Haible  <bruno@clisp.org>
1504         stat-time, timespec: Support use of the header files in C++ mode.
1505         * lib/stat-time.h: Add "C" linkage declaration.
1506         * lib/timespec.h: Likewise.
1508 2017-03-17  Bruno Haible  <bruno@clisp.org>
1510         stdalign: Make it work with HP-UX cc.
1511         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
1512         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
1513         for HP-UX cc.
1515 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
1517         flexmember: try to detect HP-UX 11.31 cc bug
1518         Problem reported by Bruno Haible in:
1519         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
1520         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1521         Attempt to detect bug in HP-UX 11.31 cc.
1523 2017-03-16  Bruno Haible  <bruno@clisp.org>
1525         stdint: Fix test compilation failure with HP-UX 11 cc.
1526         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
1527         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
1528         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
1529         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
1531 2017-03-14  Bruno Haible  <bruno@clisp.org>
1533         gnulib-tool: Don't produce a tests directory with only snippet .h files.
1534         * gnulib-tool (func_modules_transitive_closure_separately): If
1535         testsrelated_modules ends up with no "real" modules, aside from
1536         modules with applicability 'all', set it to empty.
1538 2017-03-14  Bruno Haible  <bruno@clisp.org>
1540         vma-iter: Add support for HP-UX.
1541         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
1542         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
1543         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
1544         * lib/get-rusage-as.c: Update comment about HP-UX.
1545         * lib/get-rusage-data.c: Likewise.
1546         (get_rusage_data): Use get_rusage_data_via_setrlimit.
1548 2017-03-14  Bruno Haible  <bruno@clisp.org>
1550         limits-h: Make it work with HP-UX cc.
1551         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
1552         defined.
1554 2017-03-14  Bruno Haible  <bruno@clisp.org>
1556         Fix test failures on DragonFlyBSD.
1557         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
1558         * tests/test-select.h (test_bad_fd): Likewise.
1559         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
1561 2017-03-14  Bruno Haible  <bruno@clisp.org>
1563         freadahead: Silence warning on DragonFlyBSD.
1564         * lib/freadahead.c (__sreadahead): Declare ourselves.
1566 2017-03-14  Bruno Haible  <bruno@clisp.org>
1568         vma-iter: Add comment about AIX.
1569         * lib/vma-iter.c: Add comment about why this module is not implemented
1570         on AIX.
1572 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
1574         snippets: move unadjusted snippet sources to lib
1575         Problem reported by Michal Privoznik in:
1576         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
1577         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
1578         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
1579         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
1580         * lib/unused-parameter.h: Rename from
1581         build-aux/snippet/unused-parameter.h.
1582         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
1583         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
1584         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
1585         * modules/snippet/c++defs (Files:, CXXDEFS_H):
1586         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
1587         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
1588         Adjust to file renamings.
1590 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
1592         gnulib-tool: don't automatically distribute files from top/
1593         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
1594         not distribute top/README-release by default, don't distribute files
1595         from top/ unconditionally.
1596         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
1597         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
1599 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
1601         gnulib-tool: fix typo in comment output
1602         * gnulib-tool (func_import): Fix typo with previous change.
1604         snippets: work around GNU Make 3.82 VPATH
1605         When using 'gnulib-tool --gnu-make' on Emacs, and building
1606         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
1607         an out-of-source (VPATH) build failed because the sans-copyright
1608         snippet file was not built before the file that used it.
1609         Presumably this is some sort of VPATH thing.  Work around the
1610         problem by using the original snippet, i.e., don’t bother to
1611         remove its copyright notice.
1612         * modules/snippet/_Noreturn, modules/snippet/link-warning:
1613         Don’t assume Automake in comments.  Omit long-incorrect comment.
1614         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
1615         (MOSTLYCLEANFILES):
1616         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
1617         (MOSTLYCLEANFILES):
1618         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
1619         (MOSTLYCLEANFILES):
1620         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
1621         (MOSTLYCLEANFILES):
1622         Remove.
1623         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
1624         * modules/snippet/c++defs (CXXDEFS_H):
1625         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
1626         * modules/snippet/warn-on-use (WARN_ON_USE_H):
1627         Don’t bother to remove the copyright notice; just use the
1628         original snippet as-is.
1630 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1632         gnulib-tool: minor --gnu-make fixups
1633         * gnulib-tool (func_emit_lib_Makefile_am):
1634         Remove useless code that was a blind alley during implementation.
1635         Problem reported by Thien-Thi Nguyen in:
1636         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
1637         (func_import): Note the "--gnu-make" option in the output comment.
1639 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1641         gnulib-tool: new option --gnu-make
1642         This is for applications like GNU Emacs that use GNU Make
1643         features instead of Automake.
1644         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
1645         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
1646         Do not assume Automake.
1647         * gnulib-tool (func_determine_path_separator)
1648         (func_modules_transitive_closure, func_update_file)
1649         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1650         (func_import): Add support for --gnu-make.
1652 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
1654         gnulib-common.m4: avoid aclocal.m4 bloat
1655         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
1656         Hide AM_PROG_AR from aclocal, so that aclocal does not
1657         install irrelevant macro definitions into aclocal.m4.
1659 2017-03-10  Bruno Haible  <bruno@clisp.org>
1661         vma-iter: Let callers know about error.
1662         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
1663         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
1665 2017-03-05  Bruno Haible  <bruno@clisp.org>
1667         Fix value of LD for 64-bit compilers on AIX.
1668         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
1669         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
1671 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1673         dtotimespec: simplify
1674         * lib/dtotimespec.c (dtotimespec): Simplify.
1676 2017-03-04  Bruno Haible  <bruno@clisp.org>
1678         test-calloc-gnu: Reenable test also for GCC 7.
1679         * tests/test-calloc-gnu.c (eight): New function.
1680         (main): Don't skip test; use eight() instead.
1682 2017-03-04  Jim Meyering  <meyering@fb.com>
1684         test-calloc-gnu: port to GCC7
1685         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
1686         that attempts to calloc more than SIZE_MAX bytes, because GCC7
1687         and newer would detect that at compilation time.
1689 2017-03-04  Bruno Haible  <bruno@clisp.org>
1691         tests: Avoid compiler warning about uses of null_ptr.
1692         * tests/null-ptr.h: New file.
1693         * tests/test-canonicalize.c: Include null-ptr.h.
1694         (null_ptr): Remove function.
1695         * tests/test-canonicalize-lgpl.c: Likewise.
1696         * tests/test-memmem.c: Likewise.
1697         * tests/test-ptsname_r.c: Likewise.
1698         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
1699         * modules/canonicalize-lgpl-tests: Likewise.
1700         * modules/memmem-tests: Likewise.
1701         * modules/ptsname_r-tests: Likewise.
1702         Reported by Jim Meyering.
1704 2017-03-03  Bruno Haible  <bruno@clisp.org>
1706         doc: Mention Mac OS X deficiencies regarding semaphores.
1707         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
1708         * doc/posix-functions/sem_destroy.texi: Likewise.
1709         * doc/posix-functions/sem_getvalue.texi: Likewise.
1711 2017-03-03  Bruno Haible  <bruno@clisp.org>
1713         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
1714         Reported by Assaf Gordon <assafgordon@gmail.com> via
1715         Pádraig Brady <P@draigBrady.com>.
1716         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
1717         semaphores.
1718         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
1719         (atomic_int_semaphore): New macro.
1721 2017-02-28  Bruno Haible  <bruno@clisp.org>
1723         perror tests: Tweak for z/OS.
1724         Reported by Daniel Richard G. <skunk@iskunk.org>.
1725         * tests/test-perror.sh: Don't fail z/OS style perror output.
1727 2017-02-26  Bruno Haible  <bruno@clisp.org>
1729         nproc: Refactor large function.
1730         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
1731         from num_processors.
1732         (num_processors): In this function, only deal with OMP.
1734 2017-02-26  Pádraig Brady  <P@draigBrady.com>
1736         nproc: adjust handling of OpenMP environment variables
1737         to match the return value from omp_get_num_threads(), i.e.:
1738          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
1739          - Treat 0 as an invalid value and ignore
1740         Also remove the call to omp_get_num_threads() because
1741         it's ineffective without the omp pragmas in place.
1742         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
1743         so that it can be ignored.
1744         (num_processors): Honor OMP_THREAD_LIMIT even without
1745         OMP_NUM_THREADS being set.  Also fix a typo in the environment
1746         variable being checked, from the previous recent commit.
1748 2017-02-26  Pádraig Brady  <P@draigBrady.com>
1750         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
1751         * lib/nproc.c (parse_omp_threads): A new function refactored
1752         from num_processors() to support parsing both of the
1753         above environment variables.
1754         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
1755         to accurately reflect the current OpenMP nesting level.
1756         Also support the OMP_THREAD_LIMIT environment variable
1757         to limit the max value determined from OMP_NUM_THREADS.
1758         * modules/nproc: Depend on minmax header.
1759         Suggested by Oliver Heimlich.
1761 2017-02-25  Bruno Haible  <bruno@clisp.org>
1763         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
1764         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
1766 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1768         ftoastr: port to -Wdouble-promotion
1769         Work around -Wdouble-promotion false alarm in recent GCCs.
1770         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
1771         (ftoastr_snprintf, FTOASTR): Use it.
1773 2017-02-21  Bruno Haible  <bruno@clisp.org>
1775         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
1776         Reported by Rene Saavedra <rennes@openmailbox.org> in
1777         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
1778         * lib/glthread/lock.h: On glibc systems without
1779         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
1780         implementation of rwlocks.
1781         * lib/glthread/lock.c: Likewise.
1783 2017-02-20  Bruno Haible  <bruno@clisp.org>
1785         lock tests: Fix build failure on z/OS.
1786         Reported by Daniel Richard G. <skunk@iskunk.org>.
1787         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
1788         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
1789         exist.
1791 2017-02-19  Bruno Haible  <bruno@clisp.org>
1793         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
1794         This helps when CC=clang.
1795         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
1796         of /usr/bin/gcc.
1798         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
1799         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
1801 2017-02-19  Bruno Haible  <bruno@clisp.org>
1803         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
1804         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
1805         --with-tests --single-configure is specified.
1807 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
1809         users.txt: Update links, use HTTPS where possible
1810         * users.txt: Updated to HTTPS where possible,
1811         fixed some links to new locations.
1813 2017-02-16  Bruno Haible  <bruno@clisp.org>
1815         xbinary-io: Fix inlining.
1816         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
1818 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1820         xbinary-io: rename from xsetmode
1821         This patch is taken from suggestions by Bruno Haible in:
1822         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
1823         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
1824         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
1825         not ENOTTY, when it is an inappropriate device.
1826         * lib/binary-io.h (SET_BINARY): Resurrect.
1827         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
1828         (xset_binary_mode_error): Rename from xsetmode_error.
1829         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
1830         (xset_binary_mode): Rename from xsetmode.
1831         All uses changed.
1832         * modules/xbinary-io: Rename from modules/xsetmode.
1833         Update file names.
1834         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
1835         * NEWS: Update to match revised behavior.
1837 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1839         tests: Adjust to recent SET_BINARY change
1840         * tests/test-binary-io.c (main):
1841         * tests/test-binary-io.sh: Remove test for SET_BINARY.
1842         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
1843         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
1844         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
1846         xsetmode: new module
1847         This is to fix a problem noted by Eric Blake.
1848         Code was using xfreopen to change files to binary mode, but this
1849         fails for stdout when in append mode.  Such code should use
1850         xsetmode instead.
1851         * NEWS: Document incompatible changes to binary-io module.
1852         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
1853         New function.
1854         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
1855         (set_binary_mode): New function, which also checks for tty.
1856         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
1858 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1860         headers: fix begin-end typos
1861         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
1862         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
1864         selinux-h: port to PGI 16.10
1865         * lib/se-selinux.in.h: Don't assume that include_next skips over
1866         duplicate -I DIR options.
1868         argp: port to PGI 16.10
1869         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
1871 2017-02-13  Darshit Shah  <darnir@gnu.org>
1873         unicase: Update function protoype to match definition.
1874         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
1875         uses 'size_t' as the datatype for the 'len' parameter in the functions
1876         it generates. Update the prototype specified here to match the newly
1877         generated function.
1879 2017-02-12  Bruno Haible  <bruno@clisp.org>
1881         times test: Avoid gcc warnings on Linux/x32.
1882         * tests/test-times.c (main): Really cast printf arguments from clock_t
1883         to 'long int'.
1885 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1887         glob: port better to emscripten
1888         Problem reported by Bruno Haible in:
1889         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
1890         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
1892 2017-02-11  Bruno Haible  <bruno@clisp.org>
1894         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
1895         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
1896         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
1897         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
1898         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
1899         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
1900         Distinguish hppa64 from hppa.
1902 2017-02-10  Bruno Haible  <bruno@clisp.org>
1904         search: Don't assume that tsearch() exists if 'VISIT' is defined.
1905         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
1906         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
1907         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
1909 2017-02-09  Bruno Haible  <bruno@clisp.org>
1911         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
1912         * doc/gnulib.texi (Libtool and Windows): Recommend
1913         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
1914         Reported by Reuben Thomas <rrt@sc3d.org>.
1916 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1918         stddef-tests: port to SIZE_MAX <= INT_MAX
1919         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
1920         Do not assume that INT_MAX < SIZE_MAX.
1922 2017-02-01  Bruno Haible  <bruno@clisp.org>
1924         lock tests: Fix link error.
1925         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
1926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1928 2017-01-31  Bruno Haible  <bruno@clisp.org>
1930         lock: Fix link error (regression from 2017-01-05).
1931         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
1932         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
1933         pthread_rwlockattr_destroy weak.
1934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1936 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1938         Port to PGI 16.10 x86-64
1939         This patch fixes one real bug in gl_anylinked_list2.h, along with
1940         some minor glitches that are not bugs.  It does not silence PGI’s
1941         thousands of bogus warnings when compiling test-intprops.c.
1942         Fortunately, the warnings do not cause a failure.
1943         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
1944         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
1945         My goodness, PGI goes back a long ways - this predates C89!
1946         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
1947         For example, ASYNCSAFE (const void *) should expand to
1948         ‘const void *volatile’, not to ‘volatile const void *’.
1949         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
1950         * lib/verify.h (verify) [!__GNUC__]:
1951         Use shorter albeit meaningless string to bypass silly compiler limits.
1952         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
1953         * tests/nan.h (NaNf, NaNd, NaNl):
1954         Use static functions to avoid misguided compiler diagnostics.
1955         Is there some reason we don’t use static functions on all platforms?
1957 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
1959         parse-datetime: handle timezones reentrantly
1960         This API change was prompted by a report by Pádraig Brady in:
1961         https://bug.debian.org/851934#10
1962         To help fix the bug, make parse_datetime2 more reentrant.
1963         * NEWS: Document this incompatible change.
1964         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
1965         Add two arguments, the timezone and the timezone name.
1966         All callers changed.  If TZ="..." is specified, use it for
1967         calculating defaults.
1968         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
1969         this code should be usable in a library.
1970         (mktime_ok, get_effective_timezone):
1971         Accept timezone arg too.  All callers changed.
1972         (get_tz): Remove.
1973         (get_effective_timezone): Check for failures.
1975 2017-01-20  Eric Blake  <eblake@redhat.com>
1977         localename: port to cygwin 2.6
1978         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
1979         Cygwin.
1980         * modules/localename (Depends-on): Add extensions, since
1981         NL_LOCALE_NAME() is not visible without it.
1983 2017-01-17  Pádraig Brady  <P@draigBrady.com>
1985         parse-datetime: fix dependence on AC_PROG_SED
1986         * modules/parse-datetime: Use `sed` directly like all other modules.
1987         Reported by J William Piggott
1989 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1991         intprops: update doc URLs
1992         * doc/intprops.texi (Integer Range Overflow): Update URLs.
1994 2017-01-16  Bruno Haible  <bruno@clisp.org>
1996         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
1997         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
1998         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
1999         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
2000         distinguish s390 and s390x.
2001         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
2002         * NEWS: Mention the change regarding 'armel'.
2004 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2006         localeinfo: case_folded_counterparts and WEOF
2007         * NEWS: Document this.
2008         * lib/localeinfo.c (case_folded_counterparts):
2009         First arg is now wint_t, not wchar_t.  This generalizes the
2010         function to also work on WEOF, where it returns 0.
2012         dfa: port to gcc -fsanitize=undefined
2013         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
2014         as this runs afoul of gcc -fsanitize=undefined.
2016 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2018         strftime: %z is -00 if unknown
2019         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
2020         the caller's responsibility to set 'negative_number'.  All uses changed.
2021         (__strftime_internal): Put '-' before a zero UTC offset if the time
2022         zone abbreviation starts with "-", which is the recently-introduced
2023         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
2024         * tests/test-strftime.c: Test for this.
2026 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2028         dfa: port to older GCC
2029         Problem reported by Assaf Gordon in:
2030         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
2031         * modules/c99: New module.  This merely attempts to use the latest
2032         C version, which should be enough to solve this particular problem.
2033         The idea is to document which Gnulib modules assume C99 or later.
2034         * modules/dfa (Depends-on): Add it.
2036 2017-01-10  Bruno Haible  <bruno@clisp.org>
2038         Update DEPENDENCIES.
2039         * DEPENDENCIES: List only https URLs. Update recommended version for
2040         autoconf, automake, gperf.
2042 2017-01-10  Jim Meyering  <meyering@fb.com>
2044         maint.mk: enforce spelling of "timestamp" (i.e., no space)
2045         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2046         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
2048 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2050         dfa: minor simplification with emptyset
2051         * lib/dfa.c (build_state): Simplify by using emptyset.
2053 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2055         dfa: shrink constraints from 4 bits to 3
2056         * lib/dfa.c (newline_constraint, letter_constraint)
2057         (other_constraint, prev_newline_dependent)
2058         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
2059         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
2060         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
2061         Constraints need only 3 bits, not 4.  Using smaller integers
2062         shrinks the code a bit and makes grep a tad faster on x86-64.
2064         dfa: omit unnecessary ptrdiff_t check
2065         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
2066         overflow, since xnmalloc does that now.
2068         dfa: omit unnecessary allocation
2069         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
2070         an all-zero follow set works just fine.
2072         dfa: omit unused local
2073         * lib/dfa.c (build_state): Fix up recent change.
2075         maint: remove stray .texi files
2076         Although these were superseded by other files like
2077         doc/posix-functions/ctime.texi, the old files were not removed.
2078         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
2080 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
2082         getprogname: fix port to IRIX
2083         * lib/getprogname.c (getprogname) [__sgi]:
2084         Don't dump core if malloc returns NULL.
2086         dfa: fix reallocation bug when matching newlines
2087         Problem reported for sed by S. Gilles (Bug#25390).
2088         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
2089         (dfastate): Reallocate before moving any newline transition ...
2090         (build_state): ... instead of reallocating here, where it is too late.
2092 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2094         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
2095         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
2097 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2099         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
2100         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
2102 2017-01-07  Bruno Haible  <bruno@clisp.org>
2104         stdioext: Port to Minix 3.2 and newer.
2105         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
2106         * lib/fseeko.c (fseeko): Likewise.
2107         Reported by Nelson Beebe via Paul Eggert.
2109 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2111         getprogname: port to IRIX
2112         * lib/getprogname.c (getprogname): Port to IRIX.
2113         Based on an idea by Bastien Roucariès at:
2114         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
2115         via code from Bruno Haible at:
2116         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
2118         localename-tests: port to NetBSD 7
2119         Problem reported by Nelson H. F. Beebe.
2120         * tests/test-localename.c:
2121         Test newlocale and uselocale only if both exist.
2123         glob, intprops, xalloc: work around Clang bug
2124         Work around LLVM bug 16404, which is still not fixed.
2125         https://llvm.org/bugs/show_bug.cgi?id=16404
2126         Problem reported by Nelson H. F. Beebe.
2127         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
2128         Remove.
2129         * lib/glob.c (size_add_wrapv):
2130         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
2131         * lib/xalloc-oversized.h (xalloc_oversized):
2132         Do not use overflow builtins if Clang.
2134         dfa: fix 'return' typo
2135         Problem reported by Nelson H. F. Beebe.
2136         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
2138 2017-01-05  Pádraig Brady  <P@draigBrady.com>
2140         parse-datetime: fix generated paths for coverage files
2141         * modules/parse-datetime: Adjust the paths for parse-datetime.y
2142         within parse-datetime.c, so that gcc generates appropriate .gcno
2143         files, allowing lcov to proceed without error.  Previously it
2144         would error trying to find "lib/lib/parse-datetime.y".
2146 2017-01-05  Pádraig Brady  <P@draigBrady.com>
2148         maint.mk: support parallel execution of coverage
2149         * top/maint.mk (coverage): Run dependencies serially,
2150         thus supporting parallel processing of each one,
2151         particularly build-coverage, which builds and runs tests.
2153 2017-01-05  Bruno Haible  <bruno@clisp.org>
2155         lock tests: Prefer semaphore over mutex.
2156         * tests/test-lock.c (USE_SEMAPHORE): New constant.
2157         (struct atomic_int, init_atomic_int, get_atomic_int_value,
2158         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
2159         Suggested by Torvald Riegel <triegel@redhat.com>.
2161 2017-01-05  Bruno Haible  <bruno@clisp.org>
2163         lock: Provide guarantee to avoid writer starvation for rwlocks.
2164         The rationale is: 1) Read-preferring read-write locks are prone to
2165         writer starvation if the number of reader threads multiplied by the
2166         percentage of time they have the lock held is too high. 2) Write-
2167         preferring read-write locks are the only reliable way to avoid this.
2168         3) There have been reports of 'test-lock' hanging on glibc systems
2169         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
2170         and glibc indeed implements read-preferring rwlocks by default, see
2171         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
2172         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
2173         * m4/pthread_rwlock_rdlock.m4: New file.
2174         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
2175         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
2176         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
2177         of rwlock initialization on glibc systems without
2178         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
2179         of rwlocks altogether on non-glibc systems without
2180         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
2181         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
2182         * lib/glthread/lock.c [USE_POSIX_THREADS]
2183         (glthread_rwlock_init_for_glibc): New function.
2184         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
2185         comment.
2186         [USE_PTH_THREADS]: New implementation of rwlocks.
2187         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
2188         readers.
2189         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
2190         (Depends-on): Add 'extensions'.
2191         * tests/test-rwlock1.c: New file.
2192         * lock-tests (Files): Add it.
2193         (Depends-on): Add usleep.
2194         (Makefile.am): Add test-rwlock1 to the tests.
2196 2017-01-05  Bruno Haible  <bruno@clisp.org>
2198         thread: Fix pth port.
2199         * lib/glthread/thread.h (pth_init): Declare weak.
2200         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
2201         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
2202         function.
2204 2017-01-04  Assaf Gordon <assafgordon@gmail.com>
2206         parse-datetime: fix debug message on lone year number
2207         Input dates such as
2208           date -d "Apr 11 22:59:00 2011"
2209         are parsed as date (Apr 11, with default year 2016), then time, then a
2210         number (2011). Based on the combination of previously seen tokens,
2211         'digits_to_date_time' determines 2011 to be a year value.
2212         This fixes the debug messages to correctly show the updated year.
2213         Before:
2214             $ date --debug -d 'Apr 11 22:59:00 2011'
2215             date: parsed date part: (Y-M-D) 2016-04-11
2216             date: parsed time part: 22:59:00
2217             date: parsed number part: today/this/now
2218         After:
2219             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
2220             date: parsed date part: (Y-M-D) 2016-04-11
2221             date: parsed time part: 22:59:00
2222             date: parsed number part: year: 2011
2223         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
2224         'debug_year_seen' member fields.
2225         (digits_to_date_time): Update 'year_seen' as needed.
2226         (debug_print_current_time): Inform about year updates.
2227         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
2229         parse-datetime: fix local timezone debug messages
2230         "Local timezones" are strings that affect only DST relative to the
2231         default timezone. The debug messages in parse-datetime.y printed
2232         wrong information when encountering local timezones.
2233         Examples:
2234         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
2235              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
2236              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
2237         When the default timezone relates to the zone strings, EET/EEST are
2238         parsed as local timezones (tLOCAL_ZONE), and only change the DST
2239         value (0/1, respectively):
2240              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
2241              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
2242         * lib/parse-datetime.y (debug_print_current_time): If local timezone
2243         was seen, inform about DST change, don't print actual timezone.
2244         (debug_strfdatetime): If local timezone was seen, use default timezone
2245         (and adjust as needed) instead of using incorrect timezone.
2246         (parse_datetime2): Use correct time-zone source string, and adjust
2247         default timezone as needed.
2249         parse-datetime: add debug warning about DST changes
2250         Incorrect date arithmetic due to daylight saving time (DST) are a
2251         common (false) bug report in coreutils.
2252         Detect two such cases and print a warning:
2253         1. year/month/day adjustments (performed on 'struct tm'),
2254            where 'mktime' returns a different isdst value.
2255         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
2256            where the result of 'localtime(3)' on the value will return a
2257            different isdst value.
2258         Note: DST changes could be harmless or unnoticeable.
2259         Examples (with 'TZ=America/New_York'):
2260         Unnoticeable: result is 2016-Dec-14
2261            $ date -d '2016-06-15 EDT + 6 months' +%b
2262            Dec
2263         Unnoticeable: result is 2016-Dec-15 11:00:00
2264            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
2265            2016-12-15
2266         This is unexpected:
2267            $ date -d '2016-06-01 EDT + 6 months' +%F
2268            2016-11-30
2269         The new debug warnings will show:
2270            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
2271            ...
2272            date: warning: daylight saving time changed after date adjustment
2273            ...
2274         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
2275         print an appropriate warning message.
2277         parse-datetime: add debug warning about date arithmetic
2278         Date arithmetic are done directly on the fields of 'struct tm',
2279         which can result in invalid dates. Normalization with 'mktime(3)'
2280         will then produce a different date - which might cause unexpected
2281         results.
2282         Examples:
2283           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
2284           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
2285         Note that date normalization is not inherently wrong and not rejected,
2286         as it has legitimate uses:
2287           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
2288         If the user asked to adjust months but 'mday' changed,
2289         or user asked to adjust years but 'month' changed - warn about it.
2290             $ ./src/date --debug -d '2016-10-31 - 1 month'
2291             ...
2292             date: warning: when adding relative months/years, \
2293                            it is recommended to specify the 15th of the month
2294             ...
2295             date: warning: month/year adjustment resulted in shifted dates:
2296             date:      adjusted Y M D: 2016 09 31
2297             date:    normalized Y M D: 2010 10 01
2298             ...
2299         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
2300         a warning message. Improve recommendation of when to use 15 of the
2301         month or noon for date arithmetic.
2303         parse-datetime: fix debug message of relative part after timezone
2304         Relative part (e.g '+8 days') after a timezone string was not
2305         reported (was only reported after a timezone number). Due to the
2306         parser's structure, timezone strings with numbers were handled
2307         separately.
2308         before:
2309              # Timezone number + relative part: OK
2310              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
2311              ...
2312              date: parsed relative part: -8 day(s)
2313              # Timezone string + relative part: missing
2314              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
2315              [ missing message ]
2316         After: messages are printed in both cases.
2317         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
2319         parse-datetime: fix incorrect debug message on lone number
2320         A lone number is an absolute value, not a relative time part.
2321         before:
2322            $ date --debug -d '20130101'
2323            date: parsed number part: today/this/now
2324         After:
2325            $ ./src/date --debug -d '20130101'
2326            date: parsed number part: (Y-M-D) 2013-01-01
2327         * lib/parse-datetime.y ('item'/'number' tokens): Call
2328         'debug_print_current_time' instead of 'debug_print_relative_time'.
2330 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2332         doc: modernize for C11 etc.
2333         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
2334         for C11, MinGW, etc.  This responds to Paul Smith's question in:
2335         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
2337         dfa: prefer functions to FETCH_WC macro
2338         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
2339         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
2340         wint_t result into DFA->lex.wctok instead of to a separate arg.
2341         All callers changed.  Move more local decls closer to where
2342         they're used.
2344         dfa: narrow more local var scopes
2345         * lib/dfa.c: Move more local decls to be more local.
2347         dfa: remove duplicate assignment
2348         Problem reported by Bruno Haible in:
2349         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
2350         * lib/dfa.c (parse_bracket_exp): Simplify.
2352 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2354         dfa: simplify constraint-dependency checking
2355         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
2356         (prev_other_constraint): Remove.
2357         (prev_newline_dependent, prev_letter_dependent):
2358         Simplify, to avoid an unnecessary bitwise AND operation.
2360         dfa: prefer functions and constants to macros
2361         * lib/dfa.c: Prefer constants to macros where either will do.
2362         (streq, isasciidigit, newline_constraint)
2363         (letter_constraint, other_constraint, succeeds_in_context)
2364         (prev_newline_constraint, prev_letter_constraint)
2365         (prev_other_constraint, prev_newline_dependent)
2366         (prev_letter_dependent, accepting, accepts_in_context):
2367         Now static functions instead of function-like macros.
2368         Use lower-case names accordingly.  All uses changed.
2370         dfa: narrow more local var scopes
2371         * lib/dfa.c: Move some more local decls down to nearer where
2372         they're needed.
2374 2016-12-31  Jim Meyering  <meyering@fb.com>
2376         dfa: narrow the scope of many local variables
2377         * lib/dfa.c: Now that we are no longer constrained to c89, move
2378         declarations of many variables (often indices) "down" into the
2379         scope(s) where used or to the point of definition.  This is a
2380         no-semantic-change diff.
2382 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2384         version-etc: new year
2385         * build-aux/gendocs.sh (version):
2386         * doc/gendocs_template:
2387         * doc/gendocs_template_min:
2388         * doc/gnulib.texi:
2389         * lib/version-etc.c (COPYRIGHT_YEAR):
2390         Update copyright dates by hand in templates and the like.
2391         * all files: Run 'make update-copyright'.
2393 2016-12-31  Eric Blake  <eblake@redhat.com>
2395         do-release-commit-and-tag: avoid shell syntax error
2396         * build-aux/do-release-commit-and-tag (curr_br): $branch can
2397         contain spaces when rebasing.
2399         maint.mk: hoist gnulib_dir definition earlier
2400         * top/maint.mk (gnulib_dir): Move near top of file.
2402 2016-12-31  Jim Meyering  <meyering@fb.com>
2404         maint.mk: do not always evaluate intprops-related shell
2405         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
2406         using gnulib_dir undefined (gnulib_dir is defined later in the
2407         file, which will be fixed separately), and besides, there is no
2408         need to incur the cost of this shell invocation for every single
2409         use of this .mk file.  Reported by Eric Blake in
2410         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
2412 2016-12-30  Jim Meyering  <meyering@fb.com>
2414         maint.mk: improve sc_prohibit_intprops_without_use
2415         * top/maint.mk (_intprops_names): Don't hard-code the list of
2416         symbol names.  Instead, derive it on the fly.
2418 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2420         dfa: shorten sbit, success
2421         * lib/dfa.c (struct regex_syntax.sbit):
2422         (struct dfa.success): Use char, not int, for array elements, since
2423         they are all in the range 0..7.
2425         dfa: simplify multibyte_prop etc.
2426         This follows up on a change made when dfa.c was in grep, namely grep
2427         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
2428         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
2429         That earlier simplification allows for some more simplification
2430         and trimming down here.
2431         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
2432         (struct lexer_state): New mamber brack.
2433         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
2434         since they must be in the range 0..3 now.
2435         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
2436         the brack member now supersedes them.
2437         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
2438         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
2439         (dfaparse): Remove unnecessary initializations of already-0 storage.
2440         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
2441         (dfassbuild): No need to clear sup->mbcsets.
2443         dfa: minor performance tweak
2444         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
2446         dfa: wrap charclass inside a struct
2447         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
2448         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
2449         about 5% faster, where list.txt is generated by 'aspell dump
2450         master | head -n 100000 >list.txt'.  See Bug#22239.
2451         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
2452         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
2453         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
2454         Adjust to this, e.g., by using charclass * rather than charclass.
2455         All callers changed as needed.
2456         (copyset): Remove.  All uses changed to simple assignment.
2457         (parse_bracket_exp): Use zeroset instead of memset.
2459 2016-12-30  Jim Meyering  <meyering@fb.com>
2461         maint.mk: update list of intprops.h symbol names
2462         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
2463         This avoids a false failure of the sc_prohibit_intprops_without_use
2464         rule in grep.
2466 2016-12-29  Eric Blake  <eblake@redhat.com>
2468         getopt: fix parallel test failure
2469         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
2470         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
2471         * tests/test-getopt-main.h (main): Use different file names
2472         in case test-getopt-gnu and test-getopt-posix run in parallel.
2474 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2476         xalloc: x2nrealloc check for ptrdiff_t overflow
2477         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
2478         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
2480 2016-12-24  Bruno Haible  <bruno@clisp.org>
2482         lock test: Fix performance problem on multi-core machines.
2483         * tests/test-lock.c (USE_VOLATILE): New macro.
2484         (struct atomic_int): New type.
2485         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
2486         functions.
2487         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
2488         as 'struct atomic_int'.
2489         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
2490         reclock_checker_thread, test_recursive_lock): Use the new functions.
2491         Reported by Eric Blake in
2492         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
2493         and by Pádraig Brady in
2494         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
2496 2016-12-19  Bruno Haible  <bruno@clisp.org>
2498         vma-iter: Fix endless loop on 64-bit Windows.
2499         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
2500         'unsigned long'.
2502 2016-12-19  Bruno Haible  <bruno@clisp.org>
2504         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
2505         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
2506         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
2507         Invoke gt_TYPE_WINT_T instead.
2508         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
2509         * modules/stdint (Files): Add m4/wint_t.m4.
2510         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
2511         * modules/wctype-h (Makefile.am): Likewise.
2512         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
2513         not only on MSVC.
2514         * lib/wctype.in.h (wint_t): Likewise.
2516 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2518         getopt-posix-tests: fix Makefile typo
2519         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
2520         Fix typo: the last ‘_’ was missing in the name.
2521         I suspect that the typo explains this build failure:
2522         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
2523         although I can’t reproduce the problem on Solaris 10 sparc.
2525 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2527         dfa: improve worst-case 'replace' performance
2528         See my note in Bug#22357#71.
2529         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
2530         (merge_constrained): New function, which is like
2531         the old 'merge' function, except with a new argument C2.
2532         Simplify the body by avoiding the need for different sections
2533         of code depending on whether one input is exhausted.
2534         (merge): Use the new function.
2535         (delete): Return the constraint of the deleted position,
2536         not the entire position.  Caller changed.
2537         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
2539 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2541         dfa: performance improvement for removal of epsilon closure
2542         See Bug#22357#32.
2543         * lib/dfa.c (delete): Use binary search to find deleted index.
2544         (replace): New function.  It replaces a position with the followed set.
2545         (epsclosure): Replace it with a new algorithm.  Update caller.
2547 2016-12-18  Bruno Haible  <bruno@clisp.org>
2549         Split tests for getopt-posix and getopt-gnu.
2550         * tests/test-getopt-posix.c: New file.
2551         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
2552         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
2553         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
2554         GNULIB_TEST_GETOPT_GNU.
2555         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
2556         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
2557         (Makefile.am): Test test-getopt-posix instead of test-getopt.
2558         * modules/getopt-gnu-tests: New file.
2559         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
2561 2016-12-18  Bruno Haible  <bruno@clisp.org>
2563         posix-modules: Add options for specific platforms.
2564         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
2565         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
2566         Invoke func_tmpdir. Filter out the excludes.
2568 2016-12-18  Bruno Haible  <bruno@clisp.org>
2570         getopt: Fix link error for users of getopt() in <unistd.h>.
2571         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
2572         __need_getopt is defined. Undefine all macros before defining them.
2573         * modules/getopt (Include): Clarify that including <unistd.h> is also
2574         OK.
2575         * tests/test-getopt.c: Add comment.
2577 2016-12-17  Bruno Haible  <bruno@clisp.org>
2579         getaddrinfo tests: Avoid compilation error on MSVC.
2580         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
2581         getaddrinfo on native Windows.
2583 2016-12-17  Bruno Haible  <bruno@clisp.org>
2585         getlogin, getlogin_r: Fix link errors on MSVC.
2586         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
2587         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
2588         (Link): New section.
2589         * modules/getlogin_r (Files): Add m4/getlogin.m4.
2590         (configure.ac): Require gl_LIB_GETLOGIN.
2591         (Link): New section.
2592         * NEWS: Mention the new link requirements.
2593         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
2594         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
2596 2016-12-17  Bruno Haible  <bruno@clisp.org>
2598         Un-deprecate the 'progname' module.
2599         * NEWS: Describe the appropriate use-cases of 'progname' versus
2600         'getprogname'. Based on discussion summary at
2601         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
2603 2016-12-17  Bruno Haible  <bruno@clisp.org>
2605         Reorganize NEWS a bit.
2606         * NEWS: Move some not so important changes away from section
2607         "Important Notes".
2609 2016-12-17  Bruno Haible  <bruno@clisp.org>
2611         tanhf: Avoid redefinition error on MSVC.
2612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
2613         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
2614         may be defined as an inline function.
2615         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
2616         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
2618 2016-12-17  Bruno Haible  <bruno@clisp.org>
2620         tanf: Avoid redefinition error on MSVC.
2621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
2622         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
2623         may be defined as an inline function.
2624         * modules/math (Makefile.am): Substitute REPLACE_TANF.
2625         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
2627 2016-12-17  Bruno Haible  <bruno@clisp.org>
2629         sqrtf: Avoid redefinition error on MSVC.
2630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
2631         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
2632         may be defined as an inline function.
2633         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
2634         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
2636 2016-12-17  Bruno Haible  <bruno@clisp.org>
2638         sinhf: Avoid redefinition error on MSVC.
2639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
2640         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
2641         may be defined as an inline function.
2642         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
2643         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
2645 2016-12-17  Bruno Haible  <bruno@clisp.org>
2647         sinf: Avoid redefinition error on MSVC.
2648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
2649         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
2650         may be defined as an inline function.
2651         * modules/math (Makefile.am): Substitute REPLACE_SINF.
2652         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
2654 2016-12-17  Bruno Haible  <bruno@clisp.org>
2656         logf: Avoid redefinition error on MSVC.
2657         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
2658         may be defined as an inline function.
2660 2016-12-17  Bruno Haible  <bruno@clisp.org>
2662         log10l: Avoid redefinition error on MSVC.
2663         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
2664         may be defined as an inline function.
2666 2016-12-17  Bruno Haible  <bruno@clisp.org>
2668         log10f: Avoid redefinition error on MSVC.
2669         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
2670         may be defined as an inline function.
2672 2016-12-17  Bruno Haible  <bruno@clisp.org>
2674         hypotl: Avoid redefinition error on MSVC.
2675         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
2676         may be defined as an inline function.
2678 2016-12-17  Bruno Haible  <bruno@clisp.org>
2680         hypotf: Avoid redefinition error on MSVC.
2681         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
2682         may be defined as an inline function.
2684 2016-12-17  Bruno Haible  <bruno@clisp.org>
2686         fmodl: Avoid redefinition error on MSVC.
2687         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
2688         may be defined as an inline function.
2690 2016-12-17  Bruno Haible  <bruno@clisp.org>
2692         fmodf: Avoid redefinition error on MSVC.
2693         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
2694         may be defined as an inline function.
2696 2016-12-17  Bruno Haible  <bruno@clisp.org>
2698         expf: Avoid redefinition error on MSVC.
2699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
2700         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
2701         may be defined as an inline function.
2702         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
2703         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
2705 2016-12-17  Bruno Haible  <bruno@clisp.org>
2707         coshf: Avoid redefinition error on MSVC.
2708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
2709         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
2710         may be defined as an inline function.
2711         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
2712         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
2714 2016-12-17  Bruno Haible  <bruno@clisp.org>
2716         cosf: Avoid redefinition error on MSVC.
2717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
2718         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
2719         may be defined as an inline function.
2720         * modules/math (Makefile.am): Substitute REPLACE_COSF.
2721         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
2723 2016-12-17  Bruno Haible  <bruno@clisp.org>
2725         atan2f: Avoid redefinition error on MSVC.
2726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
2727         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
2728         may be defined as an inline function.
2729         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
2730         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
2732 2016-12-17  Bruno Haible  <bruno@clisp.org>
2734         atanf: Avoid redefinition error on MSVC.
2735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
2736         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
2737         may be defined as an inline function.
2738         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
2739         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
2741 2016-12-17  Bruno Haible  <bruno@clisp.org>
2743         asinf: Avoid redefinition error on MSVC.
2744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
2745         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
2746         may be defined as an inline function.
2747         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
2748         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
2750 2016-12-17  Bruno Haible  <bruno@clisp.org>
2752         acosf: Avoid redefinition error on MSVC.
2753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
2754         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
2755         may be defined as an inline function.
2756         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
2757         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
2759 2016-12-17  Bruno Haible  <bruno@clisp.org>
2761         Avoid redefinition errors on MSVC.
2762         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
2763         the function may be defined as an inline function.
2764         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
2765         the function may be defined as an inline function.
2767 2016-12-17  Bruno Haible  <bruno@clisp.org>
2769         Avoid redefinition errors on MSVC.
2770         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
2771         * lib/unistd.in.h: Include <stdio.h> when necessary.
2773 2016-12-17  Bruno Haible  <bruno@clisp.org>
2775         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
2776         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
2777         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
2778         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
2779         WINT_MAX.
2781 2016-12-17  Bruno Haible  <bruno@clisp.org>
2783         Avoid autoconf warning.
2784         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
2785         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
2787 2016-12-17  Bruno Haible  <bruno@clisp.org>
2789         fpending: Revert workaround against Emacs bug.
2790         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
2791         The Emacs bug is fixed by Eli Zaretskii in
2792         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
2794 2016-12-17  Bruno Haible  <bruno@clisp.org>
2796         getlogin_r tests: Port to mingw.
2797         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
2798         regression introduced on 2014-05-19.
2800 2016-12-17  Bruno Haible  <bruno@clisp.org>
2802         getlogin: Port to newer mingw.
2803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
2804         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
2805         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
2806         HAVE_GETLOGIN.
2807         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
2808         HAVE_GETLOGIN.
2809         * doc/posix-functions/getlogin.texi: Mention the issue.
2810         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
2811         regression introduced on 2014-05-14.
2813 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2815         builtin-expect: improve port to IBM XL C
2816         Problem reported for z/OS by Daniel Richard G. in:
2817         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
2818         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
2819         Test for <builtins.h> directly.
2821         builtin-expect: port to IBM XL C
2822         Problem reported for z/OS by Daniel Richard G. in:
2823         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
2824         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
2825         Also allow __builtin_expect defined via a standard include file.
2827         regex: fix dependency
2828         Problem reported by Bruno Haible in:
2829         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
2830         * modules/regex: Depend on builtin-expect.
2832         builtin-expect: new module
2833         Fix fnmatch to use it.
2834         Problem reported for z/OS by Daniel Richard G.
2835         * lib/fnmatch.c (__builtin_expect):
2836         * lib/glob.c (__builtin_expect):
2837         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
2838         * lib/memmem.c (__builtin_expect) [!_LIBC]:
2839         * lib/scandir.c (__builtin_expect):
2840         * lib/strstr.c (__builtin_expect) [!_LIBC]:
2841         Remove macro; config.h now does this.
2842         * lib/gl_anytreehash_list1.h (add_to_bucket):
2843         * lib/regex_internal.h (BE):
2844         Assume __builtin_expect.
2845         * m4/builtin-expect.m4, modules/builtin-expect: New files.
2846         * modules/avltreehash-list, modules/fnmatch, modules/glob:
2847         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
2848         * modules/scandir, modules/strstr-simple:
2849         Depend on builtin-expect.
2851 2016-12-15  Bruno Haible  <bruno@clisp.org>
2853         init.sh: Add possibility to not delete temporary files.
2854         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
2855         to yes, don't erase the temporary directory.
2857 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2859         regex: fix integer-overflow bug in never-used code
2860         Problem reported by Clément Pit–Claudel in:
2861         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
2862         * lib/regex_internal.h: Include intprops.h.
2863         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
2864         behavior on integer overflow.
2865         * modules/regex (Depends-on): Add intprops.
2867         fpending: fix port to MinGW on Emacs
2868         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
2869         Problem reported by Eli Zaretskii in:
2870         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
2871         Is Plan 9 still a valid porting target, anyway?
2873 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2875         safe-alloc: use xalloc-oversized
2876         * lib/safe-alloc.c: Include xalloc-oversized.h.
2877         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
2878         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
2880         xalloc: do not exceed PTRDIFF_MAX
2881         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
2882         xalloc_oversized check, since objects larger than PTRDIFF_MAX
2883         bytes have pointer-subtraction problems.
2885         malloca: do not exceed PTRDIFF_MAX
2886         * lib/malloca.h: Include xalloc-oversized.
2887         (nmalloca): Use xalloc_oversized instead of rolling our own.
2888         * modules/malloca (Depends-on):
2889         * modules/relocatable-prog-wrapper (Depends-on):
2890         Add xalloc-oversized.
2892         quotearg: pacify GCC better
2893         * modules/quotearg (Depends-on): Add minmax, stdint.
2894         * lib/quotearg.c: Include minmax.h, stdint.h.
2895         (nslots): Now int, as there seems little point to going to extra
2896         work merely to support the INT_MAX slot, which nobody ever uses.
2897         (quotearg_n_options): Redo size-overflow checks to pacify GCC
2898         and to catch (mostly-theoretical) ptrdiff_t problems too.
2899         This can be done via one comparison.
2901 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2903         xalloc-oversized: check for PTRDIFF_MAX too
2904         This avoids undefined behavior when subtracting pointers to
2905         objects containing more than PTRDIFF_MAX bytes.
2906         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
2907         Also return 1 if the result would exceed PTRDIFF_MAX>
2908         * modules/xalloc-oversized (Depends-on):
2909         Add stdint.
2911         dfa: fix glitches in previous commit
2912         Sorry, I don't know how I managed to commit the wrong version.
2913         * lib/dfa.c (MIN): Move up.
2914         (xpalloc): Now static.
2916         dfa: fix some unlikely integer overflows
2917         I found these while reviewing the recent Coverity-related fix.
2918         This patch changes part of dfa.c to prefer ptrdiff_t instead of
2919         size_t for object counts.  Using ptrdiff_t is the style typically
2920         used in Emacs; although it wastes a sign bit as sizes can never be
2921         negative, it makes -fsanitize=undefined more likely to catch
2922         integer overflows in index calculation, and nowadays the upside is
2923         typically more important than the downside.  Although perhaps the
2924         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
2925         of dfa.c already does, since it uses state_num which is signed),
2926         that is a bigger change and is not needed to fix the bugs I found.
2927         * lib/dfa.c: Include stdint.h and intprops.h.
2928         (TOKEN_MAX): New macro.
2929         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
2930         (charclass_index, parse_bracket_exp, addtok, insert, merge)
2931         (realloc_trans_if_necessary, free_mbdata):
2932         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
2933         This is safe because xpalloc checks that the sizes do not exceed
2934         either SIZE_MAX or PTRDIFF_MAX.
2935         (xpalloc): New function, mostly taken from Emacs.
2936         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
2937         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
2938         (charclass_index): Check for integer overflow in computing
2939         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
2940         added to it later.
2941         (alloc_position_set): Check for integer overflow.  On typical
2942         platforms this check has zero overhead, since the constant
2943         expression is false.
2944         (realloc_trans_if_necessary):
2945         Remove assertion, which I hope Coverity no longer needs.
2947         * modules/dfa (Depends-on): Add intprops, stdint.
2949 2016-12-12  Jim Meyering  <meyering@fb.com>
2951         dfa: add an assertion to avoid coverity false positive
2952         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
2953         warned that "newalloc1 - 2" could overflow.
2955 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
2957         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
2958         * dfa.h (DFA_CASE_FOLD): Remove.
2959         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
2961 2016-12-13  John W. Eaton  <gnu@jweaton.org>
2963         link: fix test to declare use of rename()
2964         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
2965         -Werror=implicit-function-declaration
2967 2016-12-12  Bruno Haible  <bruno@clisp.org>
2969         fpending: Port to native Windows with MSVC.
2970         * lib/fpending.c: Include stdio-impl.h.
2971         (__fpending): Include all known implementations. Err out if it's not
2972         ported.
2973         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
2974         * modules/fpending (Files): Add lib/stdio-impl.h.
2975         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
2977 2016-12-12  Bruno Haible  <bruno@clisp.org>
2979         stdioext: Port to native Windows with MSVC.
2980         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
2981         (struct _gl_real_FILE): New type.
2982         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
2983         Windows.
2984         * lib/fbufmode.c (fbufmode): Add code for native Windows.
2985         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
2986         other SystemV derived implementations.
2987         * lib/fpurge.c (fpurge): Likewise.
2988         * lib/freadable.c (freadable): Likewise.
2989         * lib/freadahead.c (freadahead): Likewise.
2990         * lib/freading.c (freading): Likewise.
2991         * lib/freadptr.c (freadptr): Likewise.
2992         * lib/freadseek.c (freadptrinc): Likewise.
2993         * lib/fseeko.c (fseeko): Likewise.
2994         * lib/fseterr.c (fseterr): Likewise.
2995         * lib/fwritable.c (fwritable): Likewise.
2996         * lib/fwriting.c (fwriting): Likewise.
2997         Reported by Gisle Vanem <gvanem@yahoo.no>.
2999 2016-12-11  Jim Meyering  <meyering@fb.com>
3001         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
3002         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
3003         to work with most shells, but not with the one provided by many
3004         Solaris 10 systems, so running configure with such a /bin/sh evokes
3005         e.g., "./configure: syntax error at line 33602: `(' unexpected".
3006         Reported by Assaf Gordon in
3007         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
3009 2016-12-10  Bruno Haible  <bruno@clisp.org>
3011         threadlib: Optimize out runtime test on Solaris >= 10.
3012         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
3013         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
3014         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
3016 2016-12-10  Bruno Haible  <bruno@clisp.org>
3018         stdint: Update doc about Solaris 9.
3019         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
3021 2016-12-09  Bruno Haible  <bruno@clisp.org>
3023         c-ctype tests: Fix link error on Solaris 9.
3024         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
3025         Reported at <https://savannah.gnu.org/bugs/?46827>.
3027 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3029         dfa: fix performance bug that recomputes trans
3030         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
3031         25 on-demand changes.  The bug caused build_state to reset all
3032         d->trans elements to -2 even when d->trans was already non-null.
3033         Use C99 style decls after statements in this function.
3035         same-inode: port to MinGW
3036         Here st_ino is always 0, so change the definition of SAME_INODE so
3037         that 1 means the two files are the same, 0 with st_ino != 0 means
3038         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
3039         reported by Bruno Haible (Bug#25146).
3040         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
3041         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
3043 2016-12-04  Bruno Haible  <bruno@clisp.org>
3045         javacomp: Support Java 7 and 8.
3046         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
3047         target-version 1.7, 1.8.
3049 2016-12-02  Daiki Ueno  <ueno@gnu.org>
3051         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
3052         GPLv2" rewriting.
3054 2016-12-02  Nikos Mavrogiannopoulos <nmav@gnutls.org>
3056         * gnulib-tool (func_import): Adhere to the license guideline when
3057         rewriting the license text to "LGPLv3+ or GPLv2":
3058         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
3060 2016-12-02  Bruno Haible  <bruno@clisp.org>
3062         localcharset: Avoid theoretical buffer overrun.
3063         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
3064         return value from setlocale if it would lead to a buffer overrun.
3066 2016-12-01  Bruno Haible  <bruno@clisp.org>
3068         Relicense some modules under LGPLv2+.
3069         Kevin Cernekee's approval is in
3070         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
3071         * modules/fseterr (License): Change to LGPLv2+.
3072         * modules/mbchar (License): Likewise.
3073         * modules/mbiter (License): Likewise.
3074         * modules/mbsnlen (License): Likewise.
3075         * modules/wcwidth (License): Likewise.
3077 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3079         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
3080         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
3081         OS/2 kLIBC.
3083 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3085         alphasort, scandir: Port to OS/2 kLIBC
3086         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
3087         declaration.
3088         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
3090 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3092         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
3093         * lib/relocatable.c (relocate): Do not touch pathname if it is started
3094         with '/@unixroot'.
3096 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3098         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
3099         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
3100         OS/2 kLIBC unless TCPV40HDRS is defined.
3102 2016-11-29  Jim Meyering  <meyering@fb.com>
3104         dfa: avoid new infinite loop
3105         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
3106         * lib/dfa.c (dfastate): When constructing a new state table, we could
3107         initially declare that we had found a match, and later find that
3108         constraints eliminate that possibility, yet continue to use the
3109         now stale "matched" indicator.  That would lead to an infinite loop.
3110         The solution is to update "matched" when necessary.
3111         Introduced by commit v0.1-983-g403adf1.
3113 2016-11-27  Norihiro Tanaka <noritnk@kcn.ne.jp>
3115         dfa: avoid match middle in multibyte character
3116         * lib/dfa.c (transit_state): If fails in matching single byte characters
3117         on a state including period expression in non-UTF8 multibyte locales,
3118         skip trailing bytes.
3119         (dfa_supported): Revert previous change.
3121 2016-11-27  Jim Meyering  <meyering@fb.com>
3123         dfa: avoid false match in non-UTF8 multibyte locales
3124         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
3125         as "not supported" so that callers will resort to using regex-based
3126         matcher.  This will surely hurt performance, but correctness trumps
3127         performance here, and the affected locales are less and less relevant,
3128         these days.  See grep's bug report https://bugs.gnu.org/24975.
3130 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
3132         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
3133         * lib/ptsname_r.c: Include the appropriate headers.
3134         [__sun]: Delete sys/sysmacros.h include.
3135         [_AIX || __osf__]: Likewise.
3136         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
3138 2016-11-27  Pádraig Brady  <P@draigBrady.com>
3140         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
3141         * lib/md4.c (md4_process_bytes): The existing define is made internal
3142         in recent versions of glibc, so also use this new public define.
3143         * lib/md5.c (md5_process_bytes): Likewise.
3144         * lib/sha1.c (sha1_process_bytes): Likewise.
3145         * lib/sha256.c (sha256_process_bytes): Likewise.
3146         * lib/sha512.c (sha512_process_bytes): Likewise.
3148 2016-11-27  Pádraig Brady  <P@draigBrady.com>
3150         maint: use a more standard return from mbrtowc test
3151         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
3152         from the test program as this often indicates an
3153         unhandled case in the test program.
3154         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
3155         (gl_MBRTOWC_SANITYCHECK): Likewise.
3156         (gl_MBRTOWC_NULL_ARG2): Likewise.
3157         (gl_MBRTOWC_NUL_RETVAL): Likewise.
3159 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
3161         freopen: work around glibc bug with closed fd
3162         Work around glibc bug#15589, where freopen mishandles the case
3163         where stdin etc. are already closed.
3164         * doc/posix-functions/freopen.texi (freopen): Document the bug.
3165         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
3166         instead of __need_FILE, as the latter does not work with glibc.
3167         Include <fcntl.h>, for open flags.
3168         (rpl_freopen): Work around glibc bug.
3169         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
3170         * modules/freopen (Depends-on): Add fcntl-h.
3171         * tests/test-freopen.c (main): Test for bug.
3173 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3175         fnmatch: fix typo introduced on 2016-08-17
3176         This fixes the port to non-GCC compilers that lack __builtin_expect.
3177         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
3179         dfa: simplify with new function fillset
3180         * lib/dfa.c (fillset): New function.
3181         Use it for clarity when applicable.
3183         dfa: fix glitches with on-demand states
3184         Also, adjust commentary to better match new code.
3185         Some of these glitches predate the recent change.
3186         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
3187         only non-initial states.
3188         (dfastate): Rename locals to better match new roles.
3189         Move them into nested scopes if this is easy.
3190         Omit unnecessary calls to zeroset.
3191         Simplify test for whether to throw in the positions of state 0.
3192         Omit C99-ism (decl after statement) since Gawk still wants C89.
3193         (build_state): Omit unnecessary test and assignment.
3194         Fix some confusion that counted transition tables inaccurately
3195         and could cause a memory leak.
3196         (dfaexec_main): Redo to make it clearer to the compiler that
3197         -1 and -2 are the only negative state numbers here.
3199 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3201         dfa: addition of new state on demand
3202         * src/dfa.c (dfastate): Add argument UC, the current input character.
3203         Fill only a group including the character in transition table.
3204         (realloc_trans_if_necessary): Add the dummy state which means that a
3205         transition table is assigned but the next state is not assigned.
3206         (build_state): Return the next state.  All callers updated.
3207         (transit_state_singlebyte): If we get the dummy state,
3208         fill the transition table.
3209         (dfaexec_main): Handle the dummy state.
3210         (free_mbdata, dfafree): Consider the dummy state.
3212 2016-11-24  Daiki Ueno  <ueno@gnu.org>
3214         srclist: sync with released gettext
3215         * config/srclist.txt: Set "release" option to the files under
3216         $GETTEXT.
3218 2016-11-24  Daiki Ueno  <ueno@gnu.org>
3220         srclist: add "release" option
3221         * config/srclist.txt: Change the format so that the first column
3222         of each line points to the top-level directory of the source
3223         archive.
3224         * config/srclist-update: Accept "release" option that checks files
3225         from the most recently tagged revision in the source archive.
3227 2016-11-21  Bruno Haible  <bruno@clisp.org>
3229         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
3230         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
3231         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
3232         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
3233         Inline and remove member function 'rpl ()' of the wrapper struct.
3235 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3237         dfa: fix logic typo
3238         Problem reported by Stephane Chazelas (Bug#24973).
3239         * lib/dfa.c (using_simple_locale): Fix typo that caused some
3240         non-simple locales like fr_FR to be treated as simple.
3242 2016-11-20  Jim Meyering  <meyering@fb.com>
3244         fix test driver leaks: exclude, malloc, realloc
3245         * tests/test-exclude.c (main): Fix trivial leak.
3246         * tests/test-malloc-gnu.c (main): Likewise.
3247         * tests/test-realloc-gnu.c (main): Likewise.
3248         With these changes, grep's tests are now leak free.
3249         I.e., running them with ASAN elicits no failure:
3250           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
3251             AM_LDFLAGS='-fsanitize=address -static-libasan' check
3253 2016-11-11  Bruno Haible  <bruno@clisp.org>
3255         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
3256         * modules/libunistring: (License): Change from LGPL to
3257         "LGPLv3+ or GPLv2".
3258         * modules/libunistring-optional: Likewise.
3259         * modules/unicase/*: Likewise.
3260         * modules/uniconv/*: Likewise.
3261         * modules/unictype/*: Likewise.
3262         * modules/unigbrk/*: Likewise.
3263         * modules/unilbrk/*: Likewise.
3264         * modules/uniname/*: Likewise.
3265         * modules/uninorm/*: Likewise.
3266         * modules/unistdio/*: Likewise.
3267         * modules/unistr/*: Likewise.
3268         * modules/uniwbrk/*: Likewise.
3269         * modules/uniwidth/*: Likewise.
3271 2016-11-12  Bruno Haible  <bruno@clisp.org>
3273         Relicense some modules under LGPLv2+.
3274         Paul Eggert's approval is in
3275         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
3276         Eric Blake's approval is in
3277         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
3278         Ludovic Courtès's approval is in
3279         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
3280         * modules/isnand-nolibm (License): Change to LGPLv2+.
3281         * modules/isnanf-nolibm (License): Likewise.
3282         * modules/isnanl-nolibm (License): Likewise.
3284 2016-11-19  Bruno Haible  <bruno@clisp.org>
3286         Relicense some modules under LGPLv2+.
3287         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
3288         modules/vasnprintf.
3289         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
3290         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
3291         All other significant changes to the files in lib/ of these modules
3292         are from me.
3293         * modules/memcmp2 (License): Change to LGPLv2+.
3294         * modules/amemxfrm (License): Likewise.
3295         * modules/fpieee (License): Likewise.
3296         * modules/fpucw (License): Likewise.
3297         * modules/frexp-nolibm (License): Likewise.
3298         * modules/frexpl-nolibm (License): Likewise.
3299         * modules/printf-frexp (License): Likewise.
3300         * modules/printf-frexpl (License): Likewise.
3301         * modules/printf-safe (License): Likewise.
3302         * modules/signbit (License): Likewise.
3304 2016-11-17  Bruno Haible  <bruno@clisp.org>
3306         Enable Unicode decoder safety unconditionally.
3307         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
3308         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
3309         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3310         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3311         * lib/unistr/u8-prev.c (u8_prev): Likewise.
3312         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
3313         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
3314         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
3315         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
3316         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
3317         * lib/unistr/u16-prev.c (u16_prev): Likewise.
3318         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
3319         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
3320         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
3321         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
3322         * lib/unistr/u32-prev.c (u32_prev): Likewise.
3323         * lib/unistr/u32-next.c (u32_next): Likewise.
3324         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
3325         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
3326         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3327         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3328         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
3329         CONFIG_UNICODE_SAFETY tests unconditionally.
3330         * tests/unistr/test-u32-mblen.c (main): Likewise.
3331         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
3332         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
3333         * tests/unistr/test-u32-next.c (main): Likewise.
3334         * tests/unistr/test-u32-strmblen.c (main): Likewise.
3335         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
3336         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
3337         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
3338         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
3339         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3340         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
3341         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3342         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3343         * lib/unistr/u16-check.c (u16_check): Update comment.
3344         * NEWS: Mention the changes that callers should be aware of.
3346 2016-11-19  Bruno Haible  <bruno@clisp.org>
3348         relocatable-prog-wrapper: Fix breakage on Cygwin.
3349         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
3350         (Depends-on): Remove intprops.
3351         * lib/relocwrapper.c: Update dependency tree.
3352         (strerror): Undefine.
3353         * build-aux/install-reloc (func_create_wrapper): Do not compile
3354         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
3356 2016-11-19  Bruno Haible  <bruno@clisp.org>
3358         strerror: Make it compile in C++ mode.
3359         * lib/strerror.c (strerror): Ignore the return value of memcpy().
3361 2016-11-15  Pedro Alves  <palves@redhat.com>
3363         sys_time: add gnulib::timeval for C++
3364         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
3365         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
3366         timeval macro.
3368 2016-11-14  Pedro Alves  <palves@redhat.com>
3370         snippet/c++defs: fix real-floating arg functions in C++ mode
3371         Also, define isfinite, isinf, isnan, signbit in the gnulib
3372         namespace instead of in the global namespace.
3373         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
3374         (_GL_END_NAMESPACE): New.
3375         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
3376         (isfinite, isinf, isnan, signbit) [__cplusplus &&
3377         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
3378         instead of in the global namespace.
3379         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
3380         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
3381         of in the global namespace.
3383 2016-11-13  Jim Meyering  <meyering@fb.com>
3385         strftime: don't use __THROW
3386         Each use of __THROW would provoke this from gcc-7-to-be:
3388           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
3389             on unit local functions [-Wattributes]
3390           static int iso_week_days (int, int) __THROW;
3391           ^~~~~~
3392         * lib/strftime.c (__THROW): Don't define.
3393         Remove each use of __THROW.
3394         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
3395         (tm_diff, iso_week_days, __strftime_internal): Likewise.
3397 2016-11-14  Paul Eggert  <eggert@union>
3399         obstack: port to gcc -fcheck-pointer-bounds
3400         Problem found by 'make check' failure on bleeding-edge coreutils
3401         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
3402         6.2.0-5ubuntu12), configured via "./configure
3403         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
3404         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
3405         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
3406         New macro, copied from fts_.h.
3407         (struct _obstack_chunk.contents): Use it.
3409 2016-11-14  Eric Blake  <eblake@redhat.com>
3411         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
3412         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
3413         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
3415 2016-11-14  Pádraig Brady  <P@draigBrady.com>
3417         strptime: fix compile error in recent change
3418         * lib/strptime.c (__strptime_internal): Fix ported code.
3420 2016-11-11  Bruno Haible  <bruno@clisp.org>
3422         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
3423         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
3424         (func_import): Extend determination of license_incompatibilities.
3425         (func_create_testdir): Extend table of license compatibility. Handle
3426         also the licenses GPLv3+, GPL, LGPLv3+.
3428 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
3430         strftime: tune %q
3431         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
3433         Merge strftime.c changes from glibc
3434         This incorporates:
3435         2007-10-16 [BZ #5184] Add tzset_called argument
3436         2008-06-13 [BZ #6612] pass reference to tzset_called around
3437         2009-10-30 Implement Burmese language locale for Myanmar
3438         2010-01-09 Add support for XPG7 testing
3439         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
3440         2015-10-20 Convert miscellaneous function definitions to prototype style
3441         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
3442         it anyway and this lessens the difference between gnulib and glibc.
3443         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
3444         (__THROW): Define if standard headers do not.
3445         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
3446         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
3447         Declare with __THROW.
3448         (__strftime_internal): Rename from strftime_case_. Add arg for
3449         whether tzset is called.  All uses changed.  Call tzset at most
3450         once.  Allow %OC, for Burmese.
3451         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
3452         Don't assume values are in range.
3454 2016-11-12  Eric Blake  <eblake@redhat.com>
3456         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
3457         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
3458         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
3459         different value.
3461 2006-11-12  Pedro Alves  <palves@redhat.com>
3463         Fix gnulib C++ namespace support and std::frexp
3464         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
3465         _GL_CXXALIASWARN.
3467 2006-11-12  Pedro Alves  <palves@redhat.com>
3469         GNULIB_NAMESPACE::func need not pull in rpl_func
3470         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
3471         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
3472         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
3473         struct instead of a function pointer.
3475 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
3477         manywarnings: fix -Wno-missing-field-initializers detection
3478         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
3479         to be independent of -Wunused-variable.  I.E. ensure the latter
3480         warning doesn't occur so that detection of the former is accurate.
3482 2016-11-05  Pádraig Brady  <pbrady@fb.com>
3484         strftime,strptime: support %q to represent the quarter
3485         * lib/strftime.c (strftime_case_): Add %q case.
3486         * lib/strptime.c (__strptime_internal): Likewise.
3487         * tests/test-strftime.c (quarter_test): A new test case.
3489 2016-11-03  Eric Blake  <eblake@redhat.com>
3491         bootstrap: Fix get_version() for AIX 5.3
3492         * build-aux/bootstrap (get_version): Factor out sed script, since
3493         indented comments choke AIX 5.3 sed.
3494         Reported-by: Michael Felt <aixtools@gmail.com>
3496 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
3498         intprops: port to older XL C
3499         Problem reported by Alexander Samoilov in:
3500         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
3501         http://savannah.nongnu.org/bugs/?49448
3502         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
3503         Define to 1 only for XL C 12.1 or later, since this bug
3504         occurs in XL C for AIX 6.0 but not in 12.1.
3506 2016-11-02  Pádraig Brady  <P@draigBrady.com>
3508         backupfile: initialize default suffix within the implementation
3509         * lib/backupfile.c (find_backup_file_name): Initialize the
3510         global variable here, to simplify usage, and to only call
3511         getenv() when needed.
3513 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3515         futimens: remove FIXME for old Linux kernels
3516         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
3517         this in 2012" FIXME, like that for utimensat.
3519         utimensat: remove FIXME for old Linux kernels
3520         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
3521         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
3522         this in 2012" FIXME, by assuming the file system bug is absent
3523         unless demonstrated to be present.  We no longer need to worry
3524         about Linux kernel 2.6.32 when building with newer kernels.
3526 2016-10-16  Bruno Haible  <bruno@clisp.org>
3528         qsort_r: Fix macrology for platforms that lack the function.
3529         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
3530         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
3531         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
3532         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
3533         not exist.
3534         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
3535         the function exists.
3536         * modules/qsort_r: Add comments.
3538 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3540         sys_types: fix Texinfo typos
3541         * doc/glibc-functions/gnu_dev_major.texi:
3542         * doc/glibc-functions/gnu_dev_makedev.texi:
3543         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
3545 2016-10-26  John David Anglin  <dave.anglin@bell.net>
3547         getprogname: port to HP-UX
3548         See Bug#24805.
3549         * lib/getprogname.c (getprogname) [__hpux]: Port.
3550         * tests/test-getprogname.c (STREQ) [__hpux]:
3551         Special-case for HP-UX limitations on program name length.
3553 2016-10-20  Bruno Haible  <bruno@clisp.org>
3555         Update doc about target platforms.
3556         * doc/gnulib-intro.texi (Target Platforms): Update list.
3558 2016-10-15  Bruno Haible  <bruno@clisp.org>
3560         opendir, readdir, closedir: Relicense under LGPLv2+.
3561         * modules/opendir (License): Change to LGPLv2+.
3562         * modules/readdir (License): Likewise.
3563         * modules/closedir (License): Likewise.
3565 2016-10-16  Bruno Haible  <bruno@clisp.org>
3567         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
3568         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
3569         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
3570         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
3571         HAVE_DECL_STRERROR_R.
3573 2016-10-16  Bruno Haible  <bruno@clisp.org>
3575         Make the 'argp' module work without the 'error' module.
3576         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
3578 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
3580         diffseq: restore TOO_EXPENSIVE heuristic
3581         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
3582         (Bug#24715).  The simplest solution is to restore the
3583         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
3584         using a higher threshold to avoid Bug#16848 on smaller files.
3585         * lib/diffseq.h (struct context): Restore member too_expensive.
3586         (struct partition): Restore members lo_minimal, hi_minimal.
3587         (diag, compareseq): Restore arg find_minimal.  All uses changed.
3588         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
3589         1993 to make 'diff' run faster (but not as well) on large inputs,
3590         but use a threshold of 4096 instead of the old 256.
3591         * lib/fstrcmp.c (strcmp_bounded):
3592         * lib/git-merge-changelog.c (compute_differences):
3593         Adjust to diffseq.h changes.
3595 2016-10-22  Bruno Haible  <bruno@clisp.org>
3597         iconv: Avoid compilation error when bootstrapping GNU libiconv.
3598         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
3599         declaration yet, define ICONV_CONST to empty.
3601 2016-10-15  Bruno Haible  <bruno@clisp.org>
3603         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
3604         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
3605         module.
3607 2016-10-16  Bruno Haible  <bruno@clisp.org>
3609         system-quote tests: Avoid compiler warning on AIX.
3610         * tests/test-system-quote-child.c (fopen): Redefine like the system's
3611         <stdio.h> does.
3613 2016-10-16  Bruno Haible  <bruno@clisp.org>
3615         Fix some "gcc -Wall" warnings.
3616         * tests/test-ffsl.c (main): Use variable x, not i.
3617         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
3618         freopen.
3619         * tests/test-sethostname1.c (main): Explicitly ignore the return value
3620         of sethostname.
3622 2016-10-16  Bruno Haible  <bruno@clisp.org>
3624         gnulib-tool: Make --create-testdir on all modules work again.
3625         * gnulib-tool (func_create_testdir): Don't include the
3626         non-recursive-gnulib-prefix-hack module.
3628 2016-10-21  Daiki Ueno  <ueno@gnu.org>
3630         libunistring: change the maintainer to 'all'
3631         * modules/gen-uni-tables, modules/libunistring:
3632         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
3633         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
3634         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
3635         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
3636         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
3637         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
3638         * modules/uniwidth/*: Change the maintainer to 'all'.
3640 2016-10-16  Bruno Haible  <bruno@clisp.org>
3642         Simplify "configure: checking ..." messages.
3643         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
3644         AC_MSG_NOTICE.
3645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3647 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
3649         quotearg-tests: pacify gcc -Wall
3650         Problem reported by Bruno Haible in:
3651         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
3652         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
3653         * tests/test-quotearg.h: ... from here.
3655 2016-10-20  Pádraig Brady  <P@draigBrady.com>
3657         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
3658         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
3659         Needed on Centos <= 4.
3661 2016-10-20  Jim Meyering  <meyering@fb.com>
3663         printf.m4: fix a bug in detecting printf %j support
3664         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
3665         uintmax_t is defined in neither stdint.h nor inttypes.h.
3666         Before, this macro might have mistakenly set
3667         gl_cv_func_printf_sizes_c99=yes on such a system.
3668         Spotted by Zev Weiss.
3670 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3672         sched: substitute HAVE_SYS_CDEFS_H too
3673         Problem reported by Tom G. Christensen in:
3674         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
3675         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
3676         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
3678 2016-10-19  Pádraig Brady  <P@draigBrady.com>
3680         quotearg: never write beyond the returned length
3681         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
3682         scan of the string when we initially encounter a single quote when
3683         shell quoting, so that if we then switch to a more concise quoting method
3684         we will not have written beyond that returned length.
3685         This is significant for sh-quote, which has separate routines
3686         to determine the length and do the actual quoting.
3687         * tests/test-quotearg.h: Reinstate the buffer bounds checking
3688         now that we never write more than the returned length.
3690 2016-10-18  Bruno Haible  <bruno@clisp.org>
3692         getprogname tests: Avoid failure in packages that use libtool.
3693         * tests/test-getprogname.c (main): Strip "lt-" prefix.
3694         Based on a patch by Jim Meyering.
3696 2016-10-16  Bruno Haible  <bruno@clisp.org>
3698         getprogname: Fix test failure on Cygwin. Comments.
3699         * lib/getprogname.h: Add comments.
3700         * lib/getprogname.c: Add comments. Fix #elif indentation.
3701         * tests/test-getprogname.c (main): On Cygwin, expect a result without
3702         ".exe" suffix.
3704 2016-10-16  Bruno Haible  <bruno@clisp.org>
3706         Make sure the libunistring detection rejects older versions with a
3707         known bug.
3708         * modules/unistr/u8-strtok (configure.ac): Bump required version.
3709         * modules/unistr/u16-strtok (configure.ac): Likewise.
3710         * modules/unistr/u32-strtok (configure.ac): Likewise.
3712 2016-10-18  Bruno Haible  <bruno@clisp.org>
3714         sh-quote, system-quote: revert regression of unit test.
3715         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
3716         * tests/test-system-quote-main.c (check_one): Likewise.
3718 2016-10-16  Pádraig Brady  <P@draigBrady.com>
3720         quotearg: fix stale tests
3721         * tests/test-quotearg.c [locale_results]: Add the missing str7
3722         entries to the expected results.
3723         * tests/test-system-quote-main.c (check_one): Don't enforce that we
3724         don't write beyond the returned length, since that's no longer the
3725         case if we switch to a more concise quoting style.
3726         * tests/test-sh-quote.c (check_one): Likewise.
3727         (main): Adjust for the new more concise quoting style.
3728         Reported by Bruno Haible.
3730 2016-10-16  Jim Meyering  <meyering@fb.com>
3732         non-recursive-gnulib-prefix-hack: fix inconsequential typo
3733         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
3734         to "$1".  This macro is always invoked with $1 == lib.
3735         Spotted by Bruno Haible
3737 2016-10-16  Bruno Haible  <bruno@clisp.org>
3739         Fix a test crash.
3740         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
3741         fails.
3743 2016-10-16  Pádraig Brady  <P@draigBrady.com>
3745         test-limits-h: suppress -Woverlength-strings
3746         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
3748 2016-10-15  Bruno Haible  <bruno@clisp.org>
3750         gettime, timespec, utimens: Relicense under LGPL.
3751         * modules/gettime (License): Change to LGPL.
3752         * modules/timespec (License): Likewise.
3753         * modules/utimens (License): Likewise.
3755 2016-10-14  Bruno Haible  <bruno@clisp.org>
3756             Pádraig Brady  <P@draigBrady.com>
3758         canonicalize-lgpl: Support the case path_max > INT_MAX.
3759         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
3760         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
3762 2016-10-13  Jim Meyering  <meyering@fb.com>
3764         getprogname: IBM z/OS: avoid NULL-dereference
3765         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
3766         upon strdup failure.
3768 2016-10-12  Jim Meyering  <meyering@fb.com>
3770         test-stdint: use _GL_VERIFY rather than "verify" for some tests
3771         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
3772         and an abbreviated diagnostic rather than verify with the full one,
3773         because the full-length strings would evoke warnings from gcc with
3774         -Woverlength-strings.
3776 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3778         stdint: port SIZE_MAX to glibc s390
3779         Problem reported by Eric Blake in:
3780         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
3781         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
3782         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
3783         correct type, if possible.
3785 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
3787         getprogname: port to IBM z/OS
3788         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
3790 2016-10-11  Jim Meyering  <meyering@fb.com>
3792         maint: remove stray space after "." in AC_DEFINE comment.
3793         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
3794         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3796 2016-10-05  Jim Meyering  <meyering@fb.com>
3798         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
3799         * lib/long-options.c (parse_long_options): Add a break statement
3800         to avoid this new warning/failure:
3801         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
3802           --create-testdir --dir=/t/x --with-tests --test long-options
3803         ../../gllib/long-options.c: In function 'parse_long_options':
3804         ../../gllib/long-options.c:66:12: error: this statement may \
3805           fall through [-Werror=implicit-fallthrough]
3806                    (*usage_func) (EXIT_SUCCESS);
3807                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
3809 2016-10-05  Jim Meyering  <meyering@fb.com>
3811         utimecmp: avoid new GCC 7 warning from -Wbool-operation
3812         Testing this module would fail when using GCC 7 like this:
3813         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
3814           --dir=/tmp/x --with-tests --test utimecmp
3815         ../../gllib/utimecmp.c: In function ‘utimecmp’:
3816         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
3817           [-Werror=bool-operation]
3818                          time_t s = src_s & ~ (res == 2 * BILLION);
3819                                             ^
3820         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
3821           [-Werror=bool-operation]
3822                src_s &= ~ (res == 2 * BILLION);
3823                         ^
3824         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
3825         Instead, make it explicit that we intend to apply it to 0 or 1.
3827 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3829         dfa: save memory for states
3830         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
3831         states if dfa has a lot of caches.
3833 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
3835         wchar, wctype-h: fix for MinGW 3.22.2
3836         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
3837         special invocation, to fix issues with MinGW 3.22.2 wchar.h
3838         when included from <string.h>.
3839         * lib/wctype.in.h [__MINGW32__]: Add special invocation
3840         convention for MinGW 3.22.2, to solve issues with their
3841         wctype.h when included from <ctype.h>.
3843 2016-10-05  Jim Meyering  <meyering@fb.com>
3845         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
3846         * lib/long-options.c (parse_long_options): Add a break statement
3847         to avoid this new warning/failure:
3848         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
3849           --create-testdir --dir=/t/x --with-tests --test long-options
3850         ../../gllib/long-options.c: In function ‘parse_long_options’:
3851         ../../gllib/long-options.c:66:12: error: this statement may \
3852           fall through [-Werror=implicit-fallthrough]
3853                    (*usage_func) (EXIT_SUCCESS);
3854                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
3856         utimecmp: avoid new GCC 7 warning from -Wbool-operation
3857         Testing this module would fail when using GCC 7 like this:
3858         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
3859           --dir=/tmp/x --with-tests --test utimecmp
3860         ../../gllib/utimecmp.c: In function ‘utimecmp’:
3861         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
3862           [-Werror=bool-operation]
3863                          time_t s = src_s & ~ (res == 2 * BILLION);
3864                                             ^
3865         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
3866           [-Werror=bool-operation]
3867                src_s &= ~ (res == 2 * BILLION);
3868                         ^
3869         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
3870         Instead, make it explicit that we intend to apply it to 0 or 1.
3872 2016-10-03  Pádraig Brady  <P@draigBrady.com>
3874         quotearg: minimize shell quoting using double quotes
3875         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
3876         quote in encountered then use double quotes (c style quoting)
3877         when possible, as it simplifies the quoting.
3878         * tests/test-quotearg-simple.c: Add test cases.
3879         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
3880         for the fact we now may write beyond the returned length.
3882 2016-10-02  Jim Meyering  <meyering@fb.com>
3884         vasnprintf.c: avoid spurious warning from GCC 7
3885         The presence of cpp directives renders this "FALLTHROUGH" comment
3886         ineffective, so does not suppress the -Wimplicit-fallthrough warning
3887         from GCC 7 built from git on 2016-10-02.
3888         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
3889         directives, so that it takes effect once again.  This is clearly
3890         not a proper change, and I will revert it once this bug is fixed:
3891         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
3893 2016-10-01  Jim Meyering  <meyering@fb.com>
3895         getprogname: correct the test for a __progname variable
3896         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
3897         and AC_LINK_IFELSE to check for a global __progname.  If found,
3898         define HAVE_VAR___PROGNAME.
3899         * lib/getprogname.c (getprogname): Reflect the new name of the
3900         feature- checked preprocessor symbol:
3901         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
3903 2016-09-28  Jim Meyering  <meyering@fb.com>
3905         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
3906         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
3907         fall-through case with a /* fallthrough */ comment.
3909         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
3910         * lib/dfa.c (dfassbuild): Mark the end of this case with a
3911         /* fallthrough */ comment.
3913         getprogname: avoid __progname vs program_invocation_short_name pitfall
3914         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
3915         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
3916         not with Fedora 24's glibc-2.23.1-10.
3917         * lib/getprogname.c (__progname): Move this declaration down...
3918         (getprogname): ... into the #elif block where used, and make it
3919         explicitly "extern".
3921         getprogname: port to OpenBSD 5.1
3922         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
3923         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
3924         * modules/getprogname (configure.ac): Move most of this code...
3925         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
3926         increment serial number, and add a test for __progname.
3927         https://bugs.gnu.org/24562
3928         Reported by Nelson H. F. Beebe.
3930 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3932         sched: port to GCC 6.2.1 on macOS Sierra
3933         Problem reported by Denis Davydov in:
3934         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
3935         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
3936         Include <sys/cdefs.h> before <sched.h>.
3937         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
3938         so that we needn’t worry about the sched.h include bug here.
3939         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
3940         and include it before <sched.h> if it exists, when
3941         checking for <sched.h>.
3943         tests/init.sh: port Alpine fix to AIX 7.1
3944         * tests/init.sh (compare_): When attempting to use diff -U3,
3945         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
3946         diff -u not outputting a space after leading '+', as the users
3947         of 'compare' should not be that picky about its output format.
3948         In the AIX 7.1 case, return with diff exit status (or with 2 if
3949         trouble), instead of some random nonzero exit status.
3950         * tests/test-init.sh (test_compare): Remove space after leading
3951         '+', so that AIX 7.1 'diff' passes the test.
3953 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3955         nl_langinfo: pacify GCC
3956         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
3957         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
3959         stdint: also set GL_GENERATE_LIMITS_H
3960         Problem reported by Jim Meyering in:
3961         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
3962         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
3964         limits-h, stdint: Don't assume extensions, fix typo
3965         * m4/limits-h.m4 (gl_LIMITS_H):
3966         * m4/stdint.m4 (gl_STDINT_H):
3967         Don't assume AC_USE_SYSTEM_EXTENSIONS.
3968         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
3969         reported by Jim Meyering in:
3970         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
3972 2016-09-21  Jim Meyering  <meyering@fb.com>
3974         getprogname: port to AIX
3975         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
3976         and strdup to obtain a short program name string.  Using code from
3977         Bruno Haible and an idea from Bastien ROUCARIÈS, in
3978         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
3979         Assaf Gordon reported that this new file would fail to compile on
3980         AIX-7.1 32bit.
3982 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3984         extensions: fix typo in comment
3985         * m4/extensions.m4: Sync from Autoconf master.
3987         stdint: support new _WIDTH macros
3988         * doc/posix-headers/stdint.texi: Document this.
3989         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
3990         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
3991         support for INTMAX_WIDTH, etc. as well as for support for just C99.
3992         * modules/stdint (Depends-on): Add limits-h.
3993         (Makefile.am): Substitute HAVE_C99_STDINT_H.
3994         * modules/stdint-tests (Depends-on): Add extensions, so that
3995         INTMAX_MAX etc. are defined.
3996         * tests/test-stdint.c: Verify the new macros.
3998         limits-h: new module
3999         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
4000         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
4001         * doc/posix-headers/limits.texi: Document new module.
4002         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
4003         * modules/limit-h-tests, tests/test-limits-h.c: New files.
4005         stdio: don't redefine __USE_MINGW_ANSI_STDIO
4006         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
4007         if it is already defined.  Apparently GNU Emacs relies on this.  See:
4008         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
4010 2016-09-15  Eric Blake  <eblake@redhat.com>
4012         sys_types: avoid glibc 2.25 warnings about major()
4013         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
4014         older autoconf.
4015         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
4016         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
4017         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
4018         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
4020         mountlist: include sysmacros.h for glibc
4021         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
4022         AC_HEADER_MAJOR.
4023         * lib/mountlist.c (includes): Use correct headers.
4025 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4027         extensions: port to more ISO C TSes
4028         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
4029         master, to add support for more recent ISO C TRs and TSes.
4031 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4033         intprops: new macro TYPE_WIDTH
4034         * lib/intprops.h (TYPE_WIDTH): New macro.
4035         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
4036         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
4037         * lib/parse-datetime.y (parse_datetime2):
4038         Use it.
4040         extensions: port to recent ISO C TRs
4041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4042         Sync from Autoconf master, to add support for recent ISO C TRs.
4043         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
4044         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
4045         the MinGW option is not an extension.
4047 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
4049         dfa: port to Solaris 9
4050         Problems reported by Tom G. Christensen in:
4051         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
4052         * modules/dfa (Depends-on): Add isblank.
4053         * modules/dfa-tests (dfa_match_aux_LDADD):
4054         Rename from test_stat_LDADD, to fix typo.
4055         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
4057 2016-09-10  Jim Meyering  <meyering@fb.com>
4059         strverscmp: avoid link failure on OS X
4060         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
4061         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
4063 2016-08-16  Jim Meyering  <meyering@fb.com>
4065         dfa: new module, importing grep's DFA matcher
4066         Since grep's DFA matcher is now being used by two gnulib-enabled
4067         projects, grep and sed, it makes sense to version-control its
4068         sources and unit tests in one place: here.
4069         * modules/dfa: New module.
4070         * modules/dfa-tests: New file.
4071         * lib/dfa.c: New file, from grep.
4072         * lib/dfa.h: Likewise.
4073         * lib/localeinfo.c: Likewise.
4074         * lib/localeinfo.h: Likewise.
4075         * tests/dfa-match-aux.c: Likewise.
4076         * tests/dfa-invalid-char-class.sh: Likewise.
4077         * tests/dfa-match.sh: Likewise, with minor changes.
4078         * MODULES.html.sh (Misc): Add "dfa" to this list.
4080 2016-09-09  Jim Meyering  <meyering@fb.com>
4082         getprogname-tests: don't depend on assert-h
4083         * modules/getprogname-tests (Depends-on): Remove assert-h.
4084         It was not needed, and in fact would cause build failure for
4085         coreutils on some systems.  Reported by Assaf Gordon in https:
4086         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
4088 2016-09-07  Jim Meyering  <meyering@fb.com>
4090         getprogname-tests: work also when EXEEXT is nonempty
4091         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
4092         * tests/test-getprogname.c (main): Use it.
4093         Suggested by Gisle Vanem.
4095 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
4097         getprogname: fix errors in previous change
4098         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
4099         s/program_invocation_name/base/
4100         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
4102 2016-09-08  Pádraig Brady  <P@draigBrady.com>
4104         parse-datetime: restrict debug output to input string
4105         * lib/parse-datetime.y (parse_datetime2): If we parse
4106         all of the input but determine it's invalid, ensure
4107         we don't output the now invalid input pointer.
4108         This issue was seen with `date -d 'now +1'`.
4110 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
4112         flexmember: new macro FLEXALIGNOF
4113         * lib/flexmember.h: Include <stddef.h>, for offsetof.
4114         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
4115         this macro.  Update comments.
4117 2016-09-07  Jim Meyering  <meyering@fb.com>
4119         getprogname: port to systems with __argv (mingw, msvc)
4120         * lib/getprogname.c (getprogname): Include "dirname.h" and use
4121         last_component: more general than open coding it with hard-coded "/".
4122         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
4123         * modules/getprogname (Depends-on): Add dirname-lgpl.
4124         (configure.ac): Check for __argv in <stdlib.h>.
4125         * modules/getprogname-tests: New file.
4126         * tests/test-getprogname.c: New file.
4127         Suggested by Gisle Vanem in
4128         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
4130 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
4132         flexmember: port better to GCC + valgrind
4133         With a char[] flexible array member in a struct with nontrivial
4134         alignment, GCC-generated code can access past the end of the
4135         array, because GCC assumes there are padding bytes to get the
4136         struct aligned.  So the common idiom of malloc (offsetof (struct
4137         s, m), n) does not properly allocate an n-byte trailing member, as
4138         malloc’s argument should be the next multiple of alignof (struct s).
4139         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
4140         Although C11 apparently permits this GCC optimization (i.e., there
4141         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
4142         See the thread containing:
4143         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
4144         * lib/flexmember.h: New file.
4145         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
4146         * lib/localename.c, lib/time_rz.c:
4147         Include flexmember.h.
4148         * lib/fnmatch_loop.c (struct patternlist):
4149         * lib/localename.c (struct hash_node):
4150         Use FLEXIBLE_ARRAY_MEMBER.
4151         * lib/fnmatch_loop.c (EXT):
4152         * lib/fts.c (fts_alloc):
4153         * lib/glob.c (glob_in_dir):
4154         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
4155         * lib/localename.c (gl_lock_define_initialized):
4156         * lib/time_rz.c (tzalloc):
4157         Use FLEXSIZEOF instead of offsetof.
4158         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4159         Check that the size of the struct can be taken.
4160         * modules/flexmember (Files): Add lib/flexmember.h.
4161         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
4162         Add flexmember.
4164 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
4166         getprogname: port to Solaris 10
4167         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
4168         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
4169         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
4171         stdalign: correct mistake in alignof doc
4172         Problem reported by Joseph Myers in:
4173         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
4174         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
4175         alignof(S) where S is a structure containing a flexible array
4176         member.  The Gnulib substitute does not support this, but C11 does.
4178 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4180         main.mk: remove sc_program_name, since there is no more need to
4181         use set_program_name in tools (getprogname is enough for most
4182         of the cases).
4183         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
4184         * top/maint.mk (sc_program_name): Remove.
4186 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4188         Port tests away from progname, since modules that need the
4189         program name already depend on getprogname.
4190         * modules/acl-tests (Depends-on): Remove progname.
4191         * modules/argmatch (Depends-on): Likewise.
4192         * modules/argmatch-tests (Depends-on): Likewise.
4193         * modules/argp-tests (Depends-on): Likewise.
4194         * modules/argp-version-etc-tests (Depends-on): Likewise.
4195         * modules/array-list-tests (Depends-on): Likewise.
4196         * modules/array-oset-tests (Depends-on): Likewise.
4197         * modules/avltree-list-tests (Depends-on): Likewise.
4198         * modules/avltree-oset-tests (Depends-on): Likewise.
4199         * modules/avltreehash-list-tests (Depends-on): Likewise.
4200         * modules/carray-list-tests (Depends-on): Likewise.
4201         * modules/copy-file-tests (Depends-on): Likewise.
4202         * modules/exclude-tests (Depends-on): Likewise.
4203         * modules/fchownat-tests (Depends-on): Likewise.
4204         * modules/fdopendir-tests (Depends-on): Likewise.
4205         * modules/filenamecat-tests (Depends-on): Likewise.
4206         * modules/fstatat-tests (Depends-on): Likewise.
4207         * modules/fstrcmp-tests (Depends-on): Likewise.
4208         * modules/linked-list-tests (Depends-on): Likewise.
4209         * modules/linkedhash-list-tests (Depends-on): Likewise.
4210         * modules/mkdirat-tests (Depends-on): Likewise.
4211         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
4212         * modules/nonblocking-socket-tests (Depends-on): Likewise.
4213         * modules/obstack-printf-tests (Depends-on): Likewise.
4214         * modules/openat-tests (Depends-on): Likewise.
4215         * modules/parse-datetime-tests (Depends-on): Likewise.
4216         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
4217         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
4218         * modules/quotearg-simple-tests (Depends-on): Likewise.
4219         * modules/quotearg-tests (Depends-on): Likewise.
4220         * modules/rbtree-list-tests (Depends-on): Likewise.
4221         * modules/rbtree-oset-tests (Depends-on): Likewise.
4222         * modules/rbtreehash-list-tests (Depends-on): Likewise.
4223         * modules/spawn-pipe-tests (Depends-on): Likewise.
4224         * modules/system-quote-tests (Depends-on): Likewise.
4225         * modules/uniname/uniname-tests (Depends-on): Likewise.
4226         * modules/uninorm/nfc-tests (Depends-on): Likewise.
4227         * modules/uninorm/nfd-tests (Depends-on): Likewise.
4228         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
4229         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
4230         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
4231         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
4232         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
4233         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
4234         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
4235         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
4236         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
4237         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
4238         * modules/unlinkat-tests (Depends-on): Likewise.
4239         * modules/version-etc-tests (Depends-on): Likewise.
4240         * modules/xalloc-die-tests (Depends-on): Likewise.
4241         * modules/xmemdup0-tests (Depends-on): Likewise.
4242         * modules/xprintf-posix-tests (Depends-on): Likewise.
4243         * modules/xvasprintf-tests (Depends-on): Likewise.
4244         * tests/test-argmatch.c: Do not include progname.h.
4245         (main) Stop calling set_program_name.
4246         * tests/test-argp-version-etc.c: Likewise.
4247         * tests/test-argp.c: Likewise.
4248         * tests/test-argv-iter.c: Likewise.
4249         * tests/test-array_list.c: Likewise.
4250         * tests/test-array_oset.c: Likewise.
4251         * tests/test-avltree_list.c: Likewise.
4252         * tests/test-avltree_oset.c: Likewise.
4253         * tests/test-avltreehash_list.c: Likewise.
4254         * tests/test-carray_list.c: Likewise.
4255         * tests/test-copy-acl.c: Likewise.
4256         * tests/test-copy-file.c: Likewise.
4257         * tests/test-exclude.c: Likewise.
4258         * tests/test-fchownat.c: Likewise.
4259         * tests/test-fdopendir.c: Likewise.
4260         * tests/test-filenamecat.c: Likewise.
4261         * tests/test-fstatat.c: Likewise.
4262         * tests/test-fstrcmp.c: Likewise.
4263         * tests/test-linked_list.c: Likewise.
4264         * tests/test-linkedhash_list.c: Likewise.
4265         * tests/test-mkdirat.c: Likewise.
4266         * tests/test-nonblocking-pipe-main.c: Likewise.
4267         * tests/test-nonblocking-socket-main.c: Likewise.
4268         * tests/test-obstack-printf.c: Likewise.
4269         * tests/test-openat.c: Likewise.
4270         * tests/test-parse-datetime.c: Likewise.
4271         * tests/test-pipe-filter-gi1.c: Likewise.
4272         * tests/test-pipe-filter-gi2-main.c: Likewise.
4273         * tests/test-pipe-filter-ii1.c: Likewise.
4274         * tests/test-pipe-filter-ii2-main.c: Likewise.
4275         * tests/test-quotearg-simple.c: Likewise.
4276         * tests/test-quotearg.c: Likewise.
4277         * tests/test-rbtree_list.c: Likewise.
4278         * tests/test-rbtree_oset.c: Likewise.
4279         * tests/test-rbtreehash_list.c: Likewise.
4280         * tests/test-sameacls.c: Likewise.
4281         * tests/test-set-mode-acl.c: Likewise.
4282         * tests/test-spawn-pipe-main.c: Likewise.
4283         * tests/test-system-quote-main.c: Likewise.
4284         * tests/test-unlinkat.c: Likewise.
4285         * tests/test-version-etc.c: Likewise.
4286         * tests/test-xalloc-die.c: Likewise.
4287         * tests/test-xfprintf-posix.c: Likewise.
4288         * tests/test-xmemdup0.c: Likewise.
4289         * tests/test-xprintf-posix.c: Likewise.
4290         * tests/test-xvasprintf.c: Likewise.
4291         * tests/uniname/test-uninames.c: Likewise.
4292         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4293         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4294         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4295         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4296         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4297         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4298         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4299         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4300         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4301         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4302         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4303         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4304         * tests/test-c-stack.c: (program_name): Do not define.
4305         (main): Do not set program_name.
4306         * tests/test-closein.c: Likewise.
4307         * tests/test-xstrtol.c: Likewise.
4308         * tests/test-yesno.c: Likewise.
4310 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4312         Port modules to use getprogname explicitly, instead of requiring
4313         progname to be used (or program_name to be provided).
4314         * lib/argmatch.c: Do not include progname.h.
4315         [TEST] (program_name): Do not define.
4316         [TEST] (main): Call getprogname instead of using program_name.
4317         * lib/c-stack.c: Do not include progname.h.
4318         (program_name): Do not define.
4319         (die): Call getprogname instead of using program_name.
4320         * lib/chdir-long.c: Do not include progname.h.
4321         [TEST_CHDIR] (main): Do not set program_name.
4322         * lib/error.c [!_LIBC]: Include progname.h.
4323         [!_LIBC] (program_name): Define using getprogname.
4324         * lib/euidaccess.c: Do not include progname.h.
4325         [TEST] (main): Do not set program_name.
4326         * lib/git-merge-changelog.c: Include getprogname.h instead of
4327         progname.h.
4328         (usage): Call getprogname instead of using program_name.
4329         (main): Likewise.  Stop calling set_program_name.
4330         * lib/group-member.c: Do not include progname.h.
4331         [TEST] (main): Do not set program_name.
4332         * modules/argmatch (Depends-on): Add getprogname.
4333         * modules/c-stack (Depends-on): Likewise.
4334         * modules/error (Depends-on): Likewise.
4335         * modules/git-merge-changelog (Depends-on): Likewise.
4336         Also remove progname.
4338 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
4340         * NEWS: Document the deprecation of the 'progname' module.
4342 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4344         getprogname: new module
4345         This provides a LGPL module for getting the name of the current
4346         program, using the same API found on *BSD systems.
4347         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
4348         * modules/getprogname: New files.
4349         * MODULES.html.sh (Misc): Add getprogname.
4351 2016-09-02  Jim Meyering  <meyering@fb.com>
4353         manywarnings: add -fno-common
4354         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
4355         to the list.  Quoting the manual, "Compiling with -fno-common is
4356         useful on targets for which it provides better performance, or if
4357         you wish to verify that the program will work on other systems that
4358         always treat uninitialized variable declarations this way [putting
4359         it in the data section]."  If diffutils had been using this sooner,
4360         it would have prevented this duplicate declaration issue:
4361         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
4363 2016-08-31  Simon Josefsson  <simon@josefsson.org>
4365         parse-datetime: Fix typo.
4366         * lib/parse-datetime.y (parse_datetime2): Fix typo.
4368 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4370         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
4371         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
4372         GCC 5 and 6 that have __builtin_sub_overflow but not
4373         __builtin_sub_overflow_p.  With the recent changes, these
4374         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
4375         implementation than with INT_SUBTRACT_OVERFLOW implementation,
4376         since the former needs just one runtime comparison whereas the
4377         latter needs two.
4379         strverscmp: sync with glibc
4380         Although this doesn't exactly synchronize with glibc
4381         byte-for-byte, it makes the code behave the same as glibc.
4382         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
4383         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
4384         difference shouldn't matter in practical use.  All uses changed
4385         back to isdigit.
4386         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
4387         (next_state): Now unsigned char array; redo elements.
4388         (result_type): Now signed char array; redo elements.
4389         (__strverscmp): Fix glibc bug 9913 by using new states.
4390         * tests/test-strverscmp.c (main): Test glibc bug 9913.
4392 2016-08-29  Jim Meyering  <meyering@fb.com>
4394         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
4395         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
4396         similarly to how it was done to intprops.h.
4398 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4400         intprops.h: port recent changes to GCC 6.2.0
4401         * lib/intprops.h (__has_builtin): Move earlier.
4402         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
4403         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
4404         the last argument can be null.  All uses changed.
4405         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
4406         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
4407         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
4408         and it's not clear which GCC versions it works for.
4409         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
4410         its definiens.
4412         intprops.h: use __typeof__ with GCC 7
4413         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
4414         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
4415         This avoids computing the expression's value (which might overflow!).
4417 2016-08-29  Jim Meyering  <meyering@fb.com>
4419         intprops.h, xalloc-oversized.h: work with gcc 7
4420         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
4421         __builtin_mul_overflow each accept a NULL pointer as the third
4422         argument.  However in gcc 7, that is no longer accepted.
4423         Instead, one must use the "_p"-suffixed names, with which, the
4424         third parameter is no longer a pointer.
4425         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
4426         the definition: not true for gcc 7 and subsequent.
4427         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
4428         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
4429         Provide new definitions for gcc 7 and subsequent.
4430         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
4431         that works with gcc-7.
4433         intprops.h: fix missing-backslash problems
4434         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
4435         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
4437 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4439         intprops: fix paren typo on old platforms
4440         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
4441         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
4442         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
4443         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
4444         && !defined LLONG_MAX]:
4445         Remove stray paren.
4447         intprops: port to OpenVMS
4448         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
4449         * doc/posix-headers/limits.texi: Document the problem.
4450         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
4451         Define if not already defined.
4453 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
4455         parse-datetime: improve debug implementation
4456         Follow-up to commit 12ad79069 ("add optional debug printing").
4457         Improve parse-datetime's debug implementation: remove macros,
4458         replace global debug flag variable with a function parameter,
4459         use nstrftime for formatting.
4460         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
4461         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
4462         (parse_datetime2): New function, accepts 'flags' parameter, supporting
4463         debug flag. Existing interface 'parse_datetime' left unmodified.
4464         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
4465         (struct parser_control): add 'parse_datetime_debug' member variable.
4466         (parse_datetime): Call new function 'parse_datetime2' without debug.
4467         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
4468         pc.parse_datetime_debug variable as needed.
4469         (to_year): Accept new flags parameter, instead of using global variable.
4470         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
4471         use struct 'debug' variable instead of global variable.
4472         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
4473         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
4474         correspnding functions directly instead of using macros.
4475         * modules/parse-datetime: Add gnulib's strftime module.
4477 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
4479         c-strcase-tests: port to EBCDIC
4480         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
4481         which assume ASCII encoding semantics to run only in ASCII
4482         mode, as they fail in EBCDIC.
4484         sigpipe-tests: fix typo
4485         * tests/test-sigpipe.sh: C, not B.
4487 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4489         canonicalize-lgpl: fix errno after malloca fails
4490         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
4491         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
4492         * lib/canonicalize-lgpl.c (__realpath):
4493         Don't assume malloca sets errno on failure.
4495 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4497         strtod: port errno handling to z/OS
4498         * lib/strtod.c (strtod): Save and restore errno more reliably.
4500 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
4502         strtod: port to z/OS
4503         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
4504         implementation.
4506 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4508         strtod: port to z/OS
4509         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
4510         implementation.
4512         regex, string: rename to avoid '__string'
4513         * lib/regex.h, lib/string.in.h: Do not use the identifier
4514         '__string', as it is effectively reserved by string.h on z/OS.
4516         c-strcase-tests, wcwidth-tests: depend on c-ctype
4517         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
4518         Add c-ctype.
4520 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
4522         thread: port to z/OS
4523         * lib/glthread/thread.c, lib/glthread/thread.h:
4524         Rudimentary gl_thread support for z/OS.
4526         maint: port tests to z/OS errno behavior
4527         * tests/test-nonblocking-reader.h:
4528         * tests/test-nonblocking-writer.h:
4529         Accommodate z/OS errno code preferences. (I believe this should
4530         still be within spec; IBM is good at following the letter if not
4531         the spirit of such things.)
4533         maint: preprocessor changes to support z/OS
4534         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
4535         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
4536         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
4537         * tests/test-nonblocking-pipe.h:
4539         fclose, strstr-simple, wchar: port to z/OS
4540         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
4541         Changes to the Autoconf M4 code to support z/OS.  Note that
4542         fclose() is broken in a different way on z/OS than it is on other
4543         systems, thus the special-case in fclose.m4.
4545         iconv_open-utf-tests, iconv-tests: port to EBCDIC
4546         * tests/test-iconv-utf.c, tests/test-iconv.c:
4547         Added appropriately conditional #pragmas so that the test strings
4548         in test-iconv-utf.c are correctly interpreted in ASCII instead of
4549         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
4550         addressed in a more portable way by simply rewriting all the ASCII
4551         literal characters as octal escapes, but then you would lose the
4552         partial readability that the strings have now. Also, iconv_open()
4553         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
4555         c-strcase-tests, wcwidth-tests: port to EBCDIC
4556         * tests/test-c-strcasecmp.c: Include c-ctype.h.
4557         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
4558         * tests/test-wcwidth.c: Likewise.
4560 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4562         stdbool: don't require _Bool for C++
4563         Problem reported by David Seifert in:
4564         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
4565         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
4566         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
4567         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
4568         stricter about checking that bool and _Bool are compatible in C.
4570 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4572         getdelim: remove dependency on realloc-posix
4573         * lib/canonicalize-lgpl.c (alloc_failed)
4574         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
4575         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
4576         Use __set_errno where needed, for consistency.
4577         * lib/getdelim.c (alloc_failed): New function.
4578         (getdelim): Use it.
4580 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
4582         parse-datetime: add optional debug printing
4583         Print parsing information, warnings, and errors to stderr.
4584         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
4585         * lib/parse-datetime.y:
4586         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
4587         (PROGRESS*): Same as DEBUG, for progress reporting.
4588         (dbg_printf): Print message to stderr, with 'date' prefix.
4589         (struct parser_control): Add 'debug_*_seen' variables.
4590         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
4591         (debug_print_current_time, debug_print_relateive_time): Prints the
4592         current/relative date/time value of parser_control.
4593         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
4594         (to_year): Warn about 2-digit year parsing.
4595         (yylex):   Warn about unrecognized words.
4596         (get_effective_timezone): Returns current timezone in minutes.
4597         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
4598         clearly and unambigiously as possible.
4599         (debug_mktime_not_ok): Print detailed information about failed
4600         date/time values.
4601         (parse_datetime): Add DEBUG messages for failures, warnings. Add
4602         PROGRESS messages for status messages.
4603         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
4605 2016-08-06  Jim Meyering  <meyering@fb.com>
4607         tests/init.sh: exclude dash with bad "local" semantics
4608         * tests/init.sh (gl_shell_test_script_): Add a function to
4609         eliminate a shell like "dash" (unlike bash, zsh) that has
4610         surprising/risky "local var='...'" semantics.  Inspired by
4611         the problem and discussion in https://bugs.gnu.org/24116#11.
4613 2016-08-02  Ján Tomko  <jtomko@redhat.com>
4615         maint.mk: expand the prohibit_doubled_word regex
4616         This check has a static list of words that are checked for
4617         repetitions.  Expand it before running the perl script to
4618         avoid using expensive captures.  This decreases the cost
4619         for libvirt from 1.66s to 0.66s.
4620         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
4621         (sc_prohibit_doubled_word): Use it.
4623 2016-07-26  Ján Tomko  <jtomko@redhat.com>
4625         useless-if-before-free: skip non-matching lines early
4626         * build-aux/useless-if-before-free: First match each line with the
4627         simple/quick /\bif\b/ and reject if there is no match. This often
4628         saves the cost of the much more involved regular expression.
4629         For libvirt, this decreases the cost from 1.44s to 1.02s.
4631 2016-07-26  Ján Tomko  <jtomko@redhat.com>
4633         maint.mk: speed up sc_po_check
4634         sc_po_check would skip files based on their names, or on the
4635         existence of files with derived names. Rewrite it to use perl
4636         instead of shell to make the check faster.
4637         * top/maint.mk (perl_translatable_files_list_): Define.
4638         (sc_po_check): Use it.
4640 2016-07-30  Ján Tomko  <jtomko@redhat.com>
4642         maint.mk: speed up require_config_h_first
4643         Instead of spawning three processes per file,
4644         rewrite the check in perl and run it once for all the files.
4645         * top/maint.mk (perl_config_h_first_): Define.
4646         (sc_require_config_h_first): Use it in place of shell code.
4648 2016-07-26  Ján Tomko  <jtomko@redhat.com>
4650         maint.mk: speed up sc_po_check
4651         sc_po_check would skip files based on their names, or on the
4652         existence of files with derived names. Rewrite it to use perl
4653         instead of shell to make the check faster.
4654         * top/maint.mk (perl_translatable_files_list_): Define.
4655         (sc_po_check): Use it.
4657 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4659         obstack: pacify GCC 6 with -Wnull-dereference
4660         Problem reported by Assaf Gordon in:
4661         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
4662         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
4663         Declare with __attribute_noreturn__.
4664         * lib/obstack.h (__attribute_noreturn__): New macro.
4666 2016-07-13  Eric Blake  <eblake@redhat.com>
4668         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
4669         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
4670         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
4672 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
4674         doc: mention glibc SSIZE_MAX buglet
4675         * doc/posix-headers/limits.texi (limits.h): Document the bug.
4677 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
4679         printf-posix: Fix mingw build
4680         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
4681         expression for detecting C symbol prefixes but forgot to qoute square
4682         brackets in the command line arguments for grep.  That way when
4683         building with mingw the condition was false although it ought to be
4684         true instead.  In particular scenarios this led to the following
4685         compile error:
4687             Cannot export rpl_printf: symbol not found
4688             Cannot export rpl_scanf: symbol not found
4689             collect2: error: ld returned 1 exit status
4691         Fix this by properly quoting square brackets.
4693 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4695         mktime: call tzset as per POSIX
4696         Problem reported by Ludovic Courtès in:
4697         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
4698         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
4699         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
4701 2016-06-26  Pádraig Brady  <P@draigBrady.com>
4703         fts: handle readdir() errors
4704         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
4705         but also upon error when it will also set errno.  Therefore
4706         flag the error case from readdir().  We treat the case where
4707         no items are read the same as if the dir can't be accessed,
4708         i.e. by setting fts_errno to FTS_DNR.
4710 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4712         intprops: port better to GCC 7
4713         GCC 7 __builtin_add_overflow supports a new usage form, where the
4714         last argument is a null pointer, and which merely returns 1 if an
4715         overflow would occur.  This is a constant expression if all
4716         arguments are constants, and should generate faster code when code
4717         needs to be generated.
4718         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
4719         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
4720         Use builtin operations if available.
4721         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
4722         operations are available, as it's almost surely faster.
4724 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4726         intprops-test: port to GCC 6
4727         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
4728         since the bug is not fixed in GCC 6.1.
4730 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4732         xalloc-oversized: port to GCC 7; fewer warnings
4733         GCC 7 will have a better way to deal with integer overflow.
4734         Plus, fix a warnings problem reported by Tim Ruehsen in:
4735         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
4736         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
4737         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
4738         For GCC 5, use __xalloc_oversized if both args are constants,
4739         or if pedantic.
4741 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4743         regex: port to Sun C
4744         Reported by Daiki Ueno.
4745         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
4746         __restrict, in prototype.  This fixes a problem I introduced in
4747         the 2016-02-19 merge from glibc.
4749 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4751         stdbool: Restore __bool_true_false_are_defined check
4752         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
4753         __bool_true_false_are_defined is still defined, even with C++11.
4755 2016-05-31  David Seifert <soap@gentoo.org>  (tiny change)
4757         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
4758         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
4760 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
4762         Use GCC_LINT, not lint
4763         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
4764         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
4765         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
4766         Document problem with lint and _Noreturn.
4767         * lib/diffseq.h (IF_LINT, IF_LINT2):
4768         * lib/fts.c (sccsid):
4769         * lib/getndelim2.c (IF_LINT):
4770         * lib/gl_anylinked_list2.h (gl_linked_iterator)
4771         (gl_linked_iterator_from_to):
4772         * lib/gl_anytree_list2.h (gl_tree_iterator)
4773         (gl_tree_iterator_from_to):
4774         * lib/gl_anytree_oset.h (gl_tree_iterator):
4775         * lib/gl_array_list.c (gl_array_iterator)
4776         (gl_array_iterator_from_to):
4777         * lib/gl_array_oset.c (gl_array_iterator):
4778         * lib/gl_carray_list.c (gl_carray_iterator)
4779         (gl_carray_iterator_from_to):
4780         * lib/idcache.c:
4781         * lib/inet_ntop.c (IF_LINT):
4782         * lib/regcomp.c (build_charclass_op, create_tree):
4783         * lib/regex_internal.c (re_acquire_state)
4784         (re_acquire_state_context):
4785         * lib/trigl.c (rcsid):
4786         * lib/trim.c (IF_LINT):
4787         * lib/vasnprintf.c (IF_LINT):
4788         * lib/verify.h (assume):
4789         Treat GCC_LINT like lint.
4791 2016-05-29  Bruno Haible  <bruno@clisp.org>
4793         secure_getenv: Port to many more platforms.
4794         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
4795         functions.
4796         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
4797         for non-BSD Unix platforms and for native Windows.
4798         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
4799         Prompted by a request from Nikos Mavrogiannopoulos.
4801 2016-05-27  Eric Blake  <eblake@redhat.com>
4803         canonicalize: Fix broken probe for realpath.
4804         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
4805         in logic introduced in 54615b95.
4807 2016-05-26  Eric Blake  <eblake@redhat.com>
4809         unsetenv: relax to LGPLv2+
4810         * modules/unsetenv (License): Match setenv license.
4812 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
4814         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
4815         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
4816         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
4817         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
4818         (commonarg, dirargs, dirs, infoarg, generate_ascii)
4819         (generate_html, generate_info, generate_tex, outdir)
4820         (source_extra, split, srcfile, texarg): Move above 'version'.
4821         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
4823 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4825         manywarnings: update for GCC 6.1
4826         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
4827         Add GCC 6.1 options that apply to C.
4828         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
4829         do not apply to C, are obsolescent, etc.
4831 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
4833         glob: size_t overflow checks
4834         * lib/glob.c (__has_builtin): New macro.
4835         (size_add_wrapv, glob_use_alloca): New static functions.
4836         (glob, glob_in_dir): Check for size_t overflow in several places,
4837         and fix some size_t checks that were not quite right.
4839         glob: don't assume INT_MAX < SIZE_MAX
4840         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
4841         latter is not portable to (probably theoretical) hosts where
4842         SIZE_MAX <= INT_MAX.
4844 2016-05-09  Bruno Haible  <bruno@clisp.org>
4846         Fix undefined behaviour in gettext.h.
4847         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
4848         pointer's value after the storage it points to has been freed.
4849         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
4850         Spotted by Coverity.
4852 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4854         git-version-gen: avoid undefined shift
4855         Problem reported by Mosè Giordano in:
4856         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
4857         * build-aux/git-version-gen: Avoid undefined behavior if invoked
4858         with --prefix or --fallback but without a later argument.  While
4859         we're at it, omit unnecessary quotes.
4861 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4863         glob: merge glibc changes into lib/glob.c
4864         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
4865         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
4866         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
4867           struct dirent [BZ #19779]
4868         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
4869           callback gl_readdir
4870         2015-10-20 Convert miscellaneous function definitions to prototype style
4871         2015-10-20 Convert 113 more function definitions to prototype style
4872           (files with assertions)
4873         2015-06-12 Fix getlogin_r namespace (bug 18527).
4874         2014-02-10 Use glibc_likely instead __builtin_expect.
4875         2013-10-20 When glob pattern contains a trailing slash match only
4876           directories. Fixes bug 10278.
4877         2013-09-04 glob: silence -Wattribute warnings
4878         2013-06-07 Avoid use of "register" as optimization hint.
4879         2012-09-25 Use size_t instead of int for internal variables in glob
4880           (bug 14621)
4881         2011-07-20 Check for overflows in expressions
4882         2011-05-28 Remove unused variable
4883         2011-05-22 Add a few more alloca size checks
4884         2010-03-27 Whitespace fixes
4885         2010-03-27 Fix one more issue with the glob patch
4886         2010-03-24 Fix glob with empty pattern
4887         2008-05-27 Remove useless more "if" tests before "free"
4888         * modules/glob (Depends-on): Add stdint.
4890 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
4892         mktime: port to stricter signed overflow checking
4893         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
4894         (long_int): Require width for INT_MAX * 3 * (seconds per year),
4895         instead of merely for INT_MAX * 2.  In practice platforms that
4896         do the latter also do the former.
4897         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
4898         (shr): New static function, replacing SHR.  All uses changed.
4899         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
4900         and TIME_T_MAX.  All uses changed.
4901         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
4902         Use long_int, not time_t.
4903         (long_int_avg): New static function, replacing time_t_avg.
4904         All uses changed.  Round toward positive infinity, as that
4905         generates slightly better code.
4906         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
4907         by INT_ADD_WRAPV.
4908         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
4909         (convert_time): New static function.
4910         (ranged_convert): Use it
4911         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
4912         Use simpler test for loop exit.
4913         (__mktime_internal): Store negative of guessed offset, to simplify
4914         overflow checking.  Remove no-longer-needed test for small time_t
4915         overflows.
4917         mktime: speed up DEBUG_MKTIME benchmarks
4918         Call tzset just once, at the start, rather than for every test
4919         case.  This lets us measure the CPU cost of mktime as opposed to
4920         that of tzset.  This is relevant when TZ is not set and glibc is
4921         being used.  This speeds up tests by a factor of 40 on my Fedora
4922         23 x86-64 platform.
4923         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
4924         to call tzset and as a sanity check.  Later on, use localtime_r
4925         instead of localtime.
4927         mktime: resurrect DEBUG_MKTIME testing
4928         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
4929         Include <string.h>, for strcmp.
4931         mktime: simplify DEBUG_MKTIME
4932         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
4933         Simplify later usage accordingly.
4935         Port mktime_internal offset to unsigned time_t
4936         This avoids some assumptions about wraparound arithmetic on
4937         signed integer overflow.
4938         * lib/mktime-internal.h (mktime_offset_t): New type.
4939         (mktime_internal): Use it in decl.
4940         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
4942         * lib/mktime.c (__mktime_internal, localtime_offset):
4943         * lib/timegm.c (timegm): Use it.
4944         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
4945         (gl_FUNC_MKTIME): Require it.
4947 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
4949         xstrtol: prohibit monstrosities like "1bB"
4950         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
4951         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
4952         "B" only if the first suffix needs a base.
4953         * tests/test-xstrtol.sh: Test this.
4955 2016-04-21  Pádraig Brady  <P@draigBrady.com>
4957         xstrtod: reinstate setting of *result upon ERANGE
4958         * lib/xstrtod.c (XSTRTOD): The user may decide to use
4959         the returned limits upon ERANGE, so allow and document that.
4961 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
4963         xstrtod: modify *result only if no errors
4964         * lib/xstrtod.c (XSTRTOD).
4966 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
4968         btowc: document problems in C locale
4969         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
4970         with mbrtowc.  See: http://bugs.gnu.org/23269#32
4972 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
4974         mktime: improve integer overflow checking
4975         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
4976         (WRAPV): Remove; no longer needed.
4977         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
4978         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
4979         Remove.  Use intprops.h defns instead.
4980         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
4981         Use bool for Boolean, for clarity.
4982         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
4983         detect integer overflow.
4984         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
4986         intprops: check two's complement assumption
4987         Suggested by Eric Blake in:
4988         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
4989         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
4990         short, int, long, and (if available) long long are two's complement.
4991         * modules/intprops (Depends-on): Add 'verify'.
4993         intprops, mktime, strtol: assume two's complement
4994         These macros were not portable to every conforming C11 ones'
4995         complement platform.  It's not worth the hassle of porting to some
4996         platforms that use ones' complement or signed magnitude, as such
4997         platforms are almost purely theoretical nowadays and porting even
4998         to some of them makes the code harder to review for little
4999         practical benefit.  Problem reported by Florian Weimer in:
5000         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
5001         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
5002         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
5003         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
5004         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
5005         (TYPE_SIGNED_MAGNITUDE):
5006         Remove.  All uses rewritten to assume two's complement, which is
5007         all we can reasonably test nowadays anyway.
5008         * top/maint.mk (_intprops_names): Remove the removed macros.
5010 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5012         stdint: port to strict C11 left shift
5013         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
5014         Pacify clang -Wshift-negative-value, which should be an issue only
5015         on clang setups where stdint.h does not conform to C11 or to C++11.
5016         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
5018 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
5020         mbrtowc: work around glibc bug#19932
5021         Fix mbrtowc so that it never returns -1 in the C locale,
5022         as this conflicts with a future version of POSIX
5023         http://austingroupbugs.net/view.php?id=663#c2738
5024         and causes problems with GNU grep: http://bugs.gnu.org/23234
5025         See glibc bug 19932:
5026         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
5027         * doc/posix-functions/mbrlen.texi (mbrlen):
5028         * doc/posix-functions/mbrtowc.texi (mbrtowc):
5029         Document the glibc bug.
5030         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
5031         Include hard-locale.h, locale.h.
5032         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
5033         if the bug is possible.
5034         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
5035         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
5036         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
5037         * modules/mbrtowc (Depends-on): Add hard-locale.
5038         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
5039         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
5040         * tests/test-mbrtowc5.sh: New file.
5042 2016-04-03  Pedro Alves  <palves@redhat.com>
5044         stdint: detect good enough pre-C++11 stdint.h in C++ mode
5045         When gnulib is configured in C++ mode for a system with a working C99
5046         implementation of stdint.h that predates C++11, gnulib ends up
5047         substituting stdint.h anyway.  This works on most targets, but on e.g.,
5048         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
5049         MinGW is LLP64.  Instead of trying to detect the right types, detect
5050         good-enough-pre-C++11 stdint.h and in such case define
5051         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
5052         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
5053         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
5054         conforms to C99.  If it does, check whether it hides symbols
5055         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
5056         does, define those macros in config.h.
5058 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
5060         argp: merge changes from glibc
5061         Among other things, this should fix problems found by a Coverity
5062         scan and reported by Andrei Borzenkov:
5063         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
5064         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
5065         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
5066         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
5067         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
5068         * lib/argp.h:
5069         Merge changes from glibc.
5070         * tests/test-argp-2.sh: Adjust to match new behavior.
5072 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
5074         stddef: support configuring with g++
5075         Problem reported by Ángel González in:
5076         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
5077         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
5078         Do not define if _GCC_MAX_ALIGN_T is defined.
5080 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5082         test-framework-sh: minor cleanups
5083         * tests/init.sh (testdir_prefix_): Output a trailing newline,
5084         since strictly speaking POSIX requires this.
5085         (setup_): Do not use the variable 'fail', as that makes the
5086         trace output harder to read ('fail' is typically used by
5087         tests to mean the test failed).  Treat // portably.
5088         Check that new directory is not merely a sibling of the tmp dir.
5089         Avoid unnecessary invocation of tr.
5091         test-framework-sh: revert port to NetBSD 7.0
5092         It was a false alarm; I misinterpreted Assaf Gordon's report.
5093         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
5094         Restore.
5095         (test_dir_): Adjust to mktempd_ change.
5096         (mktempd_): Restore 2nd arg.  Use -t again.
5097         (base_template_, template_, nx_): Resurrect old code.
5099         Port better to Alpine Linux
5100         Its diff implementation does not support -c, but does support -U3.
5101         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
5102         * tests/init.sh (diff_opt_): New var.
5103         (compare_): Prefer diff -U3 to diff -c to plain diff.
5105 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5107         test-framework-sh: port to NetBSD 7.0
5108         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
5109         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
5110         Remove.  All uses removed.
5111         (test_dir_): Adjust to mktempd_ change.
5112         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
5113         (base_template_, template_, nx_): Simplify by hardcoding.
5115 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5117         gitlog-to-changelog: suppress ignored chatter
5118         * build-aux/gitlog-to-changelog: Do not warn about skipping
5119         an SHA if it would have been ignored anyway.
5121 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
5123         setlocale: add "sv" to Windows language table
5124         * lib/setlocale.c (language_table) [W32]: Add "sv".
5125         Reported in <https://savannah.gnu.org/bugs/?44588>.
5127 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5129         sys_select: port to new Cygwin
5130         Problem reported by Ken Brown in:
5131         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
5132         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
5133         diagnostics.
5135 2016-03-17  Jim Meyering  <meyering@fb.com>
5137         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
5138         * tests/test-userspec.c (main): Remove unnecessary braces and fix
5139         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
5140           test-userspec.c:176:9: error: statement is indented as if it were \
5141             guarded by... [-Werror=misleading-indentation]
5142                    {
5143                    ^
5144           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
5145                  if (!diag && !T[i].result)
5146                  ^~
5148 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
5150         time_rz: port to clang -Wunused-const-variable
5151         * lib/time_rz.c (TZ): Remove.  All uses removed.
5153         std-gnu11: improve clang support
5154         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
5155         2016-03-15 Also try clang
5156         2016-03-15 Port C11 and C++11 testing to clang
5158         select: port more to Intel 2016.1.150 compiler
5159         Problem reported by Balázs Hajgató in:
5160         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
5161         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
5163 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5165         select: try to port to 2016.1.150 compiler
5166         Problem reported by Balázs Hajgató in:
5167         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
5168         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
5169         POSIX specifies 'restrict'.
5171 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
5173         localename-tests: memory allocation fixes
5174         * tests/test-localename.c (test_locale_name)
5175         (test_locale_name_thread): Don't call freelocale on a locale
5176         that was the base of a successful newlocale, as that
5177         results in a double free.  Problem reported by Assaf Gordon.
5178         (test_locale_name_thread): Free saved names after use, to pacify
5179         gcc -fsanitize=address.
5181 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5183         intprops: make .h file license match module
5184         * lib/intprops.h: Change the license wording to match glibc format.
5185         This is what is in modules/intprops anyway.  See:
5186         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
5188 2016-03-08  Eric Blake  <eblake@redhat.com>
5190         acl: fix missing return on Cygwin
5191         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
5192         fall off end of function. Fixes http://bugs.gnu.org/22949
5194 2016-03-05  Bruno Haible  <bruno@clisp.org>
5196         extern-inline: port to PGI CC
5197         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
5198         keyword 'inline'.
5199         Reported by Adam James Stewart in:
5200         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
5202 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5204         signbit: port back to pre-C++11 GCC
5205         * lib/math.in.h (signbit): Do previous change only if
5206         __cplusplus < 201103.  See Jonathan Wakely in:
5207         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
5209 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
5211         mountlist: recognize autofs-mounted remote file systems, too
5212         Originally reported at: https://bugzilla.redhat.com/1309247
5213         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
5214         "-hosts" because it is used by autofs to mount remote file systems.
5216 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5218         signbit: port to C++ with GCC 6
5219         * lib/math.in.h (signbit) [__cplusplus]:
5220         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
5221         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
5223         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
5225         regex: make it closer to libc
5226         Make Idx a signed type, rather than possibly unsigned.
5227         The unsignedness was not really buying us anything, since the code
5228         overflows for other reasons before getting to PTRDIFF_MAX.  Making
5229         it signed allows us to use -1 and -2 with abandon, like libc does,
5230         thus lessening the number of differences between gnulib and libc.
5231         Also, it should help avoid gratuitous warnings like the one
5232         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
5233         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
5236         regex: merge patches from libc
5238         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
5239         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
5240         Convert miscellaneous function definitions to prototype style.
5241         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
5242         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
5243         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
5244         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
5245         (re_search_internal):
5246         Convert to prototype-style function definition.
5247         Use internal_function for internal functions.
5249 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
5251         stdalign: port to older HP and IBM cc
5252         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
5253         C compilers, by checking their version numbers.  These version
5254         numbers appear in MariaDB and in Qt code that dates way back and
5255         that conditiionally uses the 'aligned' attribute.
5257 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5259         stdalign: port to clang 3.7.0
5260         Problem reported by Herbert J. Skuhra in:
5261         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
5262         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
5263         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
5264         https://llvm.org/bugs/show_bug.cgi?id=26547
5266 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5268         readdir_r: now obsolescent
5269         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
5270         * lib/mountlist.c (read_file_system_list): Add a FIXME.
5272 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5274         misc: port better to gcc -fsanitize=address
5275         Without these patches, ./configure CFLAGS='-fsanitize=address'
5276         would compute incorrect values.  This patch fixes some (but not all)
5277         test failures with recent glibc, with this configuration.
5278         * m4/acl.m4 (gl_ACL_GET_FILE):
5279         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
5280         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
5281         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
5282         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
5283         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5284         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5285         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
5286         * m4/getline.m4 (gl_FUNC_GETLINE):
5287         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
5288         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
5289         * m4/regex.m4 (gl_REGEX):
5290         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5291         * tests/test-calloc-gnu.c (main):
5292         * tests/test-duplocale.c (main):
5293         * tests/test-getgroups.c (main):
5294         * tests/test-getline.c (main):
5295         * tests/test-inttostr.c (main):
5296         * tests/test-localename.c (test_locale_name)
5297         (test_locale_name_thread, test_locale_name_environ)
5298         (test_locale_name_default):
5299         * tests/test-regex.c (main):
5300         * tests/test-setlocale1.c (main):
5301         * tests/test-stat.h (test_stat_func):
5302         Free heap-allocated storage before exiting.
5303         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
5304         Don't match *_foo symbols inserted by AddressSanitizer.
5305         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
5307 2016-02-02  Jim Meyering  <meyering@fb.com>
5309         verify-tests: also remove stray test-verify.Tpo
5310         * modules/verify-tests (Makefile.am): Arrange for "make clean"
5311         to remove the test-verify.Tpo file that is left behind by
5312         the automake-generated rule upon compilation failure.
5313         Otherwise, that .Tpo file would cause a failed "make distcheck"
5314         at least for grep.
5316 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5318         std-gnu11: new module
5319         This makes it easier for applications to prefer C11 and C++11
5320         to older variants, when compiling C and C++ code.
5321         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
5322         a nontrivial chunk of GPLed Autoconf source code.
5323         * COPYING: Mention the m4/*.m4 copyright situation.
5324         * MODULES.html.sh (std-gnu11): New module.
5325         * m4/std-gnu11.m4, modules/std-gnu11: New files.
5327 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5329         get-permissions, strftime: fix grammar in comments
5330         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
5331         some grammar fixes Alan Mackenzie made to GNU Emacs.
5333 2016-01-25  Daiki Ueno  <ueno@gnu.org>
5335         gettext: mark as obsolete
5336         Suggested by Paul Eggert in:
5337         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
5338         * modules/gettext (Status): Mark as obsolete.
5339         (Notice): Suggest to use 'gettext-h' instead.
5340         * modules/gettext-h (Description): Suggest GNU gettext, instead of
5341         the 'gettext' module.
5343 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5345         gnulib-tool: don't give up on ln -s so easily
5346         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
5347         because an earlier one failed.  The targets could be on different
5348         file systems.  Problem reported by KO Myung-Hun in:
5349         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
5351         closedir: fix OS/2-related typos
5352         Problem reported by KO Myung-Hun in:
5353         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
5354         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
5355         in the last couple of changes.
5357 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
5359         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
5360         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
5361         copying a directory.
5363 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5365         regex: treat [x] as x if x is a unibyte encoding error
5366         Problem reported by Aharon Robbins in:
5367         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
5368         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
5369         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
5371         closedir, dirfd, opendir: port to OpenSolaris 5.10
5372         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
5373         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5374         * m4/opendir.m4 (gl_FUNC_OPENDIR):
5375         Don't use ${word##pat} substitution, as it doesn't work in
5376         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
5377         http://bugs.gnu.org/22443#11
5379 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5381         bootstrap: use American spelling
5382         * build-aux/bootstrap: Honor American spelling.
5384 2016-01-22  Karl Berry  <karl@freefriends.org>
5386         * doc/posix-functions/localtime.texi,
5387         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
5389 2016-01-21  Bruno Haible  <bruno@clisp.org>
5391         hash-pjw-bare: fix comment
5392         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
5394         wcwidth: Replace also on OpenBSD 5.8
5395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
5396         * doc/posix-functions/wcwidth.texi: Update.
5398 2016-01-20  Pádraig Brady  <P@draigBrady.com>
5400         gnu-web-doc-update: fix addition of new files
5401         If there were already added (emnpty) dirs,
5402         then cvs aborts the add with the message:
5403           cvs [add aborted]: there is a version in <./dirname> already
5404         * build-aux/gnu-web-doc-update: Add directories separately
5405         to the addition of files, to avoid the above issue
5406         impacting the addition of files.
5408 2016-01-19  Daiki Ueno  <ueno@gnu.org>
5410         utimens-tests: avoid pulling gettext .m4 files
5411         Although this is not the right fix to the original problem:
5412         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
5413         it makes it possible again for consumer projects to use arbitrary
5414         version of gettext, through the steps described at:
5415         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
5416         See here for details:
5417         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
5418         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
5419         'gettext'.
5420         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
5421         'gettext'.
5423 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5425         regex: pacify static checkers
5426         Problem and draft fix reported by Aharon Robbins in:
5427         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
5428         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
5429         Clear memory to pacify static checkers.
5431         regex: fix [ diagnostic
5432         Problem and fix reported by Aharon Robbins in:
5433         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
5434         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
5436         regex: fix memory leaks
5437         Problem and draft fix reported by Aharon Robbins in:
5438         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
5439         * lib/regcomp.c (build_range_exp, build_charclass_op)
5440         * lib/regex_internal.c (re_dfa_add_node):
5441         Fix memory leak on failure.
5443 2016-01-18  Pádraig Brady  <P@draigBrady.com>
5445         fts: don't unconditionally use leaf optimization for NFS
5446         NFS st_nlink are not accurate on all implementations,
5447         leading to aborts() if that assumption is made.
5448         See <https://bugzilla.redhat.com/1299169>
5449         * lib/fts.c (leaf_optimization_applies): Remove NFS from
5450         the white list, and document the issue.
5452 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5453             KO Myung-Hun  <komh@chollian.net>
5455         gnulib-tool: don't assume ln -s works
5456         * gnulib-tool (func_ln_s): New function.
5457         (func_ln): Use it.
5459 2016-01-15  KO Myung-Hun  <komh@chollian.net>
5461         utimes: detect utimes() correctly on OS/2 kLIBC
5462         utimes() of OS/2 kLIBC has some limitations.
5463         1. OS/2 itself supports a file date since 1980 year in local time.
5464         2. OS/2 itself supports only even seconds for a file time.
5465         3. utimes() of OS/2 kLIBC does not work on an opened file.
5466         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
5467         * doc/posix-functions/utimes.texi: Document the above limitations of
5468         utimes() on OS/2 kLIBC.
5470 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5471             KO Myung-Hun  <komh@chollian.net>
5473         openat_proc_name: port to OS/2 kLIBC
5474         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
5475         instead of /proc/self/fd.
5476         * lib/openat-proc.c (openat_proc_name):
5477         Don't assume file name length is less than INT_MAX.
5478         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
5480 2016-01-14  KO Myung-Hun  <komh@chollian.net>
5482         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
5483         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
5484         definitions of intptr_t and uintptr_t (which use int and unsigned)
5485         to avoid clashes with declarations of system functions like sbrk.
5486         * lib/stdint.in.h (intptr_t, uintptr_t): Check
5487         _INTPTR_T_DECLARED before defining them.
5489         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
5490         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
5491         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
5492         Declare on kLIBC.
5493         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
5494         fd associated with dirp.
5495         (_gl_register_dirp_fd): New. Register fd associated with dirp to
5496         dirp_fd_list.
5497         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
5498         (dirfd): Implemented for kLIBC.
5499         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
5500         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
5501         succeeds.
5502         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
5503         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5504         (REPLACE_DIRFD): Define to 1 if replaced.
5505         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
5506         * modules/closedir (Depends-on): Add dirfd.
5507         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
5508         condition.
5509         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
5510         * modules/opendir (Depends-on): Add dirfd.
5512         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
5513         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
5514         * lib/dup.c (dup_nothrow): New.
5515         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
5516         (klibc_dup2): New.
5517         * lib/fcntl.c (klibc_fcntl): New.
5518         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
5519         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
5520         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
5521         fd.
5523         pipe_filter_ii_execute: port to OS/2 kLIBC
5524         Pipes on kLIBC do not support O_NONBLOCK like Win32.
5525         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
5526         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
5527         Reuse Win32 code on OS/2 kLIBC.
5528         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
5529         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
5531         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
5532         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
5533         static inline function.  The implementation of wcwidth in wcwidth.c
5534         causes a "conflicting types" error.
5535         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
5537         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
5538         spawn() on OS/2 kLIBC is not silly like one on Windows
5539         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
5540         empty string on OS/2 kLIBC.
5542         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
5543         On OS/2 kLIBC, select() works only on sockets.
5544         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
5546         binary-io: don't put fd in binary mode if it is a console on EMX
5547         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
5548         a console on EMX.
5550 2016-01-15  Pádraig Brady  <P@draigBrady.com>
5552         doc: mention unfixed issues with unsupported localtime() values
5553         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
5554         returns nonsense for localtime(2^56).
5555         * doc/posix-functions/localtime_r.texi: Likewise.
5557 2016-01-14  Pádraig Brady  <P@draigBrady.com>
5559         doc: mention setlocale() issues on OpenBSD
5560         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
5561         never fails, and the need to check categories individually.
5563 2016-01-14  Pádraig Brady  <P@draigBrady.com>
5565         sig2str: list all signals on FreeBSD >= 7
5566         FreeBSD >= 7 is contravening POSIX by not defining NSIG
5567         to the maximal statically defined signal value.
5568         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
5569         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
5570         where available, even when NSIG is defined.
5572 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
5574         acl-permissions: port to USE_ACL==0 platforms
5575         I ran into this problem when building bleeding-edge GNU Emacs
5576         with gcc -fsanitize=address on Fedora 23.  On this platform
5577         the ACL library does not pass the 'configure' test and Emacs
5578         then does not build due in part to what appear to be typos in the
5579         ACL part of Gnulib.
5580         * lib/acl-internal.c (free_permission_context):
5581         * lib/acl-internal.h (struct permission_context):
5582         Test whether USE_ACL is nonzero, not whether it is defined.
5584 2016-01-12  Martin Sebor  <msebor@redhat.com>
5586         mktime: rename macro to avoid glibc clash
5587         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
5588         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
5590 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
5592         Port "$@" to OpenIndiana ksh93
5593         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
5594         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
5595         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
5596         bug long-dead shells, so remove the workaround.
5597         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
5598         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
5599         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
5600         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
5601         Use "$@" instead of ${1+"$@"}.
5603         Port Universal Time settings to strict POSIX
5604         * build-aux/announce-gen, build-aux/bootstrap:
5605         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
5606         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
5607         * build-aux/gnupload, build-aux/mkinstalldirs:
5608         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
5609         * build-aux/update-copyright, build-aux/useless-if-before-free:
5610         * build-aux/vc-list-files, tests/test-strftime.c:
5611         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
5612         but POSIX says the behavior of TZ="UTC" is undefined.
5614 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5616         msvc-inval: fix problem with unset shell var
5617         Problem reported by Karl Berry in:
5618         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
5619         * modules/msvc-inval (Depends-on):
5620         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
5621         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
5623 2016-01-01  Pádraig Brady  <P@draigBrady.com>
5625         tests: for compare_(), use cmp -s where available
5626         * tests/init.sh (compare_): Only fall back to cmp without
5627         the POSIX defined -s option, where this is not available.
5629 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5631         version-etc: new year
5632         * build-aux/gendocs.sh (version):
5633         * doc/gendocs_template:
5634         * doc/gendocs_template_min:
5635         * doc/gnulib.texi:
5636         * lib/version-etc.c (COPYRIGHT_YEAR):
5637         Update copyright dates by hand in templates and the like.
5638         * all files: Run 'make update-copyright'.
5640 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5642         human: fix output buffer overrun by 1
5643         * lib/human.c (human_readable): Fix off-by-one typo in buffer
5644         calculation that could lead to a one-byte buffer overrun.
5646 2015-12-28  Daiki Ueno  <ueno@gnu.org>
5648         maint: fix operator precedence in mbrtowc test
5649         This is a fix for test breakage introduced by commit 45228d96; the
5650         equality expression must be parenthesized when negated with '!',
5651         otherwise we always get:
5653           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
5655         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
5656         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
5658 2015-12-23  James Youngman  <jay@gnu.org>
5660         regexprops-generic: update from regex.h
5661         * doc/regexprops-generic.texi: update by running the regexprops binary
5662         from findutils (the command line is 'regexprops "Regular Expressions"
5663         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
5664         gnulib with GNU grep had made this document out-of-date.
5666 2015-12-23  Pádraig Brady  <P@draigBrady.com>
5668         strftime-tests: avoid false failure on OS X
5669         * tests/test-strftime.c (struct localtime_rz_test): Add an
5670         ahistorical member which is used to warn rather than fail
5671         when tm_isdst isn't set for such entries.  This is the case for
5672         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
5674 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
5676         fts: ensure leaf optimization is used for NFS
5677         NFS provides usable dirent.d_type but not necessarily for all entries
5678         of large directories.  See <https://bugzilla.redhat.com/1252549>
5679         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
5681 2015-12-20  Pádraig Brady  <P@draigBrady.com>
5683         fts: enable leaf optimization for XFS
5684         XFS provides usable dirent.d_type only for DT_DIR,
5685         but the noleaf optimization still applies.
5686         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
5688 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
5690         intprops: comment fix
5691         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
5692         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
5694         intprops-test: work around GCC bug 68971
5695         Problem reported by Pádraig Brady in:
5696         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
5697         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
5698         (main): Add a case that better tests 64-bit long in this area.
5700 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
5702         gnulib-tool: allow multiple --local-dir usage
5703         * gnulib-tool: Use --local-dir to construct compound
5704         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
5705         PATH_SEPARATOR early.
5706         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
5707         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
5708         func_determine_path_separator because that needs to be detected
5709         earlier now.
5710         (func_determine_path_separator): New function.
5711         (func_path_foreach, func_path_foreach_inner): New functions.
5712         (func_path_prepend, func_path_append): Likewise.
5713         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
5714         (func_lookup_file, func_all_modules): Use new functions to work
5715         with local_gnulib_path.
5716         (func_modules_in_dir, func_exists_module): New callbacks for
5717         func_path_foreach.
5718         (func_exists_module, func_get_tests_module): Likewise.
5719         (func_is_local_file, func_should_symlink): New helper methods.
5720         (func_add_file, func_update_file): Use new func_should_symlink
5721         instead, DRY.
5722         (func_reconstruct_cached_local_gnulib_path): New helper.
5723         (func_reconstruct_cached_dir): New callback.
5724         (func_import): The cached_local_gnulib_dir renamed to
5725         cached_local_gnulib_path similarly to local_gnulib_dir.
5726         Use new func_reconstruct_cached_local_gnulib_path.
5727         (func_count_relative_local_gnulib_path): New sub-method.
5728         (func_create_testdir): Use func_should_symlink, DRY.
5729         (func_create_megatestdir): Use new functions to work with
5730         local_gnulib_path correctly.
5731         (func_append_local_dir): New helper.
5733 2015-12-08  Pádraig Brady  <P@draigBrady.com>
5735         fix freadptr to work with ungetc on all uClibc configs
5736         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
5737         where GNU coreutils cut(1) generates invalid output on uClibc
5738         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
5739         * lib/freadptr.c (freadptr): Return NULL if there are
5740         ungotten chars.  In this case freadseek() will iterate
5741         again to process the ungotten character.
5743 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
5745         xalloc-oversized: improve performance with GCC 5
5746         * lib/xalloc-oversized.h (xalloc_oversized):
5747         Improve performance with GCC 5 by using __builtin_mul_overflow.
5749 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
5751         intprops: new public macro EXPR_SIGNED
5752         Emacs can use this macro, so make it public.
5753         * doc/intprops.texi (Arithmetic Type Properties): Rename from
5754         'Integer Type Determination', since some of these macros apply
5755         to non-integer types.  Clarify what kinds of constant expressions
5756         these macros return.  Say when the arguments can be non-integers.
5757         Mention newly published macro EXPR_SIGNED.
5758         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
5759         make it public.  All uses changed.
5761         intprops: fix typo in clang port
5762         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
5763         '__builtin_add_overflow' that is not caught by compiler.
5765 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5767         test-timespec: fix typo in previous change
5768         * tests/test-timespec.c (main): Fix typo that reduced test quality.
5770         timespec-sub: fix overflow bug; add tests
5771         * lib/timespec-add.c (timespec_add):
5772         * lib/timespec-sub.c (timespec_sub):
5773         Work even if time_t is narrower than int (a theoretical
5774         possibility).  Redo code for a bit more clarity.
5775         * lib/timespec-sub.c (timespec_sub):
5776         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
5777         * modules/timespec-tests, tests/test-timespec.c: New files.
5779         intprops-test: suppress -Woverlength-strings
5780         Problem reported by Pádraig Brady in:
5781         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
5782         It is not worth the hassle to port this test to compilers that
5783         cannot handle long strings in diagnostics.
5784         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
5786 2015-11-03  Pádraig Brady  <P@draigBrady.com>
5788         quotearg: add quotearg_n_style_colon()
5789         This quotes with default options of the specified style,
5790         but with quoting enabled for instances of ':'.
5791         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
5792         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
5794 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5796         intprops: revise _WRAPV macros, revert _OVERFLOW
5797         The incompatible changes to the _OVERFLOW macros were too much of
5798         a hassle in practice, so revert them.  Instead, change the new
5799         _WRAPV macros to make them closer in behavior to GCC 5's new
5800         builtin_add_overflow etc. functions.  No other software was using
5801         these newly-added macros yet, so this should be OK.
5802         * NEWS: Revert previous change, since the incompatible change
5803         has been reverted, and nobody used the incompatible version.
5804         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
5805         Document revised behavior.
5806         (Integer Range Overflow): Adjust example to match above revisions.
5807         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
5808         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
5809         these can be used in integer constant expressions again.
5810         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
5811         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
5812         needed.
5813         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
5814         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
5815         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
5816         Remove, as they did not seem that useful.
5817         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
5818         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
5819         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5820         Support new semantics.
5821         (__has_builtin): New macro, if not alreay defined.
5822         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
5823         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
5824         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
5825         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
5826         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
5827         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
5828         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
5829         New macros.
5830         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
5832 2015-11-03  Jim Meyering  <meyering@fb.com>
5834         intprops: add parentheses for when OP has precedence lower than "-"
5835         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
5836         "a OP b" must be parenthesized for when OP is like "<<", which has
5837         lower precedence than the following "-". Reported by Pádraig Brady.
5839 2015-11-03  Pádraig Brady  <P@draigBrady.com>
5841         quotearg: constify get_quoting_style parameters
5842         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
5843         * lib/quotearg.c (get_quoting_style): Likewise.
5845 2015-11-02  Pádraig Brady  <P@draigBrady.com>
5847         quotearg: add support for $'' shell escaping
5848         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
5849         items and descriptions.
5850         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
5851         above types by quoting like "shell", but using $'...' syntax
5852         for non printable characters, which should provide unambiguous
5853         printable output for any input.
5854         * tests/test-quotearg-simple.c: Update accordingly.
5856 2015-11-02  Pádraig Brady  <P@draigBrady.com>
5858         maint: use a more standard return from mbrtowc test
5859         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
5860         from the test program as this is non standard and often
5861         indicates an unhandled case in the test program.
5862         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
5864 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
5866         intprops: add WRAPV and const flavors for GCC 5
5867         If available, use GCC 5's builtin functions for efficient integer
5868         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
5869         and safely compute the low-order bits of the correct answer.
5870         A downside of these efficient functions is that they cannot be
5871         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
5872         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
5873         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
5874         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
5875         Document the changes.
5876         (Wraparound Arithmetic): New section.
5877         (Integer Range Overflow):
5878         Put this subsection last, since it's least useful.
5879         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
5880         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
5881         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
5882         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
5883         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
5884         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
5885         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
5886         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
5887         New macros.
5888         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5889         Generate calls to GCC builtins if available, for speed.
5890         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
5891         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
5892         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
5893         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
5894         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
5895         (CHECK_QUOTIENT, CHECK_REMAINDER):
5896         Test WRAPV and CONST flavors (when available) too.
5898 2015-10-30  Pádraig Brady  <P@draigBrady.com>
5900         doc: use extended timezone format in iso-8601 example
5901         * doc/parse-datetime.texi: The standard states that extended format
5902         is to be used consistently throughout.
5903         Note that lib/parse-datetime.y can handle either tz format.
5905 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5907         stdalign: port to Sun C 5.9
5908         * doc/posix-headers/stdalign.texi: Document this.
5909         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
5910         __attribute__ ((__aligned__ (...))).
5912 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
5914         time_rz: fix comment about tzalloc
5915         * lib/time_rz.c (tzalloc): Fix comment.
5917 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5919         stdalign: work around pre-4.9 GCC x86 bug
5920         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
5921         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
5922         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
5924 2015-10-18  Pádraig Brady  <P@draigBrady.com>
5926         maint.mk: sc_tight_scope: remove extraneous expressions
5927         * top/maint.mk (tight_scope): This is not really required since
5928         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
5929         that matches all nm entries.  But it does remove extraneous entries
5930         that may be confusing or cause issue in future maintenance.
5932 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5934         time_rz: return NULL if localtime_r fails
5935         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
5936         while still attempting to pacify bleeding-edge GCC.
5938         fts: port to C11 alignof
5939         * doc/posix-headers/stdalign.texi (stdalign.h):
5940         Document the C11 restriction.
5941         * lib/fts.c: Include stddef.h, for max_align_t.
5942         (fts_alloc): Align using max_align_t, not FTSENT.
5943         * modules/fts (Depends-on): Add stddef.
5945 2015-10-18  Jim Meyering  <meyering@fb.com>
5947         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
5948         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
5949         would see this:
5951         lib/time_rz.c: In function 'localtime_rz':
5952         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
5953           [-Werror=nonnull]
5954                    if (tm && !save_abbr (tz, tm))
5955                        ^
5957         That was complaining about "tm" because it is a parameter that was
5958         declared with the __nonnull__ attribute.
5959         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
5960         result of localtime_r.
5962 2015-10-17  Jim Meyering  <meyering@fb.com>
5964         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
5965         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
5966         name-extraction regexp mistakenly used \S+, and would mistakenly
5967         extract "*F" from "extern int *F()" rather than the desired "F".
5968         Use \w+ instead.
5970 2015-10-17  Jim Meyering  <meyering@fb.com>
5972         maint.mk: sc_tight_scope: factor and support OS X
5973         * top/maint.mk (_gl_tight_scope): Address three issues:
5974         - factor out four instances of code that wraps a string in "^...$"
5975         - allow nm-reported symbol names to have an optional leading "_"
5976         - add "main" to the list of ignored variable names, because on os x,
5977         "main" has nm-reported type "S" in the variable-checking section.
5979 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
5981         safe-alloc-tests: fix typo in license header
5982         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
5984 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
5986         copy-file: fix mem leak in error case
5987         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
5988         upon error opening or performing I/O to the src and dest files.
5990 2015-10-15  Mike Frysinger  <vapier@chromium.org>
5992         localename: control langinfo.h inclusion
5993         This header is only used to work around buggy behavior in old
5994         versions of glibc, so do not include it all the time.  Otherwise
5995         we get build failures on systems that do not provide langinfo.h.
5996         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
5997         in the source later on.
5998         The patch was originally submitted to gettext as:
5999         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
6001 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6003         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
6004         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
6005         * lib/u64.c, lib/unistd.c:
6006         Append 'typedef int dummy;', to pacify compilers that are picky
6007         about empty translation units.
6009 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
6011         accept4-tests: fix to avoid non portable flags
6012         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
6013         as they are the only documented ones, and passing others may trigger
6014         EINVAL (seen on FreeBSD 10.1-RELEASE).
6015         * doc/glibc-functions/accept4.texi: Mention that we don't provide
6016         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
6018 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
6020         gnulib-tool: fix tests of 'extensions' module
6021         This complements f8fe25fab60e3c687a124 commit.
6022         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
6023         emitting of initial gl_EARLY macros.
6024         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
6025         replaced with func_emit_pre_early_macros call.
6027 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
6029         unicase/locale-language: fix typo in utf-8 cookie
6030         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
6031         Problem reported by Zbigniew Jędrzejewski-Szmek.
6033 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
6035         xalloc: do not worry about GCC 5 warning on 32 bit
6036         * lib/xalloc.h: Revert previous change.
6037         I found a better way to fix this in coreutils.
6039 2015-10-02  Pádraig Brady  <P@draigBrady.com>
6041         xalloc: avoid GCC 5.1 warning on 32 bit
6042         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
6043         xalloc_oversized(), which was seen to give this warning
6044         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
6045         when simplifying conditional".
6047 2015-10-02  Daiki Ueno  <ueno@gnu.org>
6049         uniname/uniname-tests: avoid compiler warnings
6050         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
6051         unused local variables.
6052         (test_alias_lookup): Fix alias name display in failure cases.
6054 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6056         c-ctype: do not worry about EBCDIC + char signed
6057         Drop support for EBCDIC with char being signed, as this breaks too
6058         many programs.  Problem reported by Ben Pfaff in:
6059         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
6060         * lib/c-ctype.h: Verify that we are not using EBCDIC with
6061         char being signed.
6062         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
6063         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
6064         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
6065         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
6066         * tests/test-c-ctype.c (test_all):
6067         Simplify by assuming standard char values cannot be negative.
6068         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
6070 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6072         c-ctype: port better to z/OS EBCDIC
6073         Problems reported by Daniel Richard G. in:
6074         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
6075         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
6076         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
6077         (_C_CTYPE_OTHER_CNTRL): New macro.
6078         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
6079         from SCHAR_MIN, as the functions are defined only from values
6080         promoted from char or from unsigned char, not necessarily from
6081         signed char.
6083 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
6085         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
6087         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
6088         and ARFLAGS variables.  Doing this unconditionally could break
6089         later Automake's AM_PROG_AR invocation (at least it's
6090         AC_CHECK_TOOLS call to detect correct 'ar' binary).
6092         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
6093         Amsterdam Compiler Kit, so make the previous code to have effects
6094         only on ACK, and rather automatically call the Automake's
6095         AM_PROG_AR as soon as possible to decide other cases.
6097         References:
6098         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
6100         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
6101         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
6102         is possible, keep setting AR/ARFLAGS to reasonable defaults.
6103         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
6104         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
6105         'extensions' module is used.
6106         * modules/extensions (configure.ac-early): Remove as this snippet
6107         is added to gnulib-comp.m4 earlier anyway.
6109 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6111         sockets: MS Windows initalization fixes
6112         Problem reported by Test User in:
6113         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
6114         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
6115         Correct the endianness.
6116         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
6117         number mismatch, not just on <.  Cleanup before any such failure.
6119 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
6121         gc: fix detection of installed libgcrypt version
6122         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
6123         at least as recent as 1.4.4.  The previously used macro is not
6124         available now, since modules were removed in version 1.6.0.
6126 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6128         c-ctype: rewrite to use inline functions
6129         This simplifies maintenance, since it makes for just one
6130         implementation of each function, letting the compiler have the fun
6131         of optimization.  In practice this works well nowadays with GCC.
6132         E.g., c_isascii might need only three instructions even though the
6133         source code lists every ASCII character individually in a large
6134         switch statement.
6135         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
6136         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
6137         * NEWS: Document the API change.
6138         * lib/c-ctype.c: Drastically simplify, since this now just expands
6139         inline functions.
6140         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
6141         (C_CTYPE_INLINE): New macro.
6142         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
6143         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
6144         Verify that either ASCII or EBCDIC is being used.
6145         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
6146         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
6147         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
6148         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
6149         New private macros.
6150         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
6151         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
6152         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
6153         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
6154         (c_tolower, c_toupper): When converting, return the unsigned char,
6155         as that is what z/OS does.
6156         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
6157         of some c-ctype.h macros.
6158         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
6159         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
6160         c_tolower promotion to be compatible with z/OS.
6162 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
6164         gitlog-to-changelog: trim only trailing whitespaces
6165         This is fix for --format regression introduced by commit
6166         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
6167         doubled %n string) had no effect anymore.  This format
6168         specification has been used e.g. by GNU paxuitils (commit
6169         edfd8bcc3).
6171         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
6172         newlines in commmit messages.
6174 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6176         Test that c_iscntrl agrees with iscntrl, etc.
6177         Suggested by Daniel Richard G. in:
6178         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
6179         * modules/c-ctype-tests (Depends-on): Add ctype.
6180         * tests/test-c-ctype.c: Include <ctype.h>.
6181         (NCHARS): New constant.
6182         (test_agree_with_C_locale): New function.
6183         (main): Use it.
6184         (test_all): Use named constants.
6186         c-ctype: improve c_isascii testing
6187         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
6188         Add a test to count the number of ASCII characters.
6190 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6192         savewd: remove SAVEWD_CHDIR_READABLE
6193         It was problematic in the light of file systems that ignore umask.
6194         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
6195         * NEWS: Document this.
6196         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
6197         successful, -1 (setting errno) on failure, rather than something
6198         more complicated than that.
6199         * lib/mkdir-p.c (make_dir_parents):
6200         Do not use SAVEWD_CHDIR_READABLE.
6201         * lib/savewd.c (savewd_chdir):
6202         Remove support for SAVEWD_CHDIR_READABLE.
6203         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
6205         c-ctype: port better to EBCDIC
6206         Problems reported by Daniel Richard G. in
6207         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
6208         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
6209         Include "verify.h".
6210         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
6211         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
6212         Define as enum constants with value false, if not defined, so that
6213         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
6214         code more portable, as both branches of the 'if' are compiled on
6215         all platforms.
6216         (C_CTYPE_EBCDIC): New constant.
6217         Verify that the character set is either ASCII or EBCDIC.
6218         (to_char): New static function.
6219         (c_isascii, c_iscntrl):
6220         Assume standard control-character assignments for EBCDIC.
6221         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
6222         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
6223         Rewrite to use 'if' instead of 'ifdef'.
6224         Use to_char if non-ASCII.  Prefer <= to >=.
6225         Prefer true and false to 1 and 0, for booleans.
6226         (c_iscntrl): Use 'if', not 'ifdef'.
6227         * modules/c-ctype (Depends-on): Add verify.
6228         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
6229         (to_char): New function.
6230         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
6232 2015-09-21  Pádraig Brady  <P@draigBrady.com>
6234         nanosleep: fix return code for interrupted replacement
6235         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
6236         that we return -1 in the case the call is interrupted by a signal,
6237         rather than the current value of 1.
6238         Diagnosed and tested by Daniel Richard G.
6240 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
6242         Diagnose ERE '()|\1'
6243         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
6244         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
6245         track of the set of previously-completed subexpressions available
6246         before the first alternative, and restore this set just before
6247         parsing each subsequent alternative.  This lets us diagnose the
6248         invalid back-reference in the ERE '()|\1'.
6250         regex: merge patches from libc
6252         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
6253         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
6254         * lib/regex_internal.h:
6255         Include <libc-lock.h> instead of <bits/libc-lock.h>.
6257         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
6258         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
6259         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
6260         wcscoll.
6261         * lib/regexec.c (check_node_accept_bytes): Likewise.
6263         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
6264         Fix regex wcrtomb namespace (bug 18496).
6265         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
6266         instead of wcrtomb.
6268         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
6269         Fix regex wctype namespace (bug 18495).
6270         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
6271         instead of towlower.
6272         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
6273         instead of iswlower.  Call __towupper instead of towupper.
6274         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
6275         instead of iswalnum.
6277         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
6278         * lib/regcomp.c (parse_bracket_exp): Initialize type to
6279         COLL_SYM in a couple of places to avoid uninitialized variable
6280         wanings on tilegx gcc 4.8.2.
6282         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6283         * lib/regex_internal.h: Remove NOT_IN_libc.
6285         2014-11-17  Andreas Schwab  <schwab@suse.de>
6286         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
6288         2014-09-11  Roland McGrath  <roland@hack.frob.com>
6289         Move findidx nested functions to top-level.
6290         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
6291         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
6292         Pass new arguments to findidx.
6293         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
6294         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
6295         Don't #include it inside the function.  Pass new arguments to findidx.
6296         * lib/regex_internal.h:
6297         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
6298         (re_string_elem_size_at): Don't #include it inside the function.
6299         Pass new arguments to findidx.
6301         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6302         Check if DEBUG is defined in regex_internal.c
6303         * lib/regex_internal.c: Check if DEBUG is defined and is set.
6305 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
6307         ceill: detect buggy OpenBSD implementation
6308         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
6309         which returns zero for small values.  Discussed here:
6310         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
6312 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
6314         mountlist: add me_mntroot field on Linux machines
6315         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
6316         mount_entry so Linux machines based on /proc/self/mountinfo can
6317         distinguish between bind mounts and original mounts.  In reality bind
6318         mounts aren't treated differently than mountroot=/ mounts by the
6319         kernel, but the user often wants these bind mounts distinguished.
6320         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
6321         More details at https://pad.lv/1432871
6323 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
6325         doc: Describe to use multiple instances of gnulib
6326         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
6327         instances of gnulib with different modules can be used, for example one
6328         for a lib and another one for associated tools.
6330 2015-09-01  Pádraig Brady  <P@draigBrady.com>
6332         base32: mark function as __attribute__ const
6333         * lib/base32.h (isbase32): Mark __attribute__ const as
6334         suggested by GCC, and consistent with the base64 module.
6336 2015-08-20  Daiki Ueno  <ueno@gnu.org>
6338         gnulib-tool: don't transform binary files with sed
6339         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
6340         .mo and .class files.
6341         Reported by Denis Denisov.
6343 2015-08-10  Daiki Ueno  <ueno@gnu.org>
6345         gperf: respect silent rules
6346         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
6347         V_GPERF_0 for silent rules.
6348         * modules/iconv_open (Makefile.am): Use V_GPERF.
6349         * modules/unicase/locale-language (Makefile.am): Likewise.
6350         * modules/unicase/special-casing (Makefile.am): Likewise.
6351         * modules/unictype/category-byname (Makefile.am): Likewise.
6352         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
6353         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
6354         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
6355         * modules/unictype/property-byname (Makefile.am): Likewise.
6356         * modules/unictype/scripts (Makefile.am): Likewise.
6357         * modules/uninorm/composition (Makefile.am): Likewise.
6359 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6361         Improve port of stdalign to C++11
6362         Problem reported by Sundaram in:
6363         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
6364         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
6365         (__alignas_is_defined): Define if C++11 or newer.
6367 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
6369         pmccabe2html: fix gawk regex escaping
6370         * build-aux/pmccabe2html: Add one more backslash to properly
6371         escape the gsub replacement value.  Fixes this error:
6372         gawk: ./build-aux/pmccabe2html:425: \
6373         warning: escape sequence `\&' treated as plain `&'
6375 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
6377         time_rz: port to pedantic memcpy
6378         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
6379         that reject memcpy (..., NULL, 0).
6381 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6383         time_rz: port better to MinGW
6384         Don't change tzname, as this makes MinGW dump core (Bug#21020).
6385         Instead, store the tzname copy in the struct tm_zone object.
6386         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
6387         * lib/strftime.c [!_LIBC]:
6388         * lib/time_rz.c: Include time-internal.h.
6389         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
6390         name from *TZ rather than from TZNAME, doable because *TZ now has
6391         a tzname_copy member.
6392         * lib/time-internal.h: New file, with contents taken from
6393         lib/time_rz.c.  It's separate because strftime.c now accesses
6394         struct tm_zone members.
6395         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
6396         New member tzname_copy.
6397         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
6398         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
6399         Initialize tzname_copy member.
6400         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
6401         in tzname_copy member.
6402         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
6403         (restore_tzname): Remove; no longer needed.  All calls removed.
6404         * modules/time_rz (Files): Add lib/time-internal.h.
6406         time: port __need_time_t to MinGW
6407         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
6408         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
6410 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6412         strftime: fix newly-introduced bug on Solaris
6413         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
6414         consistently at the start, rather than doing some of the setup at
6415         the start and some in the %Z format spec.  This is cleaner, and
6416         works better with time_rz on platforms like Solaris where struct
6417         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
6418         mktime_z and localtime_rz can mess up the tzname cache.
6420         test-strftime: test for Solaris bug
6421         * modules/strftime-tests (Depends-on): Add strerror.
6422         * tests/test-strftime.c: Include <errno.h>.
6423         (posixtm_test): New function, containing the old 'main'.
6424         (struct tzalloc_test, struct localtime_rz_test): New types.
6425         (TZ, LT): New static vars.
6426         (tzalloc_test): New function.
6427         (main): Rewrite in terms of posixtm_test and tzalloc_test.
6429         time_rz: port to Solaris etc.
6430         Works around a tzname problem on platforms like Solaris that have
6431         tzname but not tm_zone, by setting tzname at the appropriate time
6432         and restoring it later.
6433         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
6434         New static vars.
6435         (save_abbr) [HAVE_TZNAME]: Set them.
6436         (revert_tz) [HAVE_TZNAME]: Clear or use them.
6437         (restore_tzname): New function.
6438         (localtime_rz, mktime_z): Use it.
6440         time_rz: now LGPL
6441         * modules/time_rz (License): Now LGPL, because strftime depends on it.
6443         time_rz: make a constant 'const'
6444         * lib/time_rz.c (local_tz): Now const.
6446         time_rz: fix off-by-one typo
6447         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
6449 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
6451         fprintftime, strftime: use timezone_t args
6452         * NEWS: Document the change.
6453         * lib/fprintftime.h (fprintftime):
6454         * lib/strftime.c (extra_args) [my_strftime]:
6455         * lib/strftime.h (nstrftime):
6456         Time zone arg is now of type timezone_t, not int.
6457         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
6458         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
6459         (my_strftime) [emacs && !my_strftime]:
6460         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
6461         Remove; Emacs doesn't need this any more.
6462         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
6463         fprintftime and nstrftime to call tzset.
6464         (ut) [!my_strftime]: Remove, replacing with ...
6465         (tz) [!my_stftime]: ... this new macro.  All uses changed.
6466         (strftime_case_): Use localtime_rz and mktime_z instead
6467         of localtime_r and mktime.
6468         * modules/fprintftime (Depends-on): Add time_rz.
6469         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
6470         * tests/test-strftime.c (main): Adjust to new nstrftime API.
6472         time_rz: new module
6473         * MODULES.html.sh: Add time_rz.
6474         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
6475         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
6476         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
6477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
6478         New var HAVE_TIMEZONE_T (default 0).
6479         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
6480         New var GNULIB_TIME_RZ (default 0).
6481         * modules/time (time.h): Substitute the new vars.
6483         flexmember: license is now unlimited
6484         * modules/flexmember (License): Change to unlimited,
6485         since its only source file gives an unlimited license.
6487 2015-07-15  Eric Blake  <eblake@redhat.com>
6489         maint: update copyright paper procedures
6490         * config/srclist.txt: Drop outdated files.
6491         * doc/Copyright/conditions.txt: Update to latest.
6492         * doc/Copyright/assign.changes.manual: Delete.
6493         * doc/Copyright/assign.future.manual: Likewise.
6494         * doc/Copyright/assign.manual: Likewise.
6495         * doc/Copyright/assign.translation.manual: Likewise.
6496         * doc/Copyright/disclaim.changes.manual: Likewise.
6497         * doc/Copyright/disclaim.manual: Likewise.
6498         * doc/Copyright/disclaim.program: Likewise.
6500 2015-07-07  Daiki Ueno  <ueno@gnu.org>
6502         localename: fix link error on Illumos
6503         Illumos defines __sun, but does not have getlocalename_l nor the
6504         equivalent.  This partially reverts commit 387c214.
6505         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
6506         available, as well as uselocale.
6507         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
6508         use getlocalename_l if it is not available.
6510 2015-07-07  Daiki Ueno  <ueno@gnu.org>
6512         unistr/uN-strtok-tests: avoid a trivial leak
6513         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
6514         input and delim after the multibyte delimiter tests.
6516 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
6518         file-has-acl, acl-permissions: fix HP-UX typos
6519         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
6520         * lib/file-has-acl.c (file_has_acl):
6521         * lib/set-permissions.c (context_acl_from_mode)
6522         (context_aclv_from_mode, set_acls):
6523         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
6524         They were introduced by the recent ACL changes.
6526         regex: match current GNU grep behavior
6527         These symbols have not matched GNU grep behavior for quite some time.
6528         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
6529         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
6530         Change to match current GNU behavior.
6531         Simplify by expressing it as differences from POSIX BREs and EREs.
6532         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
6534 2015-07-03  Jim Meyering  <meyering@fb.com>
6536         set-permissions.c: adjust acl_from_mode's cpp guard
6537         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
6538         directives identical to those guarding the sole use.
6539         Otherwise, on some systems, we'd get a warning about
6540         the function being defined but not used.
6541         Also, filter through cppi to correct misleading indentation
6542         of cpp directives.
6544 2015-07-03  Pádraig Brady  <P@draigBrady.com>
6546         tests: restrict shells to those that support 'local'
6547         The local keyword is very widely supported and used
6548         in tests in coreutils and grep at least.  Therefore
6549         restrict to testing with shells that support it.
6550         This mainly excludes /bin/sh on Solaris.
6551         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
6553 2015-07-03  Seiya Kawashima <skawashima@uchicago.edu>  (tiny change)
6554         and Daiki Ueno  <ueno@gnu.org>
6556         unistr/uN-strtok: handle multibyte delimiters
6557         Previously, uN_strtok moved PTR to the next unit to the token end.
6558         When DELIM contained a multibyte character, the new position could
6559         be a middle of a multibyte character.
6560         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
6561         after the token.
6562         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
6563         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
6564         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
6565         * modules/unistr/u8-strtok (Depends-on): Depend on
6566         unistr/u8-strmblen.
6567         * modules/unistr/u16-strtok (Depends-on): Depend on
6568         unistr/u16-strmblen.
6569         * modules/unistr/u32-strtok (Depends-on): Depend on
6570         unistr/u32-strmblen.
6571         * tests/unistr/test-u-strtok.h: New file.
6572         * tests/unistr/test-u8-strtok.c: New file.
6573         * tests/unistr/test-u16-strtok.c: New file.
6574         * tests/unistr/test-u32-strtok.c: New file.
6575         * modules/unistr/u8-strtok-tests: New file.
6576         * modules/unistr/u32-strtok-tests: New file.
6577         * modules/unistr/u16-strtok-tests: New file.
6579 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
6581         update-copyright: fix test failure with perl >= 5.22 (trivial)
6582         * build-aux/update-copyright: Escape a literal left curly bracket,
6583         required with perl >= 5.22
6585 2015-07-02  Daiki Ueno  <ueno@gnu.org>
6587         u{16,32}-strstr-tests: relax timeout condition
6588         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
6589         tests can take longer than 5 seconds to complete.
6590         Reported by Dagobert Michelsen in:
6591         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
6592         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
6593         seconds to 10 seconds.
6594         * tests/unistr/test-u32-strstr.c (main): Likewise.
6596 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
6598         gnulib-common.m4: change the ARFLAGS default to 'cr'
6599         In some GNU/Linux distributions people started to compile 'ar'
6600         binary with --enable-deterministic-archives (binutils project).
6601         That, however, in combination with previous autotools long time
6602         working default AR{_,}FLAGS=cru causes warnings on such
6603         installations:
6604         ar: `u' modifier ignored since `D' is the default (see `U')
6605         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
6606         set already.
6608 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
6610         selinux-h: avoid double free after *getfilecon()
6611         Originally reported by Ben Shelton on bug-tar:
6612         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
6613         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
6614         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
6615         param should be freed by freecon(3) (regardless the return value).
6617 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
6619         fix pty related tests issues on Windows (trivial)
6620         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
6621         however it's still present in tests/ subdirectory of the final project.
6622         Therefore avoid it to pass `make check`.
6623         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
6624         will just return -ENOSYS, so avoid this non applicable test allowing
6625         the build to proceed.
6627 2015-07-01  Pádraig Brady  <P@draigBrady.com>
6629         acl: fix definition of acl_from_mode on FreeBSD
6630         This was causing basic coreutils copy operations to fail
6631         with ENOTSUP or ENOENT error messages.
6632         * lib/acl-internal.h (acl_from_mode): Only define when
6633         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
6634         of acl_from_mode() defined in lib/set-permissions.c to
6635         be used on FreeBSD at least.
6636         * lib/set-permissions.c: Fix up comment spelling,
6637         and a redundant variable assignment; noticed in passing.
6639 2015-06-30  Pádraig Brady  <P@draigBrady.com>
6641         readutmp: port to FreeBSD >= 9
6642         * lib/readutmp.h: Map utmpxname() to setutxdb().
6643         With that coreutils who(1) and pinky(1) tests pass.
6645 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6647         mgetgroups: port to strict OS X
6648         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
6649         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
6650         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
6651         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
6653 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
6655         mgetgroups: port to strict OS X
6656         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
6657         Document the getgrouplist problem.
6658         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
6659         New macro.
6660         (mgetgroups): Use it.
6661         * m4/mgetgroups.m4 (gl_MGETGROUPS):
6662         Check for OS X signature for getgrouplist.
6664 2015-06-29  Jim Meyering  <meyering@fb.com>
6666         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
6667         It started like this when building coreutils' latest on OS X,
6668         invoking ./configure with a nonempty --cache=.cache:
6670           lib/linkat.c:46:42: error: operator '||' has no right operand
6671           lib/linkat.c: In function 'rpl_linkat':
6672           lib/linkat.c:330:27: error: #if with no expression
6674         Here's linkat.c's line 46:
6676           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
6678         Here's some context:
6680           $ grep linkat_nofoll .cache
6681           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
6682           $ grep LINKAT_SYM lib/config.h
6683           #define LINKAT_SYMLINK_NOTSUP
6685         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
6686         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
6687         but that violates a tenet of AC_CACHE_CHECK: it must
6688         have no side effect other than setting its cache variable.
6690         What happens is that when the cache is set, we'd skip the
6691         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
6692         defined to whatever value it happened to have in configure's
6693         environment.  In my case, it was not defined, so this later code:
6695           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
6696             [Define to 1 if linkat can create hardlinks to symlinks])
6698         would emit code with an empty RHS.
6700         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
6701         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
6703 2015-06-28  Jim Meyering  <meyering@fb.com>
6705         mountlist: avoid an unused-label warning on OS X
6706         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
6707         Building on OS X, I saw a warning about the "free_then_fail" label
6708         being unused.  Give it the _GL_UNUSED_LABEL attribute.
6710         error.c: correct printf-style format: %d -> %u
6711         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
6712         rather than %d, to match the type of "line_number", unsigned int.
6714 2015-06-25  Pádraig Brady  <P@draigBrady.com>
6716         fts: avoid reading beyond the heap allocation
6717         GCC 5.1.1 with -O2 and -fsanitize=address reports
6718         a read of size 4 from a heap object of size 3 is indeed invalid,
6719         though this may be due to incorrect padding assumptions by GCC, see:
6720         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
6721         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
6722         * modules/fts: Depend on stdalign.
6724 2015-06-24  Pádraig Brady  <P@draigBrady.com>
6726         savedir: avoid undefined behavior in qsort call
6727         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
6728         "runtime error: null pointer passed as argument 1,
6729          which is declared to never be null"
6730         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
6732 2015-06-24  Pádraig Brady  <P@draigBrady.com>
6734         userspec: avoid undefined behavior in gettext call
6735         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
6736         "runtime error: null pointer passed as argument 2,
6737          which is declared to never be null"
6738         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
6740 2015-06-20  Glenn Morris  <rgm@gnu.org>
6742         gitlog-to-changelog: improve gitmerge.el commits
6743         Let the Emacs ChangeLog generation process exclude "skipped"
6744         messages from merge commits (Bug#20717).
6745         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
6747 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6749         wchar: fix MinGW compilation warnings
6750         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
6751         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
6752         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
6754 2015-06-20  Daiki Ueno  <ueno@gnu.org>
6756         uniname/uniname-tests: use pristine data files
6757         For copyright and maintenance reasons, use the data files from UCD
6758         without modification.
6759         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
6760         (getfield): Remove.
6761         (aliases_count): New global variable.
6762         (fill_names): Skip comments and empty lines in the input.  Don't
6763         use getfield.
6764         (fill_aliases): Likewise.
6765         (main): Change the expected command line arguments to:
6766         NAMES... ["--" ALIASES...].
6767         * tests/uniname/test-uninames.sh: Adjust to the change in
6768         test-uninames.c.
6769         * tests/uniname/UnicodeDataNames.txt: Remove.
6770         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
6771         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
6772         file from Unicode 8.0.0.
6774 2015-06-19  Pádraig Brady  <P@draigBrady.com>
6776         linked-list, linkedhash-list: avoid compiler warnings
6777         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
6778         -Werror=suggest-attribute=pure (from GCC 5.1.1).
6780 2015-06-19  Daiki Ueno  <ueno@gnu.org>
6782         libunistring: bump minimum version to 0.9.6
6783         * all modules depending on updated Unicode data: Regenerate.
6784         The modules are listed by a script that does:
6785         - for each file listed by: git show --oneline --name-only 705f4efc
6786           - deduce the containing modules, based on "Files:"
6787         - deduce the modules which depend on the containing modules, based
6788           on "Depends-on:"
6790 2015-06-18  Daiki Ueno  <ueno@gnu.org>
6792         uniname/uniname: update to Unicode 8.0.0
6793         * lib/uniname/uninames.h: Regenerate.
6794         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
6795         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
6797 2015-06-18  Daiki Ueno  <ueno@gnu.org>
6799         libunistring: update to Unicode 8.0.0
6800         * lib/gen-uni-tables.c (SIZEOF): New macro.
6801         (output_numeric): Increase the maximum number of fractions from
6802         128 to 160.  Increase the level3 value width from 7 bits to 8
6803         bits.  Use SIZEOF instead of a hard-coded integer.
6804         (output_blocks): Decrease the cut-off threshold from 0x30000 to
6805         0x28000.
6806         (fill_blocks): Increase the maximum number of blocks from 256 to
6807         384.  Use SIZEOF instead of a hard-coded integer.
6808         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
6809         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
6810         value width.
6811         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
6812         a new case added to LBP22.
6813         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
6814         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
6815         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
6816         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
6817         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
6818         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6819         lib/uniwidth/width.c.
6820         * all generated files under lib/uni* and tests/uni*: Regenerate.
6822 2015-06-16  Pádraig Brady  <P@draigBrady.com>
6824         gnu-web-doc-update: add --mirror to remove stale files
6825         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
6826         out of date files from the CVS server.  Since this is usually
6827         appropriate, a prompt is given when the option is not specified,
6828         along with the `cvs remove` command that would be run.
6830 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6832         acl-permissions: pacify -Wsuggest-attribute=const
6833         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
6834         * lib/acl-internal.h (free_permission_context):
6835         Declare with attribute const if ! (defined USE_ACL &&
6836         (HAVE_ACL_GET_FILE || defined GETACL)).
6838         fsync: document AIX misbehavior
6839         * doc/posix-functions/fsync.texi (fsync):
6840         Document failure on AIX with read-only file descriptor.
6842 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
6844         stdio: Don't redefine gets when using C++
6845         * lib/stdio.in.h (gets): Disable warning on C++.
6847 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
6849         acl-permissions: port to AIX, C89 HP-UX
6850         Problems reported by Michael Felt.
6851         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
6852         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
6853         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
6854         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
6855         Add cast for AIX, whose system calls are declared to accept
6856         char * even though the arguments are really char const *.
6857         * lib/get-permissions.c (get_permissions):
6858         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
6859         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
6860         that broke a build.
6861         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
6862         Rework types to pacify xlc.
6864 2015-06-03  Pádraig Brady  <P@draigBrady.com>
6866         vasprintf-posix: avoid compiling vasnprintf where possible
6867         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
6868         module where not required.  For example on a GNU/Linux system
6869         when gnulib-tool is run with the --conditional-dependencies option.
6871 2015-06-02  Pádraig Brady  <P@draigBrady.com>
6873         file-has-acl: fix build on Mac OS X 10
6874         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
6875         which has an incompatible 6 parameter getxattr() call.
6876         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
6877         call on Mac OS X >= 10.4.
6878         * doc/glibc-functions/fgetxattr.texi: Likewise.
6879         * lib/file-has-acl.c: Revert to more complete combined check.
6880         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
6881         Reported by Jack Howarth.
6883 2015-06-02  Pádraig Brady  <P@draigBrady.com>
6885         prefix-gnulib-mk: remove no longer needed special case
6886         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
6887         continued lib_SOURCES lines are no longer present,
6888         so special case handling of such entries is not required.
6890 2015-06-01  Pádraig Brady  <P@draigBrady.com>
6892         acl: don't depend on the deprecated qacl module
6893         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
6895 2015-06-01  Pádraig Brady  <P@draigBrady.com>
6897         gnulib-tool: concatenate lib_SOURCES to a single line
6898         * gnulib-tool: Refactor the line merging sed logic,
6899         and use that to output a single lib_SOURCES line for each module.
6900         gnulib using projects often postprocess this output to prepend
6901         subdir paths to each item, and having a single line simplifies this
6902         processing allowing better decoupling from the gnulib-tool output.
6904 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
6906         pthread_sigmask: discount system version if a simple macro (trivial)
6907         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
6908         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
6909         function to ensure it's available.
6911 2015-05-31  Pádraig Brady  <P@draigBrady.com>
6913         readlinkat: avoid OS X 10.10 trailing slash bug
6914         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
6915         has this bug.
6916         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
6917         that OS X 10.10 has this function.
6918         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
6919         as done for readlink().
6920         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
6921         trailing slash bug, and assume readlinkat() has the same issue.
6922         Also fix a typo where $gl_cv_decl_readlink_works was tested,
6923         rather than the correct $gl_cv_decl_readlinkat_works.
6925 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
6927         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
6928         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
6929         module rewrite.
6931         acl-permissions: Fix build on Solaris and Cygwin
6932         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
6933         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
6934         ace_entries variables have moved into struct permission_context but
6935         they were still accessed as local variables here.
6937 2015-05-29  Pádraig Brady  <P@draigBrady.com>
6939         linkat: avoid OS X 10.10 trailing slash with symlink bug
6940         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
6941         causes the symlink to be dereferenced, and if it points
6942         to a non existent file, that file will be created as
6943         a hard link to "path1".
6944         This fixes a test failure in test-linkat.c.
6945         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
6946         this case.  The existing workaround in linkat.c for
6947         trailing slash issues, suffices for this case.
6948         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
6949         the list of platforms with trailing slash issues.
6951 2015-05-28  Pádraig Brady  <P@draigBrady.com>
6953         unlinkat: handle ignoring of ".." on Darwin 14
6954         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
6955         on Mac OS X 10.10, where it ignores paths with a trailing "..",
6956         so handle in the same manner.
6957         * m4/unlinkat.m4: Comment on this Darwin issue.
6958         * doc/posix-functions/unlink.texi: Update the latest version
6959         where the issue was seen.
6960         * doc/posix-functions/unlinkat.texi: Mention this issue.
6961         Fixes a test failure in test-unlinkat.c.
6963 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
6965         qacl: split into qcopy-acl and qset-acl
6966         Emacs needs the former, but not the latter.
6967         * modules/acl-permissions: New file, containing most of the old qacl.
6968         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
6969         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
6970         * modules/qcopy-acl, modules/qset-acl: New files.
6971         * MODULES.html.sh (File system functions):
6972         Mention the new modules, and mention qacl while we're at it.
6974 2015-05-27  Glenn Morris  <rgm@gnu.org>
6976         gitlog-to-changelog: new option --ignore-line
6977         (This patch is imported from the GNU Emacs master.)
6978         This option ignores individual commit lines matching a pattern.
6979         * build-aux/gitlog-to-changelog: Add --ignore-line option.
6981 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
6983         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
6984         Implement get_permissions and set_permissions primitives for getting all
6985         the permissions of a file, storing them, and later setting them. (In the
6986         minimal case, the permissions consist only of a file mode.) Reimplement
6987         qset_acl and qcopy_acl based on these new primitives: this avoids code
6988         duplication and makes error handling more consistent.
6989         The Solaris and Cygwin code still uses duplicate code paths for setting
6990         a file mode while making sure that no acls exist and setting an explicit
6991         acl; this is no worse than before, but could be cleaned up.  The AIX
6992         code still doesn't read ACLs, it only makes sure that acls don't get in
6993         the way when setting a file mode.
6994         * lib/acl-internal.h (struct permission_context): New data structure.
6995         (get_permissions, set_permissions, free_permission_context): Declare.
6996         * lib/acl-internal.c (free_permission_context): New helper function.
6997         * lib/get-permissions.c (get_permissions): New helper function split off
6998         from qcopy_acl.
6999         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
7000         AIX, set a file's permissions based only on a file mode.
7001         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
7002         other platforms construct a temporary acl from the file mode and set
7003         that acl in the same way as setting an acl read from the source file.
7004         This should help avoid code duplication and inconsistent / buggy
7005         behavior.
7006         (set_acls): New helper function Split off from qcopy_acl.
7007         (chmod_or_fchmod): Moved here from qset-acl.c.
7008         (set_permissions): New helper function.
7009         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
7010         set_permissions.
7011         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
7012         * modules/qacl: Add get-permissions.c and set-permissions.c.
7014         file-has-acl: Split feature tests again (Bug#20667)
7015         * lib/file-has-acl.c: Instead of testing for
7016         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
7017         define them when needed.
7018         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
7019         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
7021 2015-05-27  Pádraig Brady  <P@draigBrady.com>
7023         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
7024         This avoids a conflict with "FORTIFY_SOURCE" variants
7025         of the string functions when they're replaced on NetBSD-6.0.1
7026         and Darwin-14.3.0 at least.
7027         * lib/string.in.h: Avoid including our "lib/string.h" while
7028         including the system <string.h>.
7030 2015-05-26  Eric Blake  <eblake@redhat.com>
7032         stdio: limit __gnu_printf__ witness to gcc 4.4+
7033         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
7034         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
7036         error: use correct printf attributes on mingw
7037         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
7039         inttypes: force correct mingw PRIdMAX even without <stdio.h>
7040         * modules/inttypes (Depends-on): Require extensions, so that mingw
7041         always uses GNU style inttypes.
7042         * lib/inttypes.in.h: On mingw, include <stdio.h>.
7044         stdio: fix probe on mingw under gcc 5.1
7045         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
7046         around new gcc preprocessor rules.
7048 2015-05-07  Glenn Morris  <rgm@gnu.org>
7050         gitlog-to-changelog: parse "Tiny-change"
7051         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
7052         "Copyright-paperwork-exempt".  (Bug#20324)
7054 2015-05-06  Pádraig Brady  <P@draigBrady.com>
7056         doc: document glibc posix_fallocate() issues
7057         * doc/posix-functions/posix_fallocate.texi: Mention the
7058         glibc efficiency problems and issues with NFS.
7060 2015-05-05  Karl Berry  <karl@freefriends.org>
7062         * build-aux/gendocs.sh (usage): document new css default
7063         for HTML (--htmlarg).
7065 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7067         extern-inline: no need for workaround in GCC 5.1
7068         * doc/extern-inline.texi (extern inline):
7069         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
7070         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
7071         around these bugs in GCC 5.1 and later.  Maybe in a decade or
7072         two we can remove these workarounds.
7074 2015-04-28  Pádraig Brady  <P@draigBrady.com>
7076         eealloc, pagealign_alloc, xalloc: avoid clang warnings
7077         Avoid [-Wunknown-attributes] warnings like:
7078         warning: unknown attribute '__alloc_size__' ignored
7079         * lib/xalloc.h: Don't use the __alloc_size__  attribute
7080         with clang, as support has been fully removed as of clang 3.5:
7081         https://github.com/llvm-mirror/clang/commit/c047507a
7082         * lib/eealloc.h: Likewise.
7083         * lib/pagealign_alloc.h: Likewise.
7085 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
7087         tests: pacify GCC 5.1's stricter printf checking
7088         * tests/test-dirname.c (main):
7089         * tests/test-getaddrinfo.c (simple):
7090         * tests/test-getlogin.c (main):
7091         * tests/test-getndelim2.c (main):
7092         * tests/test-inttostr.c (CK):
7093         * tests/test-md5.c (main):
7094         * tests/test-read-file.c (main):
7095         * tests/test-sha1.c (main):
7096         Fix mismatches between printf format and value signedness.
7097         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
7098         Remove, as CAST_VAL always returned a value of type uintmax_t.
7100         fts: port to GCC 5.1 with --enable-gcc-warnings
7101         Without this fix, GCC 5.1 (correctly) warns about a subscript
7102         error on the fts_name component of FTSENT.  It's actually a
7103         flexible member, so define it that way on C99 or later hosts.
7104         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
7105         structure that now has a flexible array member.
7106         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
7107         (FTSENT): fts_name is now flexible on C99-or-later platforms.
7108         * modules/fts (Depends-on): Add flexmember.
7110 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7112         file-has-acl: port to CentOS 6
7113         Problem reported by Tom G. Christensen in:
7114         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
7115         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
7116         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
7117         HAVE_GETXATTR.
7118         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
7119         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
7120         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what what
7121         file-has-acl.c actually needs.
7123 2015-04-26  Pádraig Brady  <P@draigBrady.com>
7125         file-has-acl: always return false when ACLs aren't supported
7126         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
7127         change the GNU/Linux getxattr path, to transform "not supported"
7128         errors to a false return rather than an error.  This is handled
7129         within file_has_acl() due to the platform specific tests to
7130         determine if ACLs are not supported.
7132 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7134         gettext: propagate po/Makefile.in.in too
7135         * build-aux/po/Makefile.in.in: Copy from latest gettext.
7136         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
7137         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
7138         between Makefile.in.in and the gettext-runtime m4 files.
7140 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7142         file-has-acl: new module, split from acl
7143         And add a new module file-has-acl-tests to match.
7144         I ran into a problem with the recent changes to the acl module,
7145         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
7146         When using the fixed version with Emacs, I discovered that
7147         file-has-acl wasn't separated out well enough for Emacs (e.g., it
7148         had multiple libraries, but needed only one), so I fixed that too.
7149         * NEWS: Document this incompatible change.
7150         * modules/file-has-acl, modules/file-has-acl-tests: New files.
7151         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
7152         Initialize gl_need_lib_has_acl.
7153         (gl_FUNC_ACL): Require it.
7154         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
7155         Move the file-has-acl.c-relevant stuff to ...
7156         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
7157         use_xattrs = 0' typo, and omit some needless work.  Set
7158         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
7159         when gl_FUNC_ACL is called.
7160         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
7161         (Link): Remove $(LIB_HAS_ACL).
7162         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
7163         (check_PROGRAMS): Move stuff relevant to file-has-acl to
7164         modules/file-has-acl-tests.
7165         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
7167         manywarnings: add GCC 5.1 warnings
7168         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
7169         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
7170         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
7171         -Wsuggest-override, -Wuse-without-only.  Change
7172         -Wnormalized=... operands to match 5.1.
7173         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
7174         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
7175         -Wdiscarded-qualifiers, -Wformat-signedness,
7176         -Wincompatible-pointer-types, -Wint-conversion,
7177         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
7178         -Wshift-count-negative, -Wshift-count-overflow,
7179         -Wsizeof-array-argument, -Wsuggest-final-methods,
7180         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
7181         and add -Warray-bounds=2 as a special case.
7183 2015-04-21  Simon Josefsson  <simon@josefsson.org>
7185         doc: update FDL template to match FDL examples.
7186         * doc/alloca-opt.texi:
7187         * doc/alloca.texi:
7188         * doc/c-ctype.texi:
7189         * doc/c-strcase.texi:
7190         * doc/c-strcaseeq.texi:
7191         * doc/c-strcasestr.texi:
7192         * doc/c-strstr.texi:
7193         * doc/c-strtod.texi:
7194         * doc/c-strtold.texi:
7195         * doc/ctime.texi:
7196         * doc/error.texi:
7197         * doc/gcd.texi:
7198         * doc/gnulib-tool.texi:
7199         * doc/inet_ntoa.texi:
7200         * doc/intprops.texi:
7201         * doc/lib-symbol-visibility.texi:
7202         * doc/maintain.texi:
7203         * doc/parse-datetime.texi:
7204         * doc/quote.texi:
7205         * doc/regexprops-generic.texi:
7206         * doc/standards.texi: Remove spurious 'with' in FDL license
7207         template.
7209 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
7211         lstat: fix cross-compilation 'ln -s' problem
7212         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7213         Have the test program call 'symlink' rather than a separate
7214         script run 'ln -s'; this is more likely to work in
7215         cross-compilation environments.  Reported by Pavel Fedin in:
7216         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
7218 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
7220         gendocs.sh: default to a common CSS style sheet for HTML output
7221         * build-aux/gendocs.sh (htmlarg): Change default value.
7223 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
7225         gnulib-tool: output bold attribute more portably
7226         * gnulib-tool (func_show_module_list): Change hexadecimal
7227         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
7228         encoded numbers as arguments to `printf' is not portable,
7229         and is not claimed by POSIX.  This is the case with FreeBSD.
7231 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
7233         qacl: Simplify HP-UX acl_nontrivial check
7234         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
7235         acl_nontrivial. Check if the acl has at most three entries instead (it must
7236         have exactly three entries according to the HP-UX documentation). Ignore
7237         uids and gids as long as an entry is either for a user (i.e., the owner),
7238         a group (i.e., the owning group), or others.
7239         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
7240         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
7242 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
7244         acl: On Linux, check for acls without libacl
7245         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
7246         library function to check for the presence of acls, avoiding a library.
7247         * lib/file-has-acl.c: Include xattr headers if we have them.
7248         (file_has_acl): On Linux, use getxattr().
7249         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
7250         file_has_acl(). Check for xattr headers and getxattr().
7252 2015-04-14  Ángel González  <keisial@gmail.com>
7254         tempname: avoid unused parameter warnings (trivial)
7255         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
7256         (try_nocreate): Likewise.
7258 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
7260         fseeko: fix build failure on NetBSD >= 6 (trivial)
7261         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
7262         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
7264 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7266         gitlog-to-changelog: port to MS-Windows
7267         * build-aux/gitlog-to-changelog (git_dir_option):
7268         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
7269         MS-Windows Perl.  Reported by Eli Zaretskii in:
7270         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
7272 2015-04-07  Karl Berry  <karl@gnu.org>
7274         gendocs: new option --tex for passing args to texi2dvi.
7275         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
7276         (TEXI2DVI): cut to just command name.
7277         (usage): mention new option, and update copyright.
7278         <generate_tex>: use it.
7280 2015-04-07  Karl Berry  <karl@gnu.org>
7282         * config/srclistvars.sh (GETTEXT): new definition.
7283         * config/srclist.txt: use it for gettext .m4 files.
7284         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
7285         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
7286         and continuing into April.
7288 2015-04-07  Daiki Ueno  <ueno@gnu.org>
7290         uniname/uniname-tests: fix failure due to alias
7291         Reported by Jack Howarth in:
7292         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
7293         * tests/uniname/test-uninames.c (name_has_alias): New function.
7294         (test_inverse_lookup): Exclude character name with valid alias,
7295         from randomly generated character names.
7296         (main): Fill unicode_aliases before calling test functions.
7298 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
7300         hash: remove deprecated hash_insert0 function
7301         * lib/hash.h (hash_insert0): Remove deprecated function.
7302         * lib/hash.c (hash_insert0): Likewise.
7304 2015-04-02  Pádraig Brady  <P@draigBrady.com>
7306         mountlist: remove dependency on libmount
7307         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
7308         directly, rather than depending on libmount, which has many
7309         dependencies due to its dependence on libselinux, as detailed at:
7310         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
7311         Note we restrict this to __linux__ as that's probably where this
7312         interface will remain.  If ever porting, it would be best
7313         to first pull the makedev() wrapper from coreutils to a gnulib module.
7314         Note also we don't add a getline dependency to the mountlist module,
7315         as all Linux versions are sufficient.
7317 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
7319         stddef: port to pre-C11 GCC on x86
7320         On this platform, max_align_t should have an alignment of 8 even
7321         though the storage alignments of double, long, etc. max out at 4.
7322         Inspired by a comment of Andreas Schwab's here:
7323         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
7324         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
7325         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
7326         * tests/test-stddef.c: Test __alignof__ too, if available.
7328 2015-03-24  Pádraig Brady  <P@draigBrady.com>
7330         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
7331         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
7333 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
7335         yesno: make EOL optional in ENABLE_NLS case also (trival)
7336         * lib/yesno.c (yesno): Check for EOL before replacing.
7337         * tests/test-yesno.sh: Add a test case (test along with gettext).
7339 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
7341         fdopendir-tests: test it does not close its arg
7342         * tests/test-fdopendir.c (main): Test that fdopendir does not
7343         close its argument.  From a suggestion by David Grayson in:
7344         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
7346 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7348         gitlog-to-changelog: trim trailing white space
7349         * build-aux/gitlog-to-changelog (main):
7350         Trim trailing white space from commit message lines.
7351         This is helpful for processing the GNU Emacs repository,
7352         which dates back to 1985 and contains a lot of such lines.
7354         gitlog-to-changelog: new option --ignore-matching
7355         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
7356         Support new option --ignore-matching=PAT, which ignores all
7357         commit messages whose first line matches PAT.
7359 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7361         fdopendir: port better to MinGW
7362         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
7363         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
7364         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
7365         * modules/fdopendir (Depends-on): Add dirfd.
7367 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
7369         fdopendir: fix typo in comment
7370         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
7372 2015-03-09  Eric Blake  <eblake@redhat.com>
7374         error: document all entry points provided
7375         * doc/glibc-functions/error_print_progname.texi
7376         (error_print_progname): Mention the error module.
7377         * doc/glibc-functions/error_at_line.texi (error_at_line):
7378         Likewise.
7379         * doc/glibc-functions/error_message_count.texi
7380         (error_message_count): Likewise.
7381         * doc/glibc-functions/error_one_per_line.texi
7382         (error_one_per_line): Likewise.
7384 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
7386         vasnprintf: pacify clang 3.5.0
7387         Problem reported by Werner Lemberg in:
7388         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
7389         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
7390         The casts aren't needed, since the characters in question are ASCII.
7392 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7394         glob, etc.: port to MSVC v18 on MS-Windows 8.1
7395         * lib/dirent--.h (GNULIB_defined_opendir):
7396         * lib/dirent.in.h (GNULIB_defined_opendir)
7397         (GNULIB_defined_closedir):
7398         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
7399         #undef only if Gnulib defined it.
7401         poll: port to MSVC v18 on MS-Windows 8.1
7402         Problem reported by Gisle Vanem in:
7403         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
7404         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
7405         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
7406         Add sys_socket.
7408 2015-02-24  Pádraig Brady  <P@draigBrady.com>
7410         tests: support stderr verification with returns_()
7411         * tests/init.sh (returns_): Disable tracing for this wrapper
7412         function, so that stderr of the wrapped command is unchanged,
7413         allowing for verification of the contents.
7415 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
7417         passfd: avoid valgrind uninitalised data warning
7418         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
7419         to include just the fd we've initialized, rather than including
7420         the extra space used for alignment.
7422 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
7424         uniwbrk/u32-wordbreaks-tests: fix copyright
7425         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
7427         dup2: doc and test for Android bug
7428         Reported by Kevin Cernekee in:
7429         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
7430         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7431         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
7433 2015-02-23  Kevin Cernekee  <cernekee@google.com>
7435         Replace dup2() on Android
7436         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
7437         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
7438         fails.  Using rpl_dup2() fixes this because it has an explicit test
7439         for this condition.
7441 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7443         Android doesn't define RLIM_SAVED_*
7444         Portability problem reported by Kevin Cernekee in:
7445         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
7446         * doc/posix-headers/sys_resource.texi (sys/resource.h):
7447         Mention the portability problem.
7448         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
7449         Define if not defined.
7450         * m4/dup2.m4 (gl_FUNC_DUP2):
7451         * m4/fcntl.m4 (gl_FUNC_FCNTL):
7452         Likewise.
7454 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7456         vasnprintf-posix-tests: use consistent test
7457         * tests/test-vasnprintf-posix.c (test_function):
7458         Use "<" in assert instead of "<=", for consistency with other tests.
7460 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7462         printf, isinf, etc.: noncanonical != NaN
7463         Do not require that isinf, printf, etc. treat noncanonical
7464         values as NaNs.  Instead, require only that they do not crash.
7465         Problem reported by Joseph Myers in:
7466         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
7467         * doc/posix-functions/dprintf.texi (dprintf):
7468         * doc/posix-functions/fprintf.texi (fprintf):
7469         * doc/posix-functions/isfinite.texi (isfinite):
7470         * doc/posix-functions/isinf.texi (isinf):
7471         * doc/posix-functions/isnan.texi (isnan):
7472         * doc/posix-functions/printf.texi (printf):
7473         * doc/posix-functions/snprintf.texi (snprintf):
7474         * doc/posix-functions/sprintf.texi (sprintf):
7475         * doc/posix-functions/vdprintf.texi (vdprintf):
7476         * doc/posix-functions/vfprintf.texi (vfprintf):
7477         * doc/posix-functions/vprintf.texi (vprintf):
7478         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7479         * doc/posix-functions/vsprintf.texi (vsprintf):
7480         Document this.
7481         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
7482         * m4/isinf.m4 (gl_ISINFL_WORKS):
7483         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
7484         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
7485         * tests/test-isfinite.c (test_isfinitel):
7486         * tests/test-isinf.c (test_isinfl):
7487         * tests/test-isnan.c (test_long_double):
7488         * tests/test-isnanl.h (main):
7489         * tests/test-snprintf-posix.h (test_function):
7490         * tests/test-sprintf-posix.h (test_function):
7491         * tests/test-vasnprintf-posix.c (test_function):
7492         * tests/test-vasprintf-posix.c (test_function):
7493 o       Test only that noncanonical values do not cause crashes, not that
7494         they are treated as NaNs.  In some cases this means a larger
7495         output buffer is needed.
7497 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
7499         fts: remove redundant close() (trivial)
7500         * lib/fts.c (fts_read): Remove redundant call to close().
7501         Spotted by coverity.
7503 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7505         getdtablesize: port better for Android
7506         Problem reported by Kevin Cernekee in:
7507         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
7508         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
7509         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
7510         Instead, just use getrlimit, taking care to avoid Cygwin bug.
7512         poll: fixes for large fds
7513         * lib/poll.c (poll): Don't check directly for NFD too large.
7514         Don't rely on undefined behavior in FD_SET when an arg exceeds
7515         FD_SETSIZE.  Always set revents afterwards, even if to zero.
7516         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
7517         as that makes the test a bit stricter.
7519 2015-02-19  Kevin Cernekee  <cernekee@google.com>
7521         fcntl: Fix cross compiling
7522         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
7523         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
7525 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7527         dup2, fcntl: cross-compile better for Android
7528         Problem reported by Kevin Cernekee in:
7529         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
7530         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
7531         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
7532         there's little need to cross-compile for older kernels nowadays.
7533         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
7534         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
7536 2015-02-18  Pádraig Brady  <P@draigBrady.com>
7538         getopt: don't crash on memory exhaustion
7539         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
7540         memory exhaustion.  In the _LIBC case we use alloca() as is
7541         already done in glibc, so we don't need to consider the separate
7542         error path in that awkward case.  Also fix a memory leak when
7543         ambiguous options are present.
7544         Reported by Tobias Stoeckmann
7546 2015-02-17  Mike Miller  <mtmiller@ieee.org>
7548         tempname: allow compilation with C++ (trivial)
7549         * lib/tempname.h [C++]: Specify extern "C" linkage.
7550         * lib/tempname.h (try_tempname):
7551         * lib/tempname.c (__try_tempname, __gen_tempname):
7552         Rename 'try' to 'tryfunc'.
7554 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7556         dup2, fcntl: port to AIX
7557         * m4/dup2.m4 (gl_FUNC_DUP2):
7558         * m4/fcntl.m4 (gl_FUNC_FCNTL):
7559         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
7560         The former works on AIX 7.1 but the latter does not.
7561         Also, this may work better with Android; see:
7562         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
7564 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7566         getdtablesize, dup2, fcntl: port to Android
7567         Problem reported by Kevin Cernekee in:
7568         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
7569         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
7570         Mention that getdtablesize doesn't work on Android.
7571         * lib/getdtablesize.c: Use getrlimit substitute only if
7572         getdtablesize is declared.  This should suffice for Cygwin
7573         while not breaking Android.
7574         * m4/dup2.m4 (gl_FUNC_DUP2):
7575         * m4/fcntl.m4 (gl_FUNC_FCNTL):
7576         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
7577         standardized but the latter is not, and sysconf works on Android.
7578         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
7579         Also check that getdtablesize is declared.
7580         This removes the need for a special case for Android.
7582 2015-02-16  Kevin Cernekee  <cernekee@google.com>
7584         localename: Implement gl_locale_name_thread_unsafe for Android
7585         * lib/localename.c: Android API level >= 21 supports two hardcoded
7586         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
7587         the internal __locale_t struct.
7589 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
7591         fts: avoid crash when a cycle is added while traversing
7592         This could be triggered by auto-mounting a recursive bind mount.
7593         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
7594         * lib/fts.c (fts_read): Avoid removing the original hash table item
7595         when leaving a directory that caused a cycle, and preserve the FTS_DC
7596         flag.
7598 2015-02-16  Daiki Ueno  <ueno@gnu.org>
7600         uniname/uniname: support character alias
7601         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
7602         Generate one-way mapping from aliases to codepoints in the
7603         generated tables.  Special case variation selectors to reduce
7604         table size.
7605         * lib/uniname/uniname.c (unicode_character_name): Special case
7606         variation selectors.
7607         (unicode_name_character): Special case variation selectors and
7608         their aliases.
7609         * lib/uniname/uninames.h: Regenerate.
7610         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
7611         * modules/uniname/uniname-tests (Files): Add
7612         tests/uniname/NameAliases.txt.
7613         * tests/uniname/test-uninames.c: Mark as static.
7614         (ALIASLEN): Define.
7615         (struct unicode_alias): New struct.
7616         (unicode_aliases): New variable.
7617         (fill_aliases): New function.
7618         (test_alias_lookup): New test function.
7619         (main): Run the 'test_alias_lookup' test if the second argument is
7620         given.
7621         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
7622         second argument.
7624 2015-02-11  Kevin Cernekee  <cernekee@google.com>
7626         Fix FILE struct compatibility with Android API level >= 21
7627         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
7628         __sferror.  Recent versions of Bionic's stdio.h no longer define
7629         __sferror.
7630         * lib/fbufmode.c: Likewise.
7631         * lib/fflush.c: Likewise.
7632         * lib/fpurge.c: Likewise.
7633         * lib/freadable.c: Likewise.
7634         * lib/freadahead.c: Likewise.
7635         * lib/freading.c: Likewise.
7636         * lib/freadptr.c: Likewise.
7637         * lib/freadseek.c: Likewise.
7638         * lib/fseeko.c: Likewise.
7639         * lib/fseterr.c: Likewise.
7640         * lib/fwritable.c: Likewise.
7642         Assume unbroken ungetc() on Android
7643         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
7644         test case passed when running on an Android host, and the code
7645         hasn't really changed since 2009.
7647         getdtablesize: Fix Android build
7648         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
7649         versions have this symbol in the .so library (at least 32-bit
7650         platforms) but are missing the declaration in the header file,
7651         causing the m4 logic to guess incorrectly.
7653         localename: Fix Android build
7654         * modules/localename (Depends-on): Add langinfo.
7656         getugroups: Fix Android build
7657         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
7658         functions.
7660         euidaccess: Fix Android build
7661         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
7662         AT_EACCESS gets declared.
7664         linkat_nofollow: Add fallback case for cross compiling
7665         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
7667         net_if: Handle content-free <net/if.h> system headers
7668         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
7669         struct if_nameindex.  If not, enable the replacement header.
7671         signal_h: Fix Android build
7672         * lib/signal.in.h: Add Android to the list of platforms that declare
7673         pthread_sigmask() in <pthread.h> instead of <signal.h>.
7675         duplocale: Fix Android build of duplocale-tests
7676         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
7677         is included by test-duplocale.c (but not by duplocale.c).
7678         * modules/duplocale-tests (configure.ac): Check for monetary.h.
7679         * tests/test-duplocale.c: Skip test if monetary.h is absent.
7680         * doc/posix-headers/monetary.texi: Add Android to the list of
7681         platforms missing monetary.h.
7683 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7685         tests: avoid recent -Werror=unused-variable regression in test-locale
7686         * tests/test-locale.c (main): Reference the variable to avoid the
7687         "unused variable" warning.
7689 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7691         maint: various whitespace cleanups in tempname
7692         * lib/tempname.c: Normalize spacing and line length.
7693         * lib/tempname.h: Likewise.
7694         * modules/tempname: Likewise.
7696 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7698         tests: provide returns_() to simplify exit status checking
7699         * tests/init.sh (returns_): A new function for use in tests,
7700         to allow for easier checking of return values, where you expect
7701         a command to exit with failure status.  By checking for a particular
7702         exit code, you don't hide any crashes for example.
7704 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7706         mountlist: only use libmount when specified
7707         There are currently many shared libs dependencies introduced by
7708         libmount with associated runtime and virt mem overhead.
7709         Therefore don't enable by default.
7710         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
7712 2015-02-08  Daiki Ueno  <ueno@gnu.org>
7714         uniname/unimame-tests: don't link with -lunistring
7715         * modules/uniname/uniname-tests (Makefile.am): Don't link against
7716         $(LIBUNISTRING).  Document the rationale why we need to
7717         conditionalize the test.
7719 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7721         fstrcmp: don't assume strlen < INT_MAX
7722         * lib/fstrcmp.c: Include stddef.h and stdint.h.
7723         (uintptr_t): Remove, as we're now assuming stdint.
7724         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
7725         Prefer ptrdiff_t to int when the value could exceed INT_MAX
7726         if the input string is long.
7727         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
7728         uintptr_t to size_t when the underlying value is a pointer casted
7729         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
7730         * modules/fstrcmp (Depends-on): Add stdint.
7732         diffseq: prefer ptrdiff_t to ssize_t
7733         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
7734         ptrdiff_t is the natural type for signed indexes.
7735         On a few older platforms, ssize_t is narrower than size_t.
7737         xalloc: fix typo that suppressed warnings
7738         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
7739         This typo, introduced a couple of years ago, mistakenly suppressed
7740         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
7741         -Wmissing-declarations warnings.
7743         full-read: fix license notice typo
7744         * lib/full-read.h: Remove a stray line in the license notice.
7745         Reported by Sam Ellis in: http://bugs.gnu.org/19808
7747         crypto/gc: fix a -Wswitch warning
7748         Reported by Bruce Korb in:
7749         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
7750         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
7752 2015-02-03  Pádraig Brady  <P@draigBrady.com>
7754         gnulib-tool: fix handling of patch(1) diagnostics
7755         * gnulib-tool: Send diagnostics from patch(1) to stderr,
7756         as otherwise gnulib-tool will reparse that output and attempt
7757         to lookup modules.
7759 2015-02-03  Pádraig Brady  <P@draigBrady.com>
7761         bootstrap: exit immediately upon gnulib-tool failure
7762         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
7763         This was noticed when gnulib-tool exited early due to failure
7764         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
7765         but various confusing errors were then given as the build proceeded.
7767 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
7769         symlinkat: include all required header files
7770         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
7771         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
7772         Reported at https://savannah.gnu.org/bugs/index.php?44151
7773         and by Jack Howarth.
7775 2015-01-29  Pádraig Brady  <P@draigBrady.com>
7777         localename: support Solaris 12 and illumos
7778         * lib/localename.c (gl_locale_name_thread_unsafe): call
7779         getlocalename_l() on newer __sun platforms.
7780         Reported by Alexander Pyhalov.
7781         Fix suggested by Rich Burridge.
7783 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
7785         locale: fix tests on illumos (trivial)
7786         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
7787         so move from global scope to main().
7789 2015-01-24  Daiki Ueno  <ueno@gnu.org>
7791         unictype: avoid undefined left-shift behavior
7792         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
7793         gcc's -fsanitize=shift and running its tests triggered:
7794           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
7795             places cannot be represented in type 'int'
7796         Cast LHS to 'unsigned int' after integer promotion.
7797         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
7798         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
7800 2015-01-20  Daiki Ueno  <ueno@gnu.org>
7802         libunistring: bump version of unitypes dependants
7803         Due to the header file search order, all the headers which depend
7804         on unitypes.h need to be generated, when the preinstalled
7805         libunistring is older.
7806         * modules/unicase/base (configure.ac): Bump minimum version to
7807         0.9.4.
7808         * modules/uniconv/base (configure.ac): Likewise.
7809         * modules/unilbrk/base (configure.ac): Likewise.
7810         * modules/uninorm/base (configure.ac): Likewise.
7811         * modules/unistdio/base (configure.ac): Likewise.
7812         * modules/unistr/base (configure.ac): Likewise.
7813         * modules/uniwbrk/base (configure.ac): Likewise.
7814         * modules/uniwidth/base (configure.ac): Likewise.
7816 2015-01-20  Daiki Ueno  <ueno@gnu.org>
7818         unictype/category-none: fix link with libunistring
7819         Since _UC_CATEGORY_NONE is not a public symbol, it will be
7820         prefixed with "libstring_" when compiled as part of libunistring.
7821         To avoid undefined symbol at link time, increase the minimum
7822         version when the dependant modules are updated.
7823         * modules/unictype/category-none (configure.ac): Bump minimum
7824         version to 0.9.5.
7826 2015-01-20  Daiki Ueno  <ueno@gnu.org>
7828         unitypes: fix build with installed libunistring
7829         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
7830         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
7831         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
7833 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7835         time: port to MinGW32 3.21
7836         Problem reported by Eli Zaretskii in:
7837         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
7838         * lib/time.in.h:
7839         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
7840         * modules/time (Depends-on):
7841         Fall back on unistd.h if the other include files don't define
7842         struct timespec.
7844         update-copyright: apply to self
7845         * build-aux/update-copyright: Fix copyright date.  How ironic!
7847 2015-01-15  Daiki Ueno  <ueno@gnu.org>
7849         libunistring: update to Unicode 7.0.0
7850         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
7851         Manichaean names.
7852         * lib/unictype/joininggroup_name.h: Likewise.
7853         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
7854         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
7855         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
7856         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
7857         (fill_arabicshaping, joining_group_as_c_identifier): Support those
7858         enum values.
7859         (is_property_alphabetic): Accept newly added characters to
7860         cuneiform numeric signs.
7861         (is_property_default_ignorable_code_point): Reject U+0605.
7862         (FIELDLEN): Increase from 120 to 160.
7863         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
7864         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
7865         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
7866         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
7867         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
7868         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
7869         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
7870         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
7871         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
7872         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
7873         U+1E8D0..U+1E8D6.
7874         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
7875         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7876         lib/uniwidth/width.c.
7877         * all generated files under lib/uni* and tests/uni*: Regenerate.
7879 2015-01-14  Daiki Ueno  <ueno@gnu.org>
7881         libunistring: update to Unicode 6.3.0
7882         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
7883         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
7884         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
7885         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
7886         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
7887         Update WB5, WB9, WB10, WB13a, and WB13b.
7888         * tests/uniwbrk/test-uc-wordbreaks.c
7889         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
7890         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
7891         (UC_BIDI_PDI): New enumeration values.
7892         (bidi_category_byname): Support those enum values.
7893         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
7894         dedicated property assigned.
7895         (is_property_case_ignorable): Check 0x0027.
7896         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
7897         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
7898         (output_wbp): Support those enum values.
7899         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
7900         (UC_BIDI_PDI): New enumeration values.
7901         * lib/unictype/bidi_byname.gperf: Add those property names.
7902         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
7903         U+180E, U+1A1B, and U+2066..U+2069.
7904         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7905         lib/uniwidth/width.c.
7906         * all generated files under lib/uni* and tests/uni*: Regenerate.
7908 2015-01-14  Daiki Ueno  <ueno@gnu.org>
7910         libunistring: update to Unicode 6.2.0
7911         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
7912         (unilbrk_table): Adjust table size.
7913         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
7914         for LBP_RI.
7915         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
7916         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
7917         Normalize table index skipping ignored properties.
7918         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
7919         WBP_EXTEND and WBP_FORMAT, which are now computed without using
7920         the table.
7921         * lib/uniwbrk/wbrktable.h: Adjust table size.
7922         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
7923         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
7924         Support rule GB8a.
7925         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
7926         * tests/unigbrk/test-uc-is-grapheme-break.c
7927         (graphemebreakproperty_to_string): Support GBP_RI.
7928         * tests/uniwbrk/test-uc-wordbreaks.c
7929         (wordbreakproperty_to_string): Support WBP_RI.
7930         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
7931         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
7932         (output_lbp): Support LBP_RI.  Adjust some characters changed from
7933         LBP_AL to LBP_ID.
7934         (output_lbp): Support LBP_RI.
7935         (WBP_RI): New enumeration value.
7936         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
7937         (output_wbp): Support WBP_RI.
7938         (GBP_RI): New enumeration value.
7939         (output_gbp_test, fill_org_gbp): Support GBP_RI.
7940         * all generated files under lib/uni* and tests/uni*: Regenerate.
7942 2015-01-14  Daiki Ueno  <ueno@gnu.org>
7944         libunistring: update to Unicode 6.1.0
7945         * lib/gen-uni-tables.c (output_joining_group): Switch to
7946         3-level table to accommodate joining groups defined with higher
7947         codepoint value.  Since there are only 88 groups defined in
7948         Unicode 7.0.0, use 7-bit packed format for level3 entries.
7949         (get_lbp): Update for Unicode 6.1.0.
7950         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
7951         3-level table.
7952         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
7953         joining group name.
7954         * lib/unictype/joininggroup_name.h: Likewise.
7955         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
7956         (unilbrk_table): Adjust table size.
7957         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
7958         for LBP_HL.
7959         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
7960         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
7961         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
7962         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
7963         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
7964         U+302E..U+302F.
7965         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7966         lib/uniwidth/width.c.
7967         * all generated files under lib/uni* and tests/uni*: Regenerate.
7968         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
7970 2015-01-15  Daiki Ueno  <ueno@gnu.org>
7972         uniwbrk/u32-wordbreaks-tests: add conformance test
7973         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
7974         tests/uniwbrk/test-uc-wordbreaks.c,
7975         tests/uniwbrk/test-uc-wordbreaks.sh, and
7976         tests/uniwbrk/WordBreakTest.txt.
7977         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
7978         test-uc-wordbreaks to $(check_PROGRAMS), and define
7979         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
7980         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
7981         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
7983 2015-01-15  Daiki Ueno  <ueno@gnu.org>
7985         uniwbrk: ignore Extended/Format characters at BOL not BOS
7986         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
7987         characters if the previous character property is one of
7988         WBP_NEWLINE, WBP_CR, and WBP_LF.
7990 2015-01-11  Jim Meyering  <meyering@fb.com>
7992         test-strstr.c: avoid a trivial leak
7993         * tests/test-strstr.c (main): Free haystack.
7995         update-copyright: recognize groff's \(co marker
7996         * build-aux/update-copyright (circle_c_re): Also accept
7997         uses of \(co, as found in gzip.1.
7999 2015-01-08  Pádraig Brady  <P@draigBrady.com>
8001         maint.mk: fix compatibility with OS X nm
8002         * top/maint.mk (_gl_tight_scope): Use the -g option to
8003         show exported items rather than the -e option which is
8004         ignored on all platforms except OS X where it gives an error.
8005         Reported by Assaf Gordon.
8007 2015-01-07  KO Myung-Hun  <komh@chollian.net>
8009         localcharset: improve charset detection on OS/2
8010         Use system codepage when appropriate.  Map OS/2 codepages to
8011         GNU canonical charset names if possible.
8012         * lib/config.charset: Don't output aliases if "$os" is os2*.
8013         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
8014         result for OS/2.
8015         (locale_charset) [OS2]: Use system codepage if codeset is omitted
8016         from the locale name which is neither "C" nor "POSIX".
8018 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8020         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
8021         This reverts the last patch but one, as it shouldn't be needed now
8022         that the typo is fixed.
8023         * lib/count-leading-zeros.h (count_leading_zeros_ll):
8024         * lib/count-trailing-zeros.h:
8025         * lib/count-one-bits.h:
8026         Go back to using 64-bit intrinsics.
8028         count-leading-zeros: fix pragma typos
8029         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
8030         Fix typos in declaration of intrinsics when _MSC_VER.
8032 2015-01-06  Pádraig Brady  <P@draigBrady.com>
8034         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
8035         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
8036         intrinsics in this case.
8037         * lib/count-trailing-zeros.h: Likewise.
8038         * lib/count-one-bits.h: Likewise.
8040 2015-01-06  Daiki Ueno  <ueno@gnu.org>
8042         uniname/uniname: update to Unicode 7.0.0
8043         To accommodate new characters added since Unicode 5.1.0, this
8044         changes the internal representation of codepoint ranges.
8045         Previously, we grouped codepoint ranges by manually assigned 4-bit
8046         tag, which only allowed 16 groups.  This removes the limitation by
8047         switching to binary search on a table.  For the detail rationale
8048         and the benchmark results, see:
8049         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
8050         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
8051         to INDEX, as it no longer represents a codepoint.
8052         (range): New struct.
8053         (main): Switch to intervals list from a bit-pattern based
8054         classification.
8055         * lib/uniname/uninames.h: Regenerate.
8056         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
8057         * modules/uniname/base (configure.ac): Bump minimum version to
8058         0.9.5.
8059         * modules/uniname/uniname (configure.ac): Bump minimum version to
8060         0.9.5.
8062 2015-01-05  Eric Blake  <eblake@redhat.com>
8064         doc: update INSTALL from autoconf
8065         * doc/install.texi: Resync from autoconf.
8066         * doc/INSTALL: Reflect recent autoconf update.
8067         * doc/INSTALL.ISO: Likewise.
8068         * doc/INSTALL.UTF-8: Likewise.
8070         stdio: fix use of PRIdMAX on modern mingw
8071         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
8072         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
8073         to work with modern mingw.
8075 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
8077         pthread: detect git mingw builds with only partial pollution
8078         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
8079         pollution, as seen temporarily in Fedora 21.
8081 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8083         lib-symbol-versions: cache script check
8084         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
8085         Cache the check for linker version scripts.
8086         From a suggestion by Christophe Curis in:
8087         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
8089 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
8091         maint: fix grammar nits in propername (trivial change)
8092         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
8093         and use an adequate verb and tense.
8095 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
8097         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
8098         * module/gendocs: Add 'doc/gendocs_template_min'.
8100         * build-aux/gendocs.sh: Change email addresses and upstream URLs
8101         from to Gnulib's.
8102         (scripturl, templateurl): Adjust accordingly.
8104 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8106         gendocs: copyright date and version fix
8107         Reported by Karl Berry in:
8108         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
8109         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
8110         Fix copyright date.
8111         * build-aux/gendocs.sh (scriptversion): Update.
8113 2015-01-01  Karl Berry  <karl@gnu.org>
8115         * doc/install.texi,
8116         * build-aux/mdate-sh,
8117         * build-aux/depcomp,
8118         * build-aux/config.guess,
8119         * build-aux/config.sub,
8120         * build-aux/ar-lib,
8121         * build-aux/compile: revert copyright updates (some from last
8122         year) in slaved files.
8124 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8126         version-etc: new year
8127         * doc/gnulib.texi:
8128         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
8129         * all files: Run 'make update-copyright'.
8131 2014-12-30  Pádraig Brady  <P@draigBrady.com>
8133         xstrtol: ensure errno is reset
8134         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
8135         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
8137         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
8139 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8141         utimens: fix dependency typo
8142         * modules/utimens (Depends-on): Remove 'assure'.
8143         This bug was introduced in the recent 'assure' patch.
8145 2014-12-22  Eric Blake  <eblake@redhat.com>
8147         docs: mention why libgen.h is bad
8148         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
8150 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8152         assure: new module
8153         This works better than 'assert' when compiling with -DNDEBUG,
8154         as it avoids some compiler diagnostics in that case.
8155         Reported by Norihiro Tanaka in:
8156         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
8157         * MODULES.html.sh (func_all_modules): Add 'assure'.
8158         * lib/assure.h, modules/assure: New files.
8159         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
8160         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
8161         Prefer 'assure' to 'assert'.
8162         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
8163         * modules/chdir-long, modules/cycle-check, modules/fchdir:
8164         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
8165         Depend on 'assure'.
8167 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8169         stdalign: port better to HP compilers
8170         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
8171         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
8173         stdalign: work around Apple GCC 4.0 bug
8174         Reported by David Fang in:
8175         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
8176         * lib/stdalign.in.h (_Alignas):
8177         * m4/stdalign.m4 (gl_STDALIGN_H):
8178         Do not use aligned attribute with GCC 4.0 on Apple.
8180 2014-12-16  Pádraig Brady  <P@draigBrady.com>
8182         getcwd: fix test failure on OS X 10.9
8183         * m4/getcwd-path-max.m4: Avoid the replacement if it
8184         won't be effective due to the PATH_MAX limitation of lstat().
8185         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
8186         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
8187         for this case for use in tests, and also exclude this
8188         case when setting REPLACE_GETCWD.
8189         * tests/test-getcwd.c (test_long_name): Restrict the
8190         tested path length so that lstat() will not be passed
8191         a path greater than PATH_MAX.
8192         Also key a test condition on HAVE_OPENAT_SUPPORT rather
8193         than AT_FDCWD, since the latter is set unconditionally
8194         since Sep 2009 in commit 52c658e9.
8196 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
8198         parse-datetime: avoid a compiler warning with byacc (trivial)
8199         * lib/parse-datetime.y (yylex): Use the same prototype in the
8200         function definition as the declaration, to avoid a -Wstrict-prototypes
8201         warning seen when using byacc.
8203 2014-12-12  Daiki Ueno  <ueno@gnu.org>
8205         unicase/locale-language-tests: fix LOCALE_FR test
8206         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
8207         a French locale with traditional encoding.
8208         Reported by umerqayam in:
8209         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
8211 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8213         stddef: support C11's max_align_t
8214         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
8215         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
8216         Do not undef, as that might cause max_align_t to be defined twice.
8217         Instead, change use to check for _GL_STDDEF_WINT_T too.
8218         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
8219         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
8220         Check for max_align_t.
8221         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
8222         * modules/stddef-tests (Depends-on): Add stdalign.
8223         * tests/test-stddef.c: Test max_align_t.
8225 2014-12-11  Daiki Ueno  <ueno@gnu.org>
8227         unistd: fix iOS check conditional
8228         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
8229         as 0 or 1 in <TargetConditionals.h>, and the previous check always
8230         yielded true on non-iOS environment.
8231         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
8232         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
8233         they are defined.
8235 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8237         posixtm: avoid compiler warning in a better way
8238         * lib/posixtm.c (IF_LINT): Remove.
8239         (year, posix_time_parse):
8240         Return true (not 0) if successful.  All callers changed.
8241         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
8243 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
8245         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
8246         started with '/' on EMX.
8248 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
8250         freopen: workaround freopen() on OS/2 kLIBC
8251         * lib/freopen.c (rpl_freopen): Workaround.
8252         * m4/freopen.m4: Add os2* case.
8254         get_shared_library_fullname: port to EMX
8255         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
8256         on EMX, respectively.
8257         (_DLL_InitTerm): New on EMX.
8258         (get_shared_library_fullname): Implement on EMX.
8260         find_executable: port to EMX
8261         * lib/progreloc.c (find_executable): Implement on EMX.
8263         sched: check struct sched_param in spawn.h as well
8264         * lib/sched.in.h: Include spawn.h on kLIBC.
8265         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
8267 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
8269         bootstrap: Allow perl modules in $buildreq
8270         * build-aux/bootstrap: Add case for perl modules.
8272 2014-12-08  Pádraig Brady  <P@draigBrady.com>
8274         apply _GL_ATTRIBUTE_PURE to some inline functions
8275         clang 3.4.2 flagged these inline functions as pure
8276         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
8277         * lib/sig-handler.h (get_handler): Likewise.
8278         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
8279         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
8281 2014-12-06  Pádraig Brady  <P@draigBrady.com>
8283         vasnprintf: fix potential use after free
8284         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
8285         flagged by clang-analyzer 3.4.2.
8287 2014-12-05  Pádraig Brady  <P@draigBrady.com>
8289         filevercmp, posixtm: avoid compiler warnings with -O3
8290         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
8291         * lib/posixtm.c: (IF_LINT): Define.
8292         (posix_time_parse): Use it to void a "may be used uninitialized"
8293         warning, seen only with -O3.
8295 2014-12-05  Bruno Haible  <bruno@clisp.org>
8297         Fix LDBL80_WORDS macro on big endian platforms.
8298         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
8299         LDBL80_WORDS macro.
8300         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
8301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8302         * tests/test-isfinite.c (test_isfinitel): Likewise.
8303         * tests/test-isinf.c (test_isinfl): Likewise.
8304         * tests/test-isnan.c (test_long_double): Likewise.
8305         * tests/test-isnanl.h (main): Likewise.
8306         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
8307         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
8308         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
8309         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
8310         Reported by Pádraig Brady.
8312 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
8314         git-version-gen: do not print new line characters
8315         * build-aux/git-version-gen: Use printf instead of echo and tr.
8317         gnulib-tool: recognize x:* as an absolute path
8318         * gnulib-tool (func_gnulib_dir): Add ?:* case.
8319         (func_relconcat): Likewise.
8321 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
8323         argp: avoid extraneous translation and mem leak with empty pre doc
8324         * lib/argp-help.c (argp_doc): Never translate the empty string,
8325         when "\v" is the first or last character of the string, as that
8326         has a reserved meaning to return the header info from a po file.
8327         This also fixes a small memory leak in the !post case.
8328         The issue can be seen with this command for example:
8329         LC_MESSAGES=en_US grub2-mknetdir --help
8331 2014-11-27  Daiki Ueno  <ueno@gnu.org>
8333         uniname/uniname-tests: skip if system's libunistring is used
8334         * modules/uniname/uniname-tests (Makefile.am): Skip test if
8335         uniname/uniname module is not compiled.
8337 2014-11-27  Pádraig Brady  <P@draigBrady.com>
8339         printf: fix configure check on big endian systems
8340         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
8342 2014-11-22  Daiki Ueno  <ueno@gnu.org>
8344         pipe-filter-gi, pipe-filter-ii: port to AIX
8345         On AIX 7.1, 'select' is defined as static and cannot be referred
8346         to from inline function.
8347         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
8348         the definition...
8349         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
8350         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
8352 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8354         gitlog-to-changelog: add --until
8355         * build-aux/gitlog-to-changelog: Support new --until option.
8356         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
8358 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
8360         extern-inline: update commentary about GCC bugs
8361         * m4/extern-inline.m4: Add another GCC bug number to comments.
8363 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8365         gen-uni-tables: untabify
8366         * lib/gen-uni-tables.c: Untabify.
8368 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8370         gen-uni-tables: check out-of-range values added to 3-level tables
8371         * lib/gen-uni-tables.c (output_category, output_bidi_category)
8372         (output_joining_type, output_ident_category): Check out-of-range
8373         values added to 3-level tables.
8375 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8377         gen-uni-tables: utilize 'assert'
8378         * lib/gen-uni-tables.c: Include <assert.h>.
8379         (output_category, output_combclass, output_decimal_digit_test)
8380         (output_decimal_digit, output_digit_test, output_digit)
8381         (output_numeric, get_mirror_value, fill_properties)
8382         (fill_property30, is_property_alphabetic)
8383         (is_property_default_ignorable_code_point)
8384         (is_property_uppercase, is_property_lowercase)
8385         (is_property_cased, is_property_case_ignorable)
8386         (is_property_changes_when_lowercased, is_property_iso_control)
8387         (is_property_math, fill_arabicshaping, output_joining_group)
8388         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
8389         (output_wbp, fill_org_gbp, get_decomposition)
8390         (output_decomposition, fill_composition_exclusions)
8391         (debug_output_composition_tables, output_composition_tables)
8392         (redistribute_casefolding_rules, output_casing_rules): Use
8393         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
8394         reporting.
8396 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8398         gen-uni-tables: cosmetic improvements
8399         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
8400         variables specification.
8401         (is_outdigit): Remove unused function.
8403 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
8405         fcntl-h-tests: port to PA-RISC GNU/Linux
8406         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
8408 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8410         fts: port to C89
8411         Problem reported for MSVC 16 by Gisle Vanem in:
8412         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
8413         * lib/fts.c (fts_build): Avoid declaration before statement.
8415 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8417         unistd: port to iOS
8418         Problem reported by André Klitzing in:
8419         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
8420         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
8422 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
8424         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
8425         Problem reported by Alan Modra in:
8426         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
8427         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
8428         Always cast the function arg, reverting this part of the previous
8429         change.
8431 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8433         obstack: avoid potentially-nonportable function casts
8434         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
8435         Remove, replacing with ...
8436         (call_chunkfun, call_freefun): New static functions.
8437         All uses changed.  Avoid potentially-nonportable casts.
8438         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
8439         (_obstack_begin_worker): Omit last two args, since they
8440         rely on potentially-nonportable casts.  All callers changed.
8441         * lib/obstack.h (_OBSTACK_CAST): New macro.
8442         Use it everywhere the old API used a potentially-nonportable cast.
8443         The new API doesn't cast.
8444         (struct obstack): Use unions rather than requiring
8445         potentially-nonportable casts.
8446         (obstack_chunkfun, obstack_freefun): Return void.
8448 2014-11-03  Alan Modra  <amodra@gmail.com>
8450         obstack: fix macro return values
8451         * lib/obstack.h (obstack_next_free): Return void *.
8452         (obstack_1grow_fast, obstack_blank_fast): Return void.
8453         For __GNUC__ macros:
8454         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
8455         For !__GNUC__ macros:
8456         (obstack_make_room, obstack_grow, obstack_grow0)
8457         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
8459 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8461         obstack: do not assume system-supplied obstack is size_t safe
8462         * m4/obstack.m4: New file.
8463         * modules/obstack (Files): Add it.
8465         obstack: port to platforms that #define __alignof__
8466         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
8467         not if !_LIBC.  We don't know of any platforms that #define
8468         __alignof__, but it might be useful in tests.  Conversely,
8469         glibc assumes GCC.
8471 2014-11-03  Pádraig Brady  <P@draigBrady.com>
8473         linkat: don't unconditionally replace on GNU/Linux
8474         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
8475         was redundant for a few reasons.  It was present to support compiling
8476         on new systems but running on the old narrow window of Linux 2.6.1[67].
8477         It setup and cleaned up test files which weren't actually used.
8478         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
8479         implicit in the following check.
8481 2014-11-03  Pádraig Brady  <P@draigBrady.com>
8483         linkat: wrap to handle symlinks on OS X 10.10
8484         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
8485         but not usable because it doesn't support creating hardlinks
8486         to symlinks.  Therefore add a generic test for this capability
8487         and fallback to our emulation if linkat() fails with ENOTSUP.
8489 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8491         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
8492         * doc/posix-functions/open.texi (open):
8493         * doc/posix-functions/openat.texi (openat):
8494         Document that these functions do not set errno to ELOOP when
8495         a symlink is opened with O_NOFOLLOW.
8497 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8499         obstack: add NEWS entry for recent incompatible changes
8500         * NEWS: Describe recent changes.
8502 2014-10-30  Pádraig Brady  <P@draigBrady.com>
8504         mountlist: don't use libmount to decide on dummy/remote
8505         * lib/mountlist.c (read_file_system_list): Don't use the libmount
8506         routines to determine whether a file system is dummy or remote,
8507         as they're not currently compatible.  For example the remoteness
8508         is determined on file system type (for which the list seems incomplete),
8509         rather than simply checking for a ':' in the device name.
8510         Also libmount currently determines that 'tmpfs' is a dummy file system
8511         even though it has associated storage.
8513 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
8515         obstack: prefer __alignof__ to alignof
8516         This is for portability to pre-4.7 GCC when compiling glibc.
8517         See Joseph S. Myers in:
8518         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
8519         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
8520         New macro, defined by including and using <alignof.h>.
8521         (MAX): New macro.
8522         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
8523         Do not use enums as they are not portable to some broken compilers.
8524         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
8526         obstack: prefer alignof to calculating alignments by hand
8527         * lib/obstack.c: Include <stdalign.h>.
8528         (struct fooalign): Remove.
8529         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
8530         * modules/obstack (Depends-on): Add stdalign.
8532 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
8534         obstack: use size_t alignments and check for overflow
8535         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
8536         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
8537         * lib/obstack.h (struct obstack.alignment_mask):
8538         Use _OBSTACK_SIZE_T, not int, for alignments.
8539         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
8540         overflows, e.g., when adding the alignment.
8542 2014-10-29  Alan Modra  <amodra@gmail.com>
8544         obstack: 64-bit obstack support, part 3
8545         This finally enables full 64-bit obstack support.  The glibc
8546         shared library specific code is removed from obstack.c too, and
8547         the error handling code conditionally compiled under control of
8548         another macro, _OBSTACK_NO_ERROR_HANDLER.
8549         * lib/obstack.h: Include string.h earlier.
8550         (_OBSTACK_INTERFACE_VERSION): Define.
8551         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
8552         * lib/obstack.c: Don't include shlib-compat.h.
8553         (OBSTACK_INTERFACE_VERSION): Delete.
8554         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
8555         glibc code is compatible with version 2.  Don't include stdio.h for
8556         __GNU_LIBRARY.
8557         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
8558         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
8559         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
8560         glibc shared library specific source.
8562         obstack: 64-bit obstack support, part 2
8563         This gets us 4G obstack support, without changing ABI
8564         compatibility, apart from possibly introducing some
8565         signed/unsigned comparison warnings in code that uses obstack.h.
8566         a) Replace "int" size parameters, return values, and macro local vars
8567            with _OBSTACK_SIZE_T, an "unsigned int" for now.
8568         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
8569         c) Make all obstack macros checking available room use obstack_room.
8570            "next_free + desired > chunk_limit" may wrap the lhs for chunks
8571            allocated near the top of memory.
8572         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
8573         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
8574         in place of "int" size parameters, return values and local vars.
8575         (_CHUNK_SIZE_T): Define.
8576         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
8577         union use an _OBSTACK_SIZE_T integer type.
8578         For __GNUC__ versions of the following macros...
8579         (obstack_room): Rename local var.
8580         (obstack_make_room): Use obstack_room.
8581         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
8582         obstack_int_grow, obstack_blank): Likewise.
8583         (obstack_finish): Use unsigned comparison when comparing aligned
8584         next_free against chunk_limit.
8585         (obstack_free): Cast OBJ to remove possible const qualifier.
8586         For !__GNUC__ versions of the following macros...
8587         (obstack_make_room): Use obstack_room.
8588         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
8589         obstack_int_grow, obstack_blank): Likewise.
8590         (obstack_finish): Use unsigned comparision when comparing aligned
8591         next_free against chunk_limit.
8592         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
8593         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
8594         _OBSTACK_SIZE_T.
8595         (_obstack_begin, _obstack_begin_1): Likewise.
8596         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
8597         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
8599         obstack: 64-bit obstack support, part 1
8600         a) Correct calls to alloc function, to use a size_t arg.  "long" is
8601            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
8602            and "size_t" 64 bits.
8603         b) Consolidate _obstack_begin and _obstack_begin1 code.
8604         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
8605         use "size_t" rather than "long".
8606         (_obstack_begin, _obstack_begin1): Likewise.
8607         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
8608         obstack_chunkfun): Update alloc function casts.
8609         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
8610         (chunkfun_type, freefun_type): New typdefs.
8611         (_obstack_begin_worker): Split out from ..
8612         (_obstack_begin, _obstack_begin_1): ..here.
8614         obstack: tidy part 2
8615         a) Don't be concerned about "not polluting the namespace with stddef.h
8616            symbols" in obstack.h, since gnulib string.h includes stddef.h
8617            anyway, and it seems unlikely that anyone would care.
8618         b) Don't roll our own slow memcpy in _obstack_newchunk.
8619         c) Rename obstack_free to _obstack_free.  This makes the naming
8620            consistent with other obstack functions and obviates the need for
8621            __obstack_free.  Ancient obstack.c defined both obstack_free and
8622            _obstack_free.  We continue to do that for _LIBC via an alias.
8623         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
8624            is clever, but nowadays gcc warns on undefined macros.  You'll get
8625            an undefined macro warning if simulating an old gcc with -U__GNUC__
8626            -U__GNUC_MINOR__ -D__GNUC__=1.
8627         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
8628         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
8629         (__obstack_free): Delete, update refs.
8630         (_obstack_free): Rename from obstack_free.
8631         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
8632         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
8633         * lib/obstack.c: Don't include stddef.h.
8634         (COPYING_UNIT): Delete.
8635         (_obstack_begin): Formatting fix.
8636         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
8637         (_obstack_free): Rename from __obstack_free, update alias.  Move
8638         undef of obstack_free to where it is needed.
8640         obstack: tidy part 1
8641         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
8642            to me, and result in overlong lines after later patches.
8643         b) Move error handling code, to avoid a forward declaration and to
8644            simplify later patches in this series.
8645         * lib/obstack.h (struct obstack <temp>): Rename fields of union
8646         and update all uses.
8647         * lib/obstack.c: Include stdlib.h earlier.
8648         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
8649         in file.
8650         (print_and_abort): Remove now redundant forward declaration.
8652 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8654         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
8655         Without this change, in bleeding-edge fileutils Autoconf complains
8656         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
8657         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
8658         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
8659         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
8661 2014-10-24  Daiki Ueno  <ueno@gnu.org>
8663         iconv: avoid false detection of non-working iconv
8664         The INBUF arguments of iconv can be either 'const char **'
8665         or 'char **'.  If CC is g++, the difference causes a compile error
8666         and thus leads to a false detection of non-working iconv.
8667         Reported by Eli Zaretskii and Werner LEMBERG in:
8668         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
8669         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
8670         iconv.  Bump serial number.
8672 2014-10-23  Pádraig Brady  <P@draigBrady.com>
8674         bootstrap: print more diagnostics for missing programs
8675         * build-aux/bootstrap: only suppress stderr when checking for
8676         alternative program names.  This supports programs issuing non
8677         standard error messages.
8679 2014-10-23  Pádraig Brady  <P@draigBrady.com>
8681         bootstrap: only update the gnulib submodule
8682         * build-aux/bootstrap: Restrict the "submodule update" command
8683         to the gnulib path.
8685 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
8687         symlinkat: port to AIX 7.1
8688         * doc/posix-functions/symlinkat.texi (symlinkat):
8689         Mention AIX porting problem.
8690         * lib/symlinkat.c: Always include errno.h.
8691         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
8692         * lib/unistd.in.h (symlinkat): Add replacement machinery.
8693         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
8694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
8695         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
8696         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
8697         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
8699         readlinkat: port to AIX 7.1
8700         * doc/posix-functions/readlink.texi (readlink):
8701         * doc/posix-functions/readlinkat.texi (readlinkat):
8702         Mention AIX porting problem.
8703         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
8704         New function.
8705         * lib/unistd.in.h (readlinkat): Add replacement machinery.
8706         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
8707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
8708         * modules/readlinkat (configure.ac): Also compile replacement
8709         if REPLACE_READLINKAT.
8710         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
8712 2014-10-12  Karl Berry  <karl@gnu.org>
8714         * doc/posix-functions/dirname.texi: remove spurious {.
8716 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
8718         basename, dirname: Improve documentation.
8719         * doc/posix-functions/basename.texi: Mention dirname module and
8720         base_name() function.
8721         * doc/posix-functions/dirname.texi: Mention dir_name() and
8722         mdir_name() functions.
8723         Suggested by Werner LEMBERG <wl@gnu.org>.
8725 2014-09-24  Jim Meyering  <meyering@fb.com>
8727         exclude: declare exclude_patopts static
8728         * lib/exclude.c (exclude_patopts): Declare static,
8729         to avoid triggering a -Wmissing-prototypes warning.
8730         The alternative (declaring it in the .h file) would
8731         require publicizing the private "struct patopts".
8733 2014-09-21  Werner Lemberg  <wl@gnu.org>
8735         dirname: support compilation with C++
8736         * lib/dirname.h: Add necessary C linkage declarations.
8738 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8740         qsort_r: include <config.h>
8741         Problem reported by Tom G. Christensen in:
8742         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
8743         * lib/qsort.c [!_LIBC]: Include <config.h> first.
8745 2014-09-16  Dylan Cali  <calid1984@gmail.com>
8747         avltree-list: avoid compiler warnings (trivial)
8748         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
8749         -Werror=suggest-attribute=pure.
8750         * lib/gl_array_list.c: Likewise.
8751         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
8752         declaration to avoid -Werror=missing-prototypes.  This is not added
8753         to a header as only exported for tests.  Add (void) to the
8754         check_invariants() call to indicate we're discarding the result
8755         in this context which avoids -Werror=unused-value.  Note we don't
8756         use ignore_value here to avoid a dependency as we know we'll not
8757         be adding __attribute__((warn_unused_result)) to check_invariants().
8758         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
8760 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8762         qsort_r: new module, for GNU-style qsort_r
8763         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
8765 2014-09-15  Werner LEMBERG  <wl@gnu.org>
8767         strerror_r-posix: support compilation with C++
8768         * lib/strerror_r.c: Add necessary C linkage declarations.
8770 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
8772         fcntl-h: fix compilation with Intel C++ compiler (trivial)
8773         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
8775 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
8777         mountlist: use /proc/self/mountinfo when available
8778         Use libmount to propagate device IDs provided by Linux in
8779         /proc/self/mountinfo.  This will give more accurate output when
8780         using df in chroot'ed environments as the device IDs are not
8781         determined by stat() which may be inaccurate within the chroot.
8782         * lib/mountlist.c (read_file_system_list): Use the libmount routines
8783         from util-linux to parse "/proc/self/mountinfo" or fall back to
8784         standard getmntent() processing.
8785         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
8786         getmntent() is used, as is the case on GNU/Linux.
8788 2014-09-07  Eric Wong  <normalperson@yhbt.net>
8790         users.txt: add cmogstored
8791         cmogstored has used gnulib since the beginning in 2012 to support
8792         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
8794 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
8796         Trivial change.
8797         * gnulib-tool: Use same options as build-aux/bootstrap to download
8798         PO files.
8800 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
8802         Trivial change.
8803         * gnulib-tool: Fallback to wget when rsync of PO files fails.
8805 2014-09-04  Eric Blake  <eblake@redhat.com>
8807         maintainer-makefile: add syntax check for useless ';;'
8808         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
8810 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
8812         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
8813         Problem reported by Assaf Gordon in:
8814         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
8815         Apparently Ubuntu is doing some fancy link-time optimization
8816         that doesn't work with -lpthread but does work with -pthread.
8817         Work around the bug by preferring -pthread to -lpthread.
8818         * m4/pthread.m4 (gl_PTHREAD_CHECK):
8819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
8820         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8821         Treat -pthread like -lpthread.
8823 2014-09-04  Eric Blake  <eblake@redhat.com>
8825         error: drop spurious semicolon
8826         * lib/error.c (__error_at_line): Fix ';;'.
8828 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8830         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
8831         * m4/gnulib-common.m4 (AC_C_RESTRICT):
8832         Override AC_C_RESTRICT unconditionally.
8833         Update from autoconf, incorporating:
8834         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
8835         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
8837 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8839         manywarnings: add GCC 4.9 warnings
8840         Also, make it easier to maintain this in the future.
8841         * build-aux/gcc-warning.spec: Add -Wabi-tag,
8842         -Wconditionally-supported, -Wdelete-incomplete,
8843         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
8844         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
8845         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
8846         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
8847         only for older GCC versions that need them.  Handle
8848         -Wnormalized=nfc specially, so that the 'comm' command used
8849         for maintenance doesn't get confused.
8851 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8853         vasnprintf: fix bugs in width computation
8854         * lib/vasnprintf.c (VASNPRINTF):
8855         Rework previous change, which introduced a bug,
8856         to avoid the warning in a different way.
8857         Avoid undefined behavior if the width arg is less than -INT_MAX.
8858         Avoid unnecessary use of HAS_WIDTH local.
8860 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
8862         vasnprintf: Avoid signed/unsigned comparison warning.
8863         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
8864         compare end addr of generated string w/ maximum end addr.
8866 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
8868         parse-datetime: Avoid pointer difference.
8869         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
8870         instead of calculating difference of pointers.  This removes an
8871         annoying warning, devoid of any use.
8873 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8875         qsort_r: new module, for GNU-style qsort_r
8876         This works even on FreeBSD, which has an incompatible qsort_r API.
8877         * MODULES.html.sh: Add it.
8878         * doc/glibc-functions/qsort_r.texi: It's now supported.
8879         * lib/qsort.c: New file, taken from glibc with minor changes
8880         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
8881         removed.
8882         * lib/qsort_r.c: New file, compiled only on FreeBSD.
8883         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
8884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
8885         * modules/qsort_r, modules/qsort_r-tests: New files.
8886         * modules/stdlib (Makefile): Set up its defaults.
8887         * tests/test-qsort_r.c: New file.
8889 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
8891         vla: new module
8892         GNU RCS can use this, mostly for documentation I expect.  See:
8893         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
8894         * MODULES.html.sh: Add vla.
8895         * lib/vla.h, modules/vla: New files.
8897 2014-08-07  Daiki Ueno  <ueno@gnu.org>
8899         localename: make gl_locale_name_thread really thread-safe on Windows
8900         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
8901         "glthread/lock.h".
8902         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
8903         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
8905 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
8907         getpass: don't assume struct termios
8908         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
8909         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
8910         * lib/getpass.c (getpass): Port to systems lacking struct termios.
8912         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
8913         Problem reported by Jonas 'Sortie' Termansen in:
8914         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
8915         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
8916         Implement via sysconf for platforms that lack getdtablesize.
8918         vararrays: modernize AC_C_VARARRAYS for C11
8919         This backports a change I recently made to Autoconf.
8920         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
8921         VLAs are not supported, as this is what C11 does.  The old macro
8922         HAVE_C_VARARRAYS is still defined if they are supported, but is
8923         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
8925 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
8927         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
8928         * build-aux/install-reloc (func_create_wrapper): Also wrap
8929         strerror-override, stat, stat.
8931 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
8933         sys_select: fix FD_ZERO problem on Solaris 10
8934         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
8935         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
8936         to expand to an expression that invoked memset without necessarily
8937         including <string.h>.  The problem was that the first include
8938         defined _SYS_TIME_H, causing the second include to short-circuit.
8939         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
8940         Also, fix what appears to be a cut-and-paste typo, by replacing
8941         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
8942         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
8944         accept: document Solaris 10 type glitch
8945         * doc/posix-functions/accept.texi (accept): Mention that
8946         Solaris 10 'accept' takes void * last arg, not socklen_t *.
8948 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
8950         extern-inline: port to FreeBSD, DragonFly
8951         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
8952         is present if either __DragonFly__ or __FreeBSD__ is defined.
8953         FreeBSD problem reported by Andrey Borzenkov in:
8954         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
8955         Also, worry about __APPLE__ only if __MACH__ is also defined,
8956         as this is more consistent with the rest of gnulib.
8957         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
8958         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
8960 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
8962         regex: Make #if/#ifdef usage consistent for DEBUG
8963         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
8964         of the inconsistent usage of #if and #ifdef as that works with
8965         both Glibc and Gnulib's style.
8967 2014-07-31  Eric Blake  <eblake@redhat.com>
8969         openat-die: use _Noreturn markup
8970         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
8971         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
8972         _Noreturn.
8974 2014-07-30  Eric Blake  <eblake@redhat.com>
8976         test-open: port to cygwin, which lacks Fortify
8977         * tests/test-open.h (ALWAYS_INLINE): New macro.
8978         (__always_inline): Don't abuse internal symbol on non-glibc.
8980 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
8982         localename: Enforce declarations before statements.
8983         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
8984         first statement.
8986 2014-07-18  Jim Meyering  <meyering@fb.com>
8988         test-userspec: don't look up numeric user names
8989         * tests/test-userspec.c: I found a system for which getpwnam("0")
8990         returned a pointer to a non-root user's entry, and that made the
8991         test fail.
8992         (T): Prefix each numeric input with "+", to inhibit lookup.
8994 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
8996         localcharset, localename: MS-Windows support for non-default locales
8997         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
8998         falling back on the default system codepage, try extracting
8999         the codepage from what 'setlocale' returns.  This allows to
9000         take into account changes of the codeset due to non-default
9001         locale set by a previous call to 'setlocale'.
9002         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
9003         Define if not already defined.
9004         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
9005         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
9006         current locale by calling 'setlocale', then converting the
9007         locale name into LCID by calling 'get_lcid'.  This allows to
9008         take into account changes in the current locale from the
9009         default one, in contrast to GetThreadLocale.
9011 2014-07-14  Daiki Ueno  <ueno@gnu.org>
9013         announce-gen: avoid failure when Digest::SHA is installed
9014         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
9015         Digest::SHA1->new in print_checksums fails.
9016         * build-aux/announce-gen (digest_classes): New associative array
9017         for available message digest implementations.
9018         (print_locations): Use it.
9020 2014-07-13  Pádraig Brady  <P@draigBrady.com>
9022         gettext: revert "update macros to version 0.19"
9023         This reverts commit 9b9370ca, as it currently requires that
9024         developers of any project that explicitly uses the gettext module
9025         or implicitly uses it through the utimens-tests or
9026         futimens-tests modules, use gettext >= 0.19.
9027         However there are some stability and availablity issues with
9028         that version at present.  We can reinstate this soon, when stability
9029         is addressed and packages are more readily available.
9031 2014-07-12  Jim Meyering  <meyering@fb.com>
9033         regex: don't deref NULL upon heap allocation failure
9034         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
9035         failure in one more place.
9036         To trigger the segfault, configure grep -with-included-regex,
9037         build it, and run these commands:
9038         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
9039         I discovered this while replying to a private report from
9040         Jens Schleusener about excessive memory consumption by grep
9041         when using a regular expression like the one above.
9043 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
9045         regex: fix memory leak in compiler
9046         Fix by Andreas Schwab in:
9047         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
9048         * lib/regcomp.c (parse_reg_exp): Deallocate partially
9049         constructed tree before returning error.
9051 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
9053         announce-gen: avoid perl warnings
9054         * build-aux/announce-gen: add two minor checks to avoid
9055         "use of uninitialized value" warnings when command-line parameters are
9056         missing.
9058 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
9060         localename: avoid -Wsuggest-attribute={const,pure} warnings
9061         * lib/localename.c (string_has): Tag internal function as pure.
9062         * lib/localename.h (gl_locale_name_default): Tag extern declaration
9063         as const when appropriate.
9065 2014-07-10  Eli Zaretskii <eliz@gnu.org>
9067         nl_langinfo: Fix last change.
9068         * lib/nl_langinfo.c (includes): Drop redundant include.
9070 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9072         error: Fix -Wundef warnings in glibc
9073         * lib/error.c [_LIBC]: Define default macros for
9074         glibc.
9075         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
9076         Check _LIBC before STRERROR_R_CHAR_P.
9078         error: Sync from glibc master
9079         * lib/error.c [_LIBC]: Remove INTUSE usage.
9080         (error_tail): Remove unused macro ALLOCA_LIMIT.
9081         Fix potential buffer overflow.  Fix potential NULL dereference
9082         in strcmp.
9084 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
9086         nl_langinfo: fix build under mingw
9087         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
9089 2014-07-09  Andrew D Warshall  <warshall@99main.com>
9091         mountlist: do not classify a bind-mounted dir entry as "dummy"
9092         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
9093         1-argument getmntent() (instead of assuming absence).
9095 2014-07-08  Eric Blake  <eblake@redhat.com>
9097         maint.mk: less syntax-check noise when SIGPIPE is ignored
9098         * top/maint.mk (_sc_header_without_use)
9099         (sc_require_config_h_first): Parse full list.
9101 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
9102             Paul Eggert  <eggert@cs.ucla.edu>
9104         nl_langinfo: CODESET on MS-Windows and more items from localeconv
9105         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
9106         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
9107         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
9108         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
9109         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
9110         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
9111         Include <stdio.h> if Microsoft Windows.
9112         Include <time.h> if !REPLACE_NL_LANGINFO.
9113         (ctype_codeset): New function, taken from rpl_nl_langinfo,
9114         and with improvements for Microsoft Windows.
9115         (rpl_nl_langinfo): Use it.
9116         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
9117         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
9118         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
9119         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
9120         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
9121         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
9122         corresponding values returned by 'localeconv'.  Compute the values
9123         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
9124         'strftime' with a suitable struct tm value.
9126 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9128         Bruno Haible has stepped down as maintainer.
9129         See Karl Berry in:
9130         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
9131         Daiki Ueno has volunteered to maintain libunistring; see:
9132         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
9133         * modules/gen-uni-tables, modules/libunistring:
9134         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
9135         * modules/unicase/base, modules/unicase/cased:
9136         * modules/unicase/empty-prefix-context:
9137         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
9138         * modules/unicase/locale-language, modules/unicase/special-casing:
9139         * modules/unicase/tocasefold, modules/unicase/tolower:
9140         * modules/unicase/totitle, modules/unicase/toupper:
9141         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
9142         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
9143         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
9144         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
9145         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
9146         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
9147         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
9148         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
9149         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
9150         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
9151         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
9152         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
9153         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
9154         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
9155         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
9156         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
9157         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
9158         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
9159         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
9160         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
9161         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
9162         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
9163         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
9164         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
9165         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
9166         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
9167         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
9168         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
9169         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
9170         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
9171         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
9172         * modules/unicase/ulc-casexfrm, modules/unicodeio:
9173         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
9174         * modules/uniconv/u16-conv-to-enc:
9175         * modules/uniconv/u16-strconv-from-enc:
9176         * modules/uniconv/u16-strconv-from-locale:
9177         * modules/uniconv/u16-strconv-to-enc:
9178         * modules/uniconv/u16-strconv-to-locale:
9179         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
9180         * modules/uniconv/u32-strconv-from-enc:
9181         * modules/uniconv/u32-strconv-from-locale:
9182         * modules/uniconv/u32-strconv-to-enc:
9183         * modules/uniconv/u32-strconv-to-locale:
9184         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
9185         * modules/uniconv/u8-strconv-from-enc:
9186         * modules/uniconv/u8-strconv-from-locale:
9187         * modules/uniconv/u8-strconv-to-enc:
9188         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
9189         * modules/unictype/bidicategory-all:
9190         * modules/unictype/bidicategory-byname:
9191         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
9192         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
9193         * modules/unictype/bidiclass-byname:
9194         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
9195         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
9196         * modules/unictype/block-all, modules/unictype/block-list:
9197         * modules/unictype/block-of, modules/unictype/block-test:
9198         * modules/unictype/category-C, modules/unictype/category-Cc:
9199         * modules/unictype/category-Cf, modules/unictype/category-Cn:
9200         * modules/unictype/category-Co, modules/unictype/category-Cs:
9201         * modules/unictype/category-L, modules/unictype/category-LC:
9202         * modules/unictype/category-Ll, modules/unictype/category-Lm:
9203         * modules/unictype/category-Lo, modules/unictype/category-Lt:
9204         * modules/unictype/category-Lu, modules/unictype/category-M:
9205         * modules/unictype/category-Mc, modules/unictype/category-Me:
9206         * modules/unictype/category-Mn, modules/unictype/category-N:
9207         * modules/unictype/category-Nd, modules/unictype/category-Nl:
9208         * modules/unictype/category-No, modules/unictype/category-P:
9209         * modules/unictype/category-Pc, modules/unictype/category-Pd:
9210         * modules/unictype/category-Pe, modules/unictype/category-Pf:
9211         * modules/unictype/category-Pi, modules/unictype/category-Po:
9212         * modules/unictype/category-Ps, modules/unictype/category-S:
9213         * modules/unictype/category-Sc, modules/unictype/category-Sk:
9214         * modules/unictype/category-Sm, modules/unictype/category-So:
9215         * modules/unictype/category-Z, modules/unictype/category-Zl:
9216         * modules/unictype/category-Zp, modules/unictype/category-Zs:
9217         * modules/unictype/category-all, modules/unictype/category-and:
9218         * modules/unictype/category-and-not, modules/unictype/category-byname:
9219         * modules/unictype/category-longname, modules/unictype/category-name:
9220         * modules/unictype/category-none, modules/unictype/category-of:
9221         * modules/unictype/category-or, modules/unictype/category-test:
9222         * modules/unictype/category-test-withtable:
9223         * modules/unictype/combining-class:
9224         * modules/unictype/combining-class-all:
9225         * modules/unictype/combining-class-byname:
9226         * modules/unictype/combining-class-longname:
9227         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
9228         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
9229         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
9230         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
9231         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
9232         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
9233         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
9234         * modules/unictype/digit, modules/unictype/joininggroup-all:
9235         * modules/unictype/joininggroup-byname:
9236         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
9237         * modules/unictype/joiningtype-all:
9238         * modules/unictype/joiningtype-byname:
9239         * modules/unictype/joiningtype-longname:
9240         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
9241         * modules/unictype/mirror, modules/unictype/numeric:
9242         * modules/unictype/property-all, modules/unictype/property-alphabetic:
9243         * modules/unictype/property-ascii-hex-digit:
9244         * modules/unictype/property-bidi-arabic-digit:
9245         * modules/unictype/property-bidi-arabic-right-to-left:
9246         * modules/unictype/property-bidi-block-separator:
9247         * modules/unictype/property-bidi-boundary-neutral:
9248         * modules/unictype/property-bidi-common-separator:
9249         * modules/unictype/property-bidi-control:
9250         * modules/unictype/property-bidi-embedding-or-override:
9251         * modules/unictype/property-bidi-eur-num-separator:
9252         * modules/unictype/property-bidi-eur-num-terminator:
9253         * modules/unictype/property-bidi-european-digit:
9254         * modules/unictype/property-bidi-hebrew-right-to-left:
9255         * modules/unictype/property-bidi-left-to-right:
9256         * modules/unictype/property-bidi-non-spacing-mark:
9257         * modules/unictype/property-bidi-other-neutral:
9258         * modules/unictype/property-bidi-pdf:
9259         * modules/unictype/property-bidi-segment-separator:
9260         * modules/unictype/property-bidi-whitespace:
9261         * modules/unictype/property-byname:
9262         * modules/unictype/property-case-ignorable:
9263         * modules/unictype/property-cased:
9264         * modules/unictype/property-changes-when-casefolded:
9265         * modules/unictype/property-changes-when-casemapped:
9266         * modules/unictype/property-changes-when-lowercased:
9267         * modules/unictype/property-changes-when-titlecased:
9268         * modules/unictype/property-changes-when-uppercased:
9269         * modules/unictype/property-combining:
9270         * modules/unictype/property-composite:
9271         * modules/unictype/property-currency-symbol:
9272         * modules/unictype/property-dash:
9273         * modules/unictype/property-decimal-digit:
9274         * modules/unictype/property-default-ignorable-code-point:
9275         * modules/unictype/property-deprecated:
9276         * modules/unictype/property-diacritic:
9277         * modules/unictype/property-extender:
9278         * modules/unictype/property-format-control:
9279         * modules/unictype/property-grapheme-base:
9280         * modules/unictype/property-grapheme-extend:
9281         * modules/unictype/property-grapheme-link:
9282         * modules/unictype/property-hex-digit:
9283         * modules/unictype/property-hyphen:
9284         * modules/unictype/property-id-continue:
9285         * modules/unictype/property-id-start:
9286         * modules/unictype/property-ideographic:
9287         * modules/unictype/property-ids-binary-operator:
9288         * modules/unictype/property-ids-trinary-operator:
9289         * modules/unictype/property-ignorable-control:
9290         * modules/unictype/property-iso-control:
9291         * modules/unictype/property-join-control:
9292         * modules/unictype/property-left-of-pair:
9293         * modules/unictype/property-line-separator:
9294         * modules/unictype/property-logical-order-exception:
9295         * modules/unictype/property-lowercase, modules/unictype/property-math:
9296         * modules/unictype/property-non-break:
9297         * modules/unictype/property-not-a-character:
9298         * modules/unictype/property-numeric:
9299         * modules/unictype/property-other-alphabetic:
9300         * modules/unictype/property-other-default-ignorable-code-point:
9301         * modules/unictype/property-other-grapheme-extend:
9302         * modules/unictype/property-other-id-continue:
9303         * modules/unictype/property-other-id-start:
9304         * modules/unictype/property-other-lowercase:
9305         * modules/unictype/property-other-math:
9306         * modules/unictype/property-other-uppercase:
9307         * modules/unictype/property-paired-punctuation:
9308         * modules/unictype/property-paragraph-separator:
9309         * modules/unictype/property-pattern-syntax:
9310         * modules/unictype/property-pattern-white-space:
9311         * modules/unictype/property-private-use:
9312         * modules/unictype/property-punctuation:
9313         * modules/unictype/property-quotation-mark:
9314         * modules/unictype/property-radical:
9315         * modules/unictype/property-sentence-terminal:
9316         * modules/unictype/property-soft-dotted:
9317         * modules/unictype/property-space:
9318         * modules/unictype/property-terminal-punctuation:
9319         * modules/unictype/property-test, modules/unictype/property-titlecase:
9320         * modules/unictype/property-unassigned-code-value:
9321         * modules/unictype/property-unified-ideograph:
9322         * modules/unictype/property-uppercase:
9323         * modules/unictype/property-variation-selector:
9324         * modules/unictype/property-white-space:
9325         * modules/unictype/property-xid-continue:
9326         * modules/unictype/property-xid-start:
9327         * modules/unictype/property-zero-width, modules/unictype/scripts:
9328         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
9329         * modules/unictype/syntax-c-whitespace:
9330         * modules/unictype/syntax-java-ident:
9331         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
9332         * modules/unigbrk/u16-grapheme-breaks:
9333         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
9334         * modules/unigbrk/u32-grapheme-breaks:
9335         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
9336         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
9337         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
9338         * modules/unigbrk/uc-is-grapheme-break:
9339         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
9340         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
9341         * modules/unilbrk/u16-width-linebreaks:
9342         * modules/unilbrk/u32-possible-linebreaks:
9343         * modules/unilbrk/u32-width-linebreaks:
9344         * modules/unilbrk/u8-possible-linebreaks:
9345         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
9346         * modules/unilbrk/ulc-possible-linebreaks:
9347         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
9348         * modules/uniname/uniname, modules/uninorm/base:
9349         * modules/uninorm/canonical-decomposition:
9350         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
9351         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
9352         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
9353         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
9354         * modules/uninorm/nfkc, modules/uninorm/nfkd:
9355         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
9356         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
9357         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
9358         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
9359         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
9360         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
9361         * modules/unistdio/base, modules/unistdio/u-printf-args:
9362         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
9363         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
9364         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
9365         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
9366         * modules/unistdio/u16-u16-sprintf:
9367         * modules/unistdio/u16-u16-vasnprintf:
9368         * modules/unistdio/u16-u16-vasprintf:
9369         * modules/unistdio/u16-u16-vsnprintf:
9370         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
9371         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
9372         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
9373         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
9374         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
9375         * modules/unistdio/u32-u32-asnprintf:
9376         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
9377         * modules/unistdio/u32-u32-sprintf:
9378         * modules/unistdio/u32-u32-vasnprintf:
9379         * modules/unistdio/u32-u32-vasprintf:
9380         * modules/unistdio/u32-u32-vsnprintf:
9381         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
9382         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
9383         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
9384         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
9385         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
9386         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
9387         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
9388         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
9389         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
9390         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
9391         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
9392         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
9393         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
9394         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
9395         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
9396         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
9397         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
9398         * modules/unistr/u16-check, modules/unistr/u16-chr:
9399         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
9400         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
9401         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
9402         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
9403         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
9404         * modules/unistr/u16-move, modules/unistr/u16-next:
9405         * modules/unistr/u16-prev, modules/unistr/u16-set:
9406         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
9407         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
9408         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
9409         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
9410         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
9411         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
9412         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
9413         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
9414         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
9415         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
9416         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
9417         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
9418         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
9419         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
9420         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
9421         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
9422         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
9423         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
9424         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
9425         * modules/unistr/u32-next, modules/unistr/u32-prev:
9426         * modules/unistr/u32-set, modules/unistr/u32-startswith:
9427         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
9428         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
9429         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
9430         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
9431         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
9432         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
9433         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
9434         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
9435         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
9436         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
9437         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
9438         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
9439         * modules/unistr/u8-check, modules/unistr/u8-chr:
9440         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
9441         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
9442         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
9443         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
9444         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
9445         * modules/unistr/u8-next, modules/unistr/u8-prev:
9446         * modules/unistr/u8-set, modules/unistr/u8-startswith:
9447         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
9448         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
9449         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
9450         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
9451         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
9452         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
9453         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
9454         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
9455         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
9456         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
9457         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
9458         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
9459         * modules/uniwbrk/base, modules/uniwbrk/table:
9460         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
9461         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
9462         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
9463         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
9464         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
9465         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
9466         * modules/uniwidth/width, modules/utf16-ucs4:
9467         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
9468         * modules/utf8-ucs4-unsafe:
9469         Change maintainer from Bruno Haible to Daiki Ueno.
9470         This is my guess at the libunistring modules; please feel free
9471         to fix if I guessed incorrectly.
9472         * modules/accept4, modules/acl, modules/acos, modules/acosf:
9473         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
9474         * modules/areadlink, modules/array-list, modules/array-mergesort:
9475         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
9476         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
9477         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
9478         * modules/binary-io, modules/bison-i18n, modules/btowc:
9479         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
9480         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
9481         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
9482         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
9483         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
9484         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
9485         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
9486         * modules/closedir, modules/concat-filename, modules/copy-file:
9487         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
9488         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
9489         * modules/csharpcomp-script, modules/csharpexec:
9490         * modules/csharpexec-script, modules/ctype, modules/diffseq:
9491         * modules/dprintf, modules/dprintf-posix, modules/dup:
9492         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
9493         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
9494         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
9495         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
9496         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
9497         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
9498         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
9499         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
9500         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
9501         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
9502         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
9503         * modules/findprog, modules/findprog-lgpl, modules/floor:
9504         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
9505         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
9506         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
9507         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
9508         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
9509         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
9510         * modules/freadable, modules/freadahead, modules/freadptr:
9511         * modules/freadseek, modules/freopen, modules/frexp:
9512         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
9513         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
9514         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
9515         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
9516         * modules/ftello, modules/full-read, modules/full-write:
9517         * modules/fwritable, modules/fwriteerror, modules/gcd:
9518         * modules/get-rusage-as, modules/get-rusage-data:
9519         * modules/getdtablesize, modules/getrusage, modules/gettext:
9520         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
9521         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
9522         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
9523         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
9524         * modules/iconv, modules/iconv-h, modules/iconv_open:
9525         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
9526         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
9527         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
9528         * modules/integer_length_ll, modules/ioctl, modules/isatty:
9529         * modules/isblank, modules/isnand, modules/isnand-nolibm:
9530         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
9531         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
9532         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
9533         * modules/javaexec, modules/javaexec-script, modules/javaversion:
9534         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
9535         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
9536         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
9537         * modules/lib-symbol-visibility, modules/libsigsegv:
9538         * modules/linked-list, modules/linkedhash-list, modules/list:
9539         * modules/localcharset, modules/locale, modules/localeconv:
9540         * modules/localename, modules/lock, modules/log, modules/log-ieee:
9541         * modules/log10, modules/log10-ieee, modules/log10f:
9542         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
9543         * modules/log1p, modules/log1p-ieee, modules/log1pf:
9544         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
9545         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
9546         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
9547         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
9548         * modules/logf, modules/logf-ieee, modules/login_tty:
9549         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
9550         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
9551         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
9552         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
9553         * modules/mbscspn, modules/mbsinit, modules/mbslen:
9554         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
9555         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
9556         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
9557         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
9558         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
9559         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
9560         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
9561         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
9562         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
9563         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
9564         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
9565         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
9566         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
9567         * modules/posix_spawn, modules/posix_spawn-internal:
9568         * modules/posix_spawn_file_actions_addclose:
9569         * modules/posix_spawn_file_actions_adddup2:
9570         * modules/posix_spawn_file_actions_addopen:
9571         * modules/posix_spawn_file_actions_destroy:
9572         * modules/posix_spawn_file_actions_init:
9573         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
9574         * modules/posix_spawnattr_getpgroup:
9575         * modules/posix_spawnattr_getschedparam:
9576         * modules/posix_spawnattr_getschedpolicy:
9577         * modules/posix_spawnattr_getsigdefault:
9578         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
9579         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
9580         * modules/posix_spawnattr_setschedparam:
9581         * modules/posix_spawnattr_setschedpolicy:
9582         * modules/posix_spawnattr_setsigdefault:
9583         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
9584         * modules/pow, modules/powf, modules/printf-frexp:
9585         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
9586         * modules/progname, modules/propername, modules/pselect:
9587         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
9588         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
9589         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
9590         * modules/read, modules/readdir, modules/readlink:
9591         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
9592         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
9593         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
9594         * modules/relocatable-script, modules/remainder:
9595         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
9596         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
9597         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
9598         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
9599         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
9600         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
9601         * modules/setlocale, modules/sh-quote, modules/shutdown:
9602         * modules/signal, modules/signbit, modules/sigpipe:
9603         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
9604         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
9605         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
9606         * modules/snippet/link-warning, modules/snippet/unused-parameter:
9607         * modules/snprintf, modules/snprintf-posix, modules/spawn:
9608         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
9609         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
9610         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
9611         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
9612         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
9613         * modules/streq, modules/strerror_r-posix, modules/striconv:
9614         * modules/striconveh, modules/striconveha, modules/strncat:
9615         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
9616         * modules/sublist, modules/sys_resource, modules/sys_utsname:
9617         * modules/sys_wait, modules/system-posix, modules/system-quote:
9618         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
9619         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
9620         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
9621         * modules/truncf, modules/truncf-ieee, modules/truncl:
9622         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
9623         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
9624         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
9625         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
9626         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
9627         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
9628         * modules/wait-process, modules/waitpid, modules/wcpcpy:
9629         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
9630         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
9631         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
9632         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
9633         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
9634         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
9635         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
9636         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
9637         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
9638         * modules/write, modules/xconcat-filename, modules/xlist:
9639         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
9640         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
9641         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
9642         * modules/y0, modules/y1, modules/yn:
9643         Remove Bruno Haible as maintainer; if he's the sole maintainer,
9644         change the maintainer to 'all'.  Let's hope someone volunteers.
9646 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
9648         mktime: merge #if/#ifdef usage from glibc
9649         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
9650         as that works with both Glibc's and Gnulib's style.
9651         See thread starting at Siddhesh Poyarekar's bug report at:
9652         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
9654 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
9656         git-version-gen: improve option descriptions
9657         * build-aux/git-version-gen: Mention that --prefix and --fallback
9658         have a mandatory argument.
9660 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
9662         regex: fix memory leak in compiler
9663         Fix by Andreas Schwab in:
9664         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
9665         * lib/regcomp.c (parse_expression): Deallocate partially
9666         constructed tree before returning error.
9668         regex: merge patch from libc
9669         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
9670         Combine __USE_BSD and __USE_SVID into __USE_MISC.
9671         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
9673 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
9675         acl: port to gcc -Wredundant-decls
9676         From a request by Dmitry Antipov in:
9677         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
9678         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
9679         "#ifndef _GL_ACL_H".
9681 2014-06-11  Bruce Korb  <bkorb@gnu.org>
9682         Jim Meyering  <meyering@fb.com>
9684         parse-duration: eliminate 68-year duration limit
9685         * lib/parse-duration.c: Include "intprops.h".
9686         (TIME_MAX): Rename to MAX_DURATION and define to
9687         TYPE_MAXIMUM(time_t).
9688         * modules/parse-duration (Depends-on): Add intprops.
9689         Reported by Jonas 'Sortie' Termansen.
9691 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9693         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
9694         * modules/pthread (Depends-on): Add 'extensions', as it defines
9695         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
9696         (configure.ac-early): New section.
9697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
9698         it is no longer needed.
9700 2014-06-14  Pádraig Brady  <P@draigBrady.com>
9702         pthread: define thread-safe macros on some platforms
9703         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
9704         for thread-safe operation on some platforms.
9706 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9708         regex: don't be multithreaded if USE_UNLOCKED_IO.
9709         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
9710         * lib/regex_internal.h: Do not use multithreaded version if
9711         USE_UNLOCKED_IO is defined.  This is a hack, but it works
9712         around a porting bug with coreutils 8.22 on AIX 7.1.
9714 2014-06-11  Daiki Ueno  <ueno@gnu.org>
9716         gettext: update macros to version 0.19
9717         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
9718         depend on gl_EXTERN_INLINE and drop support for older Bison
9719         versions.
9721 2014-06-10  Pádraig Brady  <P@draigBrady.com>
9723         select,poll: fix console handle check on windows 8
9724         lib/poll.c (IsConsoleHandle): Change from testing the lower
9725         2 bits of the handle to the more expensive but accurate syscall.
9726         lib/select.c: Likewise.
9728 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
9730         select: fix waiting on anonymous pipes on MS-Windows
9731         * lib/select.c (rpl_select): Fall back to polling when select()
9732         indicates there is nothing to check, while due to the timeout not
9733         expiring, activity is indicated on one of the handles.
9734         Also clear the TIMEOUT argument if the timer does expire.
9736 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
9738         times: fix to return non constant value on MS-Windows
9739         * lib/times.c (times): Don't use the process creation time,
9740         rather clock() which on windows returns the number of
9741         clock ticks since the process started.
9743 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
9745         isatty: fix to work on windows 8
9746         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
9747         2 bits of the handle to the more expensive but accurate syscall.
9749 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9751         maint: fix typo in fdl.texi
9752         * doc/fdl.texi: Fix typo (missing '@').
9753         Somehow this was in fdl.texi but not fdl-1.3.texi.
9755 2014-06-06  Ben Walton  <bdwalton@gmail.com>
9757         mountlist: avoid hasmntopt const type warning on solaris
9758         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
9759         with char * instead of const char *.  Passing the constant string
9760         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
9761         to avoid the warning.
9763 2014-06-04  Eric Blake  <eblake@redhat.com>
9765         maintainer-makefile: delete obsolete code
9766         * top/maint.mk (build_aux): Drop old code, as threatened.
9768         maintainer-makefile: avoid spurious error messages
9769         * top/maint.mk (syntax-check): Guard definition and use of
9770         $(shell) by whether Makefile is present.
9772 2014-06-03  Ben Walton  <bdwalton@gmail.com>
9774         rename: avoid unused-but-set-variable compiler warning
9775         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
9776         it is possible that dst_exists may be set but not used.  Mark it with
9777         the unused attribute to avoid compiler warnings.
9779 2014-06-02  Ben Walton  <bdwalton@gmail.com>
9781         rename: mark a label as potentially unused
9782         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
9783         by marking the out label as potentially unused.
9784         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
9786 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
9788         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
9789         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
9791 2014-06-02  Ben Walton  <bdwalton@gmail.com>
9793         acl: apply pure attribute to two functions
9794         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
9795         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
9797 2014-06-01  Pádraig Brady  <P@draigBrady.com>
9799         gnulib-common.m4: add _GL_UNUSED_LABEL
9800         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
9801         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
9803 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9805         dup2, fcntl, fcntl-h: port to AIX 7.1
9806         This fixes some porting problems discovered when testing the latest
9807         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
9808         in grep but it could be important for other applications.
9809         * doc/posix-functions/dup2.texi:
9810         * doc/posix-functions/fcntl.texi:
9811         * doc/posix-headers/fcntl.texi:
9812         Document AIX bugs.
9813         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
9814         Define to 0 if outside 'int' range.
9815         * m4/dup2.m4 (gl_FUNC_DUP2):
9816         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9817         Check for getdtablesize.  If it's available, test a value just
9818         outside its range instead of testing 1000000.  When cross-compiling,
9819         guess that AIX will fail this improved test.
9821 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
9823         printf, config.rpath: Port to FreeBSD 10.
9824         Problem reported by Tijl Coosemans in:
9825         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
9826         * build-aux/config.rpath (hardcode_libdir_flag_spec)
9827         (hardcode_direct): Simplify FreeBSD configuration.
9828         (library_names_spec): Don't mishandle FreeBSD 10+.
9829         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
9830         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
9831         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
9832         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
9833         Don't mishandle FreeBSD 10+ when cross-compiling.
9835         ftoastr: work around compiler bug in IBM xlc 12.1
9836         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
9837         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
9838         around a compiler bug in IBM xlc 12.1.0.0: it complains
9839         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
9840         _GL_FLT_PREC_BOUND.'
9842 2014-05-30  Kieran Colford  <colfordk@gmail.com>
9844         valgrind-tests: fixed misleading help message
9845         * m4/valgrind-tests.m4: The help message generated by configure
9846         implied that valgrind was disabled by default, which it wasn't.
9847         Adjusted the help message using s/enable/disable/ to clarify.
9849 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
9851         isfinite, isinf, isnan tests: fix for little-endian PowerPC
9852         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
9853         first double of a PowerPC "double double" pair.
9854         * tests/test-isinf.c (test_isinfl): Likewise.
9855         * tests/test-isnan.c (test_long_double): Likewise.
9856         * tests/test-isnanl.h (main): Likewise.
9857         * tests/test-signbit.c (test_signbitl): Likewise.
9859 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9861         exclude-tests: port to AIX 7.1
9862         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
9863         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
9864         the regex code uses locks.
9866 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
9868         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
9869         Without this fix, Emacs would sometimes call sigprocmask instead
9870         of pthread_sigmask, which is a no-no in multithreaded applications.
9871         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
9872         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9873         Suppress check for pthread_sigmask working without -lpthread if
9874         the application always links with -lpthread.  Do not link with
9875         $LIBMULTITHREAD if gl_THREADLIB is not defined.
9876         * m4/timer_time.m4 (gl_TIMER_TIME):
9877         Require gl_THREADLIB only if it is defined.  Do not append
9878         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
9880 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
9882         gnulib-tool: wget translations using --no-verbose rather than --quiet
9883         This allows the user to see error messages if any (--quiet hides them)
9884         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
9886 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
9888         gnulib-tool: adjust translation wget to avoid a https redirection
9889         Context: http://translationproject.org/latest/gnulib redirects to
9890            https://translationproject.org/latest/gnulib/
9891         Rationale: if the user falls back to wget, she doesn't have rsync and
9892         is probably in a minimal build environment, where packages such as
9893         'ca-certificates' are missing as well, resulting in a failed (and
9894         difficult to detect since ignored) translation initial fetch.
9895         Consequently let's avoid https if possible, and add the missing
9896         trailing slash.  This also avoids an unnecessary 302 redirection.
9897         * gnulib-tool: Add trailing slash to gnulib URL.
9899 2014-05-22  Pádraig Brady  <P@draigBrady.com>
9901         getlogin_r-tests: check return value rather than errno
9902         * tests/test-getlogin_r.c (main): As per POSIX we should be
9903         verifying the return value from getlogin_r() rather than errno.
9905 2014-05-22  Pádraig Brady  <P@draigBrady.com>
9907         getlogin_r-tests: fix various issues in recent change
9908         * tests/test-getlogin_r.c: Include required headers that were
9909         missed in recent commit eec20b4e.
9910         Also consistently check the errno rather than the return value from
9911         getlogin_r as POSIX only specifies that non zero is returned on error.
9912         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
9914 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9916         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
9917         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
9918         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
9919         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
9920         * lib/spawn-pipe.c:
9921         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
9922         and then 'int open64(const char *, int, ...);', which means the
9923         declaration for 'open' gets lost if we later '#undef open'.
9924         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
9925         where the compilation reported the non-fatal error "In function
9926         'openat_proc_name' ... warning: implicit declaration of function
9927         'open'".  In this case the error is relatively harmless, but in
9928         other cases it might not be so minor.
9930 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9932         xalloc: don't potentially generate invalid code for xmemdup calls
9933         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
9934         this function can initialize the newly-allocated storage with new
9935         pointers, which means this function is not malloc-like.  See:
9936         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
9938 2014-05-19  Pádraig Brady  <P@draigBrady.com>
9940         getlogin_r-tests: avoid false failure under sudo/ssh etc.
9941         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
9942         changes from commit 97249cf29 to not depend on environment variables.
9944 2014-05-18  Pádraig Brady  <P@draigBrady.com>
9946         getlogin-tests: avoid false failure under cron
9947         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
9948         since that's not what's under test.  Centos 6 was seen to return
9949         EINVAL for ttyname() when run from cron.
9951 2014-05-16  Jim Meyering  <meyering@fb.com>
9953         mbrtowc.m4: fix a comment typo
9954         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
9955         emitted documentation string.
9957 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9959         mbrlen, mbrtowc: fix bug with empty input
9960         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
9961         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
9962         so this is mainly for documentation.
9963         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
9964         (gl_FUNC_MBRTOWC): Use it.
9965         * tests/test-mbrtowc.c (main): Test for the bug.
9967 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
9969         doc: document mbrtowc and mbrlen problem with empty input
9970         * doc/posix-functions/mbrlen.texi (mbrlen):
9971         * doc/posix-functions/mbrtowc.texi (mbrtowc):
9972         Document portability problem when the input string is empty.  See:
9973         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
9975         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
9976         Problem reported by Eli Zaretskii in:
9977         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
9978         * doc/posix-functions/execl.texi (execl):
9979         * doc/posix-functions/execle.texi (execle):
9980         * doc/posix-functions/execlp.texi (execlp):
9981         * doc/posix-functions/execv.texi (execv):
9982         * doc/posix-functions/execve.texi (execve):
9983         * doc/posix-functions/execvp.texi (execvp):
9984         Mention spawn+exit problem on non-Cygwin Windows platforms.
9986 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
9988         getlogin-tests: avoid false failure under sudo/ssh etc.
9989         * modules/getlogin-tests (configure.ac): Check for ttyname().
9990         * tests/test-getlogin.c (main): Don't depend on environment variables
9991         to correlate with getlogin(), since sudo and ssh etc. can tamper
9992         with the LOGNAME and USER env vars.  Instead lookup the name from
9993         the uid associated with the stdin tty.
9995 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
9997         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
9998         These were found when building the latest grep snapshot on IRIX 6.5.
9999         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
10000         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
10001         never used later.
10002         * lib/quotearg.c (quoting_options_from_style):
10003         * lib/xstrtol.c (__xstrtol):
10004         Use enum instead of 0, to pacify IRIX 6.5 cc.
10006 2014-04-18  Pádraig Brady  <P@draigBrady.com>
10008         gitlog-to-changelog: revert inclusion of git-log-fix file
10009         * build-aux/git-log-fix: Delete dummy file.
10010         * modules/gitlog-to-changelog: Don't reference (overwrite)
10011         the project specific git-log-fix file.
10013 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
10015         maint.mk: Relax the copyright check to cater for non FSF projects
10016         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
10017         to not require the "Free" suffix after the copyright years.
10019 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
10021         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
10022         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
10023         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
10024         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
10025         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
10027 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
10029         exclude: port to strict C99
10030         Strict C does not allow converting a function pointer to void *
10031         and vice versa.  Pass a pointer to a function pointer instead.
10032         * lib/exclude.c (add_exclude_file):
10033         Pass the address of the function pointer.
10034         (call_addfn): And deference the address here, to match.
10036 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
10038         regex: do not depend on malloc-gnu
10039         * modules/regex (Depends-on): Remove malloc-gnu.
10040         It's no longer needed, because of the 2012-12-29 patch
10041         "regex: port to hosts where malloc (0) == NULL".
10042         Reported by Nathan Kennedy in:
10043         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
10045 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
10047         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
10048         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
10049         * doc/posix-functions/expl.texi: Mention the workaround.
10051 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
10053         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
10054         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
10055         size to be zero even when the pointer is nonnull.  This
10056         accommodates the use case where P is malloc (0) and *PN is 0 on a
10057         host where malloc (0) yields nonnull.
10059 2014-04-09  Eric Blake  <eblake@redhat.com>
10061         fts: avoid unnecessary strlen calls
10062         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
10064 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10066         fts: avoid unnecessary strlen calls
10067         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
10068         when that can be faster than strlen.
10070 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
10072         fts: avoid unnecessary strlen calls
10073         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
10074         (fts_build): Store the length of the dp->d_name entry in a local variable
10075         instead of calling strlen() several times via the above, removed macro.
10076         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
10077         run by ~4%, yet this reduces the execution time by about a third if run
10078         via "ltrace -c rm -rf some-dir".
10080 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10082         obstack: Remove ancient NeXTSTEP gcc support conditional
10083         This change will ease merging with glibc.  The "#if ... __NEXT__"
10084         causes a warning with -Wundef which glibc now enables by default.
10085         Problem reported by Will Newton in
10086         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
10087         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
10088         so go with that.
10089         * lib/obstack.h (__extension__):
10091 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10093         obstack: merge with glibc changes
10094         * lib/obstack.c, lib/obstack.h: Merge from glibc.
10095         This is mostly indenting and commentary changes.
10096         Instances of 'register' have been removed.
10098 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
10100         strftime: wrap macros in "do {...} while(0)"
10101         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
10102         this macro in "do {...} while(0)" to prevent false use as a
10103         single statement, e.g., in an un-braced "{}" else-block.
10104         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
10105         (strftime_case_): Remove 'else' after 'goto' - which was the
10106         only non-fatal, un-braced use of one of the above macros.
10107         Spotted by coverity (NESTING_INDENT_MISMATCH).
10109 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
10111         modechange: avoid memory leaks for invalid octal modes
10112         * lib/modechange.c (mode_compile): During the parsing of
10113         notations like +40, free the 'mc' buffer for invalid mode
10114         strings like +17777 (greater than the maximum octal mode),
10115         =18 (bad octal mode characters) or u=1 ('affected' with
10116         octal modes).
10117         Reproducer, e.g.:
10118             $ valgrind --leak-check=full chmod +17777 file
10119         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
10120         add notations +40, 00440, etc.".
10121         Spotted by coverity (RESOURCE_LEAK).
10123 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10125         gitlog-to-changelog: include a dummy git-log-fix file
10126         Problem reported by Nathan Stratton Treadway in:
10127         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
10128         * build-aux/git-log-fix: New file.
10130 2014-03-13  Jim Meyering  <meyering@fb.com>
10132         gitlog-to-changelog: also include the file, git-log-fix
10133         * modules/gitlog-to-changelog (Files): Add git-log-fix.
10134         Reported by Assaf Gordon.
10136 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
10138         regex: port to OS X 10.8.5 en_US.UTF-8 locale
10139         This fixes a bug when ignoring case and when comparing the
10140         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
10141         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
10142         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
10143         titlecase letter is neither lowercase nor uppercase, but
10144         uppercasing the titlecase letter (via towupper) yields the
10145         uppercase letter, so the two letters should match when ignoring case.
10146         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
10147         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
10148         Don't test whether a character is lowercase before uppercasing it.
10150 2014-03-04  Kevin Cernekee <cernekee@gmail.com>
10152         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
10153         This is basically one of the options Bruno Haible proposed in:
10154         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
10155         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
10156         * lib/stdint.in.h: Use it.
10157         * modules/stdint (Depends-on): Add sys_types.
10159 2014-02-26  Pádraig Brady <P@draigBrady.com>
10161         parse-datetime: fix crash or infloop in TZ="" parsing
10162         * lib/parse-datetime.y (parse_datetime): Break out of the
10163         TZ="" parsing loop once the second significant " is found.
10164         Also skip over any subsequent whitespace to be consistent
10165         with the non TZ= case.
10166         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
10168 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
10170         savedir: new symbol for fast-read version
10171         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
10172         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
10173         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
10174         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
10176 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10178         unistd: port readlink to Mac OS X 10.3.9
10179         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
10180         around self-include problem in Mac OS X 10.3.9 when combined with
10181         readlink module.  Problem reported by Klaus Zietler in
10182         <http://bugs.gnu.org/16825>.
10184 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10186         diffseq: remove TOO_EXPENSIVE heuristic
10187         Problem with diffutils reported by Vincent Lefevre in
10188         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
10189         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
10190         Although appropriate for circa-1993 hardware, these days the heuristic
10191         seems to be more trouble than it's worth.
10192         * lib/diffseq.h: Modernize citations.
10193         (struct context): Remove member too_expensive.
10194         All uses changed.
10195         (struct partition): Remove members lo_minimal, hi_minimal.
10196         All uses changed.
10197         (diag, compareseq): Remove arg find_minimal.  All uses changed.
10198         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
10199         1993 to make 'diff' run faster (but not as well) on large inputs.
10200         These days, computers are fast enough that it's typically better
10201         to run slower but more accurately.
10202         * lib/fstrcmp.c: Remove duplicate comment.
10203         * lib/fstrcmp.c (strcmp_bounded):
10204         * lib/git-merge-changelog.c (compute_differences):
10205         Adjust to diffseq.h changes.
10206         * NEWS: Document the change.
10208         savedir: simplify by using stpcpy
10209         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
10210         (streamsavedir): Use stpcpy instead.
10211         * modules/savedir (Depends-on): Add stpcpy.
10213 2014-02-21  Pádraig Brady <P@draigBrady.com>
10215         spawn: fix link error on uclibc
10216         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
10217         to incorporate -lrt if needed (on uclibc for example).
10218         * modules/posix_spawn: Reference the substituted LIB.
10220 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
10221         timer: fix uClibc detection of threading
10222         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
10223         enabled in uClibc.
10225 2014-02-21  Eric Blake  <eblake@redhat.com>
10227         maintainer-makefiles: provide AC_PROG_SED for older autoconf
10228         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
10230 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
10232         exclude: add support for posix regexps
10234         This commit adds support for POSIX extended regular expressions
10235         and fixes a long-standing memory leak (pattern buffer was never
10236         freed).  It also implements a new interface function to read
10237         exclude patterns from a FILE, which passes an additional parameter
10238         to its callback function, thereby allowing to preserve its state
10239         between invocations.
10241         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
10242         (pattern_buffer): New struct.
10243         (exclude): New member patbuf.
10244         (exclude_add_pattern_buffer): New function.
10245         (free_exclude_segment): Free regexps.
10246         (free_exclude): Free allocated pattern buffers.
10247         (exclude_patopts): New function.
10248         (file_pattern_matches): Use exclude_patopts.
10249         (add_exclude): support regexps.
10250         (add_exclude_fp): New function.
10251         (add_exclude_file): Rewrite using add_exclude_fp.
10252         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
10253         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
10254         (add_exclude_fp)
10255         (add_exclude_file): Rewrite using add_exclude_fp.
10256         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
10257         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
10258         (add_exclude_fp)
10259         (exclude_add_pattern_buffer): New prototypes.
10260         * modules/exclude: Depends on regex and filename.
10262 2014-02-20  Eric Blake  <eblake@redhat.com>
10264         maintainer-makefiles: use $(SED) for syntax check
10265         * modules/maintainer-makefile (configure.ac): Check for sane sed.
10266         * top/maint.mk: Change sed to $(SED).
10268 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
10269             Paul Eggert  <eggert@cs.ucla.edu>
10271         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
10272         Patch based on an idea by Dick Streefland in
10273         <https://savannah.gnu.org/patch/?7892>.
10274         * NEWS: Document this.
10275         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
10276         (direntry_t, comparison_function): New types.
10277         (direntry_cmp_name): New function.
10278         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
10279         (streamsavedir, savedir): New arg OPTION.
10280         (streamsavedir): Simplify memory allocation.
10281         (fdsavedir): Remove.
10282         * lib/savedir.h (enum savedir_option): New type.
10283         (streamsavedir, savedir): New arg OPTION.
10284         (fdsavedir): Remove.
10286 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10288         file-type: add support for doors and other less-common file types
10289         Problem with S_ISDOOR reported by Rich Burridge.
10290         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
10291         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
10292         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
10294 2014-01-23  Eric Blake  <eblake@redhat.com>
10296         pthread: work around winpthread header pollution on mingw
10297         * lib/time.in.h: Move pthread workarounds...
10298         * lib/pthread.in.h: ...here.
10299         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
10300         detect macro pollution on mingw.
10301         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
10303 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
10305         qacl: check for fchmod
10306         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
10307         and qset-acl.c both use HAVE_FCHMOD.
10309 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
10311         fdopen-tests: port to Tru64
10312         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
10313         descriptor that is not open, as POSIX doesn't specify the
10314         resulting behavior and the test does not work on Tru64.
10315         Problem reported by Steven M. Schweda in:
10316         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
10318         stdalign: port to HP-UX compilers
10319         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
10320         if __HP_cc or __HP_aCC are nonzero.
10322 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
10324         strtoimax: port to platforms lacking 'long long'
10325         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
10326         check whether strtoll is declared, which causes the C file to
10327         wrongly report an error.  Problem reported by Steven M. Schweda in:
10328         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
10329         * lib/strtoimax.c (strtoull):
10330         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
10331         (strtoll): Declare only if HAVE_LONG_LONG_INT.
10333 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
10335         relocatable-perl: fix texi syntax
10336         * doc/relocatable-maint.texi: Escape braces.
10338 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
10340         relocatable-perl: like relocatable-script, but for Perl scripts
10341         * build-aux/relocatable.pl.in: Add.
10342         * doc/relocatable-maint.texi: Add documentation.
10343         * modules/relocatable-perl: Add.
10345 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
10347         tests: fix export bug in previous patch
10348         Problem reported by Jim Meyering.
10349         * tests/init.sh (re_shell): New var, which is exported instead of
10350         re_shell_.
10352         tests: simplify porting to Solaris 10 /bin/sh
10353         Some test cases in 'grep' need a shell that groks '$(';
10354         export re_shell_ for their benefit.  Problem reported for 'grep'
10355         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
10356         * tests/init.sh (re_shell_): Export if it's used.
10358 2014-01-06  Eric Blake  <eblake@redhat.com>
10360         md5, sha1, sha256, sha512: support older autoconf
10361         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
10362         for autoconf < 2.63b.
10364         include_next: port to autoconf 2.63
10365         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
10367 2014-01-04  Jim Meyering  <meyering@fb.com>
10369         maint: add a gnulib-local rule to keep non-ascii out of .texi files
10370         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
10371         so that "make sc_maint" will ding anyone who puts non-ascii
10372         in any of gnulib's .texi files.
10374 2014-01-03  Jim Meyering  <meyering@fb.com>
10376         freadable, fwritable, fwriting: declare with the "pure" attribute
10377         * lib/freadable.h (freadable): Declare with the "pure" attribute.
10378         * lib/fwritable.h (fwritable): Likewise.
10379         * lib/fwriting.h (fwriting): Likewise.
10380         Suggested by Bruno Haible.
10382         maint.mk: adapt openat.h-include-without-use test
10383         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
10384         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
10385         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
10386         With this change, running "make sc_maint" in gnulib's top-level
10387         directory now passes for me.
10389 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10391         doc: use ASCII in .texi files where UTF-8 isn't needed
10392         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
10393         * doc/posix-functions/setkey.texi, doc/regex.texi:
10394         Use ASCII input, not UTF-8.
10396 2014-01-02  Jim Meyering  <meyering@fb.com>
10398         freading: declare with the "pure" attribute
10399         * lib/freading.h (freading): Declare with the "pure" attribute.
10401         manywarnings: remove -Wmudflap
10402         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
10403         it is no longer supported in gcc-4.9-to-be.
10405 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10407         relocatable-script: remove unused code
10408         Problem reported by Reuben Thomas in:
10409         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
10410         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
10412 2014-01-01  Jim Meyering  <meyering@fb.com>
10414         maint: fix public-submodule-commit to work with newer git
10415         * top/maint.mk (public-submodule-commit): Remove excess quoting.
10416         We were over-quoting the test arguments, and somewhere prior to
10417         version 1.8.5.2.229, git stopped removing those excess quotes,
10418         which made the test fail, since the unexpanded strings would
10419         always differ; using GIT_TRACE=1 confirmed that the git merge-base
10420         command wasn't even being run.
10422 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10424         doc: update main copyright year
10425         * doc/gnulib.texi: Update copyright date.
10427 2014-01-01  Eric Blake  <eblake@redhat.com>
10429         version-etc: new year
10430         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
10431         * all files: run 'make update-copyright'
10433 2013-12-24  Eric Blake  <eblake@redhat.com>
10435         passfd: give nicer error for recvfd at eof
10436         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
10437         * tests/test-passfd.c (main): Enhance test to cover this.
10439 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10441         gettimeofday: port recent C++ fix to Emacs
10442         Without this further patch, Emacs won't build due to
10443         the portcheck failing.  Also, this simplifies the patch a bit.
10444         * lib/time.in.h (localtime, gmtime): Don't replace unless
10445         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
10446         * lib/time.in.h (localtime, gmtime):
10447         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
10448         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
10449         * modules/time (time.h):
10450         Don't worry about about the possibility of localtime and gmtime
10451         being absent; they're present in all C libraries we know about.
10452         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
10453         Don't assume sys_time is present and has been initialized.
10454         Instead, use a hack that should work even if it hasn't been.
10455         Don't use a portcheck for gmtime or localtime; this supports
10456         the hack.
10457         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
10459 2013-12-17  John W. Eaton  <jwe@gnu.org>
10461         gettimeofday: fix C++ crosscompilation
10463         Never replace gmtime and localtime by macros when compiling with
10464         C++, this prevents <ctime> from being included.
10466         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
10467         define gmtime and localtime as preprocessor macros.  Instead
10468         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
10469         REPLACE_LOCALTIME substitutions.
10470         * lib/time.in.h: Declare gmtime and localtime when needed.
10471         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
10472         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
10473         * modules/time: Depend on gettimeofday, and substitute the above
10474         variables in time.h.
10476 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10478         qacl: port to Windows better
10479         See Eli Zaretskii in
10480         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
10481         * lib/file-has-acl.c (acl_access_nontrivial):
10482         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
10483         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
10485 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
10487         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
10488         * lib/gl_openssl.h: Cast void pointers to a specific type.
10490 2013-12-07  Pádraig Brady <P@draigBrady.com>
10492         open-tests: fix build failure with -Werror=old-style-declaration
10493         * tests/test-open.h: Reorder the inline to avoid the issue.
10495 2013-12-07  Pádraig Brady <P@draigBrady.com>
10497         md5, sha1, sha256, sha512: fix link error with partial libcrypto
10498         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
10499         init time, so that if early checks find crypto routines,
10500         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
10501         avoiding link failures.
10503 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
10505         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
10506         This provides a new way to specify the default for
10507         gl_CRYPTO_CHECK, one that is reflected in the --help message.
10508         Emacs uses this, as well as the old way.
10509         This attempts to implement a suggestion by Pádraig Brady in
10510         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
10511         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
10512         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
10514         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
10515         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
10516         Add support for a new option, --with-openssl=auto, which causes
10517         the library to be used if available and silently ignored if not.
10518         Add support to allow allow configure.ac to specify its own
10519         default, by setting with_openssl_default before invoking gl_INIT.
10521 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
10523         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
10524         Problem reported by Daiki Ueno in:
10525         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
10526         * tests/test-open.h (__always_inline):
10527         New macro, if not already defined.
10528         (test_open): Use it.
10530 2013-12-04  Eric Blake  <eblake@redhat.com>
10532         include_next: minimize code duplication
10533         * modules/include_next (Depends-on): Add absolute-header.
10534         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
10535         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
10537 2013-12-04  Pádraig Brady <P@draigBrady.com>
10539         getcwd: fix compile error in configure check
10540         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
10542 2013-12-04  Pádraig Brady <P@draigBrady.com>
10544         regex: suppress core dumps from detection code
10545         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
10546         to suppress core dumps that may well occur on glibc systems.
10547         These core dumps might not be cleaned up automatically, or could
10548         trigger some system core dump handling logic.
10550 2013-12-03  Pádraig Brady <P@draigBrady.com>
10552         md5, sha1, sha256, sha512: support mandating use of openssl
10553         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
10554         description, to list the now 3 separate options.  also don't
10555         mention the default=no, since this is implicit given the option
10556         is described as --with-openssl rather than --without-openssl.
10557         If projects change the default they're free to document that.
10558         with --with-openssl[=yes] we now error out when the specified
10559         hash algorithm is not available in libcrypto.
10561 2013-12-03  Ivailo  <xakepa10@gmail.com>
10563         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
10564         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
10565         -Wformat-nonliteral checks, as these edge cases are part of the test.
10567 2013-12-03  Eric Blake  <eblake@redhat.com>
10569         regex: avoid glibc deadlock during configure
10570         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
10571         glibc bug 15078 in turn triggers bug 16159.
10572         Reported by Michal Privoznik.
10574 2013-12-02  Pádraig Brady <P@draigBrady.com>
10576         md5, sha1, sha256, sha512: use openssl routines if available.
10577         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
10578         routines will be used if available, requiring apps to link @LIB_CRYPTO@
10579         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
10580         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
10581         in the standard system location.
10582         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
10583         * m4/sha256.m4: Likewise with SHA256.
10584         * m4/sha512.m4: Likewise with SHA512.
10585         * m4/md5.m4: Likewise with MD5.
10586         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
10587         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
10588         * lib/sha256.h: Likewise with SHA256.
10589         * lib/sha512.h: Likewise with SHA512.
10590         * lib/md5.h: Likewise with MD5.
10591         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
10592         * lib/sha256.c: Likewise with SHA256.
10593         * lib/sha512.c: Likewise with SHA512.
10594         * lib/md5.c: Likewise with MD5.
10595         * modules/crypto/sha1 (Link:): Add the new optional lib.
10596         (Depends-on:): Add dependency on extern-inline.
10597         * modules/crypto/sha256: Likewise.
10598         * modules/crypto/sha512: Likewise.
10599         * modules/crypto/md5: Likewise.
10600         * modules/crypto/sha1-tests: Reference the lib here too.
10601         * modules/crypto/md5-tests: Likewise.
10602         * modules/crypto/gc-des-tests: Likewise.
10603         * modules/crypto/gc-hmac-md5-tests: Likewise.
10604         * modules/crypto/gc-hmac-sha1-tests: Likewise.
10605         * modules/crypto/gc-hmac-sha256-tests: Likewise.
10606         * modules/crypto/gc-hmac-sha512-tests: Likewise.
10607         * modules/crypto/gc-md5-tests: Likewise.
10608         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
10609         * modules/crypto/gc-sha1-tests: Likewise.
10610         * modules/crypto/gc-tests: Likewise.
10611         * modules/crypto/hmac-md5-tests: Likewise.
10612         * modules/crypto/hmac-sha1-tests: Likewise.
10613         * modules/crypto/hmac-sha256-tests: Likewise.
10614         * modules/crypto/hmac-sha512-tests: Likewise.
10616 2013-11-29  RV1971  <rv1971@web.de>
10618         base64: (trivial) fix compilation regression on some compilers
10619         * lib/base64.c: Don't return the void function,
10620         instead split to a separate return statement.
10622 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
10624         ignore-value: revert previous code change
10625         * lib/ignore-value.h (ignore_value): Use __extension__ and
10626         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
10627         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
10628         Change the comment to try to explain this better.
10630 2013-11-27  Pádraig Brady <P@draigBrady.com>
10632         selinux-h: improve stub types and add more stub functions
10634         * lib/se-selinux.in.h: Change security_context_t to a typedef
10635         rather than a define, as it's a pointer type and so is better
10636         as a typedef to avoid issues declaring multiple variables
10637         with the comma operator.  Also add stub for string_to_security_class().
10638         * lib/se-context.in.h: Add stub functions for
10639         context_{type,range,role,user}_get().
10641 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
10643         ignore-value: prefer GCC version back through 2.0
10644         The code didn't match the comments, so I did a bit of software
10645         archaeology.  GCC 2.0 seems to support __extension__ and
10646         __typeof__, so fix both code and comments to use 2.0.
10647         * lib/ignore-value.h (ignore_value): Use __extension__ and
10648         __typeof__ for GCC 2.0 through 3.3, too.
10650 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
10652         pty: Activate the signature wrapper of forkpty.
10653         The intended preprocessor macro HAVE_FORKPTY is
10654         never defined, yet `lib/forkpty.c' depends on it.
10656         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
10657         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
10658         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
10660 2013-11-18  Jim Meyering  <meyering@fb.com>
10661         and Paul Eggert  <eggert@cs.ucla.edu>
10663         quotearg: don't attempt to store 1 << 31 into an "int"
10664         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
10665         gcc's new -fsanitize=undefined and running its tests triggered some
10666         new test failures due to undefined behavior, all with this diagnostic:
10667           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
10668             cannot be represented in type int
10669         Rather than shifting "1" left to form a mask, shift the bits right and
10670         simply use "1" as the mask.
10672 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
10674         error: depend on stdio
10675         Problem reported by Nikos Mavrogiannopoulos in
10676         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
10677         * modules/error (Depends-on): Add stdio.
10679 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
10681         * doc/relocatable-maint.texi (Supporting Relocation): Improve
10682         wording.
10683         Reported by Reuben Thomas <rrt@sc3d.org>.
10685 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
10687         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
10688         New function and macro, to work around _DARWIN_C_SOURCE problem.
10689         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
10691 2013-11-11  Pádraig Brady <P@draigBrady.com>
10693         base64: provide a fast path for encoding well sized buffers
10694         Avoid conditionals in the base64 encoding loop,
10695         which was seen to give 60% better throughput.
10696         * lib/base64.c (base64_encode_fast): A new function to be called
10697         when we don't want to NUL terminate, and we have enough space
10698         in the output to encode the given input.
10699         (base64_encode): Call the _fast() version when appropriate.
10700         Also remove a redundant mask with 0x3F on the first encoded byte.
10702 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
10704         extern-inline: port better to OS X 10.9
10705         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
10706         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
10707         OS X 10.9, except for g++ where the bug is still present.
10708         See <http://trac.macports.org/ticket/41033>.
10710 2013-11-08  Eric Blake  <eblake@redhat.com>
10712         fpending: fix regression on DragonFly BSD
10713         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
10714         * lib/fpending.h (__fpending): Don't declare twice.
10715         Reported by GW in
10716         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
10718 2013-11-05  Jim Meyering  <meyering@fb.com>
10720         hash: relax license to LGPLv2+, for libguestfs
10721         * modules/hash (License): Change from GPL to LGPLv2+.
10723 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10725         intprops: port to Oracle Studio c99
10726         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
10727         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
10729 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10731         obstack: pacify HP C
10732         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
10733         warning "conversion from pointer to smaller integer" from HP
10734         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
10735         C89 or later nowadays, so cast to void instead of int.  Privately
10736         reported by H.Merijn Brand.  Also, change header to match glibc's,
10737         to make checking against glibc easier.
10739 2013-10-29  Jim Meyering  <meyering@fb.com>
10741         maint.mk: prefer gpgv2 over gpgv
10742         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
10743         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
10744         Reported by Gary Vaughan.
10746 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10748         isnan: port to VAX
10749         Reported by John Klos for NetBSD-5/VAX in
10750         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
10751         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
10752         (FUNC): Use it.
10754 2013-10-28  Jim Meyering  <meyering@fb.com>
10756         gnulib-tool: protect against CDPATH
10757         * gnulib-tool: Many "cd" built-in functions print a directory name
10758         to stdout when CDPATH is set, e.g.,
10759           $ bash -c 'CDPATH=/; cd tmp'
10760           /tmp
10761         Unset it, when possible.  Prompted by a comment from Bruce Korb.
10763         maint.mk: restore functionality removed by recent change...
10764         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
10765         the context of a shallow-cloned gnulib repository: "git describe"
10766         would fail in such a directory.  However, that change made it so
10767         the reported gnulib revision no longer includes the version number
10768         or a commit count, even when run from a full clone.
10769         * top/maint.mk (gnulib-version): Use the full "git describe"
10770         output when possible, e.g., the form above, rather than the
10771         abbreviated, no-tag, no-commit-count string, and fall back to
10772         using a 10-byte hash, rather than the default minimal-length
10773         hash prefix, since while the minimal-length one may be fine today,
10774         it is likely not to be unique for very long.
10776 2013-10-26  Jim Meyering  <meyering@fb.com>
10778         maint.mk: fix "release" target to build _version
10779         This fixes a bug in README-release whereby following the outlined
10780         steps, one would publish a tarball whose programs would report
10781         --version output not consistent with the package version number.
10782         This bug caused grep-2.15 to produce a grep program whose
10783         --version option made it print 2.14.56-1e3d rather than 2.15.
10784         * top/maint.mk (release): Making this target build "_version"
10785         ensures that the new version number is reflected in configure.
10787 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
10789         install-reloc: Support multi-binary installation.
10790         * build-aux/install-reloc: Support installing multiple programs in
10791         one invocation, as done by Automake starting with commit
10792         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
10793         Haible <bruno@clisp.org>, archived at
10794         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
10795         Reported by Sylvain <beuc@gnu.org>.
10797 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
10799         selinux-h: Really build without selinux when library is missing.
10800         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
10801         continue without selinux, as already told in the warning message.
10803 2013-10-21  Jim Meyering  <meyering@fb.com>
10805         regex: also remove dependency on HAVE_WCSCOLL
10806         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
10808 2013-10-21  Reuben Thomas <rrt@sc3d.org>
10810         xfreopen: Fix typo. s/frepoen/freopen/
10811         * lib/xfreopen.c: Fix description.
10812         * modules/xfreopen: Likewise.
10814 2013-10-21  Jim Meyering  <meyering@fb.com>
10816         regex: don't depend on wcscoll
10817         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
10818         It is no longer used.
10820 2013-10-20  Jim Meyering  <meyering@fb.com>
10822         error: add the printf attribute to a static function
10823         * lib/error.c (error_tail): Add the printf attribute, to placate
10824         gcc's -Werror=suggest-attribute=format option.
10826 2013-09-30  Jim Meyering  <meyering@fb.com>
10828         fpending, obstack, strerror-override: use pure+const function attrs
10829         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
10830         * lib/obstack.c (_obstack_allocated_p): Likewise.
10831         * lib/obstack.h (_obstack_memory_used): Likewise.
10832         (_obstack_memory_used): Likewise.
10833         * lib/strerror-override.h (strerror_override): Declare with
10834         the "const" attribute.
10836 2013-10-18  Eric Blake  <eblake@redhat.com>
10838         extern-inline: make safe for -Wundef usage
10839         Reported by Vladimir 'phcoder' Serbinenko in
10840         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
10841         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
10843 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10845         mkfifo-tests, etc.: allow HP-UX 11.11 bug
10846         Problem reported by Daniel Richard G. in
10847         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
10848         * doc/posix-functions/mkfifo.texi (mkfifo):
10849         * doc/posix-functions/mkfifoat.texi (mkfifoat):
10850         * doc/posix-functions/mknod.texi (mknod):
10851         * doc/posix-functions/mknodat.texi (mknodat):
10852         Document the HP-UX 11.11 bug.
10853         * tests/test-mkfifo.h (test_mkfifo):
10854         Allow the HP-UX 11.11 bug.
10856 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10858         acl: allow cross-compilation to Gentoo
10859         Problem reported by Gabriel Marcano in
10860         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
10861         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
10862         test only whether it links.
10864 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10866         mgetgroups: remove dependency on realloc-gnu
10867         The dependency violates the comment in realloc-gnu, which
10868         says that tests can't depend on realloc-gnu; some tests depend
10869         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
10870         Problem reported by Daniel Richard G. in
10871         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
10872         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
10873         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
10874         not realloc-gnu.
10876 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10878         regex-tests: port to HP-UX 11.11
10879         Problem reported by Daniel Richard G. in
10880         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
10881         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
10883 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10885         verify: document some 'assume' pitfalls
10886         * doc/verify.texi (Compile-time Assertions):
10887         Mention that 'assume (E)' can sometimes slow things down.
10888         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
10890 2013-10-10  Eric Blake  <eblake@redhat.com>
10892         strtoumax: fix typo in previous commit.
10893         * modules/strtoumax (Depends-on): Fix typo.
10894         * modules/strtoimax (Depends-on): Likewise.
10896 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10898         strtoumax: port to Solaris 8
10899         This problem was introduced in the recent HP-UX patch.
10900         Reported by Tom G. Christensen in
10901         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
10902         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
10903         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
10905 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10907         strtoimax, strtoumax: port to HP-UX 11.11
10908         Problem reported by Daniel Richard G. in
10909         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
10910         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
10911         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
10912         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
10913         REPLACE_STRTOUMAX.
10914         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
10915         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
10916         Replace the function if defined as a macro but not as a function.
10917         * modules/inttypes-incomplete (inttypes.h): Substitute
10918         REPLACE_STRTOUMAX.
10919         * modules/strtoumax (configure.ac): Replace strtoumax if
10920         REPLACE_STRTOUMAX.
10922 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10924         strtoimax: port to HP-UX 11.11
10925         Problem reported by Daniel Richard G.
10926         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
10927         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
10928         they might clash with inttypes.h.
10930 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10932         New module 'count-trailing-zeros'.
10933         * MODULES.html.sh: Mention it.
10934         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
10935         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
10936         * modules/count-trailing-zeros-tests:
10937         * tests/test-count-trailing-zeros.c:
10938         New files.
10940         count-leading-zeros: port to MSC; support types wider than 64 bits
10941         The ideas behind the MSC port are stolen from Emacs.
10942         * lib/count-leading-zeros.h:
10943         Don't include verify.h: it's no longer needed, as types wider than
10944         64 bits are now supported.
10945         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
10946         performance with MSC.  All uses changed.  Do not assume that TYPE
10947         has at most 64 bits.
10948         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
10949         All uses changed.  Fold the subtraction from 31 into the table.
10951         count-one-bits: port to MSC; support types wider than 64 bits
10952         The ideas behind the MSC port are stolen from Emacs.
10953         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
10954         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
10955         Don't include verify.h: it's no longer needed, as types wider than
10956         64 bits are now supported.
10957         (COUNT_ONE_BITS_GENERIC): New macro.
10958         (popcount_supported) [_MSC_VER]: New inline function.
10959         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
10960         performance with MSC.  All uses changed.  Do not assume that TYPE
10961         has at most 64 bits.
10962         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
10964 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
10966         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
10967         * lib/mountlist.c (read_file_system_list): fix leak of directory
10968         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
10970 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10972         tests: improve diagnostic when an assertion fails
10973         * tests/macros.h (ASSERT): Report the assertion that failed.
10975 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10977         verify: new macro 'assume'
10978         This is taken from Emacs, and should be generally useful.
10979         * doc/verify.texi (assume): Document it.
10980         * lib/verify.h (assume): New macro.
10981         (__has_builtin): Expand to 0 if not defined.
10983 2013-09-26  Eric Blake  <eblake@redhat.com>
10985         dup2, dup3: work around another cygwin crasher
10986         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
10987         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
10988         * tests/test-dup2.c (main): Likewise.
10989         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
10990         * lib/dup3.c (dup3): Likewise.
10991         * doc/posix-functions/dup2.texi (dup2): Document it.
10992         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10994         getdtablesize: work around cygwin issue
10995         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
10996         * modules/getdtablesize (configure.ac): Build replacement.
10997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
10998         * modules/unistd (Makefile.am): Expose the witness.
10999         * lib/unistd.in.h (getdtablesize): Declare replacement.
11000         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
11001         * tests/test-getdtablesize.c (main): Test it.
11002         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
11004 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11006         pmccabe2html: escaping of special characters
11007         Escape all '<', '>', and '&' in HTML output.
11008         * build-aux/pmccabe2html (html_fnc): Call gsub()
11009         instead of sub() to capture all '<', '>', and '&'.
11010         Neither of '<' and '>' is special in a regexp,
11011         so first arguments to gsub() are corrected. Also,
11012         in replacement strings, ampersand must be escaped.
11013         Finally, '&' must be handled first, then '<' and '>'.
11015 2013-09-24  Eric Blake  <eblake@redhat.com>
11017         manywarnings: enable nicer gcc warning messages
11018         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
11019         some -f options for optimal warnings.
11021 2013-09-21  Jim Meyering  <meyering@fb.com>
11023         timespec: use the new TIMESPEC_RESOLUTION in a few more places
11024         * lib/timespec-add.c (timespec_add): Also replace 999999999
11025         with TIMESPEC_RESOLUTION - 1.
11026         * lib/timespec-sub.c (timespec_sub): Likewise.
11028 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11030         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
11031         Problem reported by Dagobert Michelsen via Eric Blake in
11032         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
11033         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
11034         not AC_COMPILE_IFELSE.
11036 2013-09-23  Eric Blake  <eblake@redhat.com>
11038         configmake: support new --runstatedir option
11039         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
11040         even if autoconf was too old to provide the command line option.
11041         * modules/configmake (Makefile.am): Propagate it to .h file.
11043 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11045         ctype, string: depend on extern-inline
11046         This is needed to complete the recent OS X fixes.
11047         Also, fix related documentation as suggested by Eric Blake.
11048         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
11049         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
11050         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
11051         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
11052         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
11053         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
11054         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
11055         * doc/posix-functions/toupper.texi:
11056         List the 'ctype' gnulib module.
11057         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
11058         * doc/posix-functions/strncpy.texi:
11059         List the 'string' gnulib module.
11060         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
11061         Add string.
11062         * modules/ctype, modules/string (Depends-on): Add extern-inline.
11064 2013-09-19  Pádraig Brady  <P@draigBrady.com>
11066         userspec: support optional parameters to parse_user_spec()
11067         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
11068         then avoid group processing and treat the full spec as a user.
11069         (parse_with_separator): Allow the USERNAME and GROUPNAME to
11070         be optional params (NULL), in which case they're ignored.
11072 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11074         timespec: new function make_timespec, and new constants
11075         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
11076         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
11077         (make_timespec): New function.
11078         * lib/dtotimespec.c (dtotimespec):
11079         * lib/timespec-add.c (timespec_add):
11080         * lib/timespec-sub.c (timespec_sub):
11081         * lib/utimens.c (validate_timespec):
11082         * lib/utimensat.c (rpl_utimensat):
11083         Use these new constants and functions.
11085         stdio: OS X port of putc_unlocked + extern inline
11086         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
11087         * doc/posix-functions/putc_unlocked.texi:
11088         * doc/posix-functions/putchar_unlocked.texi:
11089         Document this portability problem.
11091         signal: OS X port of sigaddset etc. + extern inline
11092         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
11093         (sigismember): #undef on problematic Apple platforms.
11094         * doc/posix-functions/sigaddset.texi:
11095         * doc/posix-functions/sigdelset.texi:
11096         * doc/posix-functions/sigemptyset.texi:
11097         * doc/posix-functions/sigfillset.texi:
11098         * doc/posix-functions/sigismember.texi:
11099         Document this portability problem.
11101         extern-inline: do not always suppress extern inline on OS X
11102         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
11103         extern inline on Apple only if the particular compile-time
11104         configuration is known to have the problem.
11105         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
11106         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
11107         other Gnulib modules.
11109         extern-inline: document fixes for ctype and wctype macros
11110         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
11111         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
11112         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
11113         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
11114         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
11115         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
11116         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
11117         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
11118         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
11119         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
11120         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
11121         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
11122         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
11123         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
11124         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
11125         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
11126         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
11127         * doc/posix-functions/strncpy.texi:
11128         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
11129         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
11130         Document that Gnulib fixes portability problems with these
11131         functions on OS X 10.8 and earlier when called from plain inline
11132         or extern inline functions.
11134 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
11136         fflush, freadahead, fseeko: Fix for Android
11137         Suggested by Bruno Haible in:
11138         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
11139         * lib/stdio-impl.h: Use local __sfileext definition.
11141 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
11143         pmccabe2html: Portability to other awk versions.
11144         The functions systime() and strftime() are available
11145         in Gawk only.  Properly close two HTML-tags 'style'
11146         and 'span'.
11147         * build-aux/pmccabe2html (BEGIN): Store timing
11148         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
11149         systime() in HTML_COMMENT.
11150         (html_header): Correctly close tag 'style'.
11151         (END): Replace strftime() by CHRONOS_TIME.  Close
11152         tag 'span' correctly, not as 'div'.
11154 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
11156         getgroups: statement without effect
11157         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
11158         Change equality conditional to expected assignment.
11160 2013-09-09  Eric Blake  <eblake@redhat.com>
11162         glob: fix compilation
11163         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
11165 2013-09-07  Eric Blake  <eblake@redhat.com>
11167         glob: fix build for platforms without __THROW
11168         * lib/glob.in.h (__THROW): Add definition again.
11170 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
11172         regex-quote: fix buffer access out of bounds
11173         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
11174         * lib/regex-quote.c (regex_quote_spec_pcre):
11175         Fix typo that resulted in an out-of-bounds read.
11177 2013-09-04  Eric Blake  <eblake@redhat.com>
11179         glob: avoid -Wattribute warnings on glibc
11180         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
11181         __THROWNL, not __THROW, on static functions.
11182         * lib/glob.in.h (__THROW): Adjust...
11183         (__THROWNL): ...accordingly.
11185 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11187         headers: check that _GL_INLINE_HEADER_BEGIN is defined
11188         Suggested by Bruce Korb in:
11189         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
11190         * doc/extern-inline.texi (extern inline):
11191         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
11192         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
11193         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
11194         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
11195         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
11196         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
11197         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
11198         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
11199         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
11200         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
11201         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
11202         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
11203         * lib/xtime.h:
11204         Check that _GL_INLINE_HEADER_BEGIN is defined.
11206 2013-08-29  Pádraig Brady  <P@draigBrady.com>
11208         bootstrap: remove the --version requirement from ancillary tools
11209         * build-aux/bootstrap (check_exists): A new refactored function to
11210         determine if a command exists.
11211         (find_tool): Use the new function which does not require the
11212         --version option to be supported.
11213         (check_versions): Use the new function.
11215 2013-08-26  Simon Josefsson  <simon@josefsson.org>
11217         gc: support HMAC-SHA256 and HMAC-SHA512.
11218         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
11219         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
11220         functions.
11221         (gc_hmac_md5): Use symbolic constant.
11222         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
11223         (gc_hmac_sha256, gc_hmac_sha512): New functions.
11224         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
11225         * m4/sha256.m4: Protect against empty expansion.
11226         * m4/sha512.m4: Likewise.
11227         * lib/hmac-sha256.c: New file.
11228         * lib/hmac-sha512.c: Likewise.
11229         * m4/gc-hmac-sha256.m4: Likewise.
11230         * m4/gc-hmac-sha512.m4: Likewise.
11231         * m4/gc-sha256.m4: Likewise.
11232         * m4/gc-sha512.m4: Likewise.
11233         * modules/crypto/gc-hmac-sha256: Likewise.
11234         * modules/crypto/gc-hmac-sha256-tests: Likewise.
11235         * modules/crypto/gc-hmac-sha512: Likewise.
11236         * modules/crypto/gc-hmac-sha512-tests: Likewise.
11237         * modules/crypto/hmac-sha256: Likewise.
11238         * modules/crypto/hmac-sha256-tests: Likewise.
11239         * modules/crypto/hmac-sha512: Likewise.
11240         * modules/crypto/hmac-sha512-tests: Likewise.
11241         * tests/test-gc-hmac-sha256.c: Likewise.
11242         * tests/test-gc-hmac-sha512.c: Likewise
11243         * tests/test-hmac-sha256.c: Likewise.
11244         * tests/test-hmac-sha512.c: Likewise
11246 2013-08-24  Daiki Ueno  <ueno@gnu.org>
11248         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
11249         of AC_CHECK_DECLS.
11251 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11253         selinux-at: omit unnecessary include
11254         * lib/selinux-at.c: Don't include dosname.h; not needed, since
11255         this source file doesn't use its macros, and subsidiary files that
11256         use the macros already include it.
11258 2013-08-21  Eric Blake  <eblake@redhat.com>
11260         d-ino: avoid false negative on symlink
11261         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
11262         Reported by Stephane Chazelas.
11264 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
11266         bootstrap: port to OpenBSD sed
11267         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
11268         does not interpret `-' as a file argument to mean stdin.
11270 2013-08-15  Eric Blake  <eblake@redhat.com>
11272         warnings: minor optimization
11273         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
11275         warnings: check -Wfoo rather than -Wno-foo
11276         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
11277         -Wno-, test if the compiler recognizes the positive form instead.
11279 2013-08-15  Karl Berry  <karl@gnu.org>
11281         * config/srclist-update: add option "doclicense" to placate
11282         pulling *.texi files from Emacs.  Write terse usage
11283         documentation at the top.
11285 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
11287         xvasprintf-tests: port to GCC with hardening flags
11288         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
11289         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
11290         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
11292 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11294         fpending: port to recent Cygwin change to stdio_ext.h
11295         Reported by LRN in
11296         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
11297         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
11298         just declare __fpending unless it's a macro.
11299         A duplicate decl shouldn't hurt.
11300         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
11301         call compiles and links, instead of separately checking for
11302         decl and lib function.
11303         * modules/fpending (configure-ac):
11304         Adjust to fpending.m4's renaming of shell variable.
11306 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11308         sys_time: port to OpenBSD
11309         * lib/sys_time.in.h: Simply delegate to the system's header
11310         in the BSDish cases as well.  Problem reported by Mike Miller in
11311         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
11312         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
11313         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
11314         wider than time_t.
11316 2013-08-09  Pádraig Brady <P@draigBrady.com>
11318         bootstrap: support checksum utils having -c but not --status
11319         * build-aux/bootstrap: Only look for sha1sum if updating po files.
11320         Add sha1 to the list of supported checksum utils since it's now
11321         supported through adjustments below.
11322         (update_po_files): Remove the use of --status
11323         in a way that will suppress all error messages, but since this is
11324         only used to minimize updates, it shouldn't cause an issue.
11325         Exit early if there is a problem updating the po file checksums.
11326         (find_tool): Remove the check for --version support as this
11327         is optional as per commit 86186b17.  Don't even check for the
11328         presence of the command as if that is needed, it's supported
11329         through configuring prerequisites in bootstrap.conf.
11330         Prompt that when a tool isn't found, one can define an environment
11331         variable to add to the hardcoded search list.
11333 2013-08-05  Jim Meyering  <meyering@fb.com>
11335         regex: port to non-glibc/lock-using systems
11336         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
11337         system with GNULIB_LOCK would fail due to absence of the
11338         included "glthread/lock.h".  This would affect any package
11339         for which the "lock" module is used only by the regex module,
11340         and not explicitly used.
11341         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
11342         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
11343         Add a dependency on the "lock" module.
11345 2013-07-20  Daiki Ueno  <ueno@gnu.org>
11347         localecharset: make locale_charset thread-safe on Mac OS X
11348         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
11349         instead of MB_CUR_MAX.
11351 2013-07-20  Daiki Ueno  <ueno@gnu.org>
11353         gettext: update to version 0.18.3
11354         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
11355         require AC_PROG_SED to allow user to specify custom sed command when
11356         generating en@quot PO file.
11358 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
11360         bootstrap: use correct source when copying build-aux files
11361         * build-aux/bootstrap (gnulib_extra_files): This variable is
11362         relative to upstream gnulib layout, not downstream.
11364 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
11366         tmpdir: fix bug in VMS port
11367         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
11368         See Steven M. Schweda in
11369         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
11371 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11373         tmpdir: port to VMS, to // != /, and to long dirs
11374         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
11375         __secure_getenv, so that we're more like the glibc version.
11376         All uses changed.
11377         (path_search): Don't put slash after directory if __VMS.
11378         Problem reported by Steven M. Schweda in
11379         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
11380         Simplify code to add slash; no need for a loop.
11381         Do not remove trailing slash from "//".
11382         Do not assume dlen <= INT_MAX.
11384 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11386         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
11387         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
11388         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
11389         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
11391         accept4, dup3, pipe2: port to Cygwin
11392         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
11393         * lib/accept4.c (accept4) [O_BINARY]:
11394         * lib/dup3.c (dup3) [O_BINARY]:
11395         * lib/pipe2.c (pipe2) [O_BINARY]:
11396         Use set_binary_mode, not setmode.
11397         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
11398         * modules/binary-io (Depends-on): Remove module indicator.
11399         These last two bits undo the previous change to pipe2 and binary-io.
11401 2013-07-09  Pádraig Brady  <P@draigBrady.com>
11403         mountlist: add support for deallocating returned list entries
11404         * lib/mountlist.c (free_mount_entry): A new exported function
11405         to deallocate a mount list entry.
11406         (read_file_system_list): Refactor to use the new deallocation function.
11407         Suggested by Anton Ovchinnikov.
11409 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11411         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
11412         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
11413         * lib/stdalign.in.h (_Alignas, _Alignof):
11414         Port to FreeBSD 9.1, and to C11 and C++11.
11415         (_Alignas): Also support ICC.
11416         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
11417         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
11419 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11421         fnmatch: don't goto over declaration
11422         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
11423         undefined behavior for goto over a declaration.
11424         Problem reported by Charlie Brown in
11425         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
11427         pipe2: decouple from binary-io a bit
11428         This is for Emacs, which needs pipe2 but not binary-io.
11429         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
11430         * modules/binary-io (Depends-on): Add module indicator.
11432 2013-07-03  Eric Blake  <eblake@redhat.com>
11434         mgetgroups: relax license to LGPLv2+
11435         * modules/getugroups (License): Change from GPLv3+.
11436         * modules/mgetgroups (License): Likewise.
11437         * modules/getgroups (License): Change from LGPLv3+.
11439         xalloc-oversized: relax license to LGPLv2+
11440         * modules/xalloc-oversized (License): Change from GPLv3+.
11442         nproc: relax license to LGPLv2+
11443         * modules/nproc (License): Change from LGPLv3+.
11445         bootstrap: honor --no-git
11446         * build-aux/bootstrap: Don't even try to use git when user is
11447         pointing to a static checkout.
11449 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11451         ignore-value: port to gcc -pedantic
11452         * lib/ignore-value.h (ignore_value):
11453         Port to gcc -pedantic, by using __extension__.
11454         Reindent as per usual gnulib style nowadays.
11455         Simplify GCC version check.
11457 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11459         extern-inline: port to gcc -std=c89
11460         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11461         Do not use __gnu_inline__ if pedantic and pre-C99.
11463 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11465         doc: document extern-inline
11466         * doc/extern-inline.texi: New file.
11467         * doc/gnulib.texi (alloca-opt): Include it.
11468         * m4/extern-inline.m4: Move some comments to documentation,
11469         and others closer to what they describe.
11471         doc: chatter less
11472         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
11473         (updated-stamp): Use it.  This causes 'make' to output just
11474         one file name rather than zillions.
11476         fflush, fseeko: port to musl cross-compiles
11477         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
11478         on some implementation that (1) is not known to be buggy,
11479         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
11480         cross-compiled to so we can't easily check for lack of
11481         conformance.  This is for cross-compiling to musl.
11482         Reported by Rich Felker in
11483         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
11484         * m4/fclose.m4 (gl_FUNC_FCLOSE):
11485         * m4/fflush.m4 (gl_FUNC_FFLUSH):
11486         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
11487         Adjust to above change.
11488         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
11489         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
11490         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
11491         known not to work, or unknown.
11493 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11495         msvc-inval: port to mingw-w64
11496         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
11497         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
11498         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
11500 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
11502         getcwd-lgpl: port to Tru64
11503         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
11504         Problem reported by Steven M. Schweda in
11505         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
11507         tests: port large-fd POSIX spawn tests to OS X
11508         Problem reported by Daiki Ueno in
11509         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
11510         * tests/test-posix_spawn_file_actions_addclose.c:
11511         * tests/test-posix_spawn_file_actions_adddup2.c:
11512         * tests/test-posix_spawn_file_actions_addopen.c:
11513         Include <limits.h>, for OPEN_MAX, if available.
11514         (big_fd): New static function.
11515         (main): Use it.
11517 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
11519         tests/nap.h: use an adaptive delay to avoid ctime update issues
11520         The recent change in nap.h (5191133e) decreased the probability of lost
11521         races to about a third, however such problems could still be observed
11522         in virtual machines and openSUSE's OBS.
11523         Before, nap() detected the needed time once empirically and then used
11524         that delay (together with a small correction multiplier) in further
11525         calls.  This problem has been reported and discussed several times,
11526         including guesses about possible kernel issues:
11527         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
11528         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
11529         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
11530         http://bugs.gnu.org/12820
11531         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
11532         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
11533         Now, nap() avoids the race alltogether by verifying on a reference
11534         file whether a timestamp difference has happened.
11535         * tests/nap.h (nap_fd): Define file descriptor variable for the
11536         witness file.
11537         (nap_works): Change return value to bool.  Change passing
11538         the old file's status by value instead of by reference as this function
11539         does no longer update that timestamp; rename the function argument from
11540         st to old_st.  Remove the local variables cdiff and mdiff because that
11541         function now returns true/false instead of the precise delay.
11542         (guess_delay): Remove function.
11543         (clear_tmp_file): Add new function to close and unlink the witness file.
11544         (nap): Instead of re-using the delay which has been calculated during
11545         the first call, avoid the race by actually verifying that a timestamp
11546         difference can be observed on the current file system.  Use an adaptive
11547         approach for the delay to minimize execution time.  Assert that the
11548         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
11549         = 2^31 - 1 = 2.1s.
11550         Use atexit to call clear_tmp_file when the process terminates.
11552 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11554         sig2str: port to C++
11555         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
11556         Reported by Daniel J Sebald in
11557         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
11559 2013-05-30  Eric Blake  <eblake@redhat.com>
11561         docs: mention cygwin shortcoming in <sys/un.h>
11562         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
11564         vasnprintf: silence mingw compiler warning
11565         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
11567 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11569         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
11570         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
11571         This fixes a porting bug I recently reintroduced in regex, and
11572         some other instances that I discovered while testing the fix.
11573         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
11574         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
11575         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
11576         with an empty argument if this is a pedantic pre-C99 GCC.
11577         * lib/verify.h: Do not use _Static_assert if this is a pedantic
11578         pre-C11 GCC.
11580         regex: adapt to locking regime instead of depending on pthread
11581         Instead of depending on pthread, adapt to whatever thread
11582         modules are in use.  Problem reported by Ludovic Courtès in
11583         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
11584         and by Mats Erik Andersson in
11585         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
11586         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
11587         Support either the 'lock' module, or the 'pthread' module, or
11588         no module.
11589         (lock_lock, lock_unlock): New macros.
11590         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
11591         * modules/lock, modules/pthread (configure.ac): Add module indicator.
11592         * modules/regex (Depends-on): Remove pthread.
11594 2013-05-22  Eric Blake  <eblake@redhat.com>
11596         getgroups: document portability issues
11597         * doc/glibc-functions/initgroups.texi (initgroups): Mention
11598         multithread safety.
11599         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
11600         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
11601         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
11602         getugroups.
11603         * doc/posix-functions/getgroups.texi (getgroups): Mention
11604         multithread safety and mgetgroups.
11606 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
11608         test-lchown, test-chown: also skip test if chown fails with EPERM
11609         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
11610         skip this test, to handle FAT file systems.
11611         * tests/test-chown.h (test_chown): Likewise.
11613 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11615         regex: fix dfa race in multithreaded uses
11616         Problem reported by Ludovic Courtès in
11617         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
11618         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
11619         New macros.  All uses of __libc_lock_define, __libc_lock_init
11620         changed to use the first two of these.
11621         (__libc_lock_lock, __libc_lock_unlock): New macros, for
11622         non-glibc platforms.
11623         (struct re_dfa_t): Define the lock unconditionally.
11624         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
11625         '#ifdef _LIBC"s.
11626         * modules/regex (Depends-on): Add pthread, if we use the
11627         included regex.
11629         * lib/regcomp.c: Do actions that are not needed for glibc,
11630         but may be needed elsewhere.
11631         (regfree, re_compile_internal): Destroy the lock.
11632         (re_compile_internal): Check for lock-initialization failure.
11634         malloca: port to compilers that reject size-zero arrays
11635         This fixes a bug introduced in my previous patch.
11636         * lib/malloca.c (struct preliminary_header): Use an int
11637         rather than a character array of size int; that's simpler.
11638         (struct header): Remove, replacing with ...
11639         (union header): New type.  This avoids the need for declaring a
11640         character array of size zero, which is not allowed on some platforms.
11641         All uses changed.
11643 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11645         parse-datetime, tests: don't use "string" + int
11646         Recent versions of 'clang' complain about C source code that
11647         uses expressions of the form '"string literal" + integer',
11648         I guess on the theory that it's confusing for readers who are
11649         used to C++.  On those grounds I suppose it's OK to make this
11650         minor style change.
11651         * lib/parse-datetime.y (parse_datetime):
11652         * tests/test-fchdir.c (main):
11653         * tests/test-snprintf-posix.h (test_function):
11654         * tests/test-snprintf.c (main):
11655         * tests/test-vasnprintf-posix.c (test_function):
11656         * tests/test-vasnprintf.c (test_function):
11657         * tests/test-vsnprintf.c (main):
11658         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
11659         Rewrite '"str" + E' to '&"str"[E]'.
11661 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
11663         argmatch: port to C++
11664         * lib/argmatch.h [__cplusplus]: Add extern "C".
11666         argp: typo fix
11667         * lib/argp-help.c: Typo in comment.
11669 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
11671         manywarnings: update for GCC 4.8.0
11672         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
11673         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
11674         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
11675         -Wmissing-noreturn, as they are duplicates of other warnings.
11676         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
11677         was documented to be flaky in earlier versions of GCC.
11679         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
11680         * tests/test-spawn.c (main):
11681         * tests/test-sys_socket.c (main):
11682         * tests/test-sys_wait.c (main):
11683         Don't have a switch value that isn't covered by a case.
11685         getaddrinfo-tests: port --enable-gcc-warnings to clang
11686         * tests/test-getaddrinfo.c (simple):
11687         Avoid casts from looser to stricter-aligned pointers.
11689         thread: port --enable-gcc-warnings to clang
11690         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
11691         Include <signal.h>, to pacify a warning about pthread_sigmask.
11693         stdio: use __REDIRECT for fwrite, fwrite_unlocked
11694         * lib/stdio.in.h (fwrite):
11695         When working around bug 11959, use __REDIRECT rather than '#define
11696         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
11697         fix the -Wunused-value issue with clang, and it works with GCC too.
11698         Problem with targeting reported by Eric Blake in
11699         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
11700         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
11701         debugging the fwrite issue.
11703         stdio: port --enable-gcc-warnings to clang
11704         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
11705         since the GCC workaround for fwrite does not pacify clang.
11707         sig2str: port --enable-gcc-warnings to clang
11708         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
11710         obstack: port --enable-gcc-warnings to clang
11711         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
11712         Avoid casts from looser to stricter-aligned pointers.
11714         memchr2: port --enable-gcc-warnings to clang
11715         * lib/memchr2.c (memchr2):
11716         Avoid casts from looser to stricter-aligned pointers.
11718         mbsstr: port --enable-gcc-warnings to clang
11719         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
11720         Avoid casts from looser to stricter-aligned pointers.
11722         malloca: port --enable-gcc-warnings to clang
11723         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
11724         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
11726         inttostr: port --enable-gcc-warnings to clang
11727         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
11729         warnings: port to clang
11730         Problem reported by Daniel P. Berrange via Eric Blake in
11731         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
11732         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
11733         (gl_WARN_ADD): Use it.
11735 2013-05-11  Jim Meyering  <meyering@fb.com>
11737         quotearg: do not read beyond end of buffer
11738         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
11739         end of an ARG for which no length was specified.  With an N-byte
11740         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
11741         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
11742         via coreutils' misc/sort-debug-keys.sh test and detected by running
11743         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
11744         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
11745         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
11746         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
11747         characters correctly."
11749 2013-05-11  Daiki Ueno  <ueno@gnu.org>
11751         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
11752         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
11753         compilation target is Mac OS X 10.6.
11754         Problem reported by parafin and Andoni Morales in
11755         <http://savannah.gnu.org/bugs/?37844> and
11756         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
11758 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11760         mkdir-p: remove assumptions about umask and mode
11761         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
11762         umask is 0, or that MODE is a subset of MODE_BITS.
11764 2013-05-10  Eric Blake  <eblake@redhat.com>
11766         maint.mk: catch more abuse of HAVE_DECL in syntax-check
11767         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
11769 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
11771         deps: require Automake >= 1.9.6 in generated Makefile fragments
11773         That is the same minimal version required in the DEPENDENCIES file.
11774         Moreover, the old code generated a requirement of Automake >= 1.5,
11775         and that is an insanely outdated version.
11777         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
11778         * tests/havelib/rpathlx/Makefile.am: Likewise.
11779         * tests/havelib/rpathly/Makefile.am: Likewise.
11780         * tests/havelib/rpathlyx/Makefile.am: Likewise.
11781         * tests/havelib/rpathlz/Makefile.am: Likewise.
11782         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
11783         * tests/havelib/rpathx/Makefile.am: Likewise.
11784         * tests/havelib/rpathy/Makefile.am: Likewise.
11785         * tests/havelib/rpathz/Makefile.am: Likewise.
11787 2013-05-08  Eric Blake  <eblake@redhat.com>
11789         bootstrap: AC_INIT may have more than four parameters
11790         * build-aux/bootstrap (extract_package_name): Correctly extract
11791         non-empty tarname field.  Avoid range in regex.
11792         Based on a report by Sami Kerola <kerolasa@iki.fi>.
11794 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11796         qacl: port to MS-Windows port of GNU Emacs
11797         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
11798         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
11799         port of GNU Emacs.  Problem reported by Eli Zaretskii in
11800         <http://bugs.gnu.org/14295#14>.
11802 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
11804         acl: include quote.h
11805         * lib/copy-acl.c: Include quote.h.
11806         * lib/set-acl.c: Likewise.
11808 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
11810         fchownat, renameat, unlinkat: update statat dependencies
11811         These modules use statat and lstatat, not fstatat; so depend on
11812         the statat module, which was split out recently from fstatat.
11813         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
11814         * modules/renameat: Likewise.  Also delete fstat.
11815         URL: http://bugs.gentoo.org/468790
11817 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
11819         Assume gnulib is checked out from Git, not CVS
11821         In fact, access to the gnulib repository through CVS has been
11822         disabled, or more precisely, got broken and was never restored; see:
11823         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
11825         Note that support for CVS is not removed completely and unthinkingly
11826         by this change: only support for CVS checkouts of gnulib itself is
11827         removed.  For example, the 'bootstrap' script still cater to .cvsingore
11828         files and CVS directories, for the benefit of those poor gnulib clients
11829         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
11831         * gnulib-tool: Simplify accordingly.
11832         * posix-modules: Likewise.
11833         * MODULES.html.sh: Likewise.
11834         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
11835         repository.
11836         * doc/gnulib-intro.texi: Likewise.
11837         * doc/gnulib-readme.texi: Likewise.
11838         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
11839         sample '.gitignore' file rather than a sample '.cvsignore'.
11840         * NEWS: Update.
11841         * m4/extensions.m4: While at it, remove a comment mistakenly referring
11842         to "CVS Autoconf" rather than "git Autoconf".
11844 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11846         utimensat-tests, etc.: try to fix some races
11847         Problem reported by Bernhard Voelker in
11848         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
11849         I don't know whether this patch fixes that race condition, but it
11850         fixes *some* race conditions, so it should be a win.
11851         * modules/chown-tests (Depends-on):
11852         * modules/fchownat-tests (Depends-on):
11853         * modules/fdutimensat-tests (Depends-on):
11854         * modules/futimens-tests (Depends-on):
11855         * modules/lchown-tests (Depends-on):
11856         * modules/stat-time-tests (Depends-on):
11857         * modules/utimens-tests (Depends-on):
11858         * modules/utimensat-tests (Depends-on):
11859         Depend on nanosleep, not usleep.
11860         * modules/chown-tests (test_chown_LDADD):
11861         * modules/lchown-tests (test_lchown_LDADD):
11862         * modules/stat-time-tests (test_stat_time_LDADD):
11863         New macro.
11864         * modules/fchownat-tests (test_fchownat_LDADD):
11865         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
11866         * modules/futimens-tests (test_futimens_LDADD):
11867         * modules/utimens-tests (test_utimens_LDADD):
11868         * modules/utimensat-tests (test_utimensat_LDADD):
11869         Add $(LIB_NANOSLEEP).
11870         * modules/stat-time-tests (Files): Add tests/nap.h.
11871         * tests/nap.h: Include <limits.h>, for INT_MAX.
11872         (lt_mtime): Remove.
11873         (diff_timespec): New function.
11874         (get_stat): Rename from get_mtime.  All callers changed.
11875         (nap_works): Determine the needed delay by inspecting the
11876         file system's timestamp jumps; this should be more reliable.
11877         Look at both mtime and ctime, and take the maximum of the two jumps.
11878         (nap_works, guess_delay):
11879         Return a nanosecond count, not a microsecond count.
11880         All callers changed.
11881         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
11882         failure.
11883         (nap): Multiply the guess by 1.125, to accommodate the case where
11884         the file system's clock is a bit slower than nanosleep's clock.
11885         * tests/test-stat-time.c (BASE): New macro.
11886         Include nap.h.
11887         (nap): Remove; nap.h now defines this.  This removes a duplicate
11888         implementation of 'nap'.
11890         utimens, utimensat: work around Solaris UTIME_OMIT bug
11891         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
11892         Linux kernel 2.6.32 does.  Work around it in the same way.
11893         * doc/posix-functions/futimens.texi (futimens):
11894         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
11895         * lib/utimens.c (fdutimens, lutimens):
11896         * lib/utimensat.c (rpl_utimensat): Work around the bug.
11898         gettext: now it's your responsibility to add -I$(top_builddir)/intl
11899         Formerly, it was your responsibility to do this for all Makefile.ams
11900         other than Gnulib's.  Now it's your responsibility to do it for
11901         Gnulib's Makefile.am, too.
11902         * NEWS: Document this.
11903         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
11905         acl: include errno.h to get errno
11906         Reported by Daiki Ueno in
11907         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
11908         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
11910 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11912         tests: don't assume getdtablesize () <= 10000000
11913         * modules/cloexec-tests:
11914         * modules/dup2-tests:
11915         * modules/dup3-tests:
11916         * modules/nonblocking-tests:
11917         * modules/posix_spawn_file_actions_addclose-tests:
11918         * modules/posix_spawn_file_actions_adddup2-tests:
11919         * modules/posix_spawn_file_actions_addopen-tests:
11920         * modules/unistd-safer-tests:
11921         Depend on the getdtablesize module.
11922         * tests/test-cloexec.c:
11923         * tests/test-dup-safer.c:
11924         * tests/test-dup2.c:
11925         * tests/test-dup3.c:
11926         * tests/test-fcntl.c:
11927         * tests/test-nonblocking.c:
11928         * tests/test-posix_spawn_file_actions_addclose.c:
11929         * tests/test-posix_spawn_file_actions_adddup2.c:
11930         * tests/test-posix_spawn_file_actions_addopen.c:
11931         Don't assume getdtablesize () <= 10000000.
11933 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
11935         extern-inline: work around bug in Sun c99
11936         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
11937         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
11939 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11941         qacl: new module, broken out from the acl module
11942         This is for GNU Emacs, which wants the acl functions but does
11943         not want 'error' invoked when they fail.
11944         * lib/acl-internal.h: Do not include error.h, quote.h.
11945         (ENOSYS, ENOTSUP): Remove; no longer needed.
11946         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
11947         * lib/acl.h: Include <stdbool.h>.
11948         (acl_errno_valid): New function.
11949         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
11950         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
11951         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
11952         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
11953         (ACL_INTERNAL_INLINE): Remove; no longer needed.
11954         * lib/file-has-acl.c (file_has_acl):
11955         * lib/qcopy-acl.c (qcopy_acl):
11956         * lib/qset-acl.c (qset_acl):
11957         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
11958         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
11959         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
11960         lib/file-has-acl.c, m4/acl.m4 to qacl module.
11961         Add lib/set-acl.c.
11962         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
11963         Add qacl.
11964         (configure.ac): Move gl_FUNC_ACL to qacl module.
11965         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
11966         Rename set-mode-acl.c to set-acl.c.
11967         * lib/acl-errno-valid.c: New file.
11968         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
11969         copy_acl function remains in copy-acl.c.
11970         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
11971         (_): Remove; not needed.
11972         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
11973         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
11974         * modules/qacl: New file, moved from the old modules/acl.
11975         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
11976         Remove set-mode-acl.c, copy-acl.c.
11977         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
11979         alignof, intprops, malloca: port better to IBM's C compiler
11980         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
11981         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
11982         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
11984 2013-04-25  Daiki Ueno  <ueno@gnu.org>
11986         wctype-h: fix gettext link error on mingw
11987         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
11988         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
11989         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
11990         rpl_towupper and rpl_towupper.
11992 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
11994         regex-tests, regex: allow glibc re_search behavior
11995         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
11996         re_search input data to make the multi-character collating element
11997         in it clearly visible, and treat re_search return code 0 as valid.
11998         * m4/regex.m4 (gl_REGEX): Likewise.
12000 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12002         stdalign: doc fix
12003         * doc/posix-headers/stdalign.texi (stdalign.h):
12004         Gnulib doesn't support '_Alignof expr'.
12006 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12008         stdalign: port to stricter ISO C11
12009         ISO C11 says that _Alignof's operand must be a parenthesized type.
12010         Problem reported by Eli Zaretskii in
12011         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
12012         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12013         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
12015 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12017         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
12018         Problem reported by Marco Atzeri in
12019         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
12020         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
12021         Simply delegate to the system <sys/select.h> in this case too.
12022         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
12023         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
12024         be needed on Solaris either.
12025         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
12026         Simply delegate to the system <sys/time.h> in this case.
12028 2013-03-19  Karl Berry  <karl@gnu.org>
12030         * build-aux/gnupload: check for erroneous (with gnupload) use of
12031         ftp-upload.gnu.org, tweak help.
12033 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12035         copy-file, rpmatch: fix problems found by cppcheck
12036         Reported by Arno Onken in
12037         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
12038         * lib/rpmatch.c (try): Fix memory leak.
12039         * lib/copy-file.c: Include "ignore-value.h".
12040         (qcopy_file_preserving): Ignore chown value.
12041         * modules/copy-file (Depends-on): Add ignore-value.
12043 2013-01-27  Jim Meyering  <jim@meyering.net>
12045         prefix-gnulib-mk: give better diagnostics
12046         * build-aux/prefix-gnulib-mk: Don't just "die".
12047         Give better diagnostics upon failure.
12049 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12051         putenv: port to Solaris 10
12052         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
12053         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
12054         is not what is wanted here.
12055         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
12056         declaration, not for its existence.
12058 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
12060         mktime: fix configure typo
12061         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
12063 2013-03-12  Eric Blake  <eblake@redhat.com>
12065         regex-tests: skip UTF-8 test on mingw
12066         * modules/regex-tests (Depends-on): Add localcharset.
12067         * tests/test-regex.c (main): Use it to skip test on mingw.
12069 2013-03-11  Eric Blake  <eblake@redhat.com>
12071         tests: make it easier to bypass alarm time in debugger
12072         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
12073         * tests/test-memmem.c (main): Likewise.
12074         * tests/test-passfd.c (main): Likewise.
12075         * tests/test-ptsname.c (main): Likewise.
12076         * tests/test-ptsname_r.c (main): Likewise.
12077         * tests/test-strcasestr.c (main): Likewise.
12078         * tests/test-strstr.c (main): Likewise.
12080         regex: port to mingw's recent addition of undeclared alarm
12081         * doc/posix-functions/alarm.texi (alarm): Document that alarm
12082         exists but still doesn't work in newer mingw.
12083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
12084         not existence.  Ensure SIGALRM is not trapped.
12085         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
12086         * m4/regex.m4 (gl_REGEX): Likewise.
12087         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
12088         * tests/test-regex.c (main): Use correct probe for alarm.
12090         putenv: avoid compilation warning on mingw
12091         * lib/putenv.c (_unsetenv): Protect variable declaration.
12092         (putenv): Fix indentation.
12094 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
12096         unistd: don't prevent Tru64 Unix from using gnulib strtod.
12097         * lib/unistd.in.h: be careful not to include un-needed system
12098         stdlib.h from here, because that prevents gnulib stdlib.h from
12099         defining rpl_strtod correctly.
12101 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
12103         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
12104         changesets, but for the 'precision 0' test.
12105         * tests/test-vasprintf-posix.c (test_function): Don't insist on
12106         round-to-even, since POSIX says rounding is implementation-defined
12107         and OS X 10.8.2 rounds 1.51 to 1 here.
12109         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
12110         changeset.
12111         * tests/test-vasprintf-posix.c (test_function): Don't insist on
12112         round-to-even, since POSIX says rounding is implementation-defined
12113         and OS X 10.8.2 rounds 1.5 to 1 here.
12115 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12117         vasnprintf-posix-tests: allow rounding 1.5 to 1
12118         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
12119         round-to-even, since POSIX says rounding is implementation-defined
12120         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
12121         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
12123         bootstrap: port to FreeBSD
12124         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
12125         that treat '--' differently.  Reported by Mats Erik Andersson in
12126         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
12128 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
12130         regex: rename remaining __attribute calls to __attribute__.
12131         2012-02-25 changed definition of __attribute, but left some uses
12132         unchanged, preventing compilation of regex module on most non-gcc
12133         environments.
12134         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
12135         (lookup_collation_sequence_value, build_range_exp)
12136         (build_collating_symbol): Set attributes with newly renamed
12137         __attribute__ decorator.
12138         * lib/regex_internal.c (re_string_peek_byte_case)
12139         (re_node_set_compare, re_node_set_contains): Likewise.
12140         * lib/regexec.c (acquire_init_state_context): Likewise.
12142 2013-03-06  Bruno Haible  <bruno@clisp.org>
12144         execute: Revert last change, but use a different condition.
12145         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
12146         on Windows.
12148 2013-03-05  Eric Blake  <eblake@redhat.com>
12150         execute: drop dead code
12151         * lib/execute.c (nonintr_close, nonintr_open): Delete.
12153 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
12155         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
12156         * m4/non-recursive-gnulib-prefix-hack.m4
12157         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
12158         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
12159         <http://bugs.gnu.org/10305#237>.
12161 2013-03-04  Eric Blake  <eblake@redhat.com>
12163         test-getsockopt: avoid compiler warning
12164         * tests/test-getsockopt.c (includes): Ensure close is declared.
12166 2013-03-02  Bruno Haible  <bruno@clisp.org>
12168         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
12169         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
12171 2013-03-02  Bruno Haible  <bruno@clisp.org>
12173         gettext: Update to version 0.18.2.
12174         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
12175         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
12176                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
12178 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12180         regex: merge patches from libc
12182         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12183         * lib/regex_internal.h (__attribute__): Rename from __attribute.
12184         All uses changed.
12185         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
12186         (re_string_wchar_at, re_string_elem_size_at):
12187         Mark function as possibly unused.
12189         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
12190         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
12191         elements compare against the byte sequence of it, not its name.
12193 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12195         putenv: port better to native Windows
12196         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
12197         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
12198         (_unsetenv): Use _putenv if available.
12199         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
12200         a bit less likely to cause damage.
12201         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
12202         Fix the wrong value with SetEnvironmentVariable.
12203         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
12204         code better.
12206 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12208         regex: ignore old-style-definition warnings
12209         * lib/regex.c: Add pragma to ignore these warnings.
12210         Problem reported for GNU tar by Pavel Raiskup.
12212 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12214         getcwd: support coreutils better
12215         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
12216         but this might not be correct in coreutils, which disables
12217         the raw decl checks.  Problem reported by Nagendra in
12218         <http://bugs.gnu.org/10305#192>.
12219         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
12220         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
12221         Test the getcwd function, not any macro, since getcwd.c wants the
12222         function.
12223         * m4/getcwd.m4 (gl_FUNC_GETCWD):
12224         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
12225         compile, as might happen if there's a macro but no function.
12227         strtod: support coreutils better
12228         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
12229         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
12230         disables the raw decl checks.  This assumes there is an underlying
12231         strtod, but that's a safe assumption these days.
12232         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
12234         mountlist: port to HP NonStop
12235         Reported by Joachim Schmitz in
12236         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
12237         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
12238         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
12240 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12242         extern-inline: avoid compilation error with HP-UX cc
12243         Reported by Richard Lloyd in
12244         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
12245         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
12246         Suppress extern inline with HP-UX cc.  This should be safe,
12247         though it may hurt performance.  Perhaps someone with some HP-UX
12248         experience can come up with a higher-performance fix.
12250 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12252         putenv: fix heap corruption with mixed putenv/_putenv
12253         Problem reported by Michael Goffioul in
12254         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
12255         * lib/putenv.c (putenv) [HAVE__PUTENV]:
12256         Rely on _putenv to allocate the new environment.
12257         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
12258         * modules/putenv (configure.ac): Use it.
12260 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
12262         unsetenv etc.: port to Solaris 11 + GNU Emacs
12263         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
12264         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
12265         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
12266         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
12267         idea but is too painful to fix right now), and without this gnulib
12268         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
12269         compiling unsetenv.c on Solaris 11.  Fix the problem for
12270         unsetenv.c, and fix other similar occurrences.
12272 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12274         secure_getenv: fix C++ declaration typo
12275         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
12276         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
12277         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
12279 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12281         careadlinkat: stop exporting careadlinkatcwd
12282         Only Emacs used it directly, and Emacs no longer needs it.
12283         * NEWS: Document this simplification.
12284         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
12285         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
12286         for readlink.
12287         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
12288         Don't include stdlib.h; no longer needed.
12289         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
12290         * lib/relocwrapper.c: Adjust comment to match new dependencies.
12291         * modules/areadlink (Depends-on): Add readlink.
12292         (Maintainer): Add self.
12293         * modules/careadlinkat (Depends-on): Remove readlink.
12295         extensions: port better to HP-UX
12296         This is merged from git Autoconf.
12297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
12298         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
12299         so that it's compatible with the value used when compiling.
12301         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
12302         Problem reported by Mats Erik Andersson in
12303         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
12304         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
12305         openpty function exists, not merely when we intend to replace it.
12306         This corrects the 2013-01-31 patch, which mistakenly defined
12307         HAVE_OPENPTY even on hosts that lacked it.
12309 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12311         secure_getenv: fix include typo
12312         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
12314         secure_getenv: port better to FreeBSD and Solaris
12315         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
12316         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
12317         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
12318         This works better on BSDish platforms.
12319         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
12320         Test for issetugid if __secure_getenv is missing.
12322 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12324         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
12325         Some of these changes are merged in from git Autoconf.
12326         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
12327         When deciding whether to define _XOPEN_SOURCE, inspect the
12328         preprocessor macro __hpux instead of the more-heavyweight
12329         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
12330         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
12331         as the key for __EXTENSIONS__.
12333         unistd: avoid namespace pollution on non-glibc systems
12334         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
12335         This avoids namespace pollution on non-glibc systems, by causing
12336         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
12337         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
12338         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
12340 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12342         tmpdir: use secure_getenv
12343         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
12344         Define to secure_getenv, not getenv.
12345         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
12346         as that's now secure_getenv's job.
12347         * modules/tmpdir (Depends-on): Add secure_getenv.
12349         tempname: use secure_getenv
12350         * lib/tempname.c (__secure_getenv) [!_LIBC]:
12351         Define to secure_getenv, not getenv.
12352         * modules/tempname (Depends-on):
12353         Add secure_getenv.
12355         secure_getenv: new module
12356         * MODULES.html.sh (Extra functions based on ANSI C 89):
12357         Add secure_getenv.
12358         * doc/glibc-functions/secure_getenv.texi: New file.
12359         * doc/gnulib.texi: Include it.
12360         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
12361         New files.
12362         * lib/stdlib.in.h (secure_getenv): New decl.
12363         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
12364         * modules/stdlib (stdlib.h):
12365         Add secure_getenv checks.
12367 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12369         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
12370         Reported for OS X 10.8.2 by Assaf Gordon in
12371         <http://bugs.gnu.org/13516>.
12372         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
12373         !HAVE_OPENAT && !HAVE_FDOPENDIR.
12374         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
12375         so that they can be kept in sync more easily.  Avoid PATH_MAX
12376         test on the Hurd.  Sync from test-getcwd.c for errno tests after
12377         mkdir or chdir failure.
12378         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
12379         lib/getcwd.c.
12380         (test_abort_bug): Do not test for the deep directory bug unless we
12381         have openat support.  Avoid PATH_MAX test on the Hurd.
12383         regex-tests, regex: fix bug: memset undeclared
12384         * tests/test-regex.c: Don't include regex.h twice.  Include
12385         string.h, to declare memset.  Christensen's report also mentioned
12386         this issue.
12387         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
12388         test-regex.c, to avoid future problems like this.  Remove
12389         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
12390         twice.
12392         regex-tests: fix link errors on older Solaris
12393         These need to link with @LIBINTL@ to get libintl_gettext.
12394         Problem reported by Tom G. Christensen in
12395         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
12396         * modules/regex-tests (test_regex_LDADD): New macro.
12398 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
12400         regex-tests: new module
12401         * modules/regex-tests, tests/test-regex.c: New files.
12403         regex: fix off-by-one error in configure test
12404         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
12406 2013-01-31  Eric Blake  <eblake@redhat.com>
12408         regex: avoid infinite configure test
12409         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
12411 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
12413         openpty: fix bug where HAVE_OPENPTY wasn't defined
12414         See the thread starting at:
12415         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
12416         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
12417         openpty function exists, not merely when we intend to replace it.
12419 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12421         sys_time: port to Solaris 2.6
12422         There is a circularity problem on Solaris 2.6, where <time.h> includes
12423         <sys/time.h> for struct timespec.  The include nesting is gnulib
12424         <time.h>, system <time.h>, gnulib <sys/time.h>, system
12425         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
12426         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
12427         <sys/siginfo.h>; the last, innermost file needs struct
12428         timestruc_t, which is defined in <sys/time.h>, which has not been
12429         fully parsed.  Problem reported by Tom G. Christensen in
12430         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
12431         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
12432         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
12433         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
12434         uses split double-inclusion guards.
12436 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12438         regex: test for buffer overrun
12439         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
12440         for the just-fixed regex bug.
12442 2013-01-29  Andreas Schwab  <schwab@suse.de>
12444         regex: fix buffer overrun in regexp matcher [BZ #15078]
12445         * lib/regexec.c (extend_buffers): Add parameter min_len.
12446         (check_matching): Pass minimum needed length.
12447         (clean_state_log_if_needed): Likewise.
12448         (get_subexp): Likewise.
12450 2013-01-28  Pádraig Brady  <P@draigBrady.com>
12452         mountlist: don't consider "devtmpfs" as dummy
12453         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
12454         as there is storage associcated with it.
12456 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
12458         futimens-tests, utimens-tests: Depend on gettext.
12459         This works around a problem introduced in my 2013-01-12 patch,
12460         which added @LIBINTL@ to these modules.
12461         * modules/futimens-tests (Depends-on):
12462         * modules/utimens-tests (Depends-on): Add gettext.
12464 2013-01-26  Eric Blake  <eblake@redhat.com>
12466         test-getpeername: fix typo
12467         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
12469 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
12471         bootstrap: remove the need for a sorted .gitignore file
12472         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
12473         rename to insert_if_absent(), so that we don't need or generate
12474         a sorted .gitignore file.  We do require a .gitignore with no
12475         existing duplicate entries and enforce that.
12476         (sort_patterns): Remove this function as we now use the simpler
12477         technigue of inserting blacklist entries at the top of the file,
12478         assuming gnulib won't be inserting !whitelist entries.
12480 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12482         readlinkat: don't depend on gl_FUNC_OPENAT
12483         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
12484         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
12485         renameat.m4, symlinkat.m4; but one thing at a time.
12487         statat: new module, split out from fstatat
12488         GNU Emacs needs the POSIX-specified fstatat, but not the
12489         gnulib-specified statat and lstat.  Split the latter two into a
12490         new module 'statat'.
12491         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
12492         * lib/openat.h, lib/statat.c (STATAT_INLINE):
12493         Rename from FSTATAT_INLINE. All uses changed.
12494         * modules/fstatat (Files): Remove lib/statat.c.
12495         (gl_MODULE_INDICATOR([fstatat])): Remove.
12496         (lib_SOURCES): Remove.
12497         (Maintainer): Add self.
12498         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
12499         * tests/test-fstatat.c (BASE): Don't define if already defined.
12500         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
12502 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
12504         tests: don't assume fd 99 is closed
12505         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
12506         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
12507         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
12508         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
12509         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
12510         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
12511         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
12512         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
12513         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
12514         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
12515         * tests/test-fwrite.c, tests/test-getpeername.c:
12516         * tests/test-getsockname.c, tests/test-getsockopt.c:
12517         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
12518         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
12519         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
12520         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
12521         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
12522         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
12523         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
12524         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
12525         * tests/test-unlinkat.c, tests/test-unlockpt.c:
12526         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
12527         Close file descriptor 99, instead of assuming it's already closed.
12529 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12531         stpncpy: port to OS X 10.8
12532         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
12533         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
12535 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
12537         unistd: port to recent mingw
12538         * lib/unistd.in.h: Remove special invocation convention for mingw,
12539         which breaks for the latest mingw version.  See John W. Eaton in
12540         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
12542         largefile: port better to Mac OS X 10.5
12543         This patch is backported from Autoconf git.
12544         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
12545         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
12546         with ino_t size being different for configuration time versus
12547         build/run time.  Problem reported by PHO in
12548         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
12550 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12552         doc: clarify -Werror
12553         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
12554         clarify that it's intended for developers, not for ordinary builds,
12555         and mention --enable-gcc-warnings as one possible use.
12557 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
12559         stdint: fix build with Android's Bionic fox x86
12560         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
12561         was already included as _SSIZE_T_DEFINED_ might also be defined
12562         in include/machine/_types.h, which is included by stdio.h
12564 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
12566         net_if-tests: port to Solaris 7 + GCC 3.4.6
12567         Problem reported by Tom G. Christensen in
12568         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
12569         * tests/test-net_if.c (ni): Move to next the code that uses it,
12570         so that it's declared only if needed.
12572 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12574         net_if-tests: port to older Solaris
12575         Problem reported by Tom G. Christensen in
12576         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
12577         * modules/net_if-tests (NET_IF_LIB): New substitution.
12578         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
12579         (HAVE_IF_NAMEINDEX): New C macro.
12580         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
12582         system-quote-tests: port to older Solaris
12583         Problem reported by Tom G. Christensen in
12584         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
12585         * tests/test-system-quote-child.c (fopen, fread): Undef.
12587         c-xvasprintf etc.: fix link errors on older Solaris
12588         These need to link with @LIBINTL@ to get libintl_gettext.
12589         Problem reported by Tom G. Christensen in
12590         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
12591         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
12592         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
12593         * modules/futimens-tests (test_futimens_LDADD):
12594         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
12596 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
12598         locale: port to Solaris 2.6 and 7 + GNU gettext
12599         * lib/locale.in.h: Just include_next <locale.h> when
12600         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
12601         when combining the localename module with GNU gettext 0.18.2.
12602         Problem reported by Tom G. Christensen in
12603         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
12605 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
12607         stdlib: port to Solaris 2.6
12608         Also, the code worked on Solaris 7 through 9 only by accident.
12609         Problem reported by Tom G. Christensen in
12610         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
12611         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
12612         simply include the system stdlib.h.
12613         * lib/getopt.in.h (__need_system_stdlib_h):
12614         * lib/pthread.in.h (__need_system_stdlib_h):
12615         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
12616         Define when including <stdlib.h>, to avoid problems at least for
12617         the pthread case on Solaris 2.6 and 7.  These .h files can get by
12618         with the system stdlib.h.
12620 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
12622         doc: update main copyright year
12623         * doc/gnulib.texi: Update copyright date.
12625         doc: improve ISO 8601 discussion
12626         * doc/parse-datetime.texi (Combined date and time of day items):
12627         Specify more carefully what formats are supported and what is
12628         done with excess precision.
12630 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12632         doc: avoid small caps
12633         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
12634         they're more trouble than they're worth.  Suggested by Karl Berry
12635         in <http://bugs.gnu.org/13360>.
12637         regex: conform to strict C
12638         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
12639         From Aharon Robbins.
12641         gnulib-tool: fix incompatibility with autopoint 0.18.2
12642         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
12643         Problem reported by Tom G. Christensen in
12644         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
12646 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12648         fprintftime: bring back and reword fwrite comment
12649         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
12651         stdio: remove now-unnecessary stdio.c
12652         Since stdio.in.h no longer uses inline functions, we no longer
12653         need to compile the extern versions.
12654         * lib/stdio.c: Remove.
12655         * modules/stdio (Files): Remove lib/stdio.c.
12656         (lib_SOURCES): Remove.
12658         unicodeio: depend on stdio, not ignore-value
12659         * lib/unicodeio.c: Do not include ignore-value.h.
12660         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
12661         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
12663         fprintftime: depend on stdio, not ignore-value
12664         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
12665         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
12666         since the stdio module arranges to silence that warning now.
12667         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
12669 2012-10-04  Simon Josefsson  <simon@josefsson.org>
12671         stdint-tests: Fix expanded-before-required-warning.
12672         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
12674 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12676         fwrite: silence __wur only for older glibc versions
12677         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
12678         This will help us remove this workaround some time in the far future.
12680 2013-01-03  Eric Blake  <eblake@redhat.com>
12682         fwrite: silence __wur without using inline
12683         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
12684         just gcc, and in a way that avoids inline issues.
12685         * modules/stdio (Depends-on): Drop extern-inline.
12687 2013-01-03  Jim Meyering  <jim@meyering.net>
12689         update-copyright: avoid copyright notice date corruption
12690         Given a sequence of copyright year numbers in which the final
12691         one was a two-digit number that happened to be a substring of
12692         a preceding four-digit year number, we would mistakenly update
12693         the substring (from two- to four-digit) rather than the two-digit
12694         number at the end, which, combined with the addition of the current
12695         4-digit year number would yield two 5-digit year numbers, e.g.,
12696         here, it would convert the first "99" to "1999, 2013" rather than
12697         the final one:
12698           1991, 99
12699           11999, 20131, 1999
12700         * build-aux/update-copyright: Tighten a regexp.
12701         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
12702         Reported by Joseph Myers in
12703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
12705 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12707         regex: omit needless signed-pointer casts
12708         * lib/regcomp.c (build_charclass, build_charclass_op):
12709         Use char *, not unsigned char *, for class name and extra.
12710         The char values are always nonnegative so there's no need to
12711         insist on unsigned char * here, and using char * removes the need
12712         for casts.  Reported by Aharon Robbins in
12713         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12715         regex: support Gawk, which never uses alloca
12716         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
12717         Do not include in this case.  Gawk doesn't supply a substitute
12718         alloca.h and doesn't need one.
12720         regex: port __libc_lock_define usage to C89
12721         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
12722         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
12723         does not conform to C89, as it has an empty macro argument.
12724         Reported by Aharon Robbins in
12725         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12727 2013-01-01  Eric Blake  <eblake@redhat.com>
12729         maint: update all copyright year number ranges
12730         Run "make update-copyright".
12732         version-etc: bump copyright year reported in --version
12733         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
12735 2012-12-31  Eric Blake  <eblake@redhat.com>
12737         sigprocmask-tests: skip test if pid is unexpectedly large
12738         * tests/test-sigprocmask.c (main): Add range check.
12740         git-version-gen: avoid test -z portability glitch
12741         * build-aux/git-version-gen: Prefer portable test spelling, since
12742         git-version-gen is run on more than just developer machines.
12744 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
12746         git-version-gen: add --fallback option to use if git is not present
12747         * build-aux/git-version-gen: Add support for the new option --fallback,
12748         which comes into play when there is no $tarball_version_file and
12749         git is not working.
12750         (scriptversion): Update.
12752         maint.mk: handle missing git with more grace
12753         * top/maint.mk (no-submodule-changes, public-submodule-commit):
12754         Quietly proceed if git is not present.
12756 2012-12-31  Eric Blake  <eblake@redhat.com>
12758         dup2: work around cygwin bug
12759         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
12760         * lib/dup2.c (rpl_dup2): Work around it.
12761         * doc/posix-functions/dup2.texi (dup2): Document it.
12763 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
12765         regex: remove unnecessary dependency on localcharset.h
12766         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
12767         hasn't been needed for years.
12768         * modules/regex (Depends-on): Remove localcharset.
12770         regex: revert single-byte change
12771         * lib/regexec.c (check_node_accept_bytes): Revert previous change
12772         to this function.  This was alredy fixed in a different way, at
12773         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
12774         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
12775         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
12777         regex: simplify based on Gawk version
12778         * lib/regex_internal.c (re_dfa_add_node): Simplify.
12779         Reported by Aharon Robbins in
12780         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12782 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12784         regex: check that pattern char is single-byte
12785         Reported by Aharon Robbins in
12786         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12787         * lib/regexec.c (check_node_accept_bytes):
12788         Return 0 if the pattern string has a multibyte character here.
12790         regex: implement rational ranges
12791         Reported by Aharon Robbins in
12792         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12793         * lib/regcomp.c (build_range_exp) [!_LIBC]:
12794         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
12795         Implement rational ranges.
12797         regex: avoid redefining __wctype
12798         Reported by Aharon Robbins in
12799         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12800         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
12801         #undef before defining.
12803         regex: port to hosts where malloc (0) == NULL
12804         Reported by Aharon Robbins in
12805         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12806         * lib/regex_internal.c (re_node_set_alloc):
12807         Don't assume that malloc (0) yields nonnull.
12808         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
12809         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
12810         * modules/regex (Files): Add m4/eealloc.m4.
12812         regex: port to C89
12813         Reported by Aharon Robbins in
12814         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12815         * lib/regcomp.c (init_word_char): Declaration before statement.
12817         regex: merge glibc changes
12818         Also, copy the license wording from glibc.  This simplifies
12819         merging changes.  gnulib-tool will change the wording to GPL as
12820         appropriate, when importing it to other packages.  The only
12821         glibc change made since the last merge, which needs merging, is:
12822         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
12823         * lib/regex_internal.h (gettext): Remove use of INTUSE.
12825         * users.txt: Add Emacs.
12827         doc: omit mention of version when not needed
12828         * doc/gnulib-intro.texi (Portability and Application Code):
12829         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
12830         Don't mention particular dates or versions when not necessary, so
12831         that the documentation won't go out of date so quickly.
12833         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
12835 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
12837         bootstrap: pass --force to autoreconf.
12838         * build-aux/bootstrap (AUTORECONFFLAGS): New.
12839         Add "--force" so that Automake's ylwrap and other such tools
12840         be updated at each bootstrap invocation.
12841         Use it.
12843 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12845         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
12846         The earlier patch forgot to update one of the #if conditions, causing
12847         a problem on Debian testing i386 reported by Mats Erik Andersson
12848         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
12849         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
12850         (__argp_fmtstream_puts, argp_fmtstream_puts)
12851         (__argp_fmtstream_write, argp_fmtstream_write)
12852         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
12854         * doc/gnulib-readme.texi: Minor fixups.
12855         (Portability guidelines): Modernize URLs.  Remove some repetition.
12856         (Indent with spaces not TABs): Reword to avoid too-long lines.
12857         Remove some '@ifset standalone' stuff that isn't used.
12859         * doc/gnulib-readme.texi (Portability guidelines):
12860         ctype.h, not ctime.h.
12862         Correct name of POSIX.1-2001.
12863         * doc/posix-functions/fgetc.texi (fgetc):
12864         * doc/posix-functions/fgets.texi (fgets):
12865         * doc/posix-functions/fread.texi (fread):
12866         * doc/posix-functions/fscanf.texi (fscanf):
12867         * doc/posix-functions/getc.texi (getc):
12868         * doc/posix-functions/getchar.texi (getchar):
12869         * doc/posix-functions/scanf.texi (scanf):
12870         POSIX.1-2001, not POSIX-2001.
12872         doc: move README into manual
12873         * README: Move contents to new file doc/gnulib-readme.texi.
12874         Replace with a one-line summary.
12875         * doc/gnulib.texi (Brief Overview): New section,
12876         with old intro preface.  Include gnulib-readme.texi for contents.
12877         (Philosophy): Rename from "Introduction", since this
12878         section no longer introduces the rest.  Write a new preface.
12879         * doc/gnulib-readme.texi: New file, with the old contents of
12880         README texinfo-ized.  This way, the README info appears
12881         in the online and printed manual.
12883 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
12885         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
12886         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
12887         c_vasprintf() prototype.
12889 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
12891         c-vasprintf: Fix "empty declaration" warning reported by GCC.
12892         * lib/c-vasprintf.h: Remove stray semicolon.
12894 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12896         gettext: avoid obsolete macro AM_PROG_MKDIR_P
12897         It is obsolete and is planned to be removed from Automake 1.14; see
12898         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
12899         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
12900         (installdirs-data, installdirs-data-yes):
12901         Use $(MKDIR_P), not $(mkdir_p).
12902         * m4/intl.m4 (AM_INTL_SUBDIR):
12903         * m4/po.m4 (AM_PO_SUBDIRS):
12904         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
12906 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12908         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
12909         On this platform, we are not optimizing but we are using
12910         the substitute for extern inlines, so compile as if
12911         C99-style extern inline, or a substitute, is available.
12912         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
12913         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
12914         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
12915         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
12916         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
12917         Declare as ARGP_FS_EI, not as extern.
12918         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
12919         (__option_is_short, _option_is_end, __option_is_end)
12920         [!_LIBC && __USE_EXTERN_INLINES]:
12921         Declare as ARGP_EI, not as extern.
12923 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12925         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
12926         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
12927         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
12928         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
12929         ...), as the latter is fatal with older Autoconfs.
12930         Problem reported and fix suggested by Eric Blake in thread starting at
12931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
12933 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12935         AC_PROG_MKDIR_P: don't workaround if not buggy
12936         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
12937         Define only for Autoconf versions before 2.62.
12938         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
12939         undocumented m4_PACKAGE_VERSION, for consistency with the
12940         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
12941         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
12942         was introduced in 2.62.
12944 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
12946         New 'c-*printf' modules for formatted output in C locale.
12948         New module 'c-vasnprintf'.
12949         * modules/c-vasnprintf: New file.
12950         * lib/c-vasnprintf.c: New file.
12951         * lib/c-vasnprintf.h: New file.
12953         New module 'c-snprintf'.
12954         * modules/c-snprintf: New file.
12955         * modules/c-snprintf-tests: New file.
12956         * lib/c-snprintf.c: New file.
12957         * lib/c-snprintf.h: New file.
12958         * tests/test-c-snprintf.c: New file.
12959         * tests/test-c-snprintf.sh: New file.
12961         New module 'c-vsnprintf'.
12962         * modules/c-vsnprintf: New file.
12963         * modules/c-vsnprintf-tests: New file.
12964         * lib/c-vsnprintf.c: New file.
12965         * lib/c-vsnprintf.h: New file.
12966         * tests/test-c-vsnprintf.c: New file.
12967         * tests/test-c-vsnprintf.sh: New file.
12969         New module 'c-vasprintf'.
12970         * modules/c-vasprintf: New file.
12971         * modules/c-vasprintf-tests: New file.
12972         * lib/c-asprintf.c: New file.
12973         * lib/c-vasprintf.c: New file.
12974         * lib/c-vasprintf.h: New file.
12975         * tests/test-c-vasprintf.c  +: New file.
12976         * tests/test-c-vasprintf.sh: New file.
12978         New module 'c-xvasprintf'.
12979         * modules/c-xvasprintf: New file.
12980         * modules/c-xvasprintf-tests: New file.
12981         * lib/c-xasprintf.c: New file.
12982         * lib/c-xvasprintf.c: New file.
12983         * lib/c-xvasprintf.h: New file.
12984         * tests/test-c-xvasprintf.c: New file.
12985         * tests/test-c-xvasprintf.sh: New file.
12987 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12989         argp: better 'inline'
12990         Use extern-inline module to declare extern inline functions.
12991         This avoids some bogus warning diagnostics.  Problem discovered
12992         when modifying GNU tar to use the manywarnings module.
12993         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
12994         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
12995         Define based on extern-inline.
12996         * modules/argp (Depends-on): Add extern-inline.
12998 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13000         filemode, sys_stat: Handle MPX files a la AIX.
13001         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
13002         * lib/sys_stat.in.h (S_ISMPX): New macro.
13003         * tests/test-sys_stat.c: Add tests for MPX files.
13005 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13007         x-to-1: honor $PERL
13008         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
13009         a chance to use his preferred version of Perl.  This is typically
13010         required by Darwin users whose default /usr/bin/perl does not have all
13011         the libraries required by help2man, and who need to use their MacPorts
13012         installation of Perl instead.
13014 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
13016         gnu-web-doc-update: add all the new files, even in new directories
13017         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
13018         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
13019         Use it.
13020         (main): Don't use cvsutils to get the list of unknown files,
13021         just add all the existing files and directories.
13023 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
13025         gnu-web-doc-update: improve --help
13026         * build-aux/gnu-web-doc-update: Move comments into --help.
13028 2012-12-07  Eric Wong  <normalperson@yhbt.net>
13030         mountlist: recognize more "dummy" file systems
13031         * lib/mountlist.c (ME_DUMMY_0):
13032         Add these dummy FS names to the list:
13033         - "debugfs" virtual filesystem for kernel debugging
13034         - "devpts" PTY slave filesystem
13035         - "devtmpfs" device filesystem on top of tmpfs/ramfs
13036         - "fusectl" control filesystem for FUSE
13037         - "mqueue" enumerates POSIX message queues
13038         - "rpc_pipefs" kernel <-> userspace bridge for NFS
13039         - "sysfs" is for exporting kernel objects
13040         - "devfs" device filesystem for Linux 2.4 and FreeBSD
13042 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
13044         extern-inline: avoid incompatibility with Darwin Libc
13045         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
13046         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
13047         Problem reported by Akim Demaille in
13048         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
13050 2012-12-11  Simon Josefsson  <simon@josefsson.org>
13052         gnupload: Work with GnuPG using gpg-agent (for smartcards).
13053         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
13054         let it handle password prompting.
13056 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
13058         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
13059         * lib/canonicalize.c (canonicalize_filename_mode):
13060         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
13061         fetching the current directory.  Don't overrun the beginning of
13062         rpath if there's no slashes after the MS-Windows drive letter.
13064 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
13066         maint.mk: avoid extra forks
13067         * top/maint.mk (_cfg_mk): The GNU make manual documents that
13068         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
13069         So use that instead of "$(shell test -f FILE && echo FILE)".
13071 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13073         vasnprintf: fix ASCII_ONLY typo
13074         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13075         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13076         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13077         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
13078         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
13080 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13082         list, oset, xlist, xoset: fix extern inline issue with C99
13083         This was introduced by my recent changes for 'inline'.
13084         Problem reported for gettext by Daiki Ueno in
13085         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
13086         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
13087         (gl_list_nx_create, gl_list_size, gl_list_node_value)
13088         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
13089         (gl_list_previous_node, gl_list_get_at)
13090         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
13091         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
13092         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
13093         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
13094         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
13095         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
13096         (gl_list_iterator_free, gl_sortedlist_search)
13097         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
13098         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
13099         (gl_sortedlist_remove):
13100         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
13101         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
13102         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
13103         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
13104         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
13105         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
13106         (gl_list_add_at, gl_sortedlist_add):
13107         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
13108         Wrap these extern decls inside "#if 0", because they are implemented
13109         as inline functions, and extern inline is not what's wanted here.
13110         It would simplify these .h files to remove the extern decls entirely,
13111         although a downside would be less-clear separation between
13112         specification and implementation.
13114 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13116         sys_stat: no 'static inline'
13117         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
13118         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
13120         extern-inline: no 'static inline'
13121         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
13122         Do not require AC_C_INLINE.
13123         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
13124         'static inline', for older compilers.
13126         snippet/warn-on-use: no 'static inline'
13127         * build-aux/snippet/warn-on-use.h:
13128         Remove unnecessary 'inline' in comment.
13130         rbtree-list, rbtreehash-list: no 'static inline'
13131         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
13132         * lib/gl_anytree_list2.h (node_at):
13133         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
13134         (gl_oset_first, add_nodes_to_buckets):
13135         Now static, not static inline.
13137         regex: no 'static inline'
13138         * lib/regex_internal.c (calc_state_hash):
13139         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
13140         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
13141         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
13142         Now static, not static inline.
13143         (inline) [__GNUC__ < 3 && _LIBC]:
13144         Remove macro; no longer needed.
13146         xvasprintf: no 'static inline'
13147         * lib/xvasprintf.c (xstrcat):
13148         Now static, not static inline.
13149         * m4/xvasprintf.m4 (gl_XVASPRINTF):
13150         Do not require AC_C_INLINE.
13152         parse-datetime, parse-duration: no 'static inline'
13153         * lib/parse-datetime.y (to_uchar):
13154         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
13155         (scale_n_add):
13156         Now static, not static inline.
13157         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
13158         * modules/parse-duration (configure.ac):
13159         Do not require AC_C_INLINE.
13161         getaddrinfo: no 'static inline'
13162         * lib/getaddrinfo.c (validate_family):
13163         Now static, not static inline.
13164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
13165         Do not require AC_C_INLINE.
13167         ftruncate, fts, lstat, openat, raise: no 'static inline'
13168         * lib/ftruncate.c (chsize_nothrow):
13169         * lib/fts.c (opendirat, diropen):
13170         * lib/lstat.c (orig_lstat):
13171         * lib/openat.c (orig_openat):
13172         * lib/raise.c (raise_nothrow):
13173         Now static, not static inline.
13174         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
13175         * m4/fts.m4 (gl_FUNC_FTS_CORE):
13176         * m4/lstat.m4 (gl_PREREQ_LSTAT):
13177         * m4/openat.m4 (gl_PREREQ_OPENAT):
13178         * m4/raise.m4 (gl_PREREQ_RAISE):
13179         Do not require AC_C_INLINE.
13181         fflush, stat: no 'static inline'
13182         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13183         (clear_ungetc_buffer, disable_seek_optimization)
13184         (restore_seek_optimization, update_fpos_cache):
13185         * lib/stat.c (orig_stat):
13186         Now static, not static inline.
13187         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
13188         (update_fpos_cache):
13189         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
13190         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
13191         * m4/stat.m4 (gl_PREREQ_STAT):
13192         Do not require AC_C_INLINE.
13194         error, filevercmp: no 'static inline'
13195         * lib/error.c (is_open, flush_stdout):
13196         * lib/filevercmp.c (order):
13197         Now static, not static inline.
13198         * m4/error.m4 (gl_PREREQ_ERROR):
13199         * modules/filevercmp (configure.ac):
13200         Do not require AC_C_INLINE.
13202         dup, execute, fatal-signal, etc.: no 'static inline'
13203         * lib/dup.c (dup_nothrow):
13204         * lib/execute.c (nonintr_close, nonintr_open):
13205         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
13206         * lib/fopen.c (orig_fopen):
13207         * lib/freadseek.c (freadptrinc):
13208         * lib/freopen.c (orig_freopen):
13209         * lib/fstat.c (orig_fstat, fstat_nothrow):
13210         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
13211         (get_rusage_as_via_iterator):
13212         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
13213         * lib/getdtablesize.c (_setmaxstdio_nothrow):
13214         * lib/isatty.c (_isatty_nothrow):
13215         * lib/open.c (orig_open):
13216         * lib/read.c (read_nothrow):
13217         * lib/sigprocmask.c (signal_nothrow):
13218         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
13219         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
13220         * lib/wait-process.c (unregister_slave_subprocess):
13221         * lib/write.c (write_nothrow):
13222         Now static, not static inline.
13223         * lib/spawn-pipe.c (nonintr_open): Define only if
13224         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
13225         * m4/dup.m4 (gl_PREREQ_DUP):
13226         * m4/execute.m4 (gl_EXECUTE):
13227         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
13228         * m4/fopen.m4 (gl_PREREQ_FOPEN):
13229         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
13230         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
13231         * m4/fstat.m4 (gl_PREREQ_FSTAT):
13232         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
13233         * m4/isatty.m4 (gl_PREREQ_ISATTY):
13234         * m4/open.m4 (gl_PREREQ_OPEN):
13235         * m4/read.m4 (gl_PREREQ_READ):
13236         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
13237         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
13238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
13239         * m4/wait-process.m4 (gl_WAIT_PROCESS):
13240         * m4/write.m4 (gl_PREREQ_WRITE):
13241         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
13242         Do not require AC_C_INLINE.
13244         c-strtod, memcoll, readutmp: no 'static inline'
13245         * lib/c-strtod.c (c_locale):
13246         * lib/memcoll.c (strcoll_loop):
13247         * lib/readutmp.c (desirable_utmp_entry):
13248         Now static, not static inline.
13249         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
13250         * m4/memcoll.m4 (gl_MEMCOLL):
13251         * m4/readutmp.m4 (gl_READUTMP):
13252         Do not require AC_C_INLINE.
13254         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
13255         * lib/arctwo.c (to_uchar):
13256         * lib/md4.c (set_uint32):
13257         * lib/md5.c (set_uint32):
13258         * lib/sha1.c (set_uint32):
13259         * lib/sha256.c (set_uint32):
13260         * lib/sha512.c (set_uint64):
13261         Now static, not static inline.  This is a bit simpler, and doesn't
13262         affect performance with GCC and default optimization.
13263         * m4/arctwo.m4 (gl_ARCTWO):
13264         * m4/md4.m4 (gl_MD4):
13265         * m4/md5.m4 (gl_MD5):
13266         * m4/sha1.m4 (gl_SHA1):
13267         * m4/sha256.m4 (gl_SHA256):
13268         * m4/sha512.m4 (gl_SHA512):
13269         Do not require AC_C_INLINE.
13271         cond, lock, thread: better 'inline'
13272         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
13273         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
13274         New macros.  Use them instead of static inline, for header functions.
13275         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
13276         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
13277         * lib/glthread/lock.c (gl_waitqueue_init)
13278         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
13279         * lib/glthread/thread.c (get_current_thread_handle):
13280         Change 'static inline' to 'inline'.
13281         * lib/glthread/cond.h, lib/glthread/thread.h:
13282         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13283         * m4/cond.m4 (gl_COND):
13284         * m4/lock.m4 (gl_PREREQ_LOCK):
13285         * m4/thread.m4 (gl_THREAD):
13286         Do not require AC_C_INLINE.
13287         * modules/cond, modules/thread (Depends-on): Add extern-inline.
13289         chdir-long, cycle-check, savewd: better 'inline'
13290         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
13291         (find_non_slash):
13292         * lib/cycle-check.c (is_zero_or_power_of_two):
13293         * lib/savewd.c (savewd_delegating):
13294         Change 'static inline' to 'inline'.
13295         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
13296         Replace all remaining uses of 'static inline' with it.
13297         * lib/savewd.h:
13298         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13299         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
13300         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
13301         * m4/savewd.m4 (gl_SAVEWD):
13302         Do not require AC_C_INLINE.
13303         * modules/savewd (Depends-on): Add extern-inline.
13305         base32, base64: no need for 'inline'
13306         * lib/base32.c (to_uchar, get_8, decode_8):
13307         * lib/base64.c (to_uchar, get_4, decode_4):
13308         Change 'static inline' to 'inline'.
13309         * m4/base32.m4 (gl_PREREQ_BASE32):
13310         * m4/base64.m4 (gl_PREREQ_BASE64):
13311         Do not require AC_C_INLINE.
13313         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
13314         * lib/gl_array_oset.c (gl_array_nx_add_at):
13315         (gl_array_remove_at):
13316         * lib/gl_linkedhash_list.c (hash_resize_after_add)
13317         (add_to_bucket, remove_from_bucket):
13318         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
13319         Change 'static inline' to 'static', as it's simpler to omit
13320         'inline' unless there's a significant performance advantage.
13322         list, oset, xlist, xoset, xsublist: simplify via extern inline
13323         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
13324         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
13325         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
13326         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
13327         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
13328         New macro.  Replace all uses of 'static inline' with it.
13329         [HAVE_INLINE]: Implement functions as *_INLINE functions,
13330         instead of as macros FOO that are defined to static inline
13331         functions FOO_inline.
13332         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
13333         * lib/gl_xsublist.c:
13334         Reimplement from scratch, by defining the corresponding *_INLINE
13335         macro and including the corresponding .h file.  This is simpler.
13336         * modules/list, modules/oset, modules/xlist, modules/xoset:
13337         (Files): Remove m4/gl_list.m4.
13338         (configure.ac): Remove gl_LIST.
13339         * m4/gl_list.m4: Remove.
13340         * modules/list, modules/oset, modules/xlist, modules/xoset:
13341         * modules/xsublist:
13342         (Depends-on): Depend on extern-inline, not inline.
13344         xalloc: better 'inline'
13345         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
13346         New macro.  Replace all uses of 'static inline' with it.
13347         (static_inline): Remove.
13348         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
13349         Let 'extern inline' do the work automatically, instead of doing
13350         it by hand.
13351         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
13352         Remove.  All uses removed.
13353         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
13355         gethrxtime: better 'inline'
13356         * lib/xtime.c: New file.
13357         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
13358         * lib/xtime.h (XTIME_INCLUDE):
13359         New macros.  Replace all uses of 'static inline' with them.
13360         * lib/gethrxtime.c (gethrxtime): Define only if
13361         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
13362         this source file is now always compiled, because of the extern inline.
13363         * lib/gethrxtime.h, lib/xtime.h:
13364         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13365         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
13366         if gethrtime works, as they're not needed in that case.
13367         (gl_XTIME): Do not require AC_C_INLINE.
13368         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
13369         compiled now.  Move the check into gl_GETHRXTIME.
13370         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
13371         (Depends-on): Add extern-inline.
13372         (configure.ac): gethrxtime is always compiled now.
13373         (lib_SOURCES): Add gethrxtime.c.
13375         wctype-h: better 'inline'
13376         * lib/wctype-h.c: New file.
13377         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
13378         New macro.  Replace all uses of 'static inline' with it.
13379         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13380         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
13381         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
13382         (Depends-on): Add extern-inline.
13384         unistd: better 'inline'
13385         * lib/unistd.c: New file.
13386         * lib/unistd.in.h (_GL_UNISTD_INLINE):
13387         New macro.  Replace all uses of 'static inline' with it.
13388         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13389         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
13390         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
13391         (Depends-on): Add extern-inline.
13393         sys_socket: better 'inline'
13394         * lib/sys_socket.c: New file.
13395         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
13396         New macro.  Replace all uses of 'static inline' with it.
13397         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
13399         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
13400         (Depends-on): Add extern-inline.
13402         stdio: better 'inline'
13403         * lib/stdio.c: New file.
13404         * lib/stdio.in.h (_GL_STDIO_INLINE):
13405         New macro.  Replace all uses of 'static inline' with it.
13406         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13407         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
13408         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
13409         (Depends-on): Add extern-inline.
13411         sigaction: better 'inline'
13412         * lib/sig-handler.c: New file.
13413         * lib/sig-handler.h (SIG_HANDLER_INLINE):
13414         New macro.  Replace all uses of 'static inline' with it.
13415         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13416         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
13417         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
13418         (Depends-on): Add extern-inline.
13420         selinux-h: better 'inline'
13421         * lib/se-context.c, lib/se-selinux.c: New files.
13422         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
13423         * lib/se-context.in.h (SE_CONTEXT_INLINE):
13424         New macro.  Replace all uses of 'static inline' with it.
13425         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13426         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
13427         New macro.  Replace all uses of 'static inline' with it.
13428         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13429         * modules/selinux-h (Files, lib_SOURCES):
13430         Add lib/se-context.c, lib/se-selinux.c.
13431         (Depends-on): Add extern-inline.
13432         (configure.ac): Do not require AC_C_INLINE.
13434         pthread: better 'inline'
13435         * lib/pthread.c: New file.
13436         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
13437         New macro.  Replace all uses of 'static inline' with it.
13438         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13439         * m4/pthread.m4 (gl_PTHREAD_CHECK):
13440         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
13441         * modules/pthread (Files): Add lib/pthread.c.
13442         (Depends-on): Add extern-inline.
13444         math: better 'inline'
13445         * lib/math.c: New file.
13446         * lib/math.in.h (_GL_MATH_INLINE):
13447         New macro.  Replace all uses of 'static inline' with it.
13448         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13449         * m4/math_h.m4 (gl_MATH_H):
13450         Do not require AC_C_INLINE.
13451         * modules/math (Files, lib_SOURCES):
13452         Add lib/math.c.
13453         (Depends-on): Add extern-inline.
13455         count-one-bits: better 'inline'
13456         * lib/count-one-bits.c: New file.
13457         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
13458         New macro.  Replace all uses of 'static inline' with it.
13459         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13460         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
13461         Do not require AC_C_INLINE.
13462         * modules/count-one-bits (Files, lib_SOURCES):
13463         Add lib/count-one-bits.c.
13464         (Depends-on): Add extern-inline.
13466         count-leading-zeros: better 'inline'
13467         * lib/count-leading-zeros.c: New file.
13468         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
13469         New macro.  Replace all uses of 'static inline' with it.
13470         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13471         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
13472         Do not require AC_C_INLINE.
13473         * modules/count-leading-zeros (Files, lib_SOURCES):
13474         Add lib/count-leading-zeros.c.
13475         (Depends-on): Add extern-inline.
13477         bitrotate: better 'inline'
13478         * lib/bitrotate.c: New file.
13479         * lib/bitrotate.h (BITROTATE_INLINE):
13480         New macros.
13481         Replace all uses of 'static inline' with them.
13482         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13483         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
13484         (Depends-on): Add extern-inline.
13485         (configure.ac): Do not require AC_C_INLINE.
13487 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
13489         maint.mk: avoid gratuitous failure
13490         Reported by Stefano Lattarini in
13491         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
13492         * top/maint.mk (public-submodule-commit): Quote more safely.
13494 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
13496         canonicalize, canonicalize-lgpl: support MS-Windows file names
13497         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
13498         for test cases, which it'd be nice to add at some point.
13499         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
13500         * lib/canonicalize.c (canonicalize_filename_mode):
13501         * lib/canonicalize-lgpl.c (__realpath):
13502         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
13503         slash is at the beginning of the file name.  Use ISSLASH, instead
13504         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
13505         the first character with '/'.  Test for
13506         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
13507         with a drive letter.
13508         * lib/canonicalize.c (SLASHES): New macro.
13509         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
13511 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
13513         fts: introduce FTS_VERBATIM
13514         * lib/fts_.h (FTS_VERBATIM): New bit flag.
13515         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
13516         * lib/fts.c (fts_open): Honor it.
13518 2012-11-09  Pádraig Brady  <P@draigBrady.com>
13520         getlogin-tests: allow errno == ENXIO
13521         * tests/test-getlogin.c (main): Skip tests if getlogin fails
13522         with errno == ENXIO (No controlling tty).
13523         getlogin_r-tests: Likewise. Also allow errno == ENOENT
13524         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
13525         with errno == ENOENT.  This was reported to happen in various
13526         situations on GNU/Linux.
13528 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13530         getlogin-tests: allow errno == ENOENT
13531         * tests/test-getlogin.c (main): Skip tests if getlogin fails
13532         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
13533         when running a test in an Emacs shell buffer.
13535 2012-11-08  Jim Meyering  <jim@meyering.net>
13537         tests/nap.h: avoid warning about unused variable
13538         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
13540         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
13541         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
13542         white space before each of the special-cased file names, to avoid
13543         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
13544         in http://bugs.gnu.org/12830.
13546 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
13548         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
13549         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
13550         fails with errno == EBADF when fd is opened with O_PATH.
13551         Reported by Jim Meyering in
13552         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
13553         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
13554         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
13556 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13558         test-utimens: speed up by taking shorter naps
13559         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
13560         New functions.
13561         (nap): Use them, to do a better job of guessing the delay.
13562         On Fedora 17 with ext4 atop md atop hard disks, this made
13563         test-utimens run 10x faster, because the test napped for
13564         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
13565         <http://bugs.gnu.org/12820#11>.
13567 2012-11-07  Jim Meyering  <jim@meyering.net>
13569         mountlist.c: fix a compilation failure
13570         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
13571         I introduced while transforming commit v0.0-7683-g613bcb6
13573 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13575         errno: port to LynxOS 178 2.2.2
13576         Problem reported by Joel Brobecker in
13577         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
13578         * doc/posix-headers/errno.texi (errno.h): Document this.
13579         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
13580         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
13581         Supply a string for EILSEQ.
13582         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
13584 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13586         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
13587         Linux kernel 2.6.39 introduced O_PATH (see
13588         <http://lwn.net/Articles/433854/>) and this is a better fallback
13589         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
13590         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
13591         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
13592         * lib/fcntl.in.h (O_ACCMODE):
13593         * tests/test-fcntl-h.c (main):
13594         Do not reject O_ACCMODE merely because it has more than the
13595         minimal number of bits, as POSIX allows extensions here.
13597 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
13599         mountlist: do not classify a bind-mounted dir entry as "dummy"
13600         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
13601         the "none"-testing clause.
13602         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
13603         exception for bind-mounted directories.
13605 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
13607         quote: provide a means to escape strings with nul characters
13608         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
13609         (quote, quote_n): Rename formal arguments for consistency with
13610         quotearg.
13612 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13614         test-raise: don't assume 199 is an invalid signal
13615         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
13617         sh-quote-tests: port to Solaris 9
13618         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
13619         Problem reported by Dagobert Michelsen in
13620         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
13622 2012-10-28  Jim Meyering  <jim@meyering.net>
13624         maint.mk: rename a new configurable variable
13625         * top/maint.mk (_gl_translatable_string_re): Rename from
13626         translation-markers: _gl_ prefix to insulate from user Makefile code,
13627         and the _re suffix to inform that it's a regular expression.
13629 2012-10-26  Eric Blake  <eblake@redhat.com>
13631         maint.mk: let packages tweak sc_po_check pattern
13632         * top/maint.mk (sc_po_check): Add translation-markers, to allow
13633         finding files with other translation markers.
13635 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
13637         euidaccess: speed up 'configure' on GNU hosts
13638         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
13639         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
13640         it's needed only in this case.  Use AC_CHECK_DECLS, not
13641         AC_CHECK_DECLS_ONCE.
13642         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
13643         or AC_REQUIRE for AC_FUNC_GETGROUPS.
13645         * lib/regexec.c (re_search_internal): Fix grammar in comment.
13647 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13649         fchmodat, fchownat, fstatat: port to non-inlining compilers
13650         Problem reported for FreeBSD 9 by Jim Meyering in
13651         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
13652         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
13653         New files, which define FCHMODAT_INLINE etc.
13654         * lib/fchmodat.c (FCHMODAT_INLINE):
13655         * lib/fchownat.c (FCHOWNAT_INLINE):
13656         * lib/fstatat.c (FSTATAT_INLINE):
13657         Remove, as chmodat.c etc. now do this.
13658         * modules/fchmodat (Files): Add lib/chmodat.c.
13659         * modules/fchownat (Files): Add lib/chownat.c.
13660         * modules/fstatat (Files): Add lib/statat.c.
13662 2012-10-15  Jim Meyering  <jim@meyering.net>
13664         fchmodat.c, fchownat.c: compile-impeding typos
13665         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
13666         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
13667         Introduced in commit v0.0-7636-gd202279.
13669 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13671         fcntl-h: support GNU flags like O_IGNORE_CTTY
13672         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
13673         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
13674         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
13675         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
13676         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
13677         Define to 0 if not already defined.
13678         * tests/test-fcntl-h.c: Test these new flags.
13680 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13682         faccessat, etc.: support AT_FDCWD-only use
13683         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
13684         this function only if its first argument is AT_FDCWD.
13685         Emacs wants faccessat for AT_EACCESS but not for any first-arg
13686         values other than AT_FDCWD, so it doesn't want all the openat
13687         machinery with fchdir etc.
13688         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
13689         * modules/fstatat, modules/mkdirat, modules/openat (Files):
13690         * modules/unlinkat (Files):
13691         Remove lib/openat-priv.h, as at-internal supplies this file.
13692         Removing this file here allows us to support programs like Emacs
13693         that avoid at-internal.
13695         faccessat: speed up 'configure' on mainstream hosts
13696         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
13697         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
13698         since it's only on unusual platforms that we need to check for
13699         'access', and it's better not to slow 'configure' down on all
13700         platforms.
13702         faccessat: port to Solaris 10
13703         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
13704         Needed on Solaris 10, which doesn't have AT_EACCESS,
13705         so we need the Gnulib fcntl.h, which defines it.
13707 2012-10-14  Pádraig Brady  <P@draigBrady.com>
13708         canonicalize: fix C89 compilation
13709         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
13710         declarations so C89 is supported.  Also remove the comment
13711         referencing memorty allocation as the suggested feature could
13712         not be implemented as suggested.
13713         Reported by Michael Goffioul.
13715 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
13717         group-member: omit unnecessary dependencies
13718         This is for Emacs, which has its own allocator and where we
13719         don't want to use xalloc.
13720         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
13721         since we no longer use xmalloc.  Do not include stdbool.h, since
13722         the changes below happen to remove the only use of bool.
13723         (GROUPBUF_SIZE): New constant.
13724         (struct group_info): Remove n_groups member.  Add groupbuf member.
13725         This lets us get the groups without using malloc, usually.
13726         (free_group_info, get_group_info): Adjust to this.
13727         (get_group_info): Return the number of groups found, or -1 on error.
13728         Use plain malloc not xmalloc, and treat its failure as if there
13729         are no groups, as the user already loses in case of error.
13730         (group_member): Simplify, based on changes to get_group_info.
13731         * modules/group-member (Depends-on): Remove dependencies on
13732         xalloc and stdbool.  Add dependency on xalloc-oversized.
13734 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
13736         gethrxtime: port to C++
13737         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
13739 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13741         ptsname: fix macro-name typo
13742         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
13744 2012-10-03  Simon Josefsson  <simon@josefsson.org>
13746         inttostr: Relax license.
13747         * modules/inttostr (License): Change from LGPL to LGPLv2+.
13749 2012-10-03  Eric Blake  <eblake@redhat.com>
13751         ptsname_r: support ptys returned by FreeBSD posix_openpt
13752         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
13753         lives in /dev/pts/.
13755 2012-10-02  Eric Blake  <eblake@redhat.com>
13757         pselect: reject invalid file descriptors
13758         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
13759         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
13760         * modules/pselect (Depends-on): Add dup2.
13761         * doc/posix-functions/pselect.texi (pselect): Document this.
13763         select: reject invalid file descriptors
13764         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
13765         * lib/select.c (rpl_select) [!win32]: Work around it.
13766         * modules/select (Depends-on): Add dup2.
13767         * doc/posix-functions/select.texi (select): Document this.
13769         select: enhance test
13770         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
13771         New functions.
13772         (test_function): Enhance test.
13773         (do_select_bad_fd): Avoid any stale errno values.
13775         ptsname: reject invalid file descriptors
13776         http://www.austingroupbugs.net/view.php?id=503
13777         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
13778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
13779         * modules/stdlib (Makefile.am): Replace witness.
13780         * lib/stdlib.in.h (ptsname): Allow for replacement.
13781         * modules/ptsname (configure.ac): Trigger replacement.
13782         * doc/posix-functions/ptsname.texi (ptsname): Document this.
13784 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
13786         hash-pjw-bare: new module
13787         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
13788         * lib/hash-pjw-bare.h: Likewise.
13789         * modules/hash-pjw-bare: New file.
13790         * MODULES.html.sh (Misc): Add it.
13792 2012-10-02  Eric Blake  <eblake@redhat.com>
13794         manywarnings: cater to more gcc infelicities
13795         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
13796         -Wuninitialized without -O.
13798 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
13800         select, poll tests: Make setsockopt invocation effective.
13801         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
13802         the bind() call.
13803         * tests/test-select.h (open_server_socket): Likewise.
13805 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13807         sockets, sys_stat: restore AC_C_INLINE
13808         This undoes the 2012-09-22 patch.
13809         * m4/sockets.m4 (gl_SOCKETS):
13810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
13811         Restore AC_C_INLINE, since MSVC requires __inline or _inline
13812         and does not support plain 'inline'.  Reported by Bruno Haible in
13813         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
13815 2012-09-30  Bruno Haible  <bruno@clisp.org>
13817         localeconv tests: Avoid test failure on OpenIndiana.
13818         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
13819         skip the 'grouping' and 'mon_grouping' tests.
13820         Reported by Jim Meyering.
13822 2012-09-30  Bruno Haible  <bruno@clisp.org>
13824         havelib: Follow libtool developments.
13825         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
13826         Suggested by Simon Josefsson.
13828 2012-09-29  Jim Meyering  <meyering@redhat.com>
13830         fstatat.c: fix a compile-impeding typo
13831         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
13832         Introduced in commit v0.0-7636-gd202279.
13833         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
13835 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
13837         extern-inline: provide a -Wundef safe config.h
13838         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
13839         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
13840         to produce a -Wundef warning free config.h.
13842 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13844         hash-pjw: relax license to LGPLv2+
13845         * modules/hash-pjw (License): Relax, with consent of author.
13847 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
13849         maint.mk: fix strict vs. lazy variable issues with RELEASE
13850         * top/maint.mk (_equal): New function.
13851         (member_check): Strip the result to avoid spurious spaces.
13852         (url_dir_list): Do not use ifeq, which is strict, as it will
13853         require RELEASE_TYPE to be defined.
13854         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
13855         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
13856         (announcement_Cc_alpha,announcement_mail_headers_alpha)
13857         (announcement_Cc_beta,announcement_mail_headers_beta)
13858         (announcement_Cc_stable,announcement_mail_headers_stable): these.
13859         (release): Do not depend on $(release-type), as it forces its
13860         evaluation.  Bounce to it.
13862 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
13864         maint.mk: formatting changes
13865         * top/maint.mk: Indent bodies of if's.
13867 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
13869         maint.mk: factor the validation of RELEASE_TYPE
13870         With help from Jim Meyering.
13871         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
13872         * top/maint.mk (_empty, _sp): Move their definition earlier.
13873         (member-check, release-type): New.
13874         Use the latter instead of $(RELEASE_TYPE).
13875         Remove now useless local checks.
13877 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
13879         maint.mk: provide "make upload" to ease uploading
13880         See
13881         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
13882         Do not depend simply on the current $(VERSION), as there may have been
13883         new commits since the tarball generation.  Rather, rely on $(RELEASE),
13884         as "make release-commit" already does.
13886         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
13887         "make TYPE".
13889         * top/maint.mk (upload_command, upload, release): New.
13890         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
13891         (VERSION): first word of $(RELEASE) is always right.
13892         (emit_upload_commands): Adjust.
13893         * top/README-release: Update.
13895 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
13897         maint.mk: silent rules
13898         With help from Stefano Lattarini.
13899         * top/maint.mk (writable-files): Use $(AM_V_GEN).
13900         (announcement): Use $(AM_V_at).
13902 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13904         localename: port gl_locale_name_thread_unsafe to FreeBSD
13905         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
13906         and use the simpler FreeBSD implementation on Mac OS X as well.
13907         Original idea suggested by Ed Maste in
13908         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
13910 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13912         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
13913         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
13914         * lib/mbuiter.c, lib/xsize.c: New files.
13915         * lib/binary-io.h (BINARY_IO_INLINE):
13916         * lib/eealloc.h (EEALLOC_INLINE):
13917         * lib/mbfile.h (MBFILE_INLINE):
13918         * lib/mbiter.h (MBITER_INLINE):
13919         * lib/mbuiter.h (MBUITER_INLINE):
13920         * lib/xsize.h (XSIZE_INLINE):
13921         New macros.
13922         Replace all uses of 'static inline' with them.
13923         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13924         * m4/eealloc.m4 (gl_EEALLOC):
13925         * m4/mbfile.m4 (gl_MBFILE):
13926         * m4/mbiter.m4 (gl_MBITER):
13927         * m4/xsize.m4 (gl_XSIZE):
13928         Do not require AC_C_INLINE.
13929         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
13930         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
13931         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
13932         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
13933         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
13934         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
13935         * modules/binary-io, modules/eealloc, modules/mbfile:
13936         * modules/mbiter, modules/mbuiter:
13937         (Depends-on): Add extern-inline.
13939         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
13940         * lib/pipe-filter-aux.c: New file.
13941         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
13942         Replace all uses of 'static inline' with it.
13943         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13944         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
13945         (filter_retcode): No real need for inline here.
13946         * modules/pipe-filter-gi, modules/pipe-filter-ii:
13947         (Files): Add lib/pipe-filter-aux.c.
13948         (Depends-on): Add extern-inline.
13949         (configure.ac): Do not require AC_C_INLINE.
13950         (lib_SOURCES): Add pipe-filter-aux.c.
13952         fdutimensat: omit unnecessary AC_C_INLINE
13953         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
13955         fchmodat, fchownat, fstatat: use extern-inline
13956         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
13957         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
13958         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
13959         New macros.
13960         * lib/openat.h:
13961         Replace all uses of 'static inline' with them.
13962         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13963         * modules/fchmodat, modules/fchownat, modules/fstatat:
13964         * modules/openat-h:
13965         (Depends-on):
13966         Add extern-inline.
13967         (configure.ac): Remove AC_C_INLINE.
13969         acl, mbchar, priv-set: use extern-inline
13970         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
13971         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
13972         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
13973         New macros.
13974         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
13975         Replace all uses of 'static inline' with it.
13976         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13977         * m4/acl.m4 (gl_FUNC_ACL):
13978         * m4/mbchar.m4 (gl_MBCHAR):
13979         * m4/priv-set.m4 (gl_PRIV_SET):
13980         Remove AC_C_INLINE, since 'inline' is no longer used directly.
13981         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
13982         Add extern-inline.
13984         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
13985         * m4/sockets.m4 (gl_SOCKETS):
13986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
13987         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
13988         environments where it's already guaranteed to work, so we needn't
13989         check for it at 'configure'-time.
13991         tls-tests: omit unnecessary 'inline'
13992         * tests/test-tls.c (perhaps_yield): No longer inline.
13993         Simplicity and portability trump efficiency in test cases.
13995         utimens-tests: avoid unnecessary 'inline'
13996         * modules/fdutimensat-tests (configure.ac):
13997         * modules/futimens-tests (configure.ac):
13998         * modules/utimens-tests (configure.ac):
13999         * modules/utimensat-tests (configure.ac):
14000         Remove AC_C_INLINE.
14001         * tests/test-utimens-common.h (ctime_compare):
14002         No longer inline.  Simplicity and portability trump efficiency here.
14004         misc: don't limit commentary to inline functions
14005         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
14006         * lib/xalloc-oversized.h, lib/xsize.h:
14007         Contrast macros to functions in general, not just to inline functions,
14008         when the commentary does not apply only to inline functions.
14010 2012-09-20  Jim Meyering  <meyering@redhat.com>
14012         non-recursive-gnulib-prefix-hack: new module
14013         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
14014         the file that originated in Bison.
14015         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
14016         largely copied from a snippet that resided in bison's configure.ac.
14017         * modules/non-recursive-gnulib-prefix-hack: New file.
14018         * MODULES.html.sh (Support for maintaining and releasing projects):
14019         Add it.
14021 2012-09-18  Jim Meyering  <meyering@redhat.com>
14023         maint.mk: generalize _gl_tight_scope for non-recursive make
14024         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
14025         that *.h would describe additional .h files in the directory
14026         specified by $(_gl_TS_dir).  I.e., add this...
14027         (_gl_TS_other_headers): New variable.
14029         maint.mk: exempt trailing blanks found in "binary" files
14030         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
14031         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
14032         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14034 2012-09-17  Jim Meyering  <meyering@redhat.com>
14036         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
14037         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
14038         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
14039         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14041 2012-09-17  Jim Meyering  <meyering@redhat.com>
14043         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
14044         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
14045         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
14046         It is not in the same category as "exit (0)" or "exit (1)", and
14047         besides, I know of no symbolic name for that 77.  Reported by
14048         Richard W.M. Jones in
14049         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14051 2012-09-17  Jim Meyering  <meyering@redhat.com>
14053         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
14054         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
14055         all uses of #define, not just those that start in column 1.
14056         Richard W.M. Jones reported a false positive in
14057         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14059 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14061         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
14062         * lib/localcharset.c (locale_charset) [DARWIN7]:
14063         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
14064         as these two values are incompatible.  Problem reported by Max Horn.
14065         For more discussion, please see
14066         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
14068         doc: document sticky-EOF issue
14069         * doc/posix-functions/fgetc.texi (fgetc):
14070         * doc/posix-functions/fgets.texi (fgets):
14071         * doc/posix-functions/fread.texi (fread):
14072         * doc/posix-functions/fscanf.texi (fscanf):
14073         * doc/posix-functions/getc.texi (getc):
14074         * doc/posix-functions/getchar.texi (getchar):
14075         * doc/posix-functions/scanf.texi (scanf):
14076         Mention that glibc and default Solaris do not conform to
14077         C99 and POSIX-2001 or later, with respect to how getchar
14078         etc. behave when feof reports nonzero.
14080 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
14082         poll: fix poll(0, NULL, msec)
14083         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
14084         but nfd is 0.  In that case poll should behave like select.
14086 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
14087             Paolo Bonzini <bonzini@gnu.org>
14089         poll: fix for systems that can't recv() on a non-socket
14090         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
14091         is readable.  In this case POLLHUP will not be supported.
14092         * doc/posix-functions/poll.texi: Document this.
14094 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
14096         poll/select: document portability problems not fixed by Gnulib.
14097         * doc/posix-functions/poll.texi: poll does not work well on
14098         pipes under Windows.  It has the same limitations as select on
14099         BeOS.
14100         * doc/posix-functions/select.texi: select does not work well
14101         on pipes under Windows.
14103 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14105         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
14106         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
14107         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
14108         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
14110 2012-09-06  Eric Blake  <eblake@redhat.com>
14112         net_if: give more details about the bug being fixed
14113         * doc/posix-headers/net_if.texi: Add clarification.
14115 2012-09-05  Eric Blake  <eblake@redhat.com>
14117         net_if: new module
14118         * modules/net_if: New module, borrowing ideas from netinet_in.
14119         * m4/net_if_h.m4: New file.
14120         * lib/net_if.in.h: Likewise.
14121         * doc/posix-headers/net_if.texi (net/if.h): Document it.
14122         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14123         * tests/test-net_if.c: Make function checks conditional.
14124         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
14126 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14128         readutmp: fix non-portable UT_PID use
14129         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
14130         Use `UT_PID (u) > 0' as absolute condition.
14132 2012-09-04  Jim Meyering  <meyering@redhat.com>
14134         fts: reduce two or more trailing spaces to just one, usually
14135         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
14136         or more slashes, trim all but the final one.  But if a name consists
14137         solely of two slashes, don't modify it.  If it consists solely of
14138         three or more slashes, strip all but one.
14140         This is part of the solution to a minor problem with rm:
14141         it would print a bogus ELOOP diagnostic when failing to remove
14142         the slash-decorated name of a symlink-to-directory:
14144             $ mkdir d && ln -s d s && env rm -r s/
14145             rm: cannot remove 's': Too many levels of symbolic links
14147         With the change below and a trivial don't-trim-trailing-slashes
14148         adjustment to remove.c, it does this:
14150             $ env rm -r s/
14151             rm: cannot remove 's/': Not a directory
14153         Improved by: Eric Blake
14155         fts: when there is no risk of overlap, use memcpy, not memmove
14156         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
14158 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14160         stdbool: be more compatible with mixed C/C++ compiles
14161         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
14162         Define to bool, true, false, respectively, as GCC's builtin
14163         stdbool.h does.  Problem reported by Michael Goffioul in
14164         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
14166 2012-08-28  Jim Meyering  <meyering@redhat.com>
14168         revert last change: it was not needed
14169         * tests/test-vc-list-files-git.sh: There's already a test for
14170         a working git, just below.
14172 2012-08-28  Jim Meyering  <meyering@redhat.com>
14174         tests: test-vc-list-files-git.sh: skip if git is not available
14175         * tests/test-vc-list-files-git.sh: Skip this test when git is
14176         not available.
14178 2012-08-26  Bruno Haible  <bruno@clisp.org>
14180         gnulib-tool: Remove no-op option --no-changelog.
14181         * gnulib-tool (func_usage): Don't mention --no-changelog.
14182         (do_changelog): Remove variable.
14183         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14185 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14187         doc: remove fdl-1.2.texi
14188         It is no longer used or maintained, and its use of @acronym
14189         is problematic.  See the thread containing
14190         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
14191         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
14192         * doc/old-licenses/fdl-1.2.texi: Remove.
14194         execinfo: port to FreeBSD
14195         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
14196         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
14197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
14198         * modules/execinfo (Link): Add $(LIB_EXECINFO).
14200 2012-08-23  Jim Meyering  <meyering@redhat.com>
14202         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
14203         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
14204         to placate gcc's -Wold-style-declaration.
14206 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14208         doc: do not use @acronym
14209         * doc/inet_ntoa.texi (inet_ntoa):
14210         * doc/parse-datetime.texi (Seconds since the Epoch)
14211         (Specifying time zone rules):
14212         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
14213         Don't use @acronym.  Problem reported by John Darlington in
14214         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
14216 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14218         stdnoreturn: port to newer GCCs
14219         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
14220         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
14221         Problem reported by Jim Meyering in
14222         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
14223         Also, rename the 'test' function to a void a clash with the
14224         already-supplied 'main' function; this fixes a bug that incorrectly
14225         rejected GCC 4.7.1's <stdnoreturn.h>.
14226         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
14227         Document GCC problem.
14229 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
14231         pipe-filter: fix comment typo
14232         * lib/pipe-filter.h: Mention correct function.
14234 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
14236         execinfo: new module
14237         This is for Emacs.  Currently, it provides a no-effect stub
14238         on all platforms where it does not already work.
14239         It already works on glibc-based systems, and on Solaris 11.
14240         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
14241         New files.
14242         * doc/glibc-headers/execinfo.texi (execinfo.h):
14243         * MODULES.html.sh (Misc): Document it.
14245 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14247         extern-inline: support old GCC 'inline'
14248         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
14249         if available.  This applies to GCC versions 2.7 through 4.2, or
14250         when newer GCC is using -fgnu89-inline.  The goal is to address
14251         some of the performance issues mentioned by Bruno Haible in
14252         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
14254 2012-08-20  Eric Blake  <eblake@redhat.com>
14256         maint.mk: avoid redundant file name in message
14257         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
14258         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
14259         (sc_makefile_path_separator_check): Remove bogus $(ME).
14261 2012-08-20  Mike Frysinger <vapier@gentoo.org>
14263         timer-time: fix link order when static linking on glibc
14264         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
14265         _after_ -lrt so that it's significant.
14267 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14269         timespec: omit unnecessary AC_C_INLINE
14270         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
14272         stat-time: omit unnecessary AC_C_INLINE
14273         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14274         Do not require AC_C_INLINE.
14276         ignore-value: omit unnecessary AC_C_INLINE
14277         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
14279         sys_select: avoid 'static inline'
14280         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
14282         mktime: avoid 'static inline'
14283         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
14284         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
14286 2012-08-19  Bruno Haible  <bruno@clisp.org>
14288         gnulib-tool: Improve coding style.
14289         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
14290         func_emit_lib_Makefile_am.
14291         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14293 2012-08-19  Bruno Haible  <bruno@clisp.org>
14295         gnulib-tool: Fix indentation.
14296         * gnulib-tool (func_import): Fix indentation.
14298 2012-08-19  Bruno Haible  <bruno@clisp.org>
14300         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
14301         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
14302         on the list of removed files.
14304 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14306         test-parse-datetime: avoid glibc leap-second glitch
14307         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
14308         with the 2012 rules.  Problem reported by Bruce Dubbs in
14309         <http://bugs.gnu.org/12206>.
14311 2012-08-14  Bruno Haible  <bruno@clisp.org>
14313         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
14314         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
14315         from argument.
14316         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14318 2012-08-14  Eric Blake  <eblake@redhat.com>
14320         ldexp: relax license
14321         * modules/ldexp (License): Trivial relax, since the module only
14322         provides a permissively licensed m4 file.
14324 2012-08-13  Bruno Haible  <bruno@clisp.org>
14326         gnulib-tool: Fix persistence of --witness-c-macro option.
14327         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
14328         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14330 2012-08-11  Eric Blake  <eblake@redhat.com>
14332         count-leading-zeros: use a lookup table on non-gcc compilers
14333         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
14334         alternate implementation, suggested by Jim Meyering.
14336 2012-08-10  Eric Blake  <eblake@redhat.com>
14338         count-leading-zeros: new module
14339         * modules/count-leading-zeros: New module.
14340         * m4/count-leading-zeros.m4: New file.
14341         * lib/count-leading-zeros.h: Likewise.
14342         * modules/count-leading-zeros-tests: New test.
14343         * tests/test-count-leading-zeros.c: New file.
14344         * MODULES.html.sh (Integer arithmetic functions): Document it.
14346 2012-08-07  Simon Josefsson  <simon@josefsson.org>
14347             Jim Meyering  <meyering@redhat.com>
14349         maintainer-makefile: Fix syntax error with dash.
14350         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
14351         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
14353 2012-08-05  Jim Meyering  <meyering@redhat.com>
14355         extern-inline: also ignore -Wmissing-declarations
14356         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
14357         required with gcc-4.8.0-to-be.
14359         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
14360         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
14361         for /error ?([^,]*)/.  This avoids false-positives for strings like
14362         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
14364 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
14366         gnumakefile: better interaction with Automake-NG
14367         * modules/gnumakefile [Makefile.am]: The makefiles generated by
14368         Automake-NG always contain a definition of VPATH, even in non-VPATH
14369         builds (its value being simply '.' in that case).  So, in the
14370         'clean-GNUmakefile' rule, to determine whether running under a
14371         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
14372         '$(VPATH)' expands to the empty string.
14374 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
14376         base64: Use extern C scope in header file, for C++.
14377         * lib/base64.h: Add C++ namespace protection.
14379 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
14381         stat-time, timespec, u64: support naive out-of-dir builds
14382         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
14383         Use '#include "foo.h"', not '#include <foo.h>', when including
14384         one's own interface.  This works better when configuring with
14385         out-of-directory builds, since packages need not add an
14386         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
14388 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14390         utimens: use extern-inline
14391         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
14392         * lib/utimens.h: Add copyright notice, since this is now large enough
14393         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14394         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
14395         * modules/utimens (Depends-on): Add extern-inline.
14397         u64: use extern-inline
14398         * lib/u64.c: New file.
14399         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14400         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
14401         * modules/u64 (Files): Add lib/u64.c.
14402         (Depends-on): Add extern-inline.
14403         (configure.ac): No need to require AC_C_INLINE, since extern-inline
14404         does that now.
14405         (lib_SOURCES): Add u64.c.
14407         timespec: use extern-inline
14408         * lib/timespec.c: New file.
14409         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14410         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
14411         * modules/timespec (Files): Add lib/timespec.c.
14412         (Depends-on): Add extern-inline.
14413         (lib_SOURCES): Add timespec.c.
14415         stat-time: use extern-inline
14416         * lib/stat-time.c: New file.
14417         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14418         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
14419         * modules/stat-time (Files): Add lib/stat-time.c.
14420         (Depends-on): Add extern-inline.
14421         (lib_SOURCES): Add stat-time.c.
14423         extern-inline: new module
14424         * modules/extern-inline, m4/extern-inline.m4: New files.
14425         This is for better support of 'extern inline' a la ISO C99,
14426         with a portable alternative on compilers that do not support
14427         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
14428         of the Emacs executable, when compiled with debugging disabled,
14429         which is a typical way that Emacs is built while developing.
14431 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
14433         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
14434         * build-aux/do-release-commit-and-tag: Move variable definitions
14435         together.
14436         ($branch): Instead of defaulting to "master", default to the current
14437         branch (as gnu-web-doc-update does).
14438         (help): Display the current values of the option arguments.
14439         * top/maint.mk (release-commit): New.
14440         * top/README-release: Simplify the corresponding step.
14442 2012-07-30  Eric Blake  <eblake@redhat.com>
14444         passfd: fix comment on recvfd
14445         * lib/passfd.c (recvfd): Fix comment.
14446         Reported by Jann Horn <jannhorn@googlemail.com>.
14448 2012-07-30  Jim Meyering  <meyering@redhat.com>
14450         maint.mk: avoid a sub-shell
14451         * top/maint.mk (release-prep): Remove unneeded sub-shell.
14453 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
14455         maint.mk: use silent-rules support from Automake
14456         * top/maint.mk (news-check, vc-diff-check, announcement)
14457         (no-submodule-changes, alpha beta stable, release-prep)
14458         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
14460 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
14462         maint.mk: provide a web-manual-update target
14463         * top/maint.mk: here.
14464         * top/README-release: Use it to simplify the web manual update step.
14466 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
14468         README-release: shorten the circuit to post a news
14469         * top/README-release: Point directly to the news submission form.
14471 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
14473         gnu-web-doc-update: fix --help
14474         * build-aux/gnu-web-doc-update: The information "top level" was written
14475         twice.
14477 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
14479         maint.mk: absolute VPATH issue
14480         * top/maint.mk (release-prep): Help Git find .git/.
14481         From Jim Meyering.
14483 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
14485         gitlog-to-changelog: fix previous change
14486         * build-aux/gitlog-to-changelog: Fix condition.
14487         Add missing ";".
14489 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
14491         gitlog-to-changelog: don't expect .git to be in $srcdir
14492         Reported by Bruno Haible.
14493         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
14494         * build-aux/gitlog-to-changelog (&git_dir_option): New.
14495         Use it.
14497 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
14499         maint.mk: absolute VPATH build fix
14500         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
14501         $(srcdir) is not a parent of $(builddir).
14503 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
14505         clean-temp: Fix memory leak.
14506         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
14507         'files' members of tmpdir.
14509 2012-07-27  Jim Meyering  <meyering@redhat.com>
14511         maint.mk: new rule: refresh-gnulib-patches
14512         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
14513         Use this rule to refresh them.
14514         * top/maint.mk (refresh-gnulib-patches): New rule.
14516 2012-07-24  Bruno Haible  <bruno@clisp.org>
14518         gnulib-tool: Fix handling of inctests variable.
14519         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
14520         Reported by Nick Bowler <nbowler@elliptictech.com>.
14522 2012-07-22  Bruno Haible  <bruno@clisp.org>
14524         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
14525         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
14526         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
14527         Remove exemption for getpass.h.
14528         Suggested by Eric Blake.
14530 2012-07-20  Eric Blake  <eblake@redhat.com>
14532         verify: document conflict with -Wnested-externs
14533         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
14535         maint.mk: forbid exit(-1)
14536         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
14538 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
14540         fsusage: port back to Solaris
14541         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
14542         error (fsd not declared) on Solaris 10.  Reported privately by
14543         Andrew Borodin.
14545 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
14547         gnu-web-doc-update: fix error messages
14548         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
14550         gnu-web-doc-update: check the requirements.
14551         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
14552         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
14553         * build-aux/bootstrap (find_tool): Comment change.
14555 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
14557         maint.mk: minor simplication.
14558         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
14559         for default values.
14561 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
14563         gitlog-to-changelog: VPATH build issues
14564         If builddir is not a subdirectory of srcdir, running git from it will
14565         fail.
14566         * build-aux/gitlog-to-changelog (--srcdir): New option.
14568 2012-07-15  Bruno Haible  <bruno@clisp.org>
14570         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
14571         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
14572         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
14573         Remove exemption for fpending.h.
14574         Suggested by Eric Blake.
14576 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14578         pthread_sigmask: fix bug on FreeBSD 9
14579         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
14580         Include string.h.
14581         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
14582         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
14583         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
14584         but pthread_sigmask (1729, NULL, NULL) returns zero.
14585         See <http://bugs.gnu.org/11884>.
14586         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
14587         by inspecting whether the main call changed the old mask.
14589 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
14591         README-release: make it more legible
14592         * top/README-release: Improve typography slightly.
14594 2012-07-15  Jim Meyering  <meyering@redhat.com>
14596         maint: require that each sc_... command start with "@"
14597         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
14598         "make sc_maint" helps us avoid this nit.
14600 2012-07-15  Jim Meyering  <meyering@redhat.com>
14602         maint.mk: add leading "@" to quiet new "make syntax-check" rule
14603         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
14605 2012-07-13  Eric Blake  <eblake@redhat.com>
14607         maint.mk: new syntax check for HAVE_DECL checks
14608         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
14609         * cfg.mk
14610         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
14611         Exempt some false positives.
14612         Based on a report by Karel Zak.
14614         argp: make HAVE_DECL usage consistent
14615         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
14616         macros, not whether they are defined.
14617         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
14618         convention with other declaration checks.
14619         Reported by Karel Zak, with suggestions from Paul Eggert.
14621         stat-time: relax license to LGPLv2+
14622         * modules/stat-time (License): Relax, with consent of all authors.
14624         strndup: fix m4 usage error
14625         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
14626         defined, to either 0 or 1.
14627         Reported by Karel Zak.
14629 2012-07-11  Jim Meyering  <meyering@redhat.com>
14631         maint: enable the sc_avoid_if_before_free syntax-check rule
14632         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
14633         (if_before_free_offenders_): Define.
14634         (if_before_free_basename_re_): Define.
14635         Exempt current files with useless if-before-free.
14637 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
14639         gettext: do not assume '#define ... defined ...' behavior
14640         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
14641         Do not use '#define FOO ... defined BAR ...', as the C standard says
14642         it's not portable to expect that this works after macro expansion.
14643         Problem reported for gzip by Steven M. Schweda in
14644         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
14646 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14648         getloadavg: clean out old Emacs and Autoconf cruft
14649         See Glenn Morris in <http://bugs.gnu.org/11905>.
14650         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
14651         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
14652         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
14653         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
14655 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
14657         bootstrap: let warn be like tests/init.sh's warn_
14658         Reported by Jim Meyering.
14659         * build-aux/bootstrap (warn): Remove, replaced by...
14660         (warnf_, warn_): these.
14661         Adjust callers.
14662         Shorten messages that no longer fit in 80 columns.
14664 2012-07-09  Bruno Haible  <bruno@clisp.org>
14666         getopt: Simplify after Emacs changed.
14667         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
14668         (gl_GETOPT_IFELSE): Remove macro.
14670 2012-07-09  Jim Meyering  <meyering@redhat.com>
14672         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
14673         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
14675         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
14676         Bugs in both of those conspired to make the
14677         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
14678         _sc_search_regexp's handling of non-empty $in_files would filter
14679         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
14680         choice of in_files value meant there would be no match in most
14681         projects, due to the presence of two or more Makefile.in files.
14682         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
14683         Fix a bug in how a non-empty $$in_files was processed:
14684         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
14685         in spite of the name, it's a regexp, not a list of file names.
14687 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14689         getloadavg, getopt: fix commentary re configure.in
14690         Autoconf is deprecating the name 'configure.in', so change it to
14691         to the new name 'configure.ac' in a couple of places.
14692         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
14693         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
14694         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
14695         Emacs has renamed it to configure.ac, and it no longer refers
14696         to these macros anyway.
14698         timespec: mark functions with const attributes
14699         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
14700         Mark with _GL_ATTRIBUTE_CONST.
14702 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
14704         canonicalize[-lgpl]: handle "guessing" values when cross-building
14705         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14706         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
14707         matches "*yes" instead of just "yes".  Regression introduced in commit
14708         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
14710 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
14711             Bruno Haible  <bruno@clisp.org>
14713         canonicalize: make the right guess when cross-compiling to GNU
14714         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
14715         determine whether cross-compiling to glibc systems, so as to
14716         include GNU/Hurd.
14718 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14720         timespec-sub: avoid duplicate include
14721         * lib/timespec-sub.c: Do not include <config.h> twice.
14722         Reported by Juanma Barranquero.
14724 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
14726         bootstrap: use a more consistent error reporting scheme
14727         * build-aux/bootstrap (warn, die): New.
14728         Use them.
14730 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14732         sys_time: allow too-wide tv_sec
14733         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
14734         timeval even if tv_sec is wider than time_t.  This allows
14735         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
14736         as without this patch gnulib replaces struct timeval
14737         and OpenBSD futimes therefore has a type mismatch.
14738         * doc/posix-headers/sys_time.texi: Mention this.
14740         pthread: check for both pthread_create and pthread_join
14741         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
14742         alter the check so that it tests for both pthread_create and
14743         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
14744         Suggested by Bruno Haible and Richard Yao in
14745         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
14747         parse-datetime: doc tuneup
14748         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
14749         spacing issues.
14751 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
14753         do-release-commit-and-tag: fix the previous commit
14754         * build-aux/do-release-commit-and-tag: Actually the test was right,
14755         but the comment and the error message were misleading.
14756         Fix comment, and improve error message.
14757         Perform check first, so that NEWS is not modified uselessly.
14759         do-release-commit-and-tag: fix typo
14760         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
14761         _not_ start with a stub.
14763 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14765         pthread: check for pthread_create, not pthread_join
14766         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
14767         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
14768         pthread_join in libc.  I hope this removes the need for all the
14769         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
14770         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
14772 2012-07-04  Jim Meyering  <meyering@redhat.com>
14774         parse-datetime: fix failure to diagnose invalid input
14775         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
14776         rather than diagnosing the invalid input.  Now it reports this:
14777         date: invalid date '\260'
14778         * lib/parse-datetime.y (to_uchar): Define.
14779         (yylex): Don't sign-extend "other" bytes.
14780         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
14781         Thanks to Bruno Haible for the patch to this file.
14782         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
14783         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
14785 2012-07-03  Jim Meyering  <meyering@redhat.com>
14787         bootstrap: do not require now-removed build-aux/missing
14788         Now that build-aux/missing is, er, missing, bootstrap would
14789         silently fail.
14790         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
14791         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
14792         no longer part of gnulib.
14793         Diagnose the failure.
14795 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14797         alloca: add support for HP NonStop TNS/E native
14798         * lib/alloca.in.h (alloca): Support the new host.
14799         From a suggestion by Joachim Schmitz in
14800         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
14802 2012-07-02  Pádraig Brady  <P@draigBrady.com>
14804         fsusage: remove code not needed on non GNU/Linux systems.
14806         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
14807         Don't include headers no longer needed in this case.
14808         * lib/fsusage.c [STAT_STATVFS &&
14809         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
14810         STAT_STATFS2_FRSIZE to exclude code not used in this case.
14812 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14814         fsusage: include files needed for glibc 2.6 fallback
14815         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
14816         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
14817         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
14818         Problem reported by Ludovic Courtès in
14819         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
14821         fsusage: avoid needless check on GNU/Linux
14822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
14823         on GNU/Linux systems, since it can't possibly work.
14825 2012-07-01  Bruno Haible  <bruno@clisp.org>
14827         log: Fix an autoconf >= 2.64 warning.
14828         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
14829         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
14831 2012-06-28  Bruno Haible  <bruno@clisp.org>
14833         log10f: Fix possible configuration problem.
14834         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
14835         $LOGF_LIBM.
14836         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
14838 2012-06-28  Bruno Haible  <bruno@clisp.org>
14840         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
14841         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
14842         not gl_cv_func_unlink_works.
14843         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
14845 2012-06-27  Eric Blake  <eblake@redhat.com>
14847         config: drop scripts that automake says are not independent
14848         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
14849         * build-aux/elisp-comp: Delete.
14850         * build-aux/missing: Likewise.
14851         * build-aux/ylwrap: Likewise.
14852         * modules/elisp-comp: Likewise.
14853         * MODULES.html.sh: Drop mention of elisp-comp.
14854         * NEWS: Mention this.
14856 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14858         root-uid: new module
14859         This is for portability to Tandem's NonStop Kernel.
14860         * lib/root-uid.h, modules/root-uid: New files.
14861         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
14862         * lib/write-any-file.c, tests/test-sethostname2.c:
14863         Include "root-uid.h".
14864         * lib/euidaccess.c (euidaccess):
14865         * lib/pt_chown.c (main):
14866         * lib/unlinkdir.c (cannot_unlink_dir):
14867         * lib/write-any-file.c (can_write_any_file):
14868         * m4/mknod.m4 (gl_FUNC_MKNOD):
14869         * tests/test-sethostname2.c (geteuid, main):
14870         Don't assume ROOT_UID == 0.
14871         * modules/euidaccess (Depends-on):
14872         * modules/pt_chown (Depends-on):
14873         * modules/sethostname-tests (Depends-on):
14874         * modules/unlinkdir (Depends-on):
14875         * modules/write-any-file (Depends-on):
14876         Add root-uid.
14878         regex: use locale-independent comparison for codeset name
14879         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
14880         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
14881         for codeset name.
14882         * lib/regex_internal.h: Do not include <strings.h>, since we
14883         no longer use strcasecmp.
14884         * modules/regex (Depends-on): Remove strcase.
14886 2012-06-23  Bruno Haible  <bruno@clisp.org>
14888         getopt-posix: No longer guarantee that option processing is resettable.
14889         * doc/posix-functions/getopt.texi: Drop description of problem with
14890         internal state. Fix info about mingw and msvc9.
14891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
14892         option processing by getopt(). Run three test programs instead of one.
14893         Simplify cross-compilation guess.
14894         * NEWS: Mention the change.
14895         Reported by Rich Felker <dalias@aerifal.cx>.
14897 2012-06-26  Bruno Haible  <bruno@clisp.org>
14899         argp, regex: Ensure strcasecmp gets declared.
14900         * lib/argp-help.c: Include <strings.h>.
14901         * lib/regex_internal.h: Likewise.
14902         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
14904 2012-06-24  Bruno Haible  <bruno@clisp.org>
14906         ptsname_r: Make it consistent with ptsname on AIX.
14907         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
14908         implementation as for OSF/1.
14909         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
14910         a pty master.
14912         ptsname_r: Make it consistent with ptsname on OSF/1.
14913         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
14914         OSF/1.
14916 2012-06-24  Bruno Haible  <bruno@clisp.org>
14918         ttyname_r: Fix result on OSF/1, Solaris.
14919         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
14921 2012-06-24  Bruno Haible  <bruno@clisp.org>
14923         ptsname_r: Add support for Solaris.
14924         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
14925         Solaris.
14927         ptsname_r: Fix test failure on native Windows.
14928         * modules/ptsname_r (Depends-on): Add isatty.
14930         ptsname_r: Fix test failures on IRIX, Solaris.
14931         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
14932         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
14933         accordingly.
14934         * lib/ptsname_r.c: Include <fcntl.h>.
14935         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
14936         set errno if fd is invalid.
14937         * tests/test-isatty.c (main): Update comments.
14939 2012-06-24  Bruno Haible  <bruno@clisp.org>
14941         ptsname test: Extend test.
14942         * tests/test-ptsname.c: Include <errno.h>.
14943         (main): Test behaviour with invalid file descriptor.
14945 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14947         time: fix obsolete comment
14948         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
14949         reference to HAVE_STRUCT_TIMESPEC in comment.
14951 2012-06-23  Bruno Haible  <bruno@clisp.org>
14953         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
14954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
14955         does not handle abbreviated long options with equivalent
14956         disambiguations, set gl_replace_getopt to yes.
14957         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
14959 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14961         time_r: fix typo that always overrode localtime_r decl
14962         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
14963         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
14964         not in a standard include.
14966 2012-06-22  Bruno Haible  <bruno@clisp.org>
14968         Write "Mac OS X" instead of "MacOS X".
14969         * README: Write "Mac OS X" instead of "MacOS X".
14970         * build-aux/bootstrap: Likewise.
14971         * build-aux/install-reloc: Likewise.
14972         * lib/acl-internal.h: Likewise.
14973         * lib/acl_entries.c: Likewise.
14974         * lib/argp-ba.c: Likewise.
14975         * lib/argp-pv.c: Likewise.
14976         * lib/config.charset: Likewise.
14977         * lib/copy-acl.c: Likewise.
14978         * lib/csharpexec.c: Likewise.
14979         * lib/euidaccess.c: Likewise.
14980         * lib/fbufmode.c: Likewise.
14981         * lib/fflush.c: Likewise.
14982         * lib/file-has-acl.c: Likewise.
14983         * lib/filemode.h: Likewise.
14984         * lib/fpurge.c: Likewise.
14985         * lib/freadable.c: Likewise.
14986         * lib/freadahead.c: Likewise.
14987         * lib/freading.c: Likewise.
14988         * lib/freadptr.c: Likewise.
14989         * lib/freadseek.c: Likewise.
14990         * lib/fseeko.c: Likewise.
14991         * lib/fseterr.c: Likewise.
14992         * lib/fsusage.c: Likewise.
14993         * lib/fwritable.c: Likewise.
14994         * lib/fwriting.c: Likewise.
14995         * lib/get-rusage-as.c: Likewise.
14996         * lib/get-rusage-data.c: Likewise.
14997         * lib/getdomainname.c: Likewise.
14998         * lib/idpriv-drop.c: Likewise.
14999         * lib/idpriv-droptemp.c: Likewise.
15000         * lib/localcharset.c: Likewise.
15001         * lib/locale.in.h: Likewise.
15002         * lib/localename.c: Likewise.
15003         * lib/mbsrtowcs-state.c: Likewise.
15004         * lib/nproc.c: Likewise.
15005         * lib/passfd.c: Likewise.
15006         * lib/posix_openpt.c: Likewise.
15007         * lib/printf-parse.c: Likewise.
15008         * lib/progreloc.c: Likewise.
15009         * lib/safe-read.h: Likewise.
15010         * lib/safe-write.h: Likewise.
15011         * lib/sched.in.h: Likewise.
15012         * lib/set-mode-acl.c: Likewise.
15013         * lib/signal.in.h: Likewise.
15014         * lib/stdint.in.h: Likewise.
15015         * lib/stdio-impl.h: Likewise.
15016         * lib/stdlib.in.h: Likewise.
15017         * lib/strtod.c: Likewise.
15018         * lib/sys_select.in.h: Likewise.
15019         * lib/tcgetsid.c: Likewise.
15020         * lib/unistd.in.h: Likewise.
15021         * lib/unlockpt.c: Likewise.
15022         * lib/vasnprintf.c: Likewise.
15023         * lib/vma-iter.c: Likewise.
15024         * lib/wcsrtombs-state.c: Likewise.
15025         * m4/acl.m4: Likewise.
15026         * m4/acosl.m4: Likewise.
15027         * m4/asinl.m4: Likewise.
15028         * m4/atanl.m4: Likewise.
15029         * m4/c-stack.m4: Likewise.
15030         * m4/cosl.m4: Likewise.
15031         * m4/expl.m4: Likewise.
15032         * m4/extensions.m4: Likewise.
15033         * m4/fdatasync.m4: Likewise.
15034         * m4/fmal.m4: Likewise.
15035         * m4/frexp.m4: Likewise.
15036         * m4/frexpf.m4: Likewise.
15037         * m4/frexpl.m4: Likewise.
15038         * m4/fsusage.m4: Likewise.
15039         * m4/getdomainname.m4: Likewise.
15040         * m4/getloadavg.m4: Likewise.
15041         * m4/getopt.m4: Likewise.
15042         * m4/gettext.m4: Likewise.
15043         * m4/gnulib-common.m4: Likewise.
15044         * m4/intdiv0.m4: Likewise.
15045         * m4/intlmacosx.m4: Likewise.
15046         * m4/largefile.m4: Likewise.
15047         * m4/ldexpl.m4: Likewise.
15048         * m4/link-follow.m4: Likewise.
15049         * m4/locale-ar.m4: Likewise.
15050         * m4/locale-fr.m4: Likewise.
15051         * m4/locale-ja.m4: Likewise.
15052         * m4/locale-tr.m4: Likewise.
15053         * m4/locale-zh.m4: Likewise.
15054         * m4/locale_h.m4: Likewise.
15055         * m4/lock.m4: Likewise.
15056         * m4/logl.m4: Likewise.
15057         * m4/mathfunc.m4: Likewise.
15058         * m4/minus-zero.m4: Likewise.
15059         * m4/mktime.m4: Likewise.
15060         * m4/mmap-anon.m4: Likewise.
15061         * m4/multiarch.m4: Likewise.
15062         * m4/nanosleep.m4: Likewise.
15063         * m4/nocrash.m4: Likewise.
15064         * m4/poll.m4: Likewise.
15065         * m4/printf-frexpl.m4: Likewise.
15066         * m4/printf.m4: Likewise.
15067         * m4/signbit.m4: Likewise.
15068         * m4/sinl.m4: Likewise.
15069         * m4/sqrtl.m4: Likewise.
15070         * m4/strerror_r.m4: Likewise.
15071         * m4/tanl.m4: Likewise.
15072         * m4/threadlib.m4: Likewise.
15073         * m4/ttyname_r.m4: Likewise.
15074         * m4/unlink.m4: Likewise.
15075         * m4/visibility.m4: Likewise.
15076         * m4/wcwidth.m4: Likewise.
15077         * tests/minus-zero.h: Likewise.
15078         * tests/test-alloca-opt.c: Likewise.
15079         * tests/test-copy-acl.sh: Likewise.
15080         * tests/test-copy-file.sh: Likewise.
15081         * tests/test-fdatasync.c: Likewise.
15082         * tests/test-file-has-acl.sh: Likewise.
15083         * tests/test-flock.c: Likewise.
15084         * tests/test-fsync.c: Likewise.
15085         * tests/test-localename.c: Likewise.
15086         * tests/test-malloca.c: Likewise.
15087         * tests/test-nonblocking-pipe.h: Likewise.
15088         * tests/test-nonblocking-socket.h: Likewise.
15089         * tests/test-openpty.c: Likewise.
15090         * tests/test-posix_openpt.c: Likewise.
15091         * tests/test-ptsname.c: Likewise.
15092         * tests/test-ptsname_r.c: Likewise.
15093         * tests/test-sameacls.c: Likewise.
15094         * tests/test-select.h: Likewise.
15095         * tests/test-set-mode-acl.sh: Likewise.
15096         * tests/test-snprintf-posix.h: Likewise.
15097         * tests/test-sprintf-posix.h: Likewise.
15098         * tests/test-strtod.c: Likewise.
15099         * tests/test-time.c: Likewise.
15100         * tests/test-vasnprintf-posix.c: Likewise.
15101         * tests/test-vasprintf-posix.c: Likewise.
15102         * doc/acl-resources.txt: Likewise.
15103         * doc/**/*.texi: Likewise.
15104         Reported by Max Horn <max@quendi.de>.
15106 2012-06-22  Bruno Haible  <bruno@clisp.org>
15108         grantpt: Relax requirement regarding invalid file descriptors.
15109         * lib/grantpt.c: Don't include <fcntl.h>.
15110         (grantpt): Don't verify the validity of the file descriptor.
15111         * modules/grantpt (Depends-on): Remove fcntl-h.
15112         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
15113         file descriptors.
15114         * doc/posix-functions/grantpt.texi: Document more platforms on which
15115         grantpt succeeds for invalid file descriptors.
15116         Reported by Rich Felker <dalias@aerifal.cx>.
15118 2012-06-22  Bruno Haible  <bruno@clisp.org>
15120         fbufmode test: Don't test unportable behaviour.
15121         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
15122         (main): Invoke it three times.
15123         Reported by Szabolcs Nagy <nsz@port70.net>
15124         and Rich Felker <dalias@aerifal.cx>.
15126 2012-06-21  Bruno Haible  <bruno@clisp.org>
15128         gnulib-tool: Refactor inctests variable.
15129         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
15130         (func_modules_transitive_closure,
15131         func_modules_transitive_closure_separately,
15132         func_import, func_create_testdir): Update.
15134         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
15135         * gnulib-tool: Accept option --without-tests.
15136         (func_usage): Document --without-tests option. Rearrange.
15137         (inctests): Normalize according to the mode.
15138         * NEWS: Mention the change.
15139         Suggested by Simon Josefsson.
15141 2012-06-21  Bruce Korb  <bkorb@gnu.org>
15143         parse-duration test: Avoid spurious output.
15144         * tests/test-parse-duration.sh: Reindent with leading tabs.
15146 2012-06-21  Jim Meyering  <meyering@redhat.com>
15148         maint: disable the strncpy prohibition
15149         * cfg.mk: Do not prohibit strncpy here.
15151 2012-06-21  Bruno Haible  <bruno@clisp.org>
15153         nonblocking: Avoid compilation error on mingw64.
15154         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
15155         fscanf.
15156         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
15157         * modules/vfscanf (configure.ac): Likewise.
15158         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
15159         definition only if stdio.h has prepared it.
15160         Reported by Daniel P. Berrange <berrange@redhat.com>.
15162 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
15164         gnulib-tool: Use readlink if it is available.
15165         * gnulib-tool (func_readlink): Choose function more appropriately.
15167 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15169         posixtm-tests: port to buggy compiler
15170         Problem reported by Simon Josefsson in
15171         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
15172         * modules/posixtm-tests (Depends-on): Add stdint.
15173         * tests/test-posixtm.c (struct posixtm_test.t_expected):
15174         Now of type int_least64_t, not int64_t, both because that's
15175         what INT64_C returns and because int_least64_t works even
15176         on 72-bit hosts.
15177         (T): Use INT64_C on constants outside the traditional int range,
15178         to work around compiler bug noted by Simon.
15180         mktime: fix integer overflow in 'configure'-time test
15181         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
15182         after integer overflow.  Problem reported by Rich Felker in
15183         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
15184         Also, don't look for further instances of a bug if we've already
15185         found one instance; this helps 'configure' run faster.
15187 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
15189         tmpfile, clean-temp: Fix invocation of GetVersionEx.
15190         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
15191         GetVersionEx correctly.
15192         * lib/clean-temp.c (supports_delete_on_close): Likewise.
15194 2012-06-20  Bruno Haible  <bruno@clisp.org>
15196         fdopen: Allow implementations that don't reject invalid fd arguments.
15197         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
15198         succeeds.
15199         Reported by Rich Felker <dalias@aerifal.cx>.
15201 2012-06-20  Simon Josefsson  <simon@josefsson.org>
15203         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
15204         bring in LIBINTL.
15206 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15208         init.sh: do not rely on autoupated PWD
15209         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
15210         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
15211         Although Nelson's bug was not necessarily fixed by this patch,
15212         it seems wise to make the change for safety.
15213         * tests/init.sh (path_prepend_): Do not rely on PWD updating
15214         automagically after 'cd'; this is not reliable on older shells.
15215         (setup_): Fail if we cannot cd to temporary directory.
15217 2012-06-19  Bruno Haible  <bruno@clisp.org>
15219         stat, fstat: Avoid warnings on mingw64.
15220         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
15221         redefining.
15222         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
15223         Reported by Daniel P. Berrange <berrange@redhat.com>.
15225 2012-06-19  Bruno Haible  <bruno@clisp.org>
15227         stdioext: Add support for musl libc.
15229         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
15230         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
15232         * m4/fseterr.m4: New file.
15233         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
15234         function exists.
15235         * modules/fseterr (Files): Add m4/fseterr.m4.
15236         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
15237         __fseterr does not exist.
15238         (Makefile.am): Remove fseterr.c from lib_SOURCES.
15240         * lib/freadable.h: Update comment.
15242         * lib/fwritable.h: Update comment.
15244         * lib/freading.h: Update comment.
15246         * lib/fwriting.h: Update comment.
15248         * m4/freadahead.m4: New file.
15249         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
15250         that function exists.
15251         * modules/freadahead (Files): Add m4/freadahead.m4.
15252         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
15253         __freadahead does not exist.
15254         (Makefile.am): Remove freadahead.c from lib_SOURCES.
15256         * m4/freadptr.m4: New file.
15257         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
15258         function exists.
15259         * modules/freadptr (Files): Add m4/freadptr.m4.
15260         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
15261         __freadptr does not exist.
15262         (Makefile.am): Remove freadptr.c from lib_SOURCES.
15264         * m4/freadseek.m4: New file.
15265         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
15266         exists.
15267         * modules/freadseek (Files): Add m4/freadseek.m4.
15268         (configure.ac): Invoke gl_FUNC_FREADSEEK.
15270         * lib/fpurge.c (fpurge): Update comment.
15272         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
15274 2012-06-19  Bruno Haible  <bruno@clisp.org>
15276         *printf-posix: Put more info into config.log.
15277         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
15278         exit code into config.log.
15280 2012-06-19  Bruno Haible  <bruno@clisp.org>
15282         getopt-gnu: Fix exit code overflow in autoconf test.
15283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
15284         to keep them below < 128.
15286 2012-06-17  Jim Meyering  <meyering@redhat.com>
15288         maint.mk: fix typo in code to derive GPG key at release time
15289         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
15291 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15293         regex: avoid warning when pointers are not long
15294         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
15295         and uintptr_t, not long, for portability to hosts where pointers and
15296         long have different sizes.  Issue noted by Daniel P. Berrange in
15297         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
15298         and fix suggested by Bruno Haible in
15299         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
15301 2012-06-17  Bruno Haible  <bruno@clisp.org>
15303         dummy: Relicense into the public domain.
15304         * modules/dummy (License): Set to "public domain".
15305         Suggested by Reuben Thomas.
15307 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
15309         announce-gen: VPATH issues
15310         * build-aux/announce-gen (--srcdir): New option, used to trim the
15311         $srcdir part of the path from $builddir to NEWS.
15312         * top/maint.mk (announcement): Adjust.
15314 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
15316         gnu-web-doc-update: VPATH builds
15317         * build-aux/gnu-web-doc-update (--builddir): New option.
15318         Revamp the handling of options.
15319         Prefer $(...) to `...`.
15320         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
15321         the template, and it is GNU mktemp specific.
15322         Prefer set -e to long series of &&.
15323         Restore the initial git branch, not "master".
15324         Properly initialize submodules (don't rely only on bootstrap).
15325         Do not reconfigure blindly, use config.status.
15326         * top/README-release: Update instructions for gnu-web-doc-update.
15328 2012-06-11  Jim Meyering  <meyering@redhat.com>
15330         maint.mk: revert most of the previous change re "all these"
15331         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
15332         For rationale, see the discussion at
15333         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
15335 2012-06-10  Karl Berry  <karl@gnu.org>
15337         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
15339         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
15341 2012-06-10  Bruce Korb  <bkorb@gnu.org>
15343         parse-duration: Relicense under LGPLv2+.
15344         * modules/parse-duration (License): Change to LGPLv2+.
15346 2012-06-10  Jim Meyering  <meyering@redhat.com>
15348         maint.mk: prohibit common grammar error: "all these"
15349         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
15350         the list of prohibited word sequences.  It should be "all of these".
15351         * lib/tempname.c (__gen_tempname): Fix one of them.
15353 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
15355         do-release-commit-and-tag: support VPATH builds
15356         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
15357         (noteworthy): Defined earlier to factor its value.
15358         (noteworthy_stub): New.
15359         Use it to factor.
15360         (help_version): Split into...
15361         (help, version): these.
15362         Adjust the option processing part.
15363         Support "--option=value" in addition to "--option value".
15364         (builddir): New.
15365         (--builddir): New option.
15366         * top/README-release: Document this.
15367         Reword slightly so that the reader cannot understand that he
15368         has to do these steps before calling do-release-commit-and-tag.
15370 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
15372         readme-release: also require announce-gen and maintainer-makefile
15373         * modules/readme-release (Depends-on): here.
15374         * modules/announce-gen, modules/do-release-commit-and-tag,
15375         modules/gnu-web-doc-update, modules/maintainer-makefile
15376         (Description): Point to readme-release.
15378 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
15380         maint.mk: fix VPATH issues.
15381         * top/maint.mk (news-check): GNU Make understand $< very well.
15382         (release-prep): NEWS is in $(srcdir).
15384 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
15386         readme-release: require the promoted modules.
15387         * modules/readme-release (Depends-on): Add
15388         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
15389         in this text.
15391 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
15392             Bruno Haible  <bruno@clisp.org>
15394         error, strerror-override: Support mingw64 from Fedora 17.
15395         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
15396         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
15397         EINPROGRESS.
15398         * lib/strerror-override.h (strerror_override): Test it.
15399         * lib/strerror-override.c (strerror_override): Likewise.
15400         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
15402 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
15403             Bruno Haible  <bruno@clisp.org>
15405         error, strerror-override: Support mingw64 from Fedora 17.
15406         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
15407         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
15408         * lib/strerror-override.h (strerror_override): Test it.
15409         * lib/strerror-override.c (strerror_override): Likewise.
15411 2012-06-03  Bruno Haible  <bruno@clisp.org>
15413         error, strerror-override: Support new errno values from POSIX:2008.
15414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
15415         ENOTRECOVERABLE.
15416         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
15417         platforms.
15418         * lib/strerror-override.c (strerror_override): Conditionalize the
15419         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
15420         * lib/strerror-override.h (strerror_override): Declare also if
15421         GNULIB_defined_EOWNERDEAD is defined.
15422         * tests/test-errno.c (e130, e131): New variables.
15423         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
15424         ENOTRECOVERABLE.
15425         Reported by Paolo Bonzini.
15427 2012-05-31  Jim Meyering  <meyering@redhat.com>
15429         savewd: add missing dependency on sys_wait module
15430         * modules/savewd (Depends-on): Add sys_wait, needed at least
15431         for MSVC.  Report and suggested change by Michael Goffioul.
15433 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15435         system-quote-tests: port to CentOS 5
15436         Problem reported by Tom G. Christensen in
15437         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
15438         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
15440 2012-05-29  Jim Meyering  <meyering@redhat.com>
15442         maint: fix typos in comments and ChangeLog
15443         Culprits identified and fixed mostly automatically using these commands:
15444         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
15445         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
15446         using http://github.com/lyda/misspell-check
15447         * ChangeLog: Fix typos.
15448         * doc/solaris-versions: Likewise.
15449         * lib/regexec.c (re_search_stub): Likewise.
15450         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15452 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
15454         manywarnings: remove duplicate -Wmultichar entry
15455         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
15456         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
15457         so keep the entry marked as documented.
15459 2012-05-27  Karl Berry  <karl@gnu.org>
15461         * config/srclist.txt (mktime.c): remove last libc sync,
15462         perhaps just temporarily.
15464 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
15466         regex: don't assume uint64_t or uint32_t
15467         * lib/regcomp.c (init_word_char): Don't assume that the types
15468         uint64_t and uint32_t exist.  The C standard doesn't guarantee
15469         them, and on some 32-bit compilers there is no uint64_t.
15470         Problem reported by Gianluigi Tiesi in
15471         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
15473 2012-05-25  Jim Meyering  <meyering@redhat.com>
15475         maint.mk: add strncpy-prohibiting syntax-check rule
15476         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
15478 2012-05-24  Jim Meyering  <meyering@redhat.com>
15480         maint.mk: compute $(gpg_key_ID) more portably
15481         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
15482         That use of sed is not portable to some fringe systems.
15483         Reported by Paul Eggert in
15484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
15486 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15488         mktime: sync from glibc
15489         * config/srclist.txt: Uncomment mktime.c.
15490         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
15491         First, indent with tabs, since glibc uses tabs and doesn't want to
15492         change and we'd rather be identical to glibc.  Also, two small
15493         coding changes:
15494         (isdst_differ): Use &&, not &, as && is the usual style.
15495         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
15496         for clarity.
15498 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
15500         announce-gen: du -h is more portable than du --human
15501         * build-aux/announce-gen (sizes): Invoke du with -h instead
15502         of --human.  Accept leading white space in its output.
15504 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
15506         announce-gen: Improve diagnostics.
15507         * build-aux/announce-gen: When parsing command line options,
15508         prefer "announce-gen: option --release-type requires an argument"
15509         to "Option release-type requires an argument".
15511 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
15513         maint.mk: gpg_key_ID: use sed more portably
15514         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
15515         the closing brace.
15516         (refresh-po): Fuse two sed invocations into one.
15518 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
15520         gitlog-to-changelog: support the log message format used in Bison.
15521         * build-aux/gitlog-to-changelog: Support --strip-tab and
15522         --strip-cherry-picked.
15524 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
15526         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
15527         the rest of the current time slice to another thread in the current
15528         process. So if the thread that feeds the file decscriptor we're
15529         polling is not in the current process, we get busy-waiting.
15530         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
15531         Patch from Theodore Leblond.
15532         * lib/select.c: Split polling out of the loop that sets the output
15533         fd_sets.  Check for zero result and loop if the wait timeout is
15534         infinite.
15536 2012-05-21  Simon Josefsson  <simon@josefsson.org>
15538         select: Fix build error on IRIX 6.5.
15539         * lib/select.c: Include stddef.h for NULL.
15541 2012-05-21  Simon Josefsson  <simon@josefsson.org>
15543         gc: fix libgcrypt detection on older machines.
15544         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
15545         copyright years because the file has been distributed every year
15546         since it was created.
15548 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
15550         crypto: fix bug in large buffer handling
15551         Problem reported by Serge Belyshev for glibc in
15552         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
15553         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
15554         * lib/md4.c (md4_process_block):
15555         * lib/md5.c (md5_process_block):
15556         * lib/sha1.c (sha1_process_block):
15557         * lib/sha256.c (sha256_process_block):
15558         Don't assume the buffer length is less than 2**32.
15559         * lib/sha512.c (sha512_process_block): Likewise.
15560         Here, the bug is present only in the rare case where the host does
15561         not support uint64_t or where size_t is wider than 64 bits.
15562         Use u64size to work around the problems.
15563         * lib/u64.h (u64size): New macro.
15565 2012-05-15  Pádraig Brady  <P@draigBrady.com>
15567         fsusage: fix block size returned on older Linux 2.6
15569         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
15570         which is available since Linux 2.6.
15571         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
15572         when the member is available so it can be used as a fallback.
15573         * doc/posix-functions/statvfs.texi: Mention the hang issue
15574         on Linux < 2.6.36.
15576 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15578         bootstrap: suppress stderr chatter
15579         * build-aux/bootstrap (insert_sorted_if_absent, main program):
15580         Omit unnecessary chatter to stderr.  The main program chatter
15581         was there only inadvertantly.
15583         bootstrap: .gitignore files created by autopoint, libtool
15584         I ran into this problem when bootstrapping the latest diffutils.
15585         After './bootstrap', 'git status' reported lots of untracked files
15586         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
15587         autopoint and do not need to be version-controlled.
15588         * build-aux/bootstrap: Put into .gitignore the files that
15589         autopoint and libtool create, by keeping track of files that exist
15590         after but not before these programs are run.
15591         (version_controlled_file): Move up.  2nd arg is now full file
15592         name, not base name; this is more convenient.  Put CVS at the end,
15593         as it's now somewhat deprecated.
15595 2012-05-14  Jim Meyering  <meyering@redhat.com>
15597         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
15598         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
15599         definition.  Reported by Bruno Haible.
15601 2012-05-13  Bruno Haible  <bruno@clisp.org>
15602             Paul Eggert  <eggert@cs.ucla.edu>
15604         binary-io: Define set_binary_mode function.
15605         * lib/binary-io.h (set_binary_mode): New function.
15606         (SET_BINARY): Define in terms of set_binary_mode.
15607         * modules/binary-io (configure.ac): Require AC_C_INLINE.
15608         * tests/test-binary-io.c (main): Accept an argument, and test either
15609         set_binary_mode or SET_BINARY depending on the argument.
15610         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
15611         argument. Clean up also t-bin-out0.tmp.
15613 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
15615         bootstrap: take advantage of POSIX shell features
15617         The 'bootstrap' script offered by Gnulib script already uses POSIX
15618         shell features (like $((...)) arithmetic expansions) that are not
15619         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
15620         means that bootstrap must already be run using a proper POSIX shell,
15621         which will thus provide more features, like ${var#pattern} parameter
15622         expansion or inversion of a command exit status with '!'.  We can
15623         thus use these features to improve the clarity and the performances
15624         of the bootstrap script.
15626         Suggested by Eric Blake.
15628         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
15629         of sed/expr plus command substitutions, to save some forks.  While
15630         we are at it, prefer the POSIX $(...) form of command substitution,
15631         rather than the legacy form `...` (since the former is visually
15632         clearer and interacts better with quoting), and prefer the idiom:
15633           "if ! CMD; then ACTION ..."
15634         over the idiom:
15635           "if CMD; then :; else ACTION ..."
15636         which was required by legacy Bourne shells not supporting '!'.
15638 2012-05-12  Bruno Haible  <bruno@clisp.org>
15640         system-quote: Add more comments.
15641         * lib/system-quote.h: Add more comments about wilcards and limitations.
15642         Suggested by Eli Zaretskii <eliz@gnu.org>.
15644         sh-quote, system-quote: Add comments about wildcards.
15645         * lib/sh-quote.h: Clarify what happens with wildcard characters.
15646         * lib/system-quote.h: Likewise.
15647         Reported by Eli Zaretskii <eliz@gnu.org>.
15649 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15651         fsusage: check for GNU/Linux statvfs problem dynamically
15652         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
15653         Define STAT_STATFS2_BSIZE too, since in this case the code now
15654         checks dynamically whether statvfs is reliable, falling back on
15655         Linux-style statfs otherwise.
15656         (statvfs_works): New function, for dynamically testing statvfs.
15657         (get_fs_usage) [STAT_STATVFS]: Use it.
15658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
15659         statvfs on GNU/Linux hosts, since it's now done dynamically.
15661 2012-05-10  Bruno Haible  <bruno@clisp.org>
15663         system-quote, execute, spawn-pipe: Escape '?' on Windows.
15664         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
15665         '?' character.
15666         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
15667         * tests/test-system-quote-main.c (check_all): Check also strings like
15668         "??????????".
15669         Reported by Eli Zaretskii <eliz@gnu.org>.
15671 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15673         _Noreturn: port config.h to gcc -Wundef
15674         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
15675         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
15676         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
15678 2012-05-10  Bruno Haible  <bruno@clisp.org>
15680         system-quote: Refactor.
15681         * lib/system-quote.h (system_quote_copy): Fix comment.
15682         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
15683         New functions, extracted from system_quote_copy.
15684         (system_quote_length, system_quote_copy): Use these functions.
15685         Reported by Paul Eggert.
15687 2012-05-08  Bruno Haible  <bruno@clisp.org>
15689         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
15690         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
15692 2012-05-08  Bruno Haible  <bruno@clisp.org>
15694         Tests for module 'system-quote'.
15695         * modules/system-quote-tests: New file.
15696         * tests/test-system-quote.sh: New file.
15697         * tests/test-system-quote-main.c: New file.
15698         * tests/test-system-quote-child.c: New file.
15700         New module 'system-quote'.
15701         * lib/system-quote.h: New file.
15702         * lib/system-quote.c: New file.
15703         * modules/system-quote: New file.
15705 2012-05-08  Bruno Haible  <bruno@clisp.org>
15707         sh-quote: Make C++ safe and allow multiple inclusion.
15708         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
15709         declarations in extern "C".
15711 2012-05-08  Bruno Haible  <bruno@clisp.org>
15713         sh-quote tests: Make tests stricter.
15714         * tests/test-sh-quote.c (check_one): Check the return value of
15715         shell_quote_copy.
15716         (main): Check a string with a CR character. Check a string that
15717         contains UCHAR_MAX.
15719 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
15721         warnings.m4: provide a means to specify the program to compile.
15722         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
15723         (gl_WARN_ADD): here.
15724         Use gl_AS_VAR_APPEND.
15725         Support an argument to specify the program to compile.
15726         (gl_WARN_ADD): Accept an argument to specify the program to compile.
15727         AC_SUBST the WARN_CFLAGS when they are used.
15728         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
15729         leave this to gl_WARN_ADD.
15731 2012-05-08  Eric Blake  <eblake@redhat.com>
15733         doc: recommendations on gettext version
15734         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
15735         choice between versions.
15736         * DEPENDENCIES (gettext): Cover both approaches.
15738 2012-05-08  Jim Meyering  <meyering@redhat.com>
15740         init.sh: explain why EXEEXT support uses aliases rather than functions
15741         * tests/init.sh: Add a comment.
15743         init.sh: don't let bash aliases interfere with tests
15744         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
15745         is bash.  This avoids problems for those who alias standard commands to
15746         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
15747         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
15749 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15751         stdint: be more consistent with glibc, SunOS libc
15752         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
15753         (gl_int_fast16_t, gl_uint_fast16_t)
15754         (gl_int_fast32_t, gl_uint_fast32_t)
15755         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
15756         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
15757         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
15758         Be consistent with glibc by default, and with SunOS 5.10 and later
15759         if __sun is defined.  This lessens the likelihood of clashes if
15760         code compiled for older hosts is combined with code compiled for
15761         newer ones.  Problem reported by Niels Möller in
15762         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
15764 2012-05-07  Eric Blake  <eblake@redhat.com>
15766         isatty: relax license to LGPLv2+
15767         * modules/isatty (License): Relax license.
15769 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15771         stat-size: comment fix
15772         * lib/stat-size.h: Remove obsolete comment about indenting.
15774 2012-05-06  Bruno Haible  <bruno@clisp.org>
15776         Tests for module 'sh-quote'.
15777         * modules/sh-quote-tests: New file.
15778         * tests/test-sh-quote.c: New file.
15780 2012-05-06  Bruno Haible  <bruno@clisp.org>
15782         sh-quote: Improve shell_quote_argv's signature.
15783         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
15784         * lib/sh-quote.c (shell_quote_argv): Likewise.
15786 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15788         stdint: document issues with int_fast8_t etc.
15789         * doc/posix-headers/stdint.texi (stdint.h): Say that other
15790         stdint.h substitutes may define these types differently.  See
15791         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
15793 2012-05-05  Bruno Haible  <bruno@clisp.org>
15795         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
15796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
15797         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
15798         or 'guessing no (mishandles large arguments)'.
15800 2012-05-05  Bruno Haible  <bruno@clisp.org>
15802         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
15803         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
15804         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
15805         set gl_cv_func_link_follows_symlink to "guessing no".
15807 2012-05-05  Bruno Haible  <bruno@clisp.org>
15809         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
15810         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
15811         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
15812         "guessing no".
15813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
15815 2012-05-05  Bruno Haible  <bruno@clisp.org>
15817         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
15818         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
15819         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
15820         set gl_cv_struct_dirent_d_ino to "guessing yes".
15822 2012-05-05  Bruno Haible  <bruno@clisp.org>
15824         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
15825         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
15826         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
15827         "guessing yes".
15829 2012-05-05  Bruno Haible  <bruno@clisp.org>
15831         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
15832         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
15833         compiling to a glibc system, set gl_cv_func_signbit and
15834         gl_cv_func_signbit_gcc to "guessing yes".
15836 2012-05-05  Bruno Haible  <bruno@clisp.org>
15838         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
15839         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
15840         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
15841         to "guessing yes".
15842         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
15843         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
15845 2012-05-05  Bruno Haible  <bruno@clisp.org>
15847         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
15848         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
15849         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
15850         gl_cv_func_realpath_works to "guessing yes".
15852 2012-05-05  Bruno Haible  <bruno@clisp.org>
15854         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
15855         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
15856         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
15858 2012-05-04  Bruno Haible  <bruno@clisp.org>
15860         Tweak last commit.
15861         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
15862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15864 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
15866         unistd_h: make it easier to avoid sys_types_h
15867         This is useful for Emacs, which has its own method of porting to
15868         Windows, and which therefore does not need the sys_types_h module.
15869         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
15870         code moved here from gl_SYS_TYPES_H.
15871         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
15872         using the code directly.
15873         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
15874         gl_SYS_TYPES_H.
15875         * modules/sys_types (Files):
15876         * modules/unistd (Files): Add m4/off_t.m4.
15878 2012-05-03  Bruno Haible  <bruno@clisp.org>
15880         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
15881         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
15882         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
15883         "guessing yes" or "guessing no".
15884         (gl_FUNC_LSTAT): Update.
15885         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
15886         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15887         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
15889 2012-05-03  Bruno Haible  <bruno@clisp.org>
15891         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
15892         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
15893         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
15894         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
15895         cross-compiling, choose the first alternative on glibc systems.
15896         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
15898 2012-05-03  Bruno Haible  <bruno@clisp.org>
15900         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
15901         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
15902         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
15904 2012-05-03  Bruno Haible  <bruno@clisp.org>
15906         chown: Avoid "guessing no" when cross-compiling to glibc systems.
15907         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
15909 2012-05-03  Bruno Haible  <bruno@clisp.org>
15911         Avoid "guessing no" guesses when cross-compiling to glibc systems.
15912         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
15913         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
15914         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
15915         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
15916         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
15917         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
15918         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
15919         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
15920         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
15921         compiling to glibc systems, set gl_cv_func_chown_slash_works,
15922         gl_cv_func_chown_ctime_works to "guessing yes".
15923         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
15924         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
15925         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
15926         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
15927         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
15928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
15929         compiling to glibc systems, set gl_cv_func_open_directory_works to
15930         "guessing yes".
15931         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
15932         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
15933         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
15934         "guessing yes".
15935         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
15936         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
15937         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
15938         compiling to glibc systems, set gl_cv_func_floorf_ieee to
15939         "guessing yes".
15940         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
15941         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
15942         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
15943         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
15944         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
15945         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
15946         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
15947         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
15948         "guessing yes".
15949         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
15950         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
15951         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
15952         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
15953         "guessing yes".
15954         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
15955         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
15956         "guessing yes".
15957         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
15958         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
15959         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
15960         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
15961         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
15962         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
15963         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
15964         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
15965         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
15966         compiling to glibc systems, set gl_cv_func_log10f_ieee to
15967         "guessing yes".
15968         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
15969         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
15970         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
15971         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
15972         "guessing yes".
15973         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
15974         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
15975         "guessing yes".
15976         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
15977         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
15978         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
15979         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
15980         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
15981         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
15982         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
15983         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
15984         compiling to glibc systems, set gl_cv_func_mkfifo_works to
15985         "guessing yes".
15986         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
15987         compiling to glibc systems, set gl_cv_func_mknod_works to
15988         "guessing yes".
15989         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
15990         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
15991         "guessing yes".
15992         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
15993         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
15994         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
15995         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
15996         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
15997         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
15998         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
15999         compiling to glibc systems, set gl_cv_func_svid_putenv to
16000         "guessing yes".
16001         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
16002         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
16003         "guessing yes".
16004         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
16005         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
16006         "guessing yes".
16007         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
16008         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
16009         to "guessing yes".
16010         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
16011         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
16012         to "guessing yes".
16013         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
16014         compiling to glibc systems, set gl_cv_func_rmdir_works to
16015         "guessing yes".
16016         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
16017         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
16018         gl_cv_func_unlink_parent_fails to "guessing yes".
16019         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
16020         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
16021         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
16022         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
16023         gl_cv_func_rename_dest_works to "guessing yes".
16024         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
16025         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
16026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
16027         compiling to glibc systems, set gl_cv_func_roundf_ieee to
16028         "guessing yes".
16029         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
16030         compiling to glibc systems, set gl_cv_func_roundl_ieee to
16031         "guessing yes".
16032         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
16033         compiling to glibc systems, set gl_cv_func_setenv_works to
16034         "guessing yes".
16035         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
16036         compiling to glibc systems, set gl_cv_func_unsetenv_works to
16037         "guessing yes".
16038         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
16039         compiling to glibc systems, set gl_cv_func_sleep_works to
16040         "guessing yes".
16041         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
16042         compiling to glibc systems, set gl_cv_func_stat_file_slash to
16043         "guessing yes".
16044         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
16045         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
16046         "guessing yes".
16047         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
16048         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
16049         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
16050         compiling to glibc systems, set gl_cv_func_truncf_ieee to
16051         "guessing yes".
16052         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
16053         compiling to glibc systems, set gl_cv_func_truncl_ieee to
16054         "guessing yes".
16055         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
16056         compiling to glibc systems, set gl_cv_func_usleep_works to
16057         "guessing yes".
16058         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
16059         compiling to glibc systems, set gl_cv_func_futimesat_works to
16060         "guessing yes".
16062 2012-05-03  Bruno Haible  <bruno@clisp.org>
16064         Say "guessing yes" or "guessing no" when cross-compiling.
16065         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
16066         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
16067         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
16068         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
16069         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
16070         am_cv_func_working_getline to "guessing yes" or "guessing no".
16071         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
16072         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
16073         (gl_FUNC_MEMMEM): When cross-compiling, set
16074         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
16075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
16076         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
16077         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
16078         set gl_cv_func_strcasestr_works_always to "guessing yes" or
16079         "guessing no".
16080         (gl_FUNC_STRCASESTR): When cross-compiling, set
16081         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
16082         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
16083         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
16084         (gl_FUNC_STRSTR): When cross-compiling, set
16085         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
16086         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
16087         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
16088         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
16089         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
16091 2012-05-01  Bruno Haible  <bruno@clisp.org>
16093         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
16094         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
16095         * build-aux/reloc-ldflags: Likewise.
16096         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
16098 2012-05-01  Bruno Haible  <bruno@clisp.org>
16100         gnulib-tool: Remove transitional code.
16101         * gnulib-tool: Don't warn about --import with 0 arguments any more.
16102         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16104 2012-05-01  Bruno Haible  <bruno@clisp.org>
16106         getcwd: Fix misindentation.
16107         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
16109 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16111         exclude: process exclude and include directives in order
16112         This restores the pre-2009 behavior, and is part of a fix of a
16113         grep bug reported by Quentin Arce in
16114         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
16115         * lib/exclude.c (struct exclude): Remove 'tail' member.
16116         (new_exclude_segment): Prepend the new segment instead of appending.
16117         Return void, since that's now more convenient.
16118         (file_pattern_matches): Renamed from excluded_file_pattern_p.
16119         (file_name_matches): Renamed from excluded_file_name_p.
16120         (file_pattern_matches, file_name_matches):
16121         Return true if the pattern matches, not if it excludes.
16122         All callers changed.
16123         (excluded_file_name): Process the list in reverse order;
16124         since the list is now reversed this restores the pre-2009 behavior.
16125         (add_exclude): Adjust to new reversed-order list.  Use local var
16126         rather than macro, for clarity.
16127         * tests/test-exclude7.sh: Adjust to corrected behavior.
16129         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
16130         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
16131         it's not possible here.  Handle the case of \ at end of pattern
16132         without dumping core.
16133         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
16135         _Noreturn: future-proof non-GNU and non-MSVC compilers
16136         * build-aux/snippet/_Noreturn.h (_Noreturn):
16137         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16138         Do not define _Noreturn if __STDC_VERSION__ indicates this is
16139         C11 or later.  This is more likely to work with random future C
16140         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
16141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
16143         exclude: handle wildcards with FNM_EXTMATCH
16144         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
16145         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
16146         comment that "has wildcards" really means "has or may have
16147         wildcards".  Simplify by avoiding the need to call strcspn.
16149 2012-04-29  Bruno Haible  <bruno@clisp.org>
16151         gnulib-tool: Fix list of authors.
16152         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
16154 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
16156         bootstrap: support Automake-NG in $buildreq
16157         * bootstrap (check_versions): Handle automake and aclocal from
16158         Automake-NG specially.  They can be specified as respectively
16159         the "automake-ng" and "aclocal-ng" requirements.
16161 2012-04-25  Eric Blake  <eblake@redhat.com>
16163         bootstrap: only force latest Makefile.in.in for gettext module
16164         * build-aux/bootstrap (with_gettext): Only install latest
16165         Makefile.in.in for projects requesting bleeding edge gettext.
16167 2012-04-22  Bruno Haible  <bruno@clisp.org>
16169         doc: Mention reason for replacement on glibc/Linux systems.
16170         * doc/posix-functions/dprintf.texi: Mention the problem with special
16171         'long double' values.
16172         * doc/posix-functions/fprintf.texi: Likewise.
16173         * doc/posix-functions/printf.texi: Likewise.
16174         * doc/posix-functions/snprintf.texi: Likewise.
16175         * doc/posix-functions/sprintf.texi: Likewise.
16176         * doc/posix-functions/vdprintf.texi: Likewise.
16177         * doc/posix-functions/vfprintf.texi: Likewise.
16178         * doc/posix-functions/vprintf.texi: Likewise.
16179         * doc/posix-functions/vsnprintf.texi: Likewise.
16180         * doc/posix-functions/vsprintf.texi: Likewise.
16181         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
16182         platforms with F_DUPFD_CLOEXEC problems.
16183         * doc/posix-functions/glob.texi: Mention which platforms are affected
16184         by the problem with symbolic links.
16185         * doc/posix-functions/linkat.texi: Mention the problem with
16186         AT_SYMLINK_FOLLOW on Linux.
16188 2012-04-22  Bruno Haible  <bruno@clisp.org>
16190         pwrite: Don't replace on all platforms.
16191         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
16193 2012-04-22  Bruno Haible  <bruno@clisp.org>
16195         rint* tests: Avoid gcc warnings.
16196         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
16197         * tests/test-rintf.c (INFINITY, NAN): Likewise.
16198         * tests/test-rintl.c (INFINITY, NAN): Likewise.
16200 2012-04-21  Bruno Haible  <bruno@clisp.org>
16202         users.txt: Update.
16203         * users.txt: Add freedink, wdiff. Update URLs for projects that have
16204         switched from CVS to git, bzr, or svn.
16206 2012-04-21  Bruno Haible  <bruno@clisp.org>
16208         Large File Support for native Windows platforms.
16210         * m4/largefile.m4 (gl_LARGEFILE): New macro.
16211         * modules/largefile (configure.ac): Require gl_LARGEFILE.
16213         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
16214         type.
16215         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
16216         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
16217         * doc/posix-headers/sys_types.texi: Mention the effect of the
16218         'largefile' module.
16220         * lib/fcntl.in.h: Add comments about off_t.
16221         * modules/fcntl-h (Depends-on): Add sys_types.
16223         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
16224         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
16225         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
16226         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
16227         * modules/unistd (Depends-on): Add sys_types.
16228         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
16230         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
16231         instead of lseek.
16232         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
16233         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
16234         * modules/lseek (Depends-on): Add sys_types.
16236         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
16237         msvc-nothrow.h.
16238         (SetFileSize): New function.
16239         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
16240         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
16241         if Large File Support is requested.
16242         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
16243         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
16245         * lib/stdio.in.h: Add comments about off_t.
16246         * modules/stdio (Depends-on): Add sys_types.
16248         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
16249         instead of ftello.
16250         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
16251         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
16252         (gl_PREREQ_FTELLO): New macro.
16253         * modules/ftello (Depends-on): Add sys_types.
16254         (configure.ac): Incoke gl_PREREQ_FTELLO.
16256         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
16257         instead of fseeko.
16258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
16259         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
16260         (gl_PREREQ_FSEEKO): New macro.
16261         * modules/fseeko (Depends-on): Add sys_types.
16262         (configure.ac): Invoke gl_PREREQ_FSEEKO.
16264         * lib/sys_stat.in.h: Add comments about off_t.
16265         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
16266         64-bit integer for st_size in 'struct stat'.
16267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
16268         Define _GL_WINDOWS_64_BIT_ST_SIZE.
16269         * modules/sys_stat (Depends-on): Add sys_types.
16270         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
16272         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
16273         instead of stat or _stat.
16275         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
16276         'struct _stati64' instead of fstat and 'struct stat'.
16277         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
16278         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
16280         Reported by Ray Satiro <raysatiro@yahoo.com>.
16282 2012-04-19  Eric Blake  <eblake@redhat.com>
16284         bootstrap: accommodate older libtool
16285         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
16286         Reported by Daniel P. Berrange.
16288 2012-04-19  Jim Meyering  <meyering@redhat.com>
16290         announce-gen: avoid failure due to lack of Digest::SHA1
16291         Even with the preferred Digest::SHA available, this script
16292         would fail when the backup module, Digest::SHA1, was not installed.
16293         * build-aux/announce-gen: Quote the conditional use of "use".
16294         Reported by Reuben Thomas in:
16295         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
16297         bootstrap: don't let a user's CDPATH setting affect this script
16298         When CDPATH is set, cd will sometimes generate output.
16299         When "cd" is run in a subshell whose output matters, that
16300         surprising-to-some output can cause malfunction.
16301         Unsetting CDPATH turns off this shell "feature."
16302         * build-aux/bootstrap (CDPATH): Unset.
16303         Reported by Reuben Thomas in:
16304         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
16305         and inspired by his patch here:
16306         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
16308 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
16309         and Jim Meyering  <meyering@redhat.com>
16311         maint.mk: catch "see @xref{}" and similar
16312         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
16313         prohibit "See also @xref{", "Also see @pxref{", and similar.
16315 2012-04-16  Jim Meyering  <meyering@redhat.com>
16317         bootstrap: really use gnulib's po/Makefile.in.in
16318         * build-aux/bootstrap: Correct the source file name in previous change.
16319         Reported by Akim Demaille.
16321         configmake: correct minor inconsistency in Makefile rule
16322         * modules/configmake (Makefile.am): All other rules like this one
16323         run the final "mv -f ..." in the same backslash-continued command
16324         as the one that does everything else.  This one put the mv -f ...
16325         command on a separate, non-backslash-continued line.
16326         Make it like the others.
16328         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
16329         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
16330         the one from gettext.  Reported by Akim Demaille.
16332 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
16334         Fix recursion of install-* into po directories.
16335         Bison's install-pdf bug reported by Hans Aberg at
16336         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
16337         * build-aux/po/Makefile.in.in (install-dvi, install-html)
16338         (install-info, install-pdf, install-ps): New targets.
16340 2012-04-16  Jim Meyering  <meyering@redhat.com>
16342         maint: avoid spurious "make sc_maint" failure
16343         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
16344         exempt all *.class file names, for lib/javaversion.class.
16346 2012-04-15  Bruno Haible  <bruno@clisp.org>
16348         lseek: Make configure test independent of environment.
16349         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
16350         Windows, we know that lseek() on pipes is broken; skip the runtime
16351         test.
16353 2012-04-14  Bruno Haible  <bruno@clisp.org>
16355         stat: Bypass buggy override in mingw64.
16356         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
16357         * lib/stat.c (stat) [mingw64]: Define to _stat.
16358         * doc/posix-functions/stat.texi: Mention mingw64 bug.
16360 2012-04-14  Bruno Haible  <bruno@clisp.org>
16362         pathmax: Fix compilation error on MSVC 9.
16363         * modules/pathmax (Depends-on): Add unistd.
16365 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
16367         README: document pointer comparison assumption
16368         * README (Portability guidelines): Document assumption about
16369         pointer comparisons, in response to a recent bug-gnulib comment by
16370         Jeffrey Kegler.
16372 2012-04-12  Bruno Haible  <bruno@clisp.org>
16374         Tests for module 'getrusage'.
16375         * modules/getrusage-tests: New file.
16376         * tests/test-getrusage.c: New file.
16378         New module 'getrusage'.
16379         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
16380         warn-on-use.h.
16381         (getrusage): New declaration.
16382         * lib/getrusage.c: New file.
16383         * m4/getrusage.m4: New file.
16384         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
16385         is declared.
16386         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
16387         HAVE_GETRUSAGE.
16388         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
16389         snippet/c++defs, snippet/warn-on-use.
16390         (Makefile.am): Update generation of sys/resource.h. Substitute
16391         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
16392         * modules/getrusage: New file.
16393         * doc/posix-functions/getrusage.texi: Mention the new module.
16395 2012-04-12  Bruno Haible  <bruno@clisp.org>
16397         Tests for module 'sys_resource'.
16398         * modules/sys_resource-tests: New file.
16399         * tests/test-sys_resource.c: New file.
16401         New module 'sys_resource'.
16402         * lib/sys_resource.in.h: New file.
16403         * m4/sys_resource_h.m4: New file.
16404         * modules/sys_resource: New file.
16405         * doc/posix-headers/sys_resource.texi: Mention the new module.
16407 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
16409         ioctl: Fix compilation error on mingw.
16410         * lib/ioctl.c: Include <windows.h>.
16411         Also reported by Ray Satiro <raysatiro@yahoo.com>.
16413 2012-04-04  Jim Meyering  <meyering@redhat.com>
16415         regex: correct #pragma guard expression
16416         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
16417         not 4.3.  Correct its cpp guard expression.
16419 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
16421         regex: remove unnecessary type punning
16422         Problem reported by Vladimir Serbinenko in
16423         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
16424         * lib/regex.h (struct re_pattern_buffer): Change the type of
16425         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
16426         Fix comment to match code.
16427         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
16428         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
16429         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
16430         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
16431         (set_regs):
16432         Omit no-longer-necessary casts.
16434 2012-04-03  Bruno Haible  <bruno@clisp.org>
16436         Tests for module 'ilogbl'.
16437         * modules/ilogbl-tests: New file.
16438         * tests/test-ilogbl.c: New file.
16440         New module 'ilogbl'.
16441         * lib/math.in.h (ilogbl): New declaration.
16442         * lib/ilogbl.c: New file.
16443         * m4/ilogbl.m4: New file.
16444         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
16445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
16446         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
16447         Split sed invocation, to avoid the limit of 100 substitutions of
16448         HP-UX 'sed'.
16449         * modules/ilogbl: New file.
16450         * tests/test-math-c++.cc: Check the declaration of ilogbl.
16451         * doc/posix-functions/ilogbl.texi: Mention the new module.
16453 2012-04-03  Bruno Haible  <bruno@clisp.org>
16455         Tests for module 'ilogbf'.
16456         * modules/ilogbf-tests: New file.
16457         * tests/test-ilogbf.c: New file.
16459         New module 'ilogbf'.
16460         * lib/math.in.h (ilogbf): New declaration.
16461         * lib/ilogbf.c: New file.
16462         * m4/ilogbf.m4: New file.
16463         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
16464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
16465         REPLACE_ILOGBF.
16466         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
16467         REPLACE_ILOGBF.
16468         * modules/ilogbf: New file.
16469         * tests/test-math-c++.cc: Check the declaration of ilogbf.
16470         * doc/posix-functions/ilogbf.texi: Mention the new module.
16472 2012-04-03  Bruno Haible  <bruno@clisp.org>
16474         Tests for module 'ilogb'.
16475         * modules/ilogb-tests: New file.
16476         * tests/test-ilogb.c: New file.
16477         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
16478         tests/test-logb-ieee.h.
16480         New module 'ilogb'.
16481         * lib/math.in.h (ilogb): New declaration.
16482         * lib/ilogb.c: New file.
16483         * m4/ilogb.m4: New file.
16484         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
16485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
16486         REPLACE_ILOGB.
16487         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
16488         REPLACE_ILOGB.
16489         * modules/ilogb: New file.
16490         * tests/test-math-c++.cc: Check the declaration of ilogb.
16491         * doc/posix-functions/ilogb.texi: Mention the new module.
16493 2012-04-03  Bruno Haible  <bruno@clisp.org>
16495         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
16496         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
16497         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
16498         (main): Check their values.
16499         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
16500         problem.
16502 2012-04-03  Bruno Haible  <bruno@clisp.org>
16504         Tests for module 'logbl-ieee'.
16505         * modules/logbl-ieee-tests: New file.
16506         * tests/test-logbl-ieee.c: New file.
16508         New module 'logbl-ieee'.
16509         * modules/logbl-ieee: New file.
16511         Tests for module 'logb-ieee'.
16512         * modules/logb-ieee-tests: New file.
16513         * tests/test-logb-ieee.c: New file.
16515         New module 'logb-ieee'.
16516         * modules/logb-ieee: New file.
16518         Tests for module 'logbf-ieee'.
16519         * modules/logbf-ieee-tests: New file.
16520         * tests/test-logbf-ieee.c: New file.
16521         * tests/test-logb-ieee.h: New file.
16523         New module 'logbf-ieee'.
16524         * modules/logbf-ieee: New file.
16526 2012-04-03  Bruno Haible  <bruno@clisp.org>
16528         Tests for module 'logbl'.
16529         * modules/logbl-tests: New file.
16530         * tests/test-logbl.c: New file.
16532         New module 'logbl'.
16533         * lib/math.in.h (logbl): New declaration.
16534         * lib/logbl.c: New file.
16535         * m4/logbl.m4: New file.
16536         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
16537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
16538         REPLACE_LOGBL.
16539         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
16540         REPLACE_LOGBL.
16541         * modules/logbl: New file.
16542         * tests/test-math-c++.cc: Check the declaration of logbl.
16543         * doc/posix-functions/logbl.texi: Mention the new module.
16545 2012-04-02  Bruno Haible  <bruno@clisp.org>
16547         Tests for module 'logbf'.
16548         * modules/logbf-tests: New file.
16549         * tests/test-logbf.c: New file.
16551         New module 'logbf'.
16552         * lib/math.in.h (logbf): New declaration.
16553         * lib/logbf.c: New file.
16554         * m4/logbf.m4: New file.
16555         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
16556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
16557         REPLACE_LOGBF.
16558         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
16559         REPLACE_LOGBF.
16560         * modules/logbf: New file.
16561         * tests/test-math-c++.cc: Check the declaration of logbf.
16562         * doc/posix-functions/logbf.texi: Mention the new module.
16564 2012-04-02  Bruno Haible  <bruno@clisp.org>
16566         logb tests: More tests.
16567         * tests/test-logb.h: New file, based on tests/test-logb.c and
16568         tests/test-frexp.h.
16569         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
16570         (main): Just invoke test_function.
16571         * modules/logb-tests (Files): Add tests/test-logb.h,
16572         tests/minus-zero.h, tests/randomd.c.
16573         (Makefile.am): Add randomd.c to test_logb_SOURCES.
16575         logb: Provide replacement and workarounds.
16576         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
16577         is 1.
16578         * lib/logb.c: New file.
16579         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
16580         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
16581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
16582         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
16583         * modules/logb (Files): Add lib/logb.c.
16584         (Depends-on): Add isfinite, frexp, isnand.
16585         (configure.ac): Compile the replacement code logb.c if needed.
16586         * tests/test-math-c++.cc: Check the declaration of logb.
16587         * doc/posix-functions/logb.texi: Mention the replacement and the bug
16588         with subnormal numbers.
16590 2012-04-02  Bruno Haible  <bruno@clisp.org>
16592         log10* tests: Speed up.
16593         * tests/test-log10.h (test_function): Reduce amount of random numbers
16594         to test.
16596 2012-04-01  Bruno Haible  <bruno@clisp.org>
16598         logf-ieee: Fix test whether logf works.
16599         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
16601 2012-04-01  Bruno Haible  <bruno@clisp.org>
16603         log10l: Work around log10l-ieee test failure on IRIX 6.5.
16604         * lib/log10l.c: Include <float.h>
16605         (log10l): On IRIX, normalize the +Infinity value.
16606         * modules/log10l (Depends-on): Add 'float'.
16607         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
16608         +Infinity.
16610         log10f-ieee: Work around test failure on NetBSD 5.1.
16611         * m4/log10f-ieee.m4: New file.
16612         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
16613         test whether log10f works with a negative argument. Replace it if not.
16614         * lib/log10f.c (log10f): For negative arguments, return NaN.
16615         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
16616         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
16617         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
16619         log10f-ieee: Work around test failure on Solaris 9.
16620         * modules/log10f-ieee (Depends-on): Add log10-ieee.
16621         (configure.ac): Require gl_FUNC_LOG10F.
16623         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
16624         * m4/log10-ieee.m4: New file.
16625         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
16626         whether log10 works with a negative argument. Replace it if not.
16627         * lib/log10.c (log10): For negative arguments, return NaN.
16628         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
16629         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
16630         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
16632         Tests for module 'log10l-ieee'.
16633         * modules/log10l-ieee-tests: New file.
16634         * tests/test-log10l-ieee.c: New file.
16636         New module 'log10l-ieee'.
16637         * modules/log10l-ieee: New file.
16639         Tests for module 'log10-ieee'.
16640         * modules/log10-ieee-tests: New file.
16641         * tests/test-log10-ieee.c: New file.
16643         New module 'log10-ieee'.
16644         * modules/log10-ieee: New file.
16646         Tests for module 'log10f-ieee'.
16647         * modules/log10f-ieee-tests: New file.
16648         * tests/test-log10f-ieee.c: New file.
16649         * tests/test-log10-ieee.h: New file.
16651         New module 'log10f-ieee'.
16652         * modules/log10f-ieee: New file.
16654 2012-04-01  Bruno Haible  <bruno@clisp.org>
16656         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
16657         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
16658         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
16659         workaround.
16660         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
16661         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
16662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
16663         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
16664         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
16665         (Depends-on): Update conditions.
16666         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
16667         IRIX 6.5, OSF/1 5.1 problems.
16669 2012-04-01  Bruno Haible  <bruno@clisp.org>
16671         log10f: Work around OSF/1 5.1 bug.
16672         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
16673         * lib/log10f.c (log10f): If logf exists, use it and provide just the
16674         workaround.
16675         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
16676         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
16677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
16678         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
16679         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
16680         (Depends-on): Update conditions.
16681         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
16683 2012-04-01  Bruno Haible  <bruno@clisp.org>
16685         log10: Work around OSF/1 5.1 bug.
16686         * lib/math.in.h (log10): New declaration.
16687         * lib/log10.c: New file.
16688         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
16689         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
16690         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
16691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
16692         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
16693         * modules/log10 (Files): Add lib/log10.c.
16694         (Depends-on): Add math.
16695         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
16696         * tests/test-math-c++.cc: Check the declaration of log10.
16697         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
16699 2012-03-31  Bruno Haible  <bruno@clisp.org>
16701         log10l tests: More tests.
16702         * modules/log10l-tests (Files): Add tests/test-log10l.h,
16703         tests/minus-zero.h, tests/randoml.c.
16704         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
16705         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
16706         (main): Invoke test_function.
16708         log10f tests: More tests.
16709         * modules/log10f-tests (Files): Add tests/test-log10.h,
16710         tests/minus-zero.h, tests/randomf.c.
16711         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
16712         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
16713         (main): Invoke test_function.
16715         log10 tests: More tests.
16716         * tests/test-log10.h: New file.
16717         * modules/log10-tests (Files): Add tests/test-log10.h,
16718         tests/minus-zero.h, tests/randomd.c.
16719         (Makefile.am): Add randomd.c to test_log10_SOURCES.
16720         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
16721         (main): Invoke test_function.
16723 2012-03-31  Simon Josefsson  <simon@josefsson.org>
16725         fflush: Fix syntax error.
16726         * lib/fflush.c: Include unused-parameter.h, needed for
16727         _GL_UNUSED_PARAMETER.
16728         * modules/fflush (Depends-on): Add snippet/unused-parameter.
16730 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16732         regex: pacify GCC when compiling GRUB
16733         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
16734         a diagnostic.  Reported by Vladimir Serbinenko in
16735         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
16737 2012-03-29  Eric Blake  <eblake@redhat.com>
16739         stdio: don't assume gets any more
16740         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
16741         support.
16742         * modules/stdio (Makefile.am): Likewise.
16743         * lib/stdio-read.c (gets): Likewise.
16744         * tests/test-stdio-c++.cc: Likewise.
16745         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
16746         * lib/stdio.in.h (gets): Make warning occur in more places.
16747         * doc/posix-functions/gets.texi (gets): Update documentation.
16748         Reported by Christer Solskogen.
16750         maint.mk: fix syntax checks without exclusions
16751         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
16752         Reported by Daniel P. Berrange.
16754         strerror_r: avoid compiler warning
16755         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
16756         level.
16758         fflush: avoid compiler warning
16759         * lib/fflush.c (update_fpos_cache): Mark variables that are
16760         potentially unused.
16762 2012-03-25  Bruno Haible  <bruno@clisp.org>
16764         Tests for module 'localeconv'.
16765         * modules/localeconv-tests: New file.
16766         * tests/test-localeconv.c: New file.
16768         New module 'localeconv'.
16769         * lib/locale.in.h (localeconv): New declaration.
16770         * lib/localeconv.c: New file.
16771         * m4/localeconv.m4: New file.
16772         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
16773         REPLACE_LOCALECONV.
16774         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
16775         REPLACE_LOCALECONV.
16776         * modules/localeconv: New file.
16777         * modules/nl_langinfo (Depends-on): Add localeconv.
16778         * modules/human (Depends-on): Likewise.
16779         * doc/posix-functions/localeconv.texi: Mention the new module.
16781 2012-03-25  Bruno Haible  <bruno@clisp.org>
16783         locale: Provide a complete 'struct lconv'.
16784         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
16785         'struct lconv' does not contain int_p_cs_precedes.
16786         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
16787         * doc/posix-headers/locale.texi: Update.
16789         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
16790         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
16791         * doc/posix-headers/locale.texi: Update.
16793         locale: Provide a working 'struct lconv'.
16794         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
16795         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
16796         'struct lconv' does not even contain decimal_point.
16797         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
16798         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
16799         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
16800         * doc/posix-headers/locale.texi: Mention the problems with
16801         'struct lconv'.
16802         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16804 2012-03-24  Bruno Haible  <bruno@clisp.org>
16806         Enable common subexpression optimization in GCC.
16807         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
16808         macros.
16809         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
16810         GCC attribute 'const'.
16811         (uc_locale_language): Declare with GCC attribute 'pure'.
16812         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
16813         with GCC attribute 'const'.
16814         * lib/unictype.in.h (uc_is_general_category_withtable,
16815         uc_combining_class, uc_combining_class_name,
16816         uc_combining_class_long_name, uc_bidi_class_name,
16817         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
16818         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
16819         uc_decimal_value, uc_digit_value, uc_numeric_value,
16820         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
16821         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
16822         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
16823         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
16824         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
16825         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
16826         Declare with GCC attribute 'const'.
16827         (uc_general_category_name, uc_general_category_long_name,
16828         uc_general_category_byname, uc_general_category,
16829         uc_is_general_category, uc_combining_class_byname,
16830         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
16831         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
16832         Declare with GCC attribute 'pure'.
16833         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
16834         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
16835         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
16836         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
16837         with GCC attribute 'pure'.
16838         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
16839         'const'.
16840         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
16841         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
16842         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
16843         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
16844         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
16845         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
16846         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
16847         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
16848         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
16849         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
16850         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
16851         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
16852         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
16853         GCC attribute 'pure'.
16854         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
16855         'const'.
16856         * lib/uniwidth.in.h (uc_width): Simplify declaration.
16857         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
16858         u32_strwidth): Declare with GCC attribute 'pure'.
16860         Enable common subexpression optimization in GCC.
16861         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
16862         (alphasort): Declare with GCC attribute 'pure'.
16863         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
16864         (atoll): Declare with GCC attribute 'pure'.
16865         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16866         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16867         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
16868         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
16869         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
16870         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
16871         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
16873 2012-03-24  Bruno Haible  <bruno@clisp.org>
16875         gnulib-tool: Avoid unintended error output from 'cmp'.
16876         * gnulib-tool (func_add_file, func_update_file, func_import): Use
16877         "cmp -s", not "cmp > /dev/null".
16879 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
16881         gnulib-tool: fix imprecise comments w.r.t. an automake bug
16883         It's not just Automake versions < 1.9b that creates an empty
16884         pkgdatadir at installation time if pkgdata_DATA is specified
16885         to empty; modern automake versions do this as well, at least
16886         until automake 1.11.4 (not yet released at the moment of writing,
16887         but soon to appear).  That behaviour was generally considered a
16888         feature rather than a bug, at least until this discussion:
16889         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
16891         See also automake bugs #10997 and #11030.
16893         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
16894         reference to relevant automake bug numbers.
16895         (func_emit_tests_Makefile_am): Likewise.
16897 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
16899         announce-gen: use Digest::SHA when possible
16900         * build-aux/announce-gen: Use Digest::SHA when possible, falling
16901         back to Digest::SHA1 if necessary.
16903 2012-03-20  Jim Meyering  <meyering@redhat.com>
16905         tests: avoid gcc warnings about argv vs. const initializers
16906         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
16907         warnings about discarding 'const' qualifier from pointer target type.
16908         * tests/test-posix_spawn2.c (main): Likewise.
16910 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
16912         README-release: simplify slightly
16913         * top/README-release: Run "git checkout master" only once.
16915 2012-03-15  Mark Wielaard  <mark@klomp.org>
16917         git-merge-changelog: add specific example on how to use with hg.
16918         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
16920 2012-03-18  Mark Wielaard  <mark@klomp.org>
16922         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
16924 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
16926         git-version-gen: don't let "prefix" envvar cause trouble
16927         * build-aux/git-version-gen (prefix): Initialize properly,
16928         so as not to use a value specified via the environment.
16929         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
16931 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16933         regex: diagnose too-large repeat counts in EREs
16934         Previously, the code did not diagnose the too-large repeat count
16935         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
16936         as if it were 'b\{1000000000}', which is unexpected.
16937         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
16938         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
16939         is a reasonable one for this problem.  Another option would be to
16940         create a new REG_OVERFLOW error for repeat counts that are too large.
16941         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
16942         count is too large, so that the caller can distinguish the two cases.
16943         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
16944         "Too large" return code, and that repeat counts are one example of this.
16946 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16948         doc: some glibc x32 integer width issues
16949         * doc/posix-headers/sys_types.texi (sys/types.h):
16950         * doc/posix-headers/time.texi (time.h):
16951         Mention that glibc x32 does not conform to POSIX in a couple of
16952         areas related to integer widths.
16954 2012-03-15  Bruno Haible  <bruno@clisp.org>
16956         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
16957         * lib/fma.c (VOLATILE): New macro.
16958         (FUNC): Use it to work around a GCC compiler bug.
16960 2012-03-13  Bruno Haible  <bruno@clisp.org>
16962         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16963         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
16964         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
16965         REPLACE_HYPOTL to 1.
16966         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
16968 2012-03-13  Bruno Haible  <bruno@clisp.org>
16970         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16971         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
16972         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
16973         REPLACE_REMAINDERL to 1.
16974         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
16975         bug.
16977 2012-03-13  Bruno Haible  <bruno@clisp.org>
16979         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16980         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
16981         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
16982         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
16983         too big rounding errors.
16984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
16985         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
16986         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
16987         (Depends-on): Update conditions.
16988         * tests/test-sqrtl.c (my_ldexpl): New function.
16989         (main): Add test of a particular value.
16990         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
16992 2012-03-13  Pádraig Brady  <P@draigBrady.com>
16994         doc: Update timer_* platform portability notes.
16995         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
16996         that always return ENOSYS.
16997         * doc/posix-functions/timer_delete.texi: Likewise.
16998         * doc/posix-functions/timer_gettime.texi: Likewise.
16999         * doc/posix-functions/timer_settime.texi: Likewise.
17001 2012-03-13  Bruno Haible  <bruno@clisp.org>
17003         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17004         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
17005         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
17006         REPLACE_CBRTL to 1.
17007         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
17009 2012-03-13  Bruno Haible  <bruno@clisp.org>
17011         remainderl: Avoid compilation error on AIX >= 5.2.
17012         * lib/math.in.h (remainderl): Undefine macro from the system header.
17014 2012-03-13  Bruno Haible  <bruno@clisp.org>
17016         Avoid compilation errors with MSVC option -fp:strict.
17017         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
17018         * lib/cbrtf.c: Likewise.
17019         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
17021 2012-03-12  Bruno Haible  <bruno@clisp.org>
17023         uninorm: Don't crash in out-of-memory conditions.
17024         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
17025         gracefully.
17026         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
17027         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
17029 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
17031         quote: fix syntax-check
17032         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
17033         also exports quote_quoting_options.
17035 2012-03-12  Simon Josefsson  <simon@josefsson.org>
17037         Collapse list of copyright years to ranges.  See
17038         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
17039         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
17040         build-aux/csharpexec.sh.in, build-aux/gnupload,
17041         build-aux/install-reloc, build-aux/javacomp.sh.in,
17042         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
17043         build-aux/move-if-change, build-aux/reloc-ldflags,
17044         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
17046 2012-03-11  Bruno Haible  <bruno@clisp.org>
17048         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
17049         * m4/log2f-ieee.m4: New file.
17050         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
17051         whether log2f works with a minus zero argument. Replace it if not.
17052         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
17053         (Depends-on): Add log2-ieee.
17054         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
17055         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
17057         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
17058         * m4/log2-ieee.m4: New file.
17059         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
17060         whether log2 works with a minus zero argument. Replace it if not.
17061         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
17062         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
17063         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
17065         Tests for module 'log2l-ieee'.
17066         * modules/log2l-ieee-tests: New file.
17067         * tests/test-log2l-ieee.c: New file.
17069         New module 'log2l-ieee'.
17070         * modules/log2l-ieee: New file.
17072         Tests for module 'log2-ieee'.
17073         * modules/log2-ieee-tests: New file.
17074         * tests/test-log2-ieee.c: New file.
17076         New module 'log2-ieee'.
17077         * modules/log2-ieee: New file.
17079         Tests for module 'log2f-ieee'.
17080         * modules/log2f-ieee-tests: New file.
17081         * tests/test-log2f-ieee.c: New file.
17082         * tests/test-log2-ieee.h: New file.
17084         New module 'log2f-ieee'.
17085         * modules/log2f-ieee: New file.
17087 2012-03-11  Bruno Haible  <bruno@clisp.org>
17089         Tests for module 'log2l'.
17090         * modules/log2l-tests: New file.
17091         * tests/test-log2l.c: New file.
17093         New module 'log2l'.
17094         * lib/math.in.h (log2l): New declaration.
17095         * lib/log2l.c: New file.
17096         * m4/log2l.m4: New file.
17097         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
17098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
17099         REPLACE_LOG2L.
17100         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
17101         REPLACE_LOG2L.
17102         * modules/log2l: New file.
17103         * tests/test-math-c++.cc: Check the declaration of log2l.
17104         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
17105         and OSF/1 problems.
17107 2012-03-11  Bruno Haible  <bruno@clisp.org>
17109         Tests for module 'log2f'.
17110         * modules/log2f-tests: New file.
17111         * tests/test-log2f.c: New file.
17113         New module 'log2f'.
17114         * lib/math.in.h (log2f): New declaration.
17115         * lib/log2f.c: New file.
17116         * m4/log2f.m4: New file.
17117         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
17118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
17119         REPLACE_LOG2F.
17120         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
17121         REPLACE_LOG2F.
17122         * modules/log2f: New file.
17123         * tests/test-math-c++.cc: Check the declaration of log2f.
17124         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
17125         and OSF/1 and Cygwin problems.
17127 2012-03-11  Bruno Haible  <bruno@clisp.org>
17129         Tests for module 'log2'.
17130         * modules/log2-tests: New file.
17131         * tests/test-log2.c: New file.
17132         * tests/test-log2.h: New file.
17134         New module 'log2'.
17135         * lib/math.in.h (log2): New declaration.
17136         * lib/log2.c: New file.
17137         * m4/log2.m4: New file.
17138         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
17139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
17140         REPLACE_LOG2.
17141         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
17142         REPLACE_LOG2.
17143         * modules/log2: New file.
17144         * tests/test-math-c++.cc: Check the declaration of log2.
17145         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
17146         and OSF/1 and Cygwin problems.
17148 2012-03-11  Bruno Haible  <bruno@clisp.org>
17150         exp2* tests: More tests.
17151         * tests/test-exp2.h (test_function): Test all integral arguments that
17152         don't need to overflow or denormalized numbers.
17153         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
17154         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
17155         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
17157 2012-03-10  Bruno Haible  <bruno@clisp.org>
17159         log1pl-ieee: Work around test failure on AIX 7.1.
17160         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
17162         log1pl-ieee: Work around test failure on IRIX 6.5.
17163         * m4/log1pl-ieee.m4: New file.
17164         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
17165         test whether log1pl works with a minus zero argument. Replace it if
17166         not.
17167         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
17168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
17169         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
17170         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
17171         (Depends-on): Update conditions.
17172         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
17173         m4/signbit.m4.
17174         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
17175         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
17177         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
17178         * m4/log1pf-ieee.m4: New file.
17179         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
17180         test whether log1pf works with a minus zero argument. Replace it if
17181         not.
17182         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
17183         m4/signbit.m4.
17184         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
17185         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
17187         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
17188         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
17189         (configure.ac): Require gl_FUNC_LOG1PF.
17191         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
17192         * m4/log1p-ieee.m4: New file.
17193         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
17194         whether log1p works with a minus zero argument. Replace it if not.
17195         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
17196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
17197         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
17198         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
17199         (Depends-on): Update conditions.
17200         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
17201         m4/signbit.m4.
17202         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
17203         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
17205         Tests for module 'log1pl-ieee'.
17206         * modules/log1pl-ieee-tests: New file.
17207         * tests/test-log1pl-ieee.c: New file.
17209         New module 'log1pl-ieee'.
17210         * modules/log1pl-ieee: New file.
17212         Tests for module 'log1p-ieee'.
17213         * modules/log1p-ieee-tests: New file.
17214         * tests/test-log1p-ieee.c: New file.
17216         New module 'log1p-ieee'.
17217         * modules/log1p-ieee: New file.
17219         Tests for module 'log1pf-ieee'.
17220         * modules/log1pf-ieee-tests: New file.
17221         * tests/test-log1pf-ieee.c: New file.
17222         * tests/test-log1p-ieee.h: New file.
17224         New module 'log1pf-ieee'.
17225         * modules/log1pf-ieee: New file.
17227 2012-03-10  Bruno Haible  <bruno@clisp.org>
17229         Tests for module 'log1pl'.
17230         * modules/log1pl-tests: New file.
17231         * tests/test-log1pl.c: New file.
17233         New module 'log1pl'.
17234         * lib/math.in.h (log1pl): New declaration.
17235         * lib/log1pl.c: New file.
17236         * m4/log1pl.m4: New file.
17237         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
17238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
17239         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
17240         * modules/log1pl: New file.
17241         * tests/test-math-c++.cc: Check the declaration of log1pl.
17242         * doc/posix-functions/log1pl.texi: Mention the new module.
17244 2012-03-10  Bruno Haible  <bruno@clisp.org>
17246         Tests for module 'log1pf'.
17247         * modules/log1pf-tests: New file.
17248         * tests/test-log1pf.c: New file.
17250         New module 'log1pf'.
17251         * lib/math.in.h (log1pf): New declaration.
17252         * lib/log1pf.c: New file.
17253         * m4/log1pf.m4: New file.
17254         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
17255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
17256         REPLACE_LOG1PF.
17257         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
17258         REPLACE_LOG1PF.
17259         * modules/log1pf: New file.
17260         * tests/test-math-c++.cc: Check the declaration of log1pf.
17261         * doc/posix-functions/log1pf.texi: Mention the new module.
17263 2012-03-10  Bruno Haible  <bruno@clisp.org>
17265         log1p tests: More tests.
17266         * tests/test-log1p.h: New file.
17267         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
17268         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
17269         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
17270         (main): Invoke test_function.
17272         log1p: Provide replacement for Minix and MSVC.
17273         * lib/math.in.h (log1p): New declaration.
17274         * lib/log1p.c: New file.
17275         * m4/log1p.m4: New file.
17276         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
17277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
17278         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
17279         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
17280         (Depends-on): Add math, isnand, log, round.
17281         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
17282         HAVE_LOG1P is 0.
17283         * tests/test-math-c++.cc: Check the declaration of log1p.
17284         * doc/posix-functions/log1p.texi: Mention the replacement.
17286 2012-03-10  Bruno Haible  <bruno@clisp.org>
17288         math tests: Small simplification.
17289         * tests/test-exp.h (test_function): Use the same err_bound for
17290         'double' on platforms with sizeof (long double) == sizeof (double)
17291         than on platforms with sizeof (long double) > sizeof (double).
17292         * tests/test-exp2.h (test_function): Likewise.
17293         * tests/test-expm1.h (test_function): Likewise.
17294         * tests/test-log.h (test_function): Likewise.
17296 2012-03-10  Bruno Haible  <bruno@clisp.org>
17298         Fix some comments.
17299         * lib/expl.c: Fix an ambiguous comment.
17300         * lib/expm1.c: Likewise.
17301         * lib/expm1l.c: Likewise.
17302         * lib/exp2.c: Likewise.
17303         * lib/exp2l.c: Likewise.
17305 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
17307         regex: allow inclusion of <regex.h> before <limits.h>
17308         Without this patch, portable programs had to include <limits.h> before
17309         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
17310         I ran into this problem with a test version of GNU grep on Solaris 8.
17311         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
17312         This is done conditionally so that this change can be merged
17313         back to glibc.
17314         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
17315         using the included regex.
17317         fts: depend on fdopendir
17318         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
17319         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
17320         problem was introduced when fdopendir was split out.
17322 2012-03-10  Bruno Haible  <bruno@clisp.org>
17324         Remove unused variables.
17325         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
17326         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
17328 2012-03-10  Bruno Haible  <bruno@clisp.org>
17330         isnanf-nolibm: Fix last commit.
17331         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
17333         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
17334         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
17336 2012-03-10  Bruno Haible  <bruno@clisp.org>
17338         logf-ieee: Work around test failure on NetBSD 5.1.
17339         * m4/logf-ieee.m4: New file.
17340         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
17341         whether logf works with a negative argument. Replace it if not.
17342         * lib/logf.c (logf): For negative arguments, return NaN.
17343         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
17344         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
17345         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
17347         logf-ieee: Work around test failure on Solaris 9.
17348         * modules/logf-ieee (Depends-on): Add log-ieee.
17349         (configure.ac): Require gl_FUNC_LOGF.
17351         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
17352         * m4/log-ieee.m4: New file.
17353         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
17354         log works with a negative argument. Replace it if not.
17355         * lib/log.c (log): For negative arguments, return NaN.
17356         * modules/log-ieee (Files): Add m4/log-ieee.m4.
17357         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
17358         * doc/posix-functions/log.texi: Mention the log-ieee module.
17360         Tests for module 'logl-ieee'.
17361         * modules/logl-ieee-tests: New file.
17362         * tests/test-logl-ieee.c: New file.
17364         New module 'logl-ieee'.
17365         * modules/logl-ieee: New file.
17367         Tests for module 'log-ieee'.
17368         * modules/log-ieee-tests: New file.
17369         * tests/test-log-ieee.c: New file.
17371         New module 'log-ieee'.
17372         * modules/log-ieee: New file.
17374         Tests for module 'logf-ieee'.
17375         * modules/logf-ieee-tests: New file.
17376         * tests/test-logf-ieee.c: New file.
17377         * tests/test-log-ieee.h: New file.
17379         New module 'logf-ieee'.
17380         * modules/logf-ieee: New file.
17382 2012-03-10  Bruno Haible  <bruno@clisp.org>
17384         log: Fix bug introduced on 2012-03-09.
17385         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
17387 2012-03-10  Pádraig Brady  <P@draigBrady.com>
17389         timer-time: link explicitly with pthreads on glibc
17390         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
17391         to support static linking, when newer glibc is
17392         detected, as that contains pthread emulation of
17393         POSIX timer functions where required.
17394         * modules/timer-time: Depend on threadlib to
17395         pull in the appropriate library to link.
17397 2012-03-10  Bruno Haible  <bruno@clisp.org>
17399         log* tests: More tests.
17400         * tests/test-log.h: New file.
17401         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
17402         (main): Invoke test_function.
17403         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
17404         (main): Invoke test_function.
17405         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
17406         (main): Invoke test_function.
17407         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
17408         tests/randomd.c.
17409         (Makefile.am): Add randomd.c to test_log_SOURCES.
17410         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
17411         tests/randomf.c.
17412         (Makefile.am): Add randomf.c to test_logf_SOURCES.
17413         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
17414         tests/randoml.c.
17415         (Depends-on): Add 'float'.
17416         (Makefile.am): Add randoml.c to test_logl_SOURCES.
17418 2012-03-09  Bruno Haible  <bruno@clisp.org>
17420         logl: Work around OSF/1 5.1 bug.
17421         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
17422         * lib/logl.c (logl): If logl exists, use it and provide just the
17423         workaround.
17424         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
17425         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
17426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
17427         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
17428         * modules/logl (configure.ac): Consider REPLACE_LOGL.
17429         (Depends-on): Update conditions.
17430         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
17432 2012-03-09  Bruno Haible  <bruno@clisp.org>
17434         logf: Work around OSF/1 5.1 bug.
17435         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
17436         * lib/logf.c (logf): If logf exists, use it and provide just the
17437         workaround.
17438         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
17439         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
17440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
17441         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
17442         * modules/logf (configure.ac): Consider REPLACE_LOGF.
17443         (Depends-on): Update conditions.
17444         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
17446 2012-03-09  Bruno Haible  <bruno@clisp.org>
17448         log: Work around OSF/1 5.1 bug.
17449         * lib/math.in.h (log): New declaration.
17450         * lib/log.c: New file.
17451         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
17452         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
17453         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
17454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
17455         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
17456         * modules/log (Files): Add lib/log.c.
17457         (Depends-on): Add math.
17458         (configure.ac): If REPLACE_LOG is 1, compile an override.
17459         * tests/test-math-c++.cc: Check the declaration of log.
17460         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
17462 2012-03-09  Jim Meyering  <meyering@redhat.com>
17464         readtokens.c: adjust wording in a comment
17465         * lib/readtokens.c: Insert omitted "that" in a comment.
17467 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17469         modechange: add notations +40, 00440, etc.
17470         * lib/modechange.c (mode_compile): Support new notations
17471         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
17473 2012-03-08  Bruno Haible  <bruno@clisp.org>
17475         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
17476         * m4/exp2l-ieee.m4: New file.
17477         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
17478         test whether exp2l works with a NaN argument and with a negative
17479         infinity argument. Replace it if not.
17480         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
17481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
17482         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
17483         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
17484         (Depends-on): Update conditions.
17485         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
17486         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
17487         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
17489         Tests for module 'exp2l-ieee'.
17490         * modules/exp2l-ieee-tests: New file.
17491         * tests/test-exp2l-ieee.c: New file.
17493         New module 'exp2l-ieee'.
17494         * modules/exp2l-ieee: New file.
17496         Tests for module 'exp2-ieee'.
17497         * modules/exp2-ieee-tests: New file.
17498         * tests/test-exp2-ieee.c: New file.
17500         New module 'exp2-ieee'.
17501         * modules/exp2-ieee: New file.
17503         Tests for module 'exp2f-ieee'.
17504         * modules/exp2f-ieee-tests: New file.
17505         * tests/test-exp2f-ieee.c: New file.
17506         * tests/test-exp2-ieee.h: New file.
17508         New module 'exp2f-ieee'.
17509         * modules/exp2f-ieee: New file.
17511 2012-03-08  Bruno Haible  <bruno@clisp.org>
17513         Tests for module 'exp2l'.
17514         * modules/exp2l-tests: New file.
17515         * tests/test-exp2l.c: New file.
17517         New module 'exp2l'.
17518         * lib/math.in.h (exp2l): New declaration.
17519         * lib/exp2l.c: New file.
17520         * lib/expl-table.c: New file, extracted from lib/expl.c.
17521         * lib/expl.c (gl_expl_table): New declaration.
17522         (expl): Remove expl_table. Update reference.
17523         * m4/exp2l.m4: New file.
17524         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
17525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
17526         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
17527         * modules/exp2l: New file.
17528         * modules/expl (Files): Add lib/expl-table.c.
17529         (configure.ac): Compile also expl-table.c.
17530         * tests/test-math-c++.cc: Check the declaration of exp2l.
17531         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
17532         problem.
17534 2012-03-08  Bruno Haible  <bruno@clisp.org>
17536         Tests for module 'exp2f'.
17537         * modules/exp2f-tests: New file.
17538         * tests/test-exp2f.c: New file.
17540         New module 'exp2f'.
17541         * lib/math.in.h (exp2f): New declaration.
17542         * lib/exp2f.c: New file.
17543         * m4/exp2f.m4: New file.
17544         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
17545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
17546         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
17547         * modules/exp2f: New file.
17548         * tests/test-math-c++.cc: Check the declaration of exp2f.
17549         * doc/posix-functions/exp2f.texi: Mention the new module and the
17550         IRIX problem.
17552 2012-03-08  Bruno Haible  <bruno@clisp.org>
17554         Tests for module 'exp2'.
17555         * modules/exp2-tests: New file.
17556         * tests/test-exp2.c: New file.
17557         * tests/test-exp2.h: New file.
17559         New module 'exp2'.
17560         * lib/math.in.h (exp2): New declaration.
17561         * lib/exp2.c: New file.
17562         * m4/exp2.m4: New file.
17563         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
17564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
17565         REPLACE_EXP2.
17566         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
17567         REPLACE_EXP2.
17568         * modules/exp2: New file.
17569         * tests/test-math-c++.cc: Check the declaration of exp2.
17570         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
17571         and OpenBSD problems.
17573 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17575         savedir: fix comment typo
17576         * lib/savedir.c (savedirstream): Fix typo in comment.
17578 2012-03-08  Bruno Haible  <bruno@clisp.org>
17580         test-readtokens.c: use const; remove unwarranted cast
17581         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
17583 2012-03-08  Bruno Haible  <bruno@clisp.org>
17585         fmal: Avoid compilation error on AIX.
17586         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
17587         AIX 5.2..7.1.
17589 2012-03-08  Bruno Haible  <bruno@clisp.org>
17591         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
17592         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
17593         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
17594         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
17595         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
17596         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
17597         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
17599 2012-03-08  Bruno Haible  <bruno@clisp.org>
17601         remainderf: Override buggy system function on IRIX 6.5.
17602         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
17603         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
17604         when it exists.
17605         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
17607 2012-03-08  Jim Meyering  <meyering@redhat.com>
17609         test-readtokens.c: avoid const-related compilation warnings
17610         * tests/test-readtokens.c: Avoid const-related compilation warnings.
17612 2012-03-07  Jim Meyering  <meyering@redhat.com>
17613             Bruno Haible  <bruno@clisp.org>
17615         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
17616         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
17617         tests/randomd.c.
17618         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
17619         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
17620         tests/randoml.c.
17621         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
17623 2012-03-07  Bruno Haible  <bruno@clisp.org>
17625         expm1l: Avoid compilation error on AIX.
17626         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
17627         AIX 5.2..7.1.
17629 2012-03-07  Bruno Haible  <bruno@clisp.org>
17631         expm1l: Don't override undeclared system function on IRIX 6.5.
17632         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
17633         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
17634         it exists. Set HAVE_DECL_EXPM1L.
17635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
17636         HAVE_EXPM1L.
17637         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
17638         HAVE_EXPM1L.
17639         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
17641 2012-03-07  Bruno Haible  <bruno@clisp.org>
17643         remainderl: Don't override undeclared system function on IRIX 6.5.
17644         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
17645         HAVE_REMAINDERL.
17646         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
17647         declared when it exists. Set HAVE_DECL_REMAINDERL.
17648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
17649         not HAVE_REMAINDERL.
17650         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
17651         HAVE_REMAINDERL.
17652         * doc/posix-functions/remainderl.texi: Mention missing declaration
17653         problem.
17655 2012-03-07  Bruno Haible  <bruno@clisp.org>
17657         rintf: Don't override undeclared system function on IRIX 6.5.
17658         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
17659         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
17660         exists. Set HAVE_DECL_RINTF.
17661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
17662         HAVE_RINTF.
17663         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
17664         HAVE_RINTF.
17665         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
17667 2012-03-07  Bruno Haible  <bruno@clisp.org>
17669         roundl: Avoid compilation error on AIX.
17670         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
17671         AIX 5.2..7.1.
17673 2012-03-07  Bruno Haible  <bruno@clisp.org>
17675         roundl: Don't override undeclared system function on IRIX 6.5.
17676         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
17677         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
17678         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
17679         * modules/roundl (configure.ac): For replacement code, test
17680         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
17681         (Depends-on): Update conditions.
17682         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
17684 2012-03-07  Bruno Haible  <bruno@clisp.org>
17686         roundf: Don't override undeclared system function on IRIX 6.5.
17687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
17688         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
17689         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
17690         * modules/roundf (configure.ac): For replacement code, test
17691         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
17692         (Depends-on): Update conditions.
17693         * modules/roundf-ieee (Depends-on): Update conditions.
17694         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
17696 2012-03-07  Bruno Haible  <bruno@clisp.org>
17698         round: Don't override undeclared system function on IRIX 6.5.
17699         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
17700         argument.
17701         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
17702         also when it is not declared. Set HAVE_ROUND. For replacement code,
17703         test HAVE_ROUND, not HAVE_DECL_ROUND.
17704         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
17705         not HAVE_DECL_ROUND.
17706         (Depends-on): Update conditions.
17707         * modules/round-ieee (Depends-on): Update conditions.
17708         * doc/posix-functions/round.texi: Mention the IRIX problem.
17710 2012-03-07  Bruno Haible  <bruno@clisp.org>
17712         copysignf: Don't override undeclared system function on IRIX 6.5.
17713         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
17714         HAVE_COPYSIGNF.
17715         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
17716         declared when it exists. Set HAVE_DECL_COPYSIGNF.
17717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
17718         not HAVE_COPYSIGNF.
17719         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
17720         HAVE_COPYSIGNF.
17721         * doc/posix-functions/copysignf.texi: Mention missing declaration
17722         problem.
17724 2012-03-07  Jim Meyering  <meyering@redhat.com>
17726         readtokens: add tests
17727         * modules/readtokens-tests: New file.
17728         * tests/test-readtokens.c: New file.
17730 2012-03-07  Jim Meyering  <meyering@redhat.com>
17732         quotearg: the module must now include quote.h
17733         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
17734         So must the module.
17735         * modules/quotearg (Files): Add quote.h.
17737 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17739         readtokens: avoid core dumps with unusual calling patterns
17740         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
17741         * lib/readtokens.c: Include limits.h.
17742         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
17743         (readtoken): Don't cache the delimiters; the cache code was buggy
17744         if !delim && saved_delim, or if the new n_delim differs from the old.
17745         Also, it wasn't thread-safe.
17747 2012-03-07  Bruno Haible  <bruno@clisp.org>
17749         quote: Adhere to common module description layout.
17750         * modules/quote (Makefile.am): Add back empty section.
17752 2012-03-06  Akim Demaille  <demaille@gostai.com>
17754         quote: fuse into quotearg
17755         This patch is made for the benefit of Bison.
17756         quote does not leave the choice of the quoting style to the user.
17757         quoting_style provides poor customizability, yet quoting_options,
17758         which is very rich, is hidden inside quotearg.c.  So in order to
17759         allow quote customization, move its implementation to quotearg.c.
17760         * lib/quote.c: Remove.
17761         * modules/quote: Adjust.
17762         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
17763         warning: provide all the members of literal structs.
17764         (quote_quoting_options): New.
17765         (quote, quote_n): Import implementation from quote.c.
17766         * lib/quote.h: Import the comments from quote.c.
17767         (quote_quoting_options): New.
17769 2012-03-06  Bruno Haible  <bruno@clisp.org>
17771         Tests for module 'expm1l-ieee'.
17772         * modules/expm1l-ieee-tests: New file.
17773         * tests/test-expm1l-ieee.c: New file.
17775         New module 'expm1l-ieee'.
17776         * modules/expm1l-ieee: New file.
17778         Tests for module 'expm1f-ieee'.
17779         * modules/expm1f-ieee-tests: New file.
17780         * tests/test-expm1f-ieee.c: New file.
17782         New module 'expm1f-ieee'.
17783         * modules/expm1f-ieee: New file.
17785         Tests for module 'expm1-ieee'.
17786         * modules/expm1-ieee-tests: New file.
17787         * tests/test-expm1-ieee.c: New file.
17788         * tests/test-expm1-ieee.h: New file.
17790         New module 'expm1-ieee'.
17791         * modules/expm1-ieee: New file.
17792         * m4/expm1-ieee.m4: New file.
17793         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
17794         whether expm1 works with a minus zero argument. Replace it if not.
17795         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
17796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
17797         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
17798         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
17799         (Depends-on): Update conditions.
17800         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
17801         AIX problem.
17803 2012-03-06  Bruno Haible  <bruno@clisp.org>
17805         Work around expm1f bug on IRIX 6.5.
17806         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
17807         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
17808         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
17809         not work.
17810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
17811         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
17812         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
17813         (Depends-on): Update conditions.
17814         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
17816 2012-03-06  Bruno Haible  <bruno@clisp.org>
17818         Tests for module 'expm1l'.
17819         * modules/expm1l-tests: New file.
17820         * tests/test-expm1l.c: New file.
17822         New module 'expm1l'.
17823         * lib/math.in.h (expm1l): New declaration.
17824         * lib/expm1l.c: New file.
17825         * m4/expm1l.m4: New file.
17826         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
17827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
17828         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
17829         * modules/expm1l: New file.
17830         * tests/test-math-c++.cc: Check the declaration of expm1l.
17831         * doc/posix-functions/expm1l.texi: Mention the new module.
17833 2012-03-06  Bruno Haible  <bruno@clisp.org>
17835         Tests for module 'expm1f'.
17836         * modules/expm1f-tests: New file.
17837         * tests/test-expm1f.c: New file.
17839         New module 'expm1f'.
17840         * lib/math.in.h (expm1f): New declaration.
17841         * lib/expm1f.c: New file.
17842         * m4/expm1f.m4: New file.
17843         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
17844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
17845         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
17846         * modules/expm1f: New file.
17847         * tests/test-math-c++.cc: Check the declaration of expm1f.
17848         * doc/posix-functions/expm1f.texi: Mention the new module.
17850 2012-03-06  Bruno Haible  <bruno@clisp.org>
17852         Tests for module 'expm1'.
17853         * modules/expm1-tests: New file.
17854         * tests/test-expm1.c: New file.
17855         * tests/test-expm1.h: New file.
17857         New module 'expm1'.
17858         * lib/math.in.h (expm1): New declaration.
17859         * lib/expm1.c: New file.
17860         * m4/expm1.m4: New file.
17861         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
17862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
17863         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
17864         * modules/expm1: New file.
17865         * tests/test-math-c++.cc: Check the declaration of expm1.
17866         * doc/posix-functions/expm1.texi: Mention the new module.
17868 2012-03-06  Bruno Haible  <bruno@clisp.org>
17870         math: Ensure declarations of math functions.
17871         * modules/acosf (Depends-on): Add 'extensions'.
17872         * modules/asinf (Depends-on): Likewise.
17873         * modules/atan2f (Depends-on): Likewise.
17874         * modules/atanf (Depends-on): Likewise.
17875         * modules/cbrt (Depends-on): Likewise.
17876         * modules/cbrtf (Depends-on): Likewise.
17877         * modules/cbrtl (Depends-on): Likewise.
17878         * modules/copysignf (Depends-on): Likewise.
17879         * modules/copysignl (Depends-on): Likewise.
17880         * modules/cosf (Depends-on): Likewise.
17881         * modules/coshf (Depends-on): Likewise.
17882         * modules/expf (Depends-on): Likewise.
17883         * modules/fabsf (Depends-on): Likewise.
17884         * modules/fabsl (Depends-on): Likewise.
17885         * modules/fmaf (Depends-on): Likewise.
17886         * modules/fmal (Depends-on): Likewise.
17887         * modules/fmodf (Depends-on): Likewise.
17888         * modules/fmodl (Depends-on): Likewise.
17889         * modules/frexpf (Depends-on): Likewise.
17890         * modules/frexpl (Depends-on): Likewise.
17891         * modules/hypot (Depends-on): Likewise.
17892         * modules/hypotf (Depends-on): Likewise.
17893         * modules/hypotl (Depends-on): Likewise.
17894         * modules/ldexpf (Depends-on): Likewise.
17895         * modules/ldexpl (Depends-on): Likewise.
17896         * modules/log10f (Depends-on): Likewise.
17897         * modules/log10l (Depends-on): Likewise.
17898         * modules/log1p (Depends-on): Likewise.
17899         * modules/logb (Depends-on): Likewise.
17900         * modules/logf (Depends-on): Likewise.
17901         * modules/modff (Depends-on): Likewise.
17902         * modules/modfl (Depends-on): Likewise.
17903         * modules/powf (Depends-on): Likewise.
17904         * modules/remainderf (Depends-on): Likewise.
17905         * modules/remainderl (Depends-on): Likewise.
17906         * modules/rintf (Depends-on): Likewise.
17907         * modules/rintl (Depends-on): Likewise.
17908         * modules/sinf (Depends-on): Likewise.
17909         * modules/sinhf (Depends-on): Likewise.
17910         * modules/sqrtf (Depends-on): Likewise.
17911         * modules/tanf (Depends-on): Likewise.
17912         * modules/tanhf (Depends-on): Likewise.
17913         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
17914         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
17915         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
17916         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
17917         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
17918         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
17919         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
17920         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
17921         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
17922         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
17923         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
17924         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
17925         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
17926         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
17927         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
17928         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
17929         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
17930         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
17931         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
17932         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
17933         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
17934         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
17935         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
17936         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
17937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
17938         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
17939         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
17940         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17941         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
17942         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
17943         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
17944         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
17945         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
17946         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
17947         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
17948         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
17949         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
17950         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
17951         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
17952         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
17953         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
17955 2012-03-06  Bruno Haible  <bruno@clisp.org>
17957         math: Update module names in warnings.
17958         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17959         tanl): Use specific module name in warn-on-use warning.
17961 2012-03-06  Bruno Haible  <bruno@clisp.org>
17963         expl: Simplify computation.
17964         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
17966 2012-03-05  Bruno Haible  <bruno@clisp.org>
17968         exp* tests: More tests.
17969         * tests/test-exp.h: New file.
17970         * tests/test-exp.c: Include <float.h> and test-exp.h.
17971         (main): Invoke test_function.
17972         * tests/test-expf.c: Include <float.h> and test-exp.h.
17973         (main): Invoke test_function.
17974         * tests/test-expl.c: Include <float.h> and test-exp.h.
17975         (main): Invoke test_function.
17976         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
17977         (Makefile.am): Add randomd.c to test_exp_SOURCES.
17978         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
17979         (Makefile.am): Add randomf.c to test_expf_SOURCES.
17980         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
17981         (Depends-on): Add 'float'.
17982         (Makefile.am): Add randoml.c to test_expl_SOURCES.
17984         expl: Fix precision of computed result.
17985         * lib/expl.c: Completely rewritten.
17986         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
17987         (Maintainer): Add me.
17988         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
17990 2012-03-05  Bruno Haible  <bruno@clisp.org>
17992         cbrt* tests: More tests.
17993         * tests/test-cbrt.h: New file.
17994         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
17995         (main): Invoke test_function.
17996         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
17997         (main): Invoke test_function.
17998         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
17999         (main): Invoke test_function.
18000         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
18001         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
18002         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
18003         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
18004         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
18005         (Depends-on): Add 'float'.
18006         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
18008 2012-03-05  Bruno Haible  <bruno@clisp.org>
18010         hypot* tests: More tests.
18011         * tests/test-hypot.h: New file, partially extracted from
18012         tests/test-hypotl.c.
18013         * tests/test-hypot.c: Include test-hypot.h.
18014         (main): Invoke test_function.
18015         * tests/test-hypotf.c: Include test-hypot.h.
18016         (main): Invoke test_function.
18017         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
18018         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
18019         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
18020         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
18021         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
18022         tests/randomf.c.
18023         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
18024         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
18025         tests/randoml.c.
18026         (Depends-on): Add 'fpucw', 'float'.
18027         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
18029 2012-03-05  Bruno Haible  <bruno@clisp.org>
18031         fpucw: Doc about FreeBSD.
18032         * lib/fpucw.h: Mention FreeBSD in comments.
18034 2012-03-04  Bruno Haible  <bruno@clisp.org>
18036         sqrt* tests: More tests.
18037         * tests/test-sqrt.h: New file.
18038         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
18039         (main): Invoke test_function.
18040         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
18041         (main): Invoke test_function.
18042         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
18043         (main): Invoke test_function.
18044         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
18045         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
18046         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
18047         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
18048         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
18049         (Depends-on): Add 'float'.
18050         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
18052 2012-03-04  Bruno Haible  <bruno@clisp.org>
18054         remainder* tests: More tests.
18055         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
18056         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
18057         (main): Invoke test_function.
18058         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
18059         (main): Invoke test_function.
18060         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
18061         (main): Invoke test_function.
18062         * modules/remainder-tests (Files): Add tests/test-remainder.h,
18063         tests/randomd.c.
18064         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
18065         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
18066         tests/randomf.c.
18067         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
18068         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
18069         tests/randoml.c.
18070         (Depends-on): Add 'float'.
18071         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
18073 2012-03-04  Bruno Haible  <bruno@clisp.org>
18075         remainder, remainderf, remainderl: Fix computation for large quotients.
18076         * lib/remainder.c: Completely rewritten.
18077         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
18078         USE_FLOAT.
18079         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
18080         USE_LONG_DOUBLE.
18081         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
18082         isnand, isinf. Remove round, fma.
18083         * modules/remainderf (Files): Add lib/remainder.c.
18084         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
18085         Remove roundf, fmaf.
18086         * modules/remainderl (Files): Add lib/remainder.c.
18087         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
18088         isinf. Remove roundl, fmal.
18089         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
18090         REMAINDER_LIBM.
18091         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
18092         REMAINDERF_LIBM.
18093         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
18094         REMAINDERL_LIBM.
18096 2012-03-04  Bruno Haible  <bruno@clisp.org>
18098         fmod* tests: More tests.
18099         * tests/test-fmod.h (my_ldexp): New function.
18100         (test_function): Reduce amount of random numbers to test. Add tests
18101         of very large quotients x / y.
18102         * tests/test-fmod.c (MAX_EXP): New macro.
18103         * tests/test-fmodf.c (MAX_EXP): Likewise.
18104         * tests/test-fmodl.c (MAX_EXP): Likewise.
18106 2012-03-04  Bruno Haible  <bruno@clisp.org>
18108         fmod, fmodl: Fix computation for large quotients x / y.
18109         * lib/fmod.c: Completely rewritten.
18110         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
18111         USE_LONG_DOUBLE.
18112         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
18113         isnand. Remove fma.
18114         * modules/fmodl (Files): Add lib/fmod.c.
18115         (Depends-on): Add float, isfinite, signbit, fabsl,
18116         frexpl, ldexpl, isnanl. Remove fma.
18117         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
18118         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
18120 2012-03-03  Bruno Haible  <bruno@clisp.org>
18122         fmod* tests: More tests.
18123         * tests/test-fmod.h: New file.
18124         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
18125         (main): Invoke test_function.
18126         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
18127         (main): Invoke test_function.
18128         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
18129         (main): Invoke test_function.
18130         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
18131         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
18132         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
18133         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
18134         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
18135         (Depends-on): Add 'float'.
18136         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
18138 2012-03-03  Bruno Haible  <bruno@clisp.org>
18140         rint* tests: More tests.
18141         * tests/test-rint.h: New file, partially extracted from
18142         tests/test-rintl.c.
18143         * tests/test-rint.c: Include test-rint.h.
18144         (main): Invoke test_function.
18145         * tests/test-rintf.c: Include test-rint.h.
18146         (main): Invoke test_function.
18147         * tests/test-rintl.c: Include test-rint.h.
18148         (main): Invoke test_function.
18149         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
18150         (Makefile.am): Add randomd.c to test_rint_SOURCES.
18151         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
18152         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
18153         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
18154         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
18156 2012-03-03  Bruno Haible  <bruno@clisp.org>
18158         modf* tests: More tests.
18159         * tests/test-modf.h: New file.
18160         * tests/test-modf.c: Include <float.h> and test-modf.h.
18161         (main): Invoke test_function.
18162         * tests/test-modff.c: Include <float.h> and test-modf.h.
18163         (main): Invoke test_function.
18164         * tests/test-modfl.c: Include <float.h> and test-modf.h.
18165         (main): Invoke test_function.
18166         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
18167         (Makefile.am): Add randomd.c to test_modf_SOURCES.
18168         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
18169         (Makefile.am): Add randomf.c to test_modff_SOURCES.
18170         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
18171         (Depends-on): Add 'float'.
18172         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
18174 2012-03-03  Bruno Haible  <bruno@clisp.org>
18176         fabs* tests: More tests.
18177         * tests/test-fabs.h: New file, partially extracted from
18178         tests/test-fabsl.c.
18179         * tests/test-fabs.c (RANDOM): New macro.
18180         * tests/test-fabsf.c (RANDOM): New macro.
18181         * tests/test-fabsl.c (RANDOM): New macro.
18182         * modules/fabs-tests (Files): Add tests/randomd.c.
18183         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
18184         * modules/fabsf-tests (Files): Add tests/randomf.c.
18185         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
18186         * modules/fabsl-tests (Files): Add tests/randoml.c.
18187         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
18189 2012-03-03  Bruno Haible  <bruno@clisp.org>
18191         ldexp* tests: More tests.
18192         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
18193         * tests/test-ldexp.c (RANDOM): New macro.
18194         * tests/test-ldexpf.c (RANDOM): New macro.
18195         * tests/test-ldexpl.c (RANDOM): New macro.
18196         * modules/ldexp-tests (Files): Add tests/randomd.c.
18197         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
18198         * modules/ldexpf-tests (Files): Add tests/randomf.c.
18199         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
18200         * modules/ldexpl-tests (Files): Add tests/randoml.c.
18201         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
18203 2012-03-03  Bruno Haible  <bruno@clisp.org>
18205         frexp* tests: More tests.
18206         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
18207         * tests/test-frexp.c (RANDOM): New macro.
18208         * tests/test-frexpf.c (RANDOM): New macro.
18209         * tests/test-frexpl.c (RANDOM): New macro.
18210         * modules/frexp-tests (Files): Add tests/randomd.c.
18211         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
18212         * modules/frexpf-tests (Files): Add tests/randomf.c.
18213         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
18214         * modules/frexpl-tests (Files): Add tests/randoml.c.
18215         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
18217 2012-03-03  Bruno Haible  <bruno@clisp.org>
18219         Support for pseudo-random numbers in tests.
18220         * tests/randomf.c: New file.
18221         * tests/randomd.c: New file.
18222         * tests/randoml.c: New file.
18223         * tests/macros.h (randomf, randomd, randoml): New declarations.
18225 2012-03-03  Bruno Haible  <bruno@clisp.org>
18227         frexp* tests: Refactor.
18228         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
18229         * tests/test-frexp.c: Include and use it.
18230         * tests/test-frexpf.c: Likewise.
18231         * tests/test-frexpl.c: Likewise.
18232         * modules/frexp-tests (Files): Add tests/test-frexp.h.
18233         * modules/frexpf-tests (Files): Likewise.
18234         * modules/frexpl-tests (Files): Likewise.
18236 2012-03-02  Jim Meyering  <meyering@redhat.com>
18238         maint: don't specify XZ_OPT=-9ev in dist-related rule
18239         Using xz's -9 option is warranted only if you have a very large
18240         tarball (see xz's documentation for the sizes vs. presets), and
18241         requires 64MiB of memory at decompression time.
18242         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
18243         Automake's default of just "-e" is fine.  Override on a
18244         per-package basis by setting XZ_OPT e.g., in cfg.mk.
18246 2012-03-01  Eric Blake  <eblake@redhat.com>
18248         maint.mk: allow announcement for non-gnulib project
18249         * maint.mk (announcement): Skip gnulib version if not used.
18251 2012-03-01  Jim Meyering  <meyering@redhat.com>
18253         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
18254         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
18255         envvar settings cannot interfere.  Otherwise, setting envvars like
18256         prohibit=foo require=bar, etc. would cause spurious test failures.
18258 2012-03-01  Eric Blake  <eblake@redhat.com>
18260         maint.mk: add per-line exclusions to prohibitions
18261         * maint.mk (_sc_search_regexp): Add $exclude parameter.
18262         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
18263         (sc_const_long_option): Use it.
18265 2012-03-01  Bruno Haible  <bruno@clisp.org>
18267         Tests for module 'expl-ieee'.
18268         * modules/expl-ieee-tests: New file.
18269         * tests/test-expl-ieee.c: New file.
18271         New module 'expl-ieee'.
18272         * modules/expl-ieee: New file.
18274         Tests for module 'exp-ieee'.
18275         * modules/exp-ieee-tests: New file.
18276         * tests/test-exp-ieee.c: New file.
18278         New module 'exp-ieee'.
18279         * modules/exp-ieee: New file.
18281         Tests for module 'expf-ieee'.
18282         * modules/expf-ieee-tests: New file.
18283         * tests/test-expf-ieee.c: New file.
18284         * tests/test-exp-ieee.h: New file.
18286         New module 'expf-ieee'.
18287         * modules/expf-ieee: New file.
18289 2012-02-29  Bruno Haible  <bruno@clisp.org>
18291         cbrtl-ieee: Work around test failure on IRIX 6.5.
18292         * m4/cbrtl-ieee.m4: New file.
18293         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
18294         test whether cbrtl works with a minus zero argument. Replace it if not.
18295         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
18296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
18297         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
18298         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
18299         (Depends-on): Update conditions.
18300         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
18301         m4/signbit.m4.
18302         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
18303         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
18304         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
18306         Tests for module 'cbrtl-ieee'.
18307         * modules/cbrtl-ieee-tests: New file.
18308         * tests/test-cbrtl-ieee.c: New file.
18310         New module 'cbrtl-ieee'.
18311         * modules/cbrtl-ieee: New file.
18313         Tests for module 'cbrt-ieee'.
18314         * modules/cbrt-ieee-tests: New file.
18315         * tests/test-cbrt-ieee.c: New file.
18317         New module 'cbrt-ieee'.
18318         * modules/cbrt-ieee: New file.
18320         Tests for module 'cbrtf-ieee'.
18321         * modules/cbrtf-ieee-tests: New file.
18322         * tests/test-cbrtf-ieee.c: New file.
18323         * tests/test-cbrt-ieee.h: New file.
18325         New module 'cbrtf-ieee'.
18326         * modules/cbrtf-ieee: New file.
18328 2012-02-29  Bruno Haible  <bruno@clisp.org>
18330         cbrtf: Work around bug in IRIX 6.5 system function.
18331         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
18332         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
18333         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
18334         work.
18335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
18336         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
18337         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
18338         (Depends-on): Update conditions.
18339         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
18341 2012-02-29  Bruno Haible  <bruno@clisp.org>
18343         Tests for module 'cbrtl'.
18344         * modules/cbrtl-tests: New file.
18345         * tests/test-cbrtl.c: New file.
18347         New module 'cbrtl'.
18348         * lib/math.in.h (cbrtl): New declaration.
18349         * lib/cbrtl.c: New file.
18350         * m4/cbrtl.m4: New file.
18351         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
18352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
18353         HAVE_DECL_CBRTL.
18354         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
18355         HAVE_DECL_CBRTL.
18356         * modules/cbrtl: New file.
18357         * tests/test-math-c++.cc: Check the declaration of cbrtl.
18358         * doc/posix-functions/cbrtl.texi: Mention the new module.
18360 2012-02-29  Bruno Haible  <bruno@clisp.org>
18362         Tests for module 'cbrtf'.
18363         * modules/cbrtf-tests: New file.
18364         * tests/test-cbrtf.c: New file.
18366         New module 'cbrtf'.
18367         * lib/math.in.h (cbrtf): New declaration.
18368         * lib/cbrtf.c: New file.
18369         * m4/cbrtf.m4: New file.
18370         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
18371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
18372         HAVE_DECL_CBRTF.
18373         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
18374         HAVE_DECL_CBRTF.
18375         * modules/cbrtf: New file.
18376         * tests/test-math-c++.cc: Check the declaration of cbrtf.
18377         * doc/posix-functions/cbrtf.texi: Mention the new module.
18379 2012-02-29  Bruno Haible  <bruno@clisp.org>
18381         cbrt: Provide replacement on MSVC and Minix.
18382         * lib/math.in.h (cbrt): New declaration.
18383         * lib/cbrt.c: New file.
18384         * m4/cbrt.m4: New file.
18385         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
18386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
18387         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
18388         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
18389         (Depends-on): Add dependencies.
18390         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
18391         * tests/test-math-c++.cc: Check the declaration of cbrt.
18392         * doc/posix-functions/cbrt.texi: Mention that the module provides a
18393         replacement.
18395 2012-02-29  Bruno Haible  <bruno@clisp.org>
18397         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
18398         * m4/hypotl-ieee.m4: New file.
18399         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
18400         test whether hypotl works with mixed NaN and Infinity arguments.
18401         Replace it if not.
18402         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
18403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
18404         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
18405         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
18406         (Depends-on): Update conditions.
18407         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
18408         (Depends-on): Add hypot-ieee.
18409         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
18410         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
18412         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
18413         * m4/hypotf-ieee.m4: New file.
18414         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
18415         test whether hypotf works with mixed NaN and Infinity arguments.
18416         Replace it if not.
18417         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
18418         (Depends-on): Add hypot-ieee.
18419         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
18420         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
18422         hypot-ieee: Work around test failure on OSF/1 and native Windows.
18423         * lib/math.in.h (hypot): New declaration.
18424         * lib/hypot.c: New file.
18425         * m4/hypot-ieee.m4: New file.
18426         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
18427         whether hypot works with mixed NaN and Infinity arguments. Replace it
18428         if not.
18429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
18430         REPLACE_HYPOT.
18431         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
18432         * modules/hypot (Files): Add lib/hypot.c.
18433         (Depends-on): Add dependencies.
18434         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
18435         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
18436         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
18437         * tests/test-math-c++.cc: Check the declaration of hypot.
18438         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
18440         Tests for module 'hypotl-ieee'.
18441         * modules/hypotl-ieee-tests: New file.
18442         * tests/test-hypotl-ieee.c: New file.
18444         New module 'hypotl-ieee'.
18445         * modules/hypotl-ieee: New file.
18447         Tests for module 'hypot-ieee'.
18448         * modules/hypot-ieee-tests: New file.
18449         * tests/test-hypot-ieee.c: New file.
18451         New module 'hypot-ieee'.
18452         * modules/hypot-ieee: New file.
18454         Tests for module 'hypotf-ieee'.
18455         * modules/hypotf-ieee-tests: New file.
18456         * tests/test-hypotf-ieee.c: New file.
18457         * tests/test-hypot-ieee.h: New file.
18459         New module 'hypotf-ieee'.
18460         * modules/hypotf-ieee: New file.
18462 2012-02-29  Bruno Haible  <bruno@clisp.org>
18464         Remove unused variables.
18465         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
18466         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18467         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18468         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
18470 2012-02-29  Eric Blake  <eblake@redhat.com>
18472         termios: fix pid_t always, not just for tcgetsid
18473         * doc/posix-headers/termios.texi (termios.h): Mention problem.
18474         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
18475         just when building tcgetsid.
18477 2012-02-29  Bruno Haible  <bruno@clisp.org>
18479         Tests for module 'hypotl'.
18480         * modules/hypotl-tests: New file.
18481         * tests/test-hypotl.c: New file.
18483         New module 'hypotl'.
18484         * lib/math.in.h (hypotl): New declaration.
18485         * lib/hypotl.c: New file.
18486         * m4/hypotl.m4: New file.
18487         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
18488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
18489         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
18490         * modules/hypotl: New file.
18491         * tests/test-math-c++.cc: Check the hypotl declaration.
18492         * doc/posix-functions/hypotl.texi: Mention the new module.
18494 2012-02-29  Eric Blake  <eblake@redhat.com>
18496         tcgetsid: fix cygwin header bug
18497         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
18499         docs: update cygwin progress
18500         * doc/posix-functions/llround.texi (llround): Added in cygwin
18501         1.7.8.
18502         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
18503         * doc/glibc-functions/program_invocation_name.texi
18504         (program_invocation_name): Likewise.
18505         * doc/glibc-functions/program_invocation_short_name.texi
18506         (program_invocation_short_name): Likewise.
18507         * doc/glibc-functions/madvise.texi (madvise): Likewise.
18508         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
18509         Likewise.
18510         * doc/posix-functions/pthread_spin_destroy.texi
18511         (pthread_spin_destroy): Added in cygwin 1.7.10.
18512         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
18513         Likewise.
18514         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
18515         Likewise.
18516         * doc/posix-functions/pthread_spin_trylock.texi
18517         (pthread_spin_trylock): Likewise.
18518         * doc/posix-functions/pthread_spin_unlock.texi
18519         (pthread_spin_unlock): Likewise.
18520         * doc/posix-functions/pthread_setschedprio.texi
18521         (pthread_setschedprio): Likewise.
18522         * doc/posix-functions/pthread_attr_getstack.texi
18523         (pthread_attr_getstack): Likewise.
18524         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
18525         (pthread_attr_getstackaddr): Likewise.
18526         * doc/glibc-functions/pthread_getattr_np.texi
18527         (pthread_getattr_np): Likewise.
18528         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
18529         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
18530         * doc/posix-functions/clock_settime.texi (clock_settime):
18531         Likewise.
18532         * doc/posix-functions/pthread_attr_getguardsize.texi
18533         (pthread_attr_getguardsize): Likewise.
18534         * doc/posix-functions/pthread_attr_setguardsize.texi
18535         (pthread_attr_setguardsize): Likewise.
18536         * doc/posix-functions/pthread_attr_setstack.texi
18537         (pthread_attr_setstack): Likewise.
18538         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
18539         (pthread_attr_setstackaddr): Likewise.
18540         * doc/posix-functions/clock_getcpuclockid.texi
18541         (clock_getcpuclockid): Likewise.
18542         * doc/posix-functions/pthread_getcpuclockid.texi
18543         (pthread_getcpuclockid): Likewise.
18544         * doc/glibc-functions/error.texi (error): Likewise.
18545         * doc/glibc-functions/error_at_line.texi (error_at_line):
18546         Likewise.
18547         * doc/glibc-functions/error_message_count.texi
18548         (error_message_count): Likewise.
18549         * doc/glibc-functions/error_one_per_line.texi
18550         (error_one_per_line): Likewise.
18551         * doc/glibc-functions/error_print_progname.texi
18552         (error_print_progname): Likewise.
18553         * doc/posix-functions/pthread_condattr_getclock.texi
18554         (pthread_condattr_getclock): Likewise.
18555         * doc/posix-functions/pthread_condattr_setclock.texi
18556         (pthread_condattr_setclock): Likewise.
18557         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
18558         Likewise.
18559         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
18560         * doc/glibc-functions/getpt.texi (getpt): Likewise.
18561         * doc/glibc-functions/get_current_dir_name.texi
18562         (get_current_dir_name): Likewise.
18563         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
18564         Likewise.
18565         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
18566         wrong return type.
18567         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
18568         1.7.11.
18570 2012-02-29  Bruno Haible  <bruno@clisp.org>
18572         Tests for module 'hypotf'.
18573         * modules/hypotf-tests: New file.
18574         * tests/test-hypotf.c: New file.
18576         New module 'hypotf'.
18577         * lib/math.in.h (hypotf): New declaration.
18578         * lib/hypotf.c: New file.
18579         * m4/hypotf.m4: New file.
18580         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
18581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
18582         REPLACE_HYPOTF.
18583         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
18584         REPLACE_HYPOTF.
18585         * modules/hypotf: New file.
18586         * tests/test-math-c++.cc: Check the hypotf declaration.
18587         * doc/posix-functions/hypotf.texi: Mention the new module.
18589         hypot: Prepare for hypotf module.
18590         * m4/hypot.m4: New file.
18591         * modules/hypot (Files): Add m4/hypot.m4.
18592         (configure.ac): Invoke gl_FUNC_HYPOT.
18594 2012-02-29  Bruno Haible  <bruno@clisp.org>
18596         hypot tests: More tests.
18597         * tests/test-hypot.c: Include <float.h>.
18598         (main): Add tests about overflow and underflow.
18600 2012-02-29  Bruno Haible  <bruno@clisp.org>
18602         math code: Add comments.
18603         * lib/acosl.c: Add comment about related glibc source files.
18604         * lib/asinl.c: Likewise.
18605         * lib/atanl.c: Likewise.
18606         * lib/expl.c: Likewise.
18607         * lib/logl.c: Likewise.
18608         * lib/sincosl.c: Likewise.
18609         * lib/sinl.c: Likewise.
18610         * lib/tanl.c: Likewise.
18611         * lib/trigl.c: Likewise.
18612         * lib/cosl.c: Likewise. Fix comments.
18614 2012-02-28  Bruno Haible  <bruno@clisp.org>
18616         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
18617         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
18618         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
18619         HUGE_VALL are defined.
18620         (numeric_equald): Renamed from numeric_equal.
18621         (numeric_equalf, numeric_equall): New functions.
18622         (main): Check also HUGE_VALF, HUGE_VALL.
18623         * modules/math-tests (Files): Add tests/macros.h.
18624         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
18625         HUGE_VALL.
18627 2012-02-28  Bruno Haible  <bruno@clisp.org>
18629         doc: Move ISO C11 feature notes into POSIX chapters.
18630         * doc/posix-functions/aligned_alloc.texi: Renamed from
18631         doc/glibc-functions/aligned_alloc.texi.
18632         * doc/posix-functions/quick_exit.texi: Renamed from
18633         doc/glibc-functions/quick_exit.texi.
18634         * doc/posix-headers/uchar.texi: Renamed from
18635         doc/glibc-headers/uchar.texi.
18636         * doc/posix-functions/c16rtomb.texi: Renamed from
18637         doc/glibc-functions/c16rtomb.texi.
18638         * doc/posix-functions/c32rtomb.texi: Renamed from
18639         doc/glibc-functions/c32rtomb.texi.
18640         * doc/posix-functions/mbrtoc16.texi: Renamed from
18641         doc/glibc-functions/mbrtoc16.texi.
18642         * doc/posix-functions/mbrtoc32.texi: Renamed from
18643         doc/glibc-functions/mbrtoc32.texi.
18644         * doc/gnulib.texi: Update.
18645         (Glibc uchar.h): Remove section.
18646         Suggested by Eric Blake.
18648 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
18650         stdnoreturn: port to MSVC better
18651         MSVC standard headers use __declspec(noreturn), so #define noreturn
18652         to empty on that platform.  Reported by Bruno Haible in
18653         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
18654         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
18655         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
18657 2012-02-28  Bruno Haible  <bruno@clisp.org>
18659         doc: Mention new glibc headers and functions.
18660         * doc/glibc-headers/uchar.texi: New file.
18661         * doc/glibc-functions/aligned_alloc.texi: New file.
18662         * doc/glibc-functions/c16rtomb.texi: New file.
18663         * doc/glibc-functions/c32rtomb.texi: New file.
18664         * doc/glibc-functions/clock_adjtime.texi: New file.
18665         * doc/glibc-functions/fanotify_init.texi: New file.
18666         * doc/glibc-functions/fanotify_mark.texi: New file.
18667         * doc/glibc-functions/inet6_opt_append.texi: New file.
18668         * doc/glibc-functions/inet6_opt_find.texi: New file.
18669         * doc/glibc-functions/inet6_opt_finish.texi: New file.
18670         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
18671         * doc/glibc-functions/inet6_opt_init.texi: New file.
18672         * doc/glibc-functions/inet6_opt_next.texi: New file.
18673         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
18674         * doc/glibc-functions/inet6_rth_add.texi: New file.
18675         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
18676         * doc/glibc-functions/inet6_rth_init.texi: New file.
18677         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
18678         * doc/glibc-functions/inet6_rth_segments.texi: New file.
18679         * doc/glibc-functions/inet6_rth_space.texi: New file.
18680         * doc/glibc-functions/login.texi: New file.
18681         * doc/glibc-functions/mbrtoc16.texi: New file.
18682         * doc/glibc-functions/mbrtoc32.texi: New file.
18683         * doc/glibc-functions/name_to_handle_at.texi: New file.
18684         * doc/glibc-functions/ntp_gettimex.texi: New file.
18685         * doc/glibc-functions/open_by_handle_at.texi: New file.
18686         * doc/glibc-functions/prlimit.texi: New file.
18687         * doc/glibc-functions/process_vm_readv.texi: New file.
18688         * doc/glibc-functions/process_vm_writev.texi: New file.
18689         * doc/glibc-functions/recvmmsg.texi: New file.
18690         * doc/glibc-functions/scandirat.texi: New file.
18691         * doc/glibc-functions/sendmmsg.texi: New file.
18692         * doc/glibc-functions/setns.texi: New file.
18693         * doc/glibc-functions/timespec_get.texi: New file.
18694         * doc/gnulib.texi: Include them.
18695         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
18696         sections.
18697         Reported by Eric Blake.
18699 2012-02-28  Bruno Haible  <bruno@clisp.org>
18701         Avoid compilation errors with MSVC option -fp:strict.
18702         * lib/floor.c: Use MSVC specific pragma fenv_access.
18703         * lib/ceil.c: Likewise.
18704         * lib/trunc.c: Likewise.
18705         * lib/round.c: Likewise.
18706         * lib/rint.c: Likewise.
18707         * lib/fma.c: Likewise.
18708         * lib/integer_length.c: Likewise.
18709         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18710         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18711         * tests/test-floor2.c: Likewise.
18712         * tests/test-floorf2.c: Likewise.
18713         * tests/test-ceil2.c: Likewise.
18714         * tests/test-ceilf2.c: Likewise.
18715         * tests/test-trunc2.c: Likewise.
18716         * tests/test-truncf2.c: Likewise.
18717         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
18719 2012-02-27  Bruno Haible  <bruno@clisp.org>
18721         Tests for module 'sqrtl-ieee'.
18722         * modules/sqrtl-ieee-tests: New file.
18723         * tests/test-sqrtl-ieee.c: New file.
18725         New module 'sqrtl-ieee'.
18726         * modules/sqrtl-ieee: New file.
18728         Tests for module 'sqrt-ieee'.
18729         * modules/sqrt-ieee-tests: New file.
18730         * tests/test-sqrt-ieee.c: New file.
18732         New module 'sqrt-ieee'.
18733         * modules/sqrt-ieee: New file.
18735         Tests for module 'sqrtf-ieee'.
18736         * modules/sqrtf-ieee-tests: New file.
18737         * tests/test-sqrtf-ieee.c: New file.
18738         * tests/test-sqrt-ieee.h: New file.
18740         New module 'sqrtf-ieee'.
18741         * modules/sqrtf-ieee: New file.
18743 2012-02-27  Bruno Haible  <bruno@clisp.org>
18745         remainderl-ieee: Work around test failure on OSF/1.
18746         * m4/remainderl-ieee.m4: New file.
18747         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
18748         present, test whether remainderl works with a zero second argument.
18749         Replace it if not.
18750         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
18751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
18752         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
18753         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
18754         (Depends-on): Update conditions.
18755         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
18756         (Depends-on): Add remainder-ieee.
18757         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
18758         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
18759         module.
18761         remainderf-ieee: Work around test failure on OSF/1.
18762         * m4/remainderf-ieee.m4: New file.
18763         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
18764         present, test whether remainderf works with a zero second argument.
18765         Replace it if not.
18766         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
18767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
18768         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
18769         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
18770         (Depends-on): Update conditions.
18771         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
18772         (Depends-on): Add remainder-ieee.
18773         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
18774         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
18775         module.
18777         remainder-ieee: Work around test failure on OSF/1.
18778         * m4/remainder-ieee.m4: New file.
18779         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
18780         present, test whether remainder works with a zero second argument.
18781         Replace it if not.
18782         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
18783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
18784         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
18785         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
18786         (Depends-on): Update dependencies.
18787         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
18788         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
18789         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
18791         Tests for module 'remainderl-ieee'.
18792         * modules/remainderl-ieee-tests: New file.
18793         * tests/test-remainderl-ieee.c: New file.
18795         New module 'remainderl-ieee'.
18796         * modules/remainderl-ieee: New file.
18798         Tests for module 'remainder-ieee'.
18799         * modules/remainder-ieee-tests: New file.
18800         * tests/test-remainder-ieee.c: New file.
18802         New module 'remainder-ieee'.
18803         * modules/remainder-ieee: New file.
18805         Tests for module 'remainderf-ieee'.
18806         * modules/remainderf-ieee-tests: New file.
18807         * tests/test-remainderf-ieee.c: New file.
18808         * tests/test-remainder-ieee.h: New file.
18810         New module 'remainderf-ieee'.
18811         * modules/remainderf-ieee: New file.
18813 2012-02-27  Bruno Haible  <bruno@clisp.org>
18815         modff, modfl: Fix configure syntax error.
18816         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
18817         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18819 2012-02-27  Bruno Haible  <bruno@clisp.org>
18821         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
18822         * m4/fmodl-ieee.m4: New file.
18823         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
18824         whether fmodl works with zero arguments. Replace it if not.
18825         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
18826         (Depends-on): Add fmod-ieee.
18827         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
18828         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
18830         fmodf-ieee: Work around test failure on OSF/1.
18831         * m4/fmodf-ieee.m4: New file.
18832         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
18833         whether fmodf works with zero arguments. Replace it if not.
18834         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
18835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
18836         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
18837         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
18838         (Depends-on): Update dependencies.
18839         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
18840         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
18841         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
18843         fmodf-ieee: Work around test failure on MSVC 9.
18844         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
18845         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
18847         fmod-ieee: Work around test failures on OSF/1, mingw.
18848         * m4/fmod-ieee.m4: New file.
18849         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
18850         whether fmod works with zero arguments. Replace it if not.
18851         * lib/math.in.h (fmod): New declaration.
18852         * lib/fmod.c: New file.
18853         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
18854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
18855         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
18856         * modules/fmod (Files): Add lib/fmod.c.
18857         (Depends-on): Add math, isinf, trunc, fma.
18858         (configure.ac): Arrange to compile lib/fmod.c if needed.
18859         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
18860         m4/signbit.m4.
18861         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
18862         * tests/test-math-c++.cc: Check the declaration of fmod.
18863         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
18865         fmodl-ieee: Fix test failures.
18866         * lib/fmodl.c (fmodl): Treat Inf specially.
18867         * modules/fmodl (Depends-on): Add isinf.
18869         Tests for module 'fmodl-ieee'.
18870         * modules/fmodl-ieee-tests: New file.
18871         * tests/test-fmodl-ieee.c: New file.
18873         New module 'fmodl-ieee'.
18874         * modules/fmodl-ieee: New file.
18876         Tests for module 'fmod-ieee'.
18877         * modules/fmod-ieee-tests: New file.
18878         * tests/test-fmod-ieee.c: New file.
18880         New module 'fmod-ieee'.
18881         * modules/fmod-ieee: New file.
18883         Tests for module 'fmodf-ieee'.
18884         * modules/fmodf-ieee-tests: New file.
18885         * tests/test-fmodf-ieee.c: New file.
18886         * tests/test-fmod-ieee.h: New file.
18888         New module 'fmodf-ieee'.
18889         * modules/fmodf-ieee: New file.
18891 2012-02-27  Bruno Haible  <bruno@clisp.org>
18893         Tests for module 'rintl-ieee'.
18894         * modules/rintl-ieee-tests: New file.
18895         * tests/test-rintl-ieee.c: New file.
18897         New module 'rintl-ieee'.
18898         * modules/rintl-ieee: New file.
18900         Tests for module 'rint-ieee'.
18901         * modules/rint-ieee-tests: New file.
18902         * tests/test-rint-ieee.c: New file.
18904         New module 'rint-ieee'.
18905         * modules/rint-ieee: New file.
18907         Tests for module 'rintf-ieee'.
18908         * modules/rintf-ieee-tests: New file.
18909         * tests/test-rintf-ieee.c: New file.
18910         * tests/test-rint-ieee.h: New file.
18912         New module 'rintf-ieee'.
18913         * modules/rintf-ieee: New file.
18915 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
18917         regex: re_search etc. should return -2 when memory exhausted
18918         This bug was uncovered when testing 'grep'.  Without the fix,
18919         re_search and friends return -1 when memory is exhausted, but -1
18920         means no match, and this causes grep to falsely report no-match
18921         instead of memory-exhaustion.  See
18922         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
18923         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
18924         trouble; this can occur if re_search_internal ran out of memory.
18926 2012-02-26  Bruno Haible  <bruno@clisp.org>
18928         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
18929         * m4/modfl-ieee.m4: New file.
18930         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
18931         whether modfl works with Inf. Replace it if not.
18932         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
18933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
18934         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
18935         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
18936         (Depends-on): Update dependencies.
18937         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
18938         m4/signbit.m4.
18939         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
18940         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
18942         modfl-ieee: Fix dependencies.
18943         * modules/modfl-ieee (Depends-on): Add modf-ieee.
18945         modfl-ieee: Fix test failures.
18946         * lib/modfl.c (modfl): Treat NaN and Inf specially.
18947         * modules/modfl (Depends-on): Add isfinite, isinf.
18949         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
18950         * m4/modff-ieee.m4: New file.
18951         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
18952         whether modff works with NaN and Inf. Replace it if not.
18953         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
18954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
18955         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
18956         * modules/modff (configure.ac): Consider REPLACE_MODFF.
18957         (Depends-on): Update dependencies.
18958         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
18959         m4/signbit.m4.
18960         (Depends-on): Add modf-ieee.
18961         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
18962         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
18964         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
18965         * m4/modf-ieee.m4: New file.
18966         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
18967         whether modf works with NaN and Inf. Replace it if not.
18968         * lib/math.in.h (modf): New declaration.
18969         * lib/modf.c: New file.
18970         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
18971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
18972         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
18973         * modules/modf (Files): Add lib/modf.c.
18974         (Depends-on): Add math, isfinite, trunc, isinf.
18975         (configure.ac): Addrange to compile lib/modf.c if needed.
18976         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
18977         m4/signbit.m4.
18978         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
18979         * tests/test-math-c++.cc: Check the declaration of modf.
18980         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
18982         Tests for module 'modfl-ieee'.
18983         * modules/modfl-ieee-tests: New file.
18984         * tests/test-modfl-ieee.c: New file.
18986         New module 'modfl-ieee'.
18987         * modules/modfl-ieee: New file.
18989         Tests for module 'modf-ieee'.
18990         * modules/modf-ieee-tests: New file.
18991         * tests/test-modf-ieee.c: New file.
18993         New module 'modf-ieee'.
18994         * modules/modf-ieee: New file.
18996         Tests for module 'modff-ieee'.
18997         * modules/modff-ieee-tests: New file.
18998         * tests/test-modff-ieee.c: New file.
18999         * tests/test-modf-ieee.h: New file.
19001         New module 'modff-ieee'.
19002         * modules/modff-ieee: New file.
19004 2012-02-26  Bruno Haible  <bruno@clisp.org>
19006         Tests for module 'fabsl-ieee'.
19007         * modules/fabsl-ieee-tests: New file.
19008         * tests/test-fabsl-ieee.c: New file.
19010         New module 'fabsl-ieee'.
19011         * modules/fabsl-ieee: New file.
19013         Tests for module 'fabs-ieee'.
19014         * modules/fabs-ieee-tests: New file.
19015         * tests/test-fabs-ieee.c: New file.
19017         New module 'fabs-ieee'.
19018         * modules/fabs-ieee: New file.
19020         Tests for module 'fabsf-ieee'.
19021         * modules/fabsf-ieee-tests: New file.
19022         * tests/test-fabsf-ieee.c: New file.
19023         * tests/test-fabs-ieee.h: New file.
19025         New module 'fabsf-ieee'.
19026         * modules/fabsf-ieee: New file.
19028 2012-02-26  Bruno Haible  <bruno@clisp.org>
19030         Tests for module 'fmal-ieee'.
19031         * modules/fmal-ieee-tests: New file.
19032         * tests/test-fmal-ieee.c: New file.
19034         New module 'fmal-ieee'.
19035         * modules/fmal-ieee: New file.
19037         Tests for module 'fma-ieee'.
19038         * modules/fma-ieee-tests: New file.
19039         * tests/test-fma-ieee.c: New file.
19041         New module 'fma-ieee'.
19042         * modules/fma-ieee: New file.
19044         Tests for module 'fmaf-ieee'.
19045         * modules/fmaf-ieee-tests: New file.
19046         * tests/test-fmaf-ieee.c: New file.
19047         * tests/test-fma-ieee.h: New file.
19049         New module 'fmaf-ieee'.
19050         * modules/fmaf-ieee: New file.
19052 2012-02-26  Bruno Haible  <bruno@clisp.org>
19054         Tests for module 'ldexpl-ieee'.
19055         * modules/ldexpl-ieee-tests: New file.
19056         * tests/test-ldexpl-ieee.c: New file.
19058         New module 'ldexpl-ieee'.
19059         * modules/ldexpl-ieee: New file.
19061         Tests for module 'ldexp-ieee'.
19062         * modules/ldexp-ieee-tests: New file.
19063         * tests/test-ldexp-ieee.c: New file.
19065         New module 'ldexp-ieee'.
19066         * modules/ldexp-ieee: New file.
19068         Tests for module 'ldexpf-ieee'.
19069         * modules/ldexpf-ieee-tests: New file.
19070         * tests/test-ldexpf-ieee.c: New file.
19071         * tests/test-ldexp-ieee.h: New file.
19073         New module 'ldexpf-ieee'.
19074         * modules/ldexpf-ieee: New file.
19076 2012-02-26  Bruno Haible  <bruno@clisp.org>
19078         Refactor frexp*-ieee tests.
19079         * tests/test-frexp-ieee.h: New file.
19080         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
19081         (main): Just call test_function.
19082         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
19083         (main): Just call test_function.
19084         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
19085         (main): Just call test_function.
19086         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
19087         * modules/frexp-ieee-tests (Files): Likewise.
19088         * modules/frexpl-ieee-tests (Files): Likewise.
19090         Tests for module 'frexpl-ieee'.
19091         * modules/frexpl-ieee-tests: New file.
19092         * tests/test-frexpl-ieee.c: New file.
19094         New module 'frexpl-ieee'.
19095         * modules/frexpl-ieee: New file.
19097         Tests for module 'frexp-ieee'.
19098         * modules/frexp-ieee-tests: New file.
19099         * tests/test-frexp-ieee.c: New file.
19101         New module 'frexp-ieee'.
19102         * modules/frexp-ieee: New file.
19104         Tests for module 'frexpf-ieee'.
19105         * modules/frexpf-ieee-tests: New file.
19106         * tests/test-frexpf-ieee.c: New file.
19108         New module 'frexpf-ieee'.
19109         * modules/frexpf-ieee: New file.
19111 2012-02-26  Bruno Haible  <bruno@clisp.org>
19113         roundl-ieee tests: More tests.
19114         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19115         (main): Add tests for [MX] shaded specification in POSIX.
19116         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19117         (Depends-on): Add isnanl-nolibm.
19119         round-ieee tests: More tests.
19120         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19121         (main): Add tests for [MX] shaded specification in POSIX.
19122         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19123         (Depends-on): Add isnand-nolibm.
19125         roundf-ieee tests: More tests.
19126         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19127         (main): Add tests for [MX] shaded specification in POSIX.
19128         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19129         (Depends-on): Add isnanf-nolibm.
19131         truncl-ieee tests: More tests.
19132         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19133         (main): Add tests for [MX] shaded specification in POSIX.
19134         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19135         (Depends-on): Add isnanl-nolibm.
19137         trunc-ieee tests: More tests.
19138         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19139         (main): Add tests for [MX] shaded specification in POSIX.
19140         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19141         (Depends-on): Add isnand-nolibm.
19143         truncf-ieee tests: More tests.
19144         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19145         (main): Add tests for [MX] shaded specification in POSIX.
19146         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19147         (Depends-on): Add isnanf-nolibm.
19149         ceill-ieee tests: More tests.
19150         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19151         (main): Add tests for [MX] shaded specification in POSIX.
19152         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19153         (Depends-on): Add isnanl-nolibm.
19155         ceil-ieee tests: More tests.
19156         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19157         (main): Add tests for [MX] shaded specification in POSIX.
19158         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19159         (Depends-on): Add isnand-nolibm.
19161         ceilf-ieee tests: More tests.
19162         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19163         (main): Add tests for [MX] shaded specification in POSIX.
19164         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19165         (Depends-on): Add isnanf-nolibm.
19167         floorl-ieee tests: More tests.
19168         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19169         (main): Add tests for [MX] shaded specification in POSIX.
19170         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19171         (Depends-on): Add isnanl-nolibm.
19173         floor-ieee tests: More tests.
19174         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19175         (main): Add tests for [MX] shaded specification in POSIX.
19176         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19177         (Depends-on): Add isnand-nolibm.
19179         floorf-ieee tests: More tests.
19180         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19181         (main): Add tests for [MX] shaded specification in POSIX.
19182         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19183         (Depends-on): Add isnanf-nolibm.
19185 2012-02-26  Bruno Haible  <bruno@clisp.org>
19187         fpieee: More comments.
19188         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
19190 2012-02-25  Bruno Haible  <bruno@clisp.org>
19192         Tests for module 'log10l'.
19193         * modules/log10l-tests: New file.
19194         * tests/test-log10l.c: New file.
19195         * tests/test-math-c++.cc: Check the declaration of log10l.
19197         New module 'log10l'.
19198         * lib/math.in.h (log10l): New declaration.
19199         * lib/log10l.c: New file.
19200         * m4/log10l.m4: New file.
19201         * modules/log10l: New file.
19202         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
19203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
19204         HAVE_DECL_LOG10L.
19205         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
19206         HAVE_DECL_LOG10L.
19207         * doc/posix-functions/log10l.texi: Mention the new module.
19209 2012-02-25  Bruno Haible  <bruno@clisp.org>
19211         fmodl, remainder*: Avoid wrong results due to rounding errors.
19212         * lib/fmodl.c (fmodl): Correct the result if it is not within the
19213         expected bounds.
19214         * lib/remainderf.c (remainderf): Likewise.
19215         * lib/remainder.c (remainder): Likewise.
19216         * lib/remainderl.c (remainderl): Likewise.
19218 2012-02-25  Bruno Haible  <bruno@clisp.org>
19220         Tests for module 'remainderl'.
19221         * modules/remainderl-tests: New file.
19222         * tests/test-remainderl.c: New file.
19223         * tests/test-math-c++.cc: Check the declaration of remainderl.
19225         New module 'remainderl'.
19226         * lib/math.in.h (remainderl): New declaration.
19227         * lib/remainderl.c: New file.
19228         * m4/remainderl.m4: New file.
19229         * modules/remainderl: New file.
19230         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
19231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
19232         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
19233         HAVE_REMAINDERL.
19234         * doc/posix-functions/remainderl.texi: Mention the new module.
19236 2012-02-25  Bruno Haible  <bruno@clisp.org>
19238         Tests for module 'remainderf'.
19239         * modules/remainderf-tests: New file.
19240         * tests/test-remainderf.c: New file.
19241         * tests/test-math-c++.cc: Check the declaration of remainderf.
19243         New module 'remainderf'.
19244         * lib/math.in.h (remainderf): New declaration.
19245         * lib/remainderf.c: New file.
19246         * m4/remainderf.m4: New file.
19247         * modules/remainderf: New file.
19248         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
19249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
19250         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
19251         HAVE_REMAINDERF.
19252         * doc/posix-functions/remainderf.texi: Mention the new module.
19254 2012-02-25  Bruno Haible  <bruno@clisp.org>
19256         remainder: Support for MSVC.
19257         * lib/math.in.h (remainder): New declaration.
19258         * lib/remainder.c: New file.
19259         * m4/remainder.m4: New file.
19260         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
19261         (Depends-on): Add math, round, fma.
19262         (configure.ac): Use results of gl_FUNC_REMAINDER.
19263         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
19264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
19265         HAVE_DECL_REMAINDER.
19266         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
19267         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
19268         * tests/test-math-c++.cc: Check the declaration of remainder.
19269         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
19270         problems are fixed.
19272 2012-02-25  Bruno Haible  <bruno@clisp.org>
19274         Tests for module 'fmodl'.
19275         * modules/fmodl-tests: New file.
19276         * tests/test-fmodl.c: New file.
19277         * tests/test-math-c++.cc: Check the declaration of fmodl.
19279         New module 'fmodl'.
19280         * lib/math.in.h (fmodl): New declaration.
19281         * lib/fmodl.c: New file.
19282         * m4/fmodl.m4: New file.
19283         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
19284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
19285         REPLACE_FMODL.
19286         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
19287         REPLACE_FMODL.
19288         * modules/fmodl: New file.
19289         * doc/posix-functions/fmodl.texi: Mention the new module.
19291 2012-02-25  Bruno Haible  <bruno@clisp.org>
19293         Tests for module 'modfl'.
19294         * modules/modfl-tests: New file.
19295         * tests/test-modfl.c: New file.
19296         * tests/test-math-c++.cc: Check the declaration of modfl.
19298         New module 'modfl'.
19299         * lib/math.in.h (modfl): New declaration.
19300         * lib/modfl.c: New file.
19301         * m4/modfl.m4: New file.
19302         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
19303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
19304         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
19305         * modules/modfl: New file.
19306         * doc/posix-functions/modfl.texi: Mention the new module.
19308 2012-02-25  Bruno Haible  <bruno@clisp.org>
19310         Tests for module 'fabsl'.
19311         * modules/fabsl-tests: New file.
19312         * tests/test-fabsl.c: New file.
19313         * tests/test-math-c++.cc: Check the declaration of fabsl.
19315         New module 'fabsl'.
19316         * lib/math.in.h (fabsl): New declaration.
19317         * lib/fabsl.c: New file.
19318         * m4/fabsl.m4: New file.
19319         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
19320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
19321         REPLACE_FABSL.
19322         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
19323         REPLACE_FABSL.
19324         * modules/fabsl: New file.
19325         * doc/posix-functions/fabsl.texi: Mention the new module.
19327 2012-02-25  Bruno Haible  <bruno@clisp.org>
19329         fabs tests: More tests.
19330         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
19331         (zero): New variable.
19332         (main): Add tests for signed zero.
19333         * modules/fabs-tests (Files): Add tests/minus-zero.h.
19335         fabsf tests: More tests.
19336         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
19337         (zero): New variable.
19338         (main): Add tests for signed zero.
19339         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
19341 2012-02-24  Bruno Haible  <bruno@clisp.org>
19343         atanl: Provide function definition on MSVC.
19344         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
19345         function pointer.
19346         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
19348 2012-02-24  Bruno Haible  <bruno@clisp.org>
19350         acosl: Provide function definition on MSVC.
19351         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
19352         function pointer.
19353         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
19355 2012-02-24  Bruno Haible  <bruno@clisp.org>
19357         asinl: Provide function definition on MSVC.
19358         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
19359         function pointer.
19360         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
19362 2012-02-24  Bruno Haible  <bruno@clisp.org>
19364         tanl: Provide function definition on MSVC.
19365         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
19366         function pointer.
19367         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
19369 2012-02-24  Bruno Haible  <bruno@clisp.org>
19371         cosl: Provide function definition on MSVC.
19372         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
19373         function pointer.
19374         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
19376 2012-02-24  Bruno Haible  <bruno@clisp.org>
19378         sinl: Provide function definition on MSVC.
19379         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
19380         function pointer.
19381         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
19383 2012-02-24  Bruno Haible  <bruno@clisp.org>
19385         logl: Provide function definition on MSVC.
19386         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
19387         function pointer.
19388         * lib/math.in.h (logl): Undefine if it does not exist as a function.
19390 2012-02-24  Bruno Haible  <bruno@clisp.org>
19392         expl: Provide function definition on MSVC.
19393         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
19394         function pointer.
19395         * lib/math.in.h (expl): Undefine if it does not exist as a function.
19397 2012-02-24  Bruno Haible  <bruno@clisp.org>
19399         sqrtl: Provide function definition on MSVC.
19400         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
19401         a function pointer.
19402         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
19404 2012-02-24  Bruno Haible  <bruno@clisp.org>
19406         ceill: Provide function definition on MSVC.
19407         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
19408         used as a function pointer.
19409         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
19411 2012-02-24  Bruno Haible  <bruno@clisp.org>
19413         floorl: Provide function definition on MSVC.
19414         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
19415         used as a function pointer.
19416         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
19418 2012-02-24  Bruno Haible  <bruno@clisp.org>
19420         ceilf: Provide function definition on MSVC.
19421         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
19422         used as a function pointer.
19423         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
19425 2012-02-24  Bruno Haible  <bruno@clisp.org>
19427         floorf: Provide function definition on MSVC.
19428         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
19429         used as a function pointer.
19430         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
19432 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19434         stdnoreturn: new module
19435         This implements a replacement for C11's <stdnoreturn.h>.
19436         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
19437         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
19438         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
19439         * tests/test-stdnoreturn.c: New files.
19441 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
19443         regex: fix false multibyte matches in some regular expressions
19444         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
19445         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
19446         * lib/regex_internal.c (re_string_skip_chars):
19447         Fix miscomputation of remain_len that may cause incomplete
19448         multi-byte character and false match.
19450 2012-02-24  Jim Meyering  <meyering@redhat.com>
19452         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
19453         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
19454         uses with "==" *before* the call, e.g., 0 == strcmp (...)
19455         Remove now-unnecessary str''cmp obfuscation.
19456         Suggested by Akim Demaille.
19458 2012-02-24  Bruno Haible  <bruno@clisp.org>
19460         streq: Rename macro.
19461         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
19462         * NEWS: Mention the change.
19463         * lib/mbrtowc.c (mbrtowc): Update.
19464         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
19465         * lib/wcwidth.c (wcwidth): Update.
19466         Suggested by Akim Demaille and Jim Meyering.
19468 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19470         regex: fix typo in definition of MIN
19471         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
19472         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
19474 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19475             Bruno Haible  <bruno@clisp.org>
19477         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
19478         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
19479         entries into a stack-allocated buffer directly.
19480         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
19482 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19483             Bruno Haible  <bruno@clisp.org>
19485         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
19487          - There were several instances of this pattern:
19489              for (;;) {
19490                n = acl (f, GETACLCNT, 0, NULL);
19491                [ allocate an array A of size N ]
19492                if (acl (f, GETACL, n, a) == n)
19493                  break;
19494              }
19496            This loop might never terminate if some other process is constantly
19497            manipulating the file's ACL.  The loop should be rewritten to
19498            terminate.
19500          - The acl (... GETACLNT ...) call is merely an optimization; its value
19501            is merely a hint as to how big to make the array.  A better
19502            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
19503            and just guess a reasonably-big size, growing the size and trying
19504            again if it's not large enough.  This guarantees termination, and
19505            saves a system call.
19507         * lib/acl-internal.h: Include <limits.h>.
19508         (MIN, SIZE_MAX): New macros.
19509         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
19510         a stack-allocated buffer, and use malloc if it does not fit. Don't
19511         use GETACLCNT.
19512         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
19514 2012-02-19  Bruno Haible  <bruno@clisp.org>
19516         acl: Fix endless loop on Solaris with vxfs.
19517         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
19518         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
19519         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
19520         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
19521         * tests/test-sameacls.c (main)[Solaris]: Likewise.
19522         Reported by Bill Jones in
19523         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
19525 2012-02-19  Bruno Haible  <bruno@clisp.org>
19527         acl: Fix copy-acl test failure on Solaris 11 2011-11.
19528         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
19529         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
19530         that this function returns 0 in some more cases.
19532 2012-02-19  Bruno Haible  <bruno@clisp.org>
19534         acl: Update doc references.
19535         * doc/acl-resources.txt: Update links to Solaris documentation.
19537 2012-02-19  Bruno Haible  <bruno@clisp.org>
19539         Fix test failure in many locales on Solaris 11.
19540         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
19541         'tr' arguments.
19542         * tests/test-pipe-filter-ii1.c (main): Likewise.
19543         * build-aux/bootstrap (check_versions): Run 'tr' command with range
19544         expressions in the C locale.
19545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19546         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19548 2012-02-19  Bruno Haible  <bruno@clisp.org>
19550         gnulib-tool: Improve usage message.
19551         * gnulib-tool (func_usage): Move doc of --help and --version to the
19552         section "Operation modes".
19554 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
19556         README-release: make it easier to execute commands
19557         * top/README-release: break commands out on to separate lines.
19559 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
19561         GNUmakefile: simplify detection of unconfigured trees
19562         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
19563         whether the tree make is being run from is already configured or
19564         not.  Related simplifications.
19566 2012-02-13  Simon Josefsson  <simon@josefsson.org>
19568         * gnulib-tool (func_usage): Document --help and --version.
19570 2012-02-11  Jim Meyering  <meyering@redhat.com>
19572         bootstrap: don't exit 0 upon gnulib-tool failure
19573         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
19574         its exit status, not 0.
19576 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
19578         README-release: various improvements
19579         * top/README-release: Give a command to push changes for the
19580         release.  Add "distcheck" to list of other pre-release checks.
19581         Fix instance of "make stable" which should be "make TYPE".
19583 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19585         maint: replace FSF snail-mail addresses with URLs
19586         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
19587         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
19588         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
19589         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
19590         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
19591         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
19592         * lib/check-version.c, lib/check-version.h, lib/config.charset:
19593         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
19594         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
19595         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
19596         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
19597         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
19598         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
19599         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
19600         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
19601         * lib/glthread/thread.c, lib/glthread/thread.h:
19602         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
19603         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
19604         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
19605         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
19606         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
19607         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
19608         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
19609         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
19610         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
19611         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
19612         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
19613         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
19614         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
19615         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
19616         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
19617         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
19618         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
19619         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
19620         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
19621         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
19622         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
19623         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
19624         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
19625         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
19626         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
19627         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
19628         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
19629         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
19630         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
19631         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
19632         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
19633         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
19634         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
19635         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
19636         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
19637         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
19638         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
19639         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
19640         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
19641         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
19642         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
19643         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
19644         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
19645         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
19646         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
19647         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
19648         * tests/test-poll.c, tests/test-quotearg-simple.c:
19649         * tests/test-quotearg.c, tests/test-quotearg.h:
19650         * tests/test-round-ieee.c, tests/test-round1.c:
19651         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
19652         * tests/test-roundl-ieee.c, tests/test-roundl.c:
19653         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
19654         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
19655         * tests/test-strerror.c, tests/test-strerror_r.c:
19656         * tests/test-strsignal.c, tests/test-strverscmp.c:
19657         * tests/test-xmemdup0.c:
19658         Replace FSF snail mail addresses with URLs, as per GNU coding
19659         standards.  See glibc bug
19660         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
19662 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
19664         README-release: capitalize a word and split a line
19665         * top/README-release: Fix punctuation and spacing.
19667 2012-02-08  Akim Demaille  <demaille@gostai.com>
19669         fatal-signal: use C prototypes (with explicit void).
19670         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
19671         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
19673 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19675         regex: spelling fix
19676         * lib/regexec.c: spelling fix
19678         regex: rely on stdint.h for SIZE_MAX
19679         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
19681 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19683         regex: merge glibc changes
19685         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
19686         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
19687         (init_word_char): Work even if bitset words are not exactly 32 or
19688         64 bits wide.  Don't assume there are no padding bits.
19689         * lib/regex.c [_LIBC]: Do not include <config.h>.
19690         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
19691         and -Wtype-limits.
19692         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
19693         needless disagreement with glibc.  All uses changed.  Define it to
19694         1 only if _GNU_SOURCE, to match glibc.
19695         (_REG_RM_NAME): Remove; no longer needed, since the names in
19696         question are now all protected by __USE_GNU.
19697         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
19698         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
19699         * lib/regex_internal.h (MIN): New macro.
19701         2012-01-03 Ulrich Drepper <drepper@gmail.com>
19702         * lib/regcomp.c (init_word_char): Optimize regex a bit.
19704         2011-12-30 Jakub Jelinek <jakub@redhat.com>
19705         * lib/regex_internal.c (re_string_fetch_byte_case):
19706         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
19707         is miscompiled, and it turns out it is because of an incorrect
19708         attribute on re_string_fetch_byte_case.  Unlike
19709         re_string_peek_byte_case, this one is really not pure, it modifies
19710         memory (increments pstr->cur_idx), and with the pure attribute GCC
19711         assumed it doesn't and it cached the presumed value of
19712         regexp->cur_idx in a variable across the
19713          for (;; ++i)
19714            {
19715              if (i >= BRACKET_NAME_BUF_SIZE)
19716                return REG_EBRACK;
19717              if (token->type == OP_OPEN_CHAR_CLASS)
19718                ch = re_string_fetch_byte_case (regexp);
19719              else
19720                ch = re_string_fetch_byte (regexp);
19721              if (re_string_eoi(regexp))
19722                return REG_EBRACK;
19723              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
19724                break;
19725              elem->opr.name[i] = ch;
19726            }
19728         2011-11-29 Andreas Schwab <schwab@redhat.com>
19729         * lib/regcomp.c (build_equiv_class):
19730         Fix access after end of search string in regex matcher.
19732         2011-11-12 Ulrich Drepper <drepper@redhat.com>
19733         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
19735         2011-10-12 Ulrich Drepper <drepper@redhat.com>
19736         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
19738         2011-10-11 Ulrich Drepper <drepper@redhat.com>
19739         * lib/regcomp.c (parse_branch, parse_sub_exp):
19740         More regex memory leak fixes and tests.
19741         (parse_sub_exp, parse_bracket_exp):
19742         Fix memory leak for some invalid regular expressions.
19744         2011-05-28 Ulrich Drepper <drepper@gmail.com>
19745         * lib/regex_internal.c, lib/regexec.c:
19746         Fix unnecessary overallocation due to incomplete character.  When
19747         incomplete characters are found at the end of a string the code
19748         ran amok and allocated lots of memory.  Stricter limits are now in
19749         place.
19751         2011-05-20 Reuben Thomas <rrt@sc3d.org>
19752         * lib/regex.h: Update documentation.
19754         2011-05-16 Aharon Robbins <arnold@skeeve.com>
19755         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
19757         2010-05-05 Andreas Schwab <schwab@redhat.com>
19758         * lib/regexec.c (find_collation_sequence_value):
19759         Fix lookup of collation sequence value during regexp matching.
19761         2010-01-22 Ulrich Drepper <drepper@redhat.com>
19762         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
19764         2008-01-16 Ulrich Drepper <drepper@redhat.com>
19765         * lib/regex.h: Cleanup namespace.
19767         2007-11-26 Ulrich Drepper <drepper@redhat.com>
19768         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
19770         2007-08-26 Ulrich Drepper <drepper@redhat.com>
19771         * lib/regex_internal.h: Prevent some declarations and definitions
19772         to be seen when used in tests.
19774         2005-05-06 Ulrich Drepper <drepper@redhat.com>
19775         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
19776         __libc_lock_* macros if not _LIBC.
19777         (struct re_dfa_t): Add lock.
19779 2012-02-07  Eric Blake  <eblake@redhat.com>
19781         maint.mk: also prohibit lower-case @var@
19782         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
19783         lower case, like @top_srcdir@.
19785 2012-02-04  Eric Blake  <eblake@redhat.com>
19787         canonicalize: avoid uninitialized memory use
19788         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
19789         random '/' left in dest.
19790         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
19792 2012-02-04  Bruno Haible  <bruno@clisp.org>
19794         isatty: Fix test failure of ptsname_r on native Windows.
19795         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
19796         and don't set errno.
19797         (isatty): Test first whether fd is valid. Set errno when returning 0.
19799 2012-02-04  Bruno Haible  <bruno@clisp.org>
19801         spawn-pipe tests: Fix a NULL program name in a diagnostic.
19802         * tests/test-spawn-pipe-main.c: Include progname.h.
19803         (main): Invoke set_program_name.
19804         * modules/spawn-pipe-tests (Depends-on): Add progname.
19806         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
19807         * tests/test-nonblocking-socket-main.c: Include progname.h.
19808         (main): Invoke set_program_name.
19809         * modules/nonblocking-socket-tests (Depends-on): Add progname.
19811         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
19812         * tests/test-nonblocking-pipe-main.c: Include progname.h.
19813         (main): Invoke set_program_name.
19814         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
19816 2012-02-04  Eric Blake  <eblake@redhat.com>
19818         canonicalize-lgpl: fix // handling
19819         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
19821         canonicalize: fix // handling
19822         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
19823         /// to //, since only // is special.
19825 2012-02-04  Bruno Haible  <bruno@clisp.org>
19827         ioctl: Fix test failure on native Windows.
19828         * lib/ioctl.c: Include msvc-nothrow.h.
19829         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
19831 2012-02-04  Bruno Haible  <bruno@clisp.org>
19833         fsync: Avoid test failure on native Windows.
19834         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
19835         read-only.
19837 2012-02-04  Bruno Haible  <bruno@clisp.org>
19839         sys_select: Avoid syntax error on OpenBSD 5.0.
19840         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
19841         currently being included, just include the system's <sys/select.h>.
19843 2012-02-04  Bruno Haible  <bruno@clisp.org>
19845         sys_select: Avoid syntax error on OpenBSD 5.0.
19846         * lib/sys_select.in.h: Include <signal.h> only after the include_next
19847         <sys/select.h>, not before.
19848         Reported by Jiri B <jirib@devio.us>.
19850 2012-02-04  Bruno Haible  <bruno@clisp.org>
19852         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
19853         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
19854         global variables.
19855         * tests/test-get-rusage-data.c (main): Likewise.
19856         Reported by Jim Meyering.
19858 2012-02-04  Bruno Haible  <bruno@clisp.org>
19860         stdioext: Fix last commit.
19861         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
19863 2012-02-03  Bruno Haible  <bruno@clisp.org>
19865         stdioext: Add tentative support for Plan9.
19866         * lib/stdio-impl.h: Include <errno.h>.
19867         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
19868         * lib/freadable.c (freadable): Likewise.
19869         * lib/fwritable.c (fwritable): Likewise.
19870         * lib/fbufmode.c (fbufmode): Likewise.
19871         * lib/freading.c (freading): Likewise.
19872         * lib/fwriting.c (fwriting): Likewise.
19873         * lib/freadptr.c (freadptr): Likewise.
19874         * lib/freadseek.c (freadptrinc): Likewise.
19875         * lib/freadahead.c (freadahead): Likewise.
19876         * lib/fpurge.c (fpurge): Likewise.
19877         * lib/fseeko.c (rpl_fseeko): Likewise.
19878         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
19879         Reported by Jens Staal <staal1978@gmail.com>.
19881 2012-02-02  Jim Meyering  <meyering@redhat.com>
19883         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
19884         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
19885         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
19886         not even to try to add the attribute.  Instead, add a pragma to suppress
19887         the suggestion/warning.
19889 2012-01-31  Karl Berry  <karl@gnu.org>
19891         setstate doc: typo.
19892         * doc/posix-functions/setstate.texi (setstate): { not (.
19894 2012-01-31  Bruno Haible  <bruno@clisp.org>
19896         popen: Make more robust on Windows.
19897         * lib/popen.c: On native Windows, use the _popen based code even if
19898         HAVE_POPEN is set.
19899         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
19900         environment variable on native Windows.
19902 2012-01-30  Bruno Haible  <bruno@clisp.org>
19904         pclose: Fix typo.
19905         * lib/stdio.in.h (pclose): Fix typo in warning message.
19907 2012-01-30  Bruno Haible  <bruno@clisp.org>
19909         doc about getlogin_r, setstate.
19910         * doc/posix-functions/getlogin_r.texi: List the incompatible
19911         declaration problem under "not fixed by gnulib".
19912         * doc/posix-functions/setstate.texi: Mention incompatible declaration
19913         problem on Solaris 11 and other platforms.
19915 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
19916             Bruno Haible  <bruno@clisp.org>
19918         poll tests: Make test more robust.
19919         * tests/test-poll.c: Include macros.h.
19920         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
19921         return value of various I/O operations.
19922         * modules/poll-tests (Files): Add tests/macros.h.
19924 2012-01-30  Bruno Haible  <bruno@clisp.org>
19926         sys_stat: Fix support for mingw64 and MSVC.
19927         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
19928         header files already do it.
19929         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
19930         stat itself.
19931         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
19933 2012-01-30  Bruno Haible  <bruno@clisp.org>
19935         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
19936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
19937         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
19939 2012-01-29  Bruno Haible  <bruno@clisp.org>
19941         quotearg: Fix test failure on MacOS X 10.5.
19942         * tests/test-quotearg-simple.c: Include localcharset.h.
19943         (main): If the locale encoding is not ASCII, bypass the tests of
19944         locale_quoting_style and clocale_quoting_style.
19945         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
19947 2012-01-29  Jim Meyering  <meyering@redhat.com>
19949         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
19950         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
19951         detect uses of canonicalize_file_name.
19953 2012-01-28  Bruno Haible  <bruno@clisp.org>
19955         test-framework-sh: Fix test failure with AIX 7.1 diff.
19956         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
19957         in column 1, like 'diff -c' does.
19958         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
19959         whether 'diff -u' is used. Instead, test whether the output contains
19960         some '@' character.
19962 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19964         strtoimax: eliminate need for stdint.h, inttypes.h checks
19965         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
19966         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
19967         the prerequisites for a recently-introduced strtoimax test.
19968         I guess this might cause strtoimax to be replaced when not
19969         strictly necessary on older hosts, but this shouldn't introduce
19970         any bugs and it should make Emacs 'configure' faster on typical
19971         modern hosts.  Problem discovered when importing the latest gnulib
19972         to an Emacs test version.
19973         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
19975 2012-01-28  Bruno Haible  <bruno@clisp.org>
19977         sys_time: Override 'struct timeval' on some native Windows platforms.
19978         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
19979         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
19980         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
19981         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
19982         needs to be overridden.
19983         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
19984         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
19985         * tests/test-sys_select.c: Check that the tv_sec member has the same
19986         size as a 'time_t'.
19987         * tests/test-sys_time.c: Likewise.
19988         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
19989         is set, set also REPLACE_GETTIMEOFDAY.
19990         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
19991         convert the resulting 'struct timeval' before returning.
19992         * lib/select.c: Include <sys/time.h>.
19993         (select, timeval): Undefine at the right place.
19994         * modules/select (Depends-on): Add sys_time.
19995         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
19996         some Windows platforms.
19997         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
19999 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20001         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
20002         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
20003         an integer.
20004         * lib/fcntl.c (dupfd): Likewise.
20005         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
20007 2012-01-28  Bruno Haible  <bruno@clisp.org>
20009         fcntl: Avoid compilation error on native Windows.
20010         * modules/fcntl (Depends-on): Add 'close'.
20012 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20014         select, poll, isatty: Avoid warnings on x86_64 mingw64.
20015         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
20016         pointer to an integer.
20017         * lib/poll.c (IsConsoleHandle): Likewise.
20018         * lib/isatty.c (IsConsoleHandle): Likewise.
20020 2012-01-28  Jim Meyering  <meyering@redhat.com>
20022         doc: clarify README-release
20023         * top/README-release: Clarify: you should make a point to have
20024         the latest stable versions of build tools in your PATH, and the
20025         reference to buildreq is solely for its list of tool names, not
20026         for its minimal-functional version numbers.
20027         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
20029         maint.mk: use more readable (yet functionally equivalent) quoting
20030         It is common to quote a single quote in a single quoted string like
20031         this:  '...'\''...'.  Unless you know the idiom, that looks like
20032         gibberish, so prefer to double-quote the string when possible.
20033         Then you can use a more readable, lone single quote: "...'..."
20034         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
20035         "don't" is more readable than the equivalent 'don'\''t'.
20036         (sc_cast_of_x_alloc_return_value): Likewise.
20037         (sc_cast_of_alloca_return_value): Likewise.
20038         (sc_makefile_path_separator_check): Similar: use ":" in '...',
20039         rather than '\'':'\''.
20041 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20043         stdalign: relax _Alignof and tighten _Alignas test
20044         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
20045         as it was too strict: alignof must divide offsetof, but it need
20046         not equal offsetof.  Inspired by Joseph S. Myers's comment
20047         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
20048         Conversely, tighten the _Alignas test a bit, as the resulting
20049         alignment must be exactly 8.
20051 2012-01-27  Bruno Haible  <bruno@clisp.org>
20053         stdalign: Document the last change.
20054         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
20056 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20058         stdalign: check that alignof and offsetof are consistent
20059         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
20060         Problem reported for gnulib by Richard W.M. Jones in
20061         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
20063 2012-01-27  Jim Meyering  <meyering@redhat.com>
20065         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
20066         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
20067         convert a sequence with gaps to the minimal containing range.
20068         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
20069         * tests/test-update-copyright.sh: Test for this.
20070         The FSF confirmed it is ok to do this, assuming there is at
20071         least one significant change per year in the affected range:
20072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
20074 2012-01-26  Bruno Haible  <bruno@clisp.org>
20076         pipe2: refine doc about thread-safety
20077         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
20078         multithread-safety problem.
20079         * doc/glibc-functions/accept4.texi: Likewise.
20081 2012-01-26  Bruno Haible  <bruno@clisp.org>
20083         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
20084         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
20085         In the test program, include <fcntl.h>, for O_RDONLY.
20087 2012-01-26  Eric Blake  <eblake@redhat.com>
20089         pipe2: document lack of thread-safety in replacement
20090         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
20091         issue in replacement.
20092         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20093         Based on a report by Eric Wong.
20095 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20096             Bruno Haible  <bruno@clisp.org>
20098         malloca: Avoid warnings on x86_64 mingw64.
20099         * lib/malloca.c: Include <stdint.h>.
20100         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
20101         * modules/malloca (Depends-on): Add stdint.
20102         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
20104 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20106         obstack: remove __STDC__ conditionals
20107         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
20108         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
20109         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
20110         m4/include_next.m4 as the only gnulib-maintained places that still
20111         refer to __STDC__.
20113 2012-01-24  Bruno Haible  <bruno@clisp.org>
20115         havelib: Modern quoting.
20116         * build-aux/config.rpath: Quote 'like this', not `like this', as per
20117         the recent change to the GNU coding standards.
20119 2012-01-24  Bruno Haible  <bruno@clisp.org>
20121         stdint: Improve support for Android.
20122         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
20123         Reported by Simon Josefsson <simon@josefsson.org>.
20125 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20127         doc: omit trailing empty lines from INSTALL etc.
20128         * doc/Makefile (INSTALL): Omit trailing empty lines.
20129         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
20130         omit trailing empty lines.  This simplifies the build procedure.
20132 2012-01-23  Jim Meyering  <meyering@redhat.com>
20134         tests: avoid spurious warnings about gl_sockets_startup
20135         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
20136         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
20137         reporting a "statement with no effect".
20138         * tests/test-accept.c (main): Mark as "(void)".
20139         * tests/test-accept4.c (main): Likewise.
20140         * tests/test-bind.c (main): Likewise.
20141         * tests/test-connect.c (main): Likewise.
20142         * tests/test-getpeername.c (main): Likewise.
20143         * tests/test-getsockname.c (main): Likewise.
20144         * tests/test-getsockopt.c (main): Likewise.
20145         * tests/test-listen.c (main): Likewise.
20146         * tests/test-recv.c (main): Likewise.
20147         * tests/test-recvfrom.c (main): Likewise.
20148         * tests/test-send.c (main): Likewise.
20149         * tests/test-sendto.c (main): Likewise.
20150         * tests/test-setsockopt.c (main): Likewise.
20151         * tests/test-shutdown.c (main): Likewise.
20153 2012-01-21  Bruno Haible  <bruno@clisp.org>
20155         locale-fr.m4: Fix for Android.
20156         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
20157         failure of the test program on Bionic libc.
20159 2012-01-21  Jim Meyering  <meyering@redhat.com>
20161         bootstrap: fail when bootstrap_post_import_hook fails
20162         Otherwise, it's far too easy to miss diagnostics emitted
20163         between gnulib-tool's output and that of running configure.
20164         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
20166 2012-01-17  Jim Meyering  <meyering@redhat.com>
20168         maint: enable sc_trailing_blank
20169         * build-aux/pmccabe.css: Remove trailing blanks.
20170         * doc/acl-cygwin.txt: Likewise.
20171         * doc/gnu-oids.texi: Likewise
20172         * cfg.mk: Enable sc_trailing_blank.
20173         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
20175 2012-01-17  Jim Meyering  <meyering@redhat.com>
20177         maint: enable sc_prohibit_openat_without_use
20178         * cfg.mk: Enable sc_prohibit_openat_without_use.
20179         Exempt lib/selinux-at.c.
20181 2012-01-17  Jim Meyering  <meyering@redhat.com>
20183         maint: enable sc_prohibit_cloexec_without_use
20184         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
20185         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
20187 2012-01-17  Jim Meyering  <meyering@redhat.com>
20189         maint: enable sc_prohibit_intprops_without_use
20190         * cfg.mk: Enable sc_prohibit_intprops_without_use
20191         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
20193 2012-01-17  Jim Meyering  <meyering@redhat.com>
20195         maint: enable sc_prohibit_hash_pjw_without_use
20196         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
20197         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
20198         to match any use of \<hash_pjw\>, i.e., not necessarily with a
20199         following " (".
20201 2012-01-17  Jim Meyering  <meyering@redhat.com>
20203         maint: enable double-word-prohibiting rule
20204         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
20205         Exempt three files.
20207 2012-01-17  Jim Meyering  <meyering@redhat.com>
20209         maint: remove empty lines at EOF, but excluding modules/*
20210         Apply syntax rules at home as well as abroad.  Most changes
20211         were induced by running this:
20212           make srcdir=. _build-aux=build-aux -f top/maint.mk \
20213             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
20214             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
20215         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
20216         Exempt modules/* and two binary files.
20217         Also exempt doc/INSTALL*, per request from Bruno Haible.
20218         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
20219         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
20220         * doc/Copyright/request-assign.future: Likewise.
20221         * doc/Copyright/request-disclaim.changes: Likewise.
20222         * doc/INSTALL: Likewise.
20223         * doc/INSTALL.ISO: Likewise.
20224         * doc/INSTALL.UTF-8: Likewise.
20225         * doc/acl-cygwin.txt: Likewise.
20226         * doc/acl-resources.txt: Likewise.
20227         * doc/fdl-1.2.texi: Likewise.
20228         * doc/fdl-1.3.texi: Likewise.
20229         * doc/fdl.texi: Likewise.
20230         * lib/argp-pin.c: Likewise.
20231         * lib/round.c: Likewise.
20232         * lib/unicase/u16-totitle.c: Likewise.
20233         * lib/unictype/block_test.c: Likewise.
20234         * lib/uninorm/canonical-decomposition.c: Likewise.
20235         * m4/README: Likewise.
20236         * m4/relocatable-lib.m4: Likewise.
20237         * tests/test-isnand-nolibm.c: Likewise.
20238         * tests/test-isnand.c: Likewise.
20239         * tests/uninorm/NormalizationTest.txt: Likewise.
20241 2012-01-17  Jim Meyering  <meyering@redhat.com>
20243         maint: add framework to run syntax-check rules against gnulib sources
20244         * cfg.mk: New file, to disable all currently-failing tests.
20245         We'll enable them one by one, as they are made to pass.
20246         * Makefile (sc_maint): New rule.
20248 2012-01-21  Bruno Haible  <bruno@clisp.org>
20250         stdint: Add support for Android.
20251         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
20252         include the system's <stdint.h>.
20253         Reported by Simon Josefsson <simon@josefsson.org>.
20255 2012-01-19  Jim Meyering  <meyering@redhat.com>
20257         bootstrap: add bootstrap_post_import_hook
20258         Bison does still need something like the gnulib_mk_hook whose
20259         invocation I had to remove along with slurp in commit 767ccd40.
20260         Technically, we could get along without it, but doing so would
20261         have required living with a warning and a mandatory post-bootstrap
20262         automake rerun.
20263         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
20264         (bootstrap_post_import_hook): New function.
20265         Invoke it after gnulib-tool --import and before autoreconf.
20267 2012-01-18  Jim Meyering  <meyering@redhat.com>
20269         gitlog-to-changelog: don't use "no_"-prefixed variable name
20270         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
20271         to enable both --cluster and --no-cluster.  Change variable name,
20272         s/\$no_cluster/$cluster/, and reverse usage to match.
20274         gitlog-to-changelog: use "||", not "or" in expressions
20275         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
20276         expressions.
20278 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
20280         gitlog-to-changelog: new option --no-cluster
20281         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
20282         clustering of adjacent commit messages.
20284 2012-01-17  Jim Meyering  <meyering@redhat.com>
20286         maint: spell file systems with two words, not one
20287         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
20288         two words, not one.
20290 2012-01-16  Jim Meyering  <meyering@redhat.com>
20292         bootstrap: add a FIXME comment to ensure we eventually remove the hack
20293         * build-aux/bootstrap (gnulib_tool_options): Add comment.
20295 2012-01-16  Eric Blake  <eblake@redhat.com>
20297         bootstrap: cater to autoconf 2.59
20298         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
20299         is not available.
20301         bootstrap: properly check for libtool
20302         * build-aux/bootstrap (libtoolize): Also run libtool when older
20303         usage is detected.
20305 2012-01-15  Bruno Haible  <bruno@clisp.org>
20307         Improve support for MSVC 9.
20308         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
20309         clashes on MSVC.
20310         * lib/fcntl.in.h: Likewise.
20311         * lib/stdlib.in.h: Likewise.
20312         * lib/sys_stat.in.h: Likewise.
20314 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
20316         gnupload: we hold the master copy of this script now
20317         For motivation and more information, see:
20318         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
20319         * build-aux/gnupload: Make it clear in the heading comments that the
20320         master copy of this file is maintained by gnulib.  Since we are at
20321         it, bump its copyright year and ...
20322         ($scriptversion): ... the date in its version.
20323         ($usage): Patches and bug reports should be sent to the gnulib list,
20324         not the automake one.
20325         * config/srclist.txt: Don't try to sync 'gnupload' from automake
20326         anymore.
20328 2012-01-15  Bruno Haible  <bruno@clisp.org>
20330         Fix module 'random'.
20331         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
20332         initstate, setstate are declared.
20334 2012-01-14  Bruno Haible  <bruno@clisp.org>
20336         Tests for module 'random'.
20337         * modules/random-tests: New file.
20338         * tests/test-random.c: New file, based on tests/test-random_r.c.
20340         New module 'random'.
20341         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
20342         declarations.
20343         * lib/random.c: New file, based on glibc/stdlib/random.c.
20344         * m4/random.m4: New file.
20345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
20346         HAVE_RANDOM.
20347         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
20348         * modules/random: New file.
20349         * config/srclist.txt: Add an entry for random.c.
20350         * doc/posix-functions/random.texi: Mention the 'random' module.
20351         * doc/posix-functions/initstate.texi: Likewise.
20352         * doc/posix-functions/setstate.texi: Likewise.
20353         * doc/posix-functions/srandom.texi: Likewise.
20355 2012-01-12  Bruno Haible  <bruno@clisp.org>
20357         random_r: Use common idioms.
20358         * lib/random_r.c: Include <stdlib.h> first.
20360         random_r: Override incompatible API on AIX, OSF/1.
20361         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
20362         Override the system function if REPLACE_RANDOM_R is 1.
20363         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
20364         and OSF/1, set REPLACE_RANDOM_R.
20365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
20366         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
20367         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
20368         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
20369         * doc/glibc-functions/random_r.texi: Likewise.
20370         * doc/glibc-functions/setstate_r.texi: Likewise.
20372         random_r: Support for MSVC 9.
20373         * lib/random_r.c: Include stdint.h, not inttypes.h.
20375 2012-01-12  Eric Blake  <eblake@redhat.com>
20377         inet_ntop: guard extra work by IF_LINT
20378         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
20379         better code generation when not checking for warnings.
20380         Suggested by Paul Eggert and Jim Meyering.
20382         strptime: fix regression on mingw
20383         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
20384         Fix regression.  Reported by Bruno Haible.
20386 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
20387             Bruno Haible  <bruno@clisp.org>
20389         copy-file: add error-code-returning variant.
20390         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
20391         (qcopy_file_preserving): New declaration.
20392         * lib/copy-file.c (qcopy_file_preserving): Renamed from
20393         copy_file_preserving. Change return type to 'int'. Don't emit an error
20394         message here.
20395         (copy_file_preserving): New function.
20396         * tests/test-copy-file.c: Include <stdlib.h>.
20397         (main): Test qcopy_file_preserving if the environment variable
20398         NO_STDERR_OUTPUT is set.
20399         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
20400         with NO_STDERR_OUTPUT
20401         * tests/test-copy-file-2.sh: Likewise.
20403 2012-01-10  Bruno Haible  <bruno@clisp.org>
20405         copy-file: Use 'quote' module consistently.
20406         * lib/copy-file.c (copy_file_preserving): Use quote().
20408         copy-file: Refactor.
20409         * lib/copy-file.c: Include quote.h.
20410         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
20411         message here.
20412         * modules/copy-file (Depends-on): Add quote.
20414         acl: Export qcopy_acl.
20415         * lib/acl.h (qcopy_acl): New declaration.
20416         * lib/copy-acl.c (qcopy_acl): Make non-static.
20418         acl: Rename a local variable.
20419         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
20421         acl: Align return values of copy_acl and qcopy_acl.
20422         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
20423         maybe < -1.
20425 2012-01-11  Eric Blake  <eblake@redhat.com>
20427         strptime: silence gcc warnings
20428         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
20429         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
20430         Reported by Daniel P. Berrange.
20432         inet_ntop: silence gcc warning
20433         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
20434         Reported by Daniel P. Berrange.
20436 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
20438         getloadavg test: skip the test on GNU/Linux without /proc mounted
20439         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
20440         file.  When /proc is not mounted, it always fails with ENOENT.
20441         * tests/test-getloadavg.c (main): Treat ENOENT return code from
20442         getloadavg(3) the same way as ENOSYS and ENOTSUP.
20444 2012-01-10  Bruno Haible  <bruno@clisp.org>
20446         regex: Avoid link error on MSVC 9.
20447         * modules/regex (Depends-on): Add wctype.
20449 2012-01-10  Bruno Haible  <bruno@clisp.org>
20451         doc: Mention --with-tests option.
20452         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
20453         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
20454         --with-tests.
20455         Reported by Reuben Thomas.
20457 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
20459         users.txt: order package names lexicographically.
20460         * users.txt: Order package names lexicographically.
20462 2012-01-10  Jim Meyering  <meyering@redhat.com>
20464         maint.mk: fix description in comment
20465         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
20467         ignore-value: remove deprecated ignore_ptr function
20468         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
20469         * NEWS: Note this.
20471 2012-01-09  Jim Meyering  <meyering@redhat.com>
20473         test-init.sh: avoid a subshell
20474         * tests/test-init.sh: Remove protective subshell.
20475         Suggested by Bernhard Voelker.  While a subshell is normally
20476         required to protect against older shells (Solaris, FreeBSD) that
20477         warn about a missing program before performing redirection, the
20478         shell-selection tests performed by init.sh probably exclude any
20479         offending shell.
20481 2012-01-08  Bruno Haible  <bruno@clisp.org>
20483         setlocale tests: Avoid test failure on Solaris 11 2011-11.
20484         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
20485         variable.
20487 2012-01-08  Bruno Haible  <bruno@clisp.org>
20489         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
20490         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
20491         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
20492         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
20493         macro.
20494         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
20495         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
20496         * lib/spawn_faction_addopen.c: Add workaround implementation if
20497         HAVE_WORKING_POSIX_SPAWN.
20498         * modules/spawn (Makefile): Substitute
20499         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
20500         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
20501         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
20502         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
20503         (Depends-on): Update conditions.
20504         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20505         the Solaris 11 bug.
20507 2012-01-08  Bruno Haible  <bruno@clisp.org>
20509         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
20510         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
20511         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
20512         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
20513         macro.
20514         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
20515         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
20516         * lib/spawn_faction_adddup2.c: Add workaround implementation if
20517         HAVE_WORKING_POSIX_SPAWN.
20518         * modules/spawn (Makefile): Substitute
20519         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
20520         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
20521         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
20522         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
20523         (Depends-on): Update conditions.
20524         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20525         the Solaris 11 bug.
20527 2012-01-08  Bruno Haible  <bruno@clisp.org>
20529         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
20530         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
20531         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
20532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
20533         HAVE_WORKING_POSIX_SPAWN.
20534         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
20535         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
20536         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
20537         * lib/spawn_faction_addclose.c: Add workaround implementation if
20538         HAVE_WORKING_POSIX_SPAWN.
20539         * modules/spawn (Makefile): Substitute
20540         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
20541         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
20542         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
20543         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
20544         (Depends-on): Update conditions.
20545         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20546         the Solaris 11 bug.
20548 2012-01-08  Bruno Haible  <bruno@clisp.org>
20550         doc: Update for Solaris 11 2011-11.
20551         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
20552         * m4/printf.m4: Update comments.
20554 2012-01-08  Bruno Haible  <bruno@clisp.org>
20556         mktime: Avoid compilation error on Solaris 11.
20557         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
20559 2012-01-08  Bruno Haible  <bruno@clisp.org>
20561         doc: Small fix.
20562         * doc/posix-headers/nl_types.texi: Correct platforms list.
20564 2012-01-08  Simon Josefsson  <simon@josefsson.org>
20566         Add lgpl-3.0 module.
20567         * MODULES.html.sh (Support for building documentation): Add
20568         lgpl-3.0.
20569         * modules/lgpl-3.0: New file.
20571 2012-01-08  Jim Meyering  <meyering@redhat.com>
20573         select.c: indent with spaces, not TABs
20574         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
20576 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
20578         quotearg: do not use grave accent for left quote
20579         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
20580         locale_quoting_style.
20581         (quotearg_buffer_restyled): Fix example.
20582         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
20584 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
20586         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
20587         Most programs do not have translation catalogs for English and much
20588         less separate catalogs for British and American English.  Drop the
20589         suggestion to translators about these two, and provide it
20590         automatically for Unicode locales.  Like most programs, even those
20591         using American English, we use single quotation marks.  This conflicts
20592         with the American typographic convention, but works better when you
20593         cite the entire error message within double quotes.  It also tries not
20594         to clash with established practice and with what non-gnulib programs
20595         will usually do.
20596         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
20597         using an UTF-8 or GB-18030 locale.  The list of other locales with
20598         quotes was provided by Bruno Haible.
20599         (quotearg_buffer_restyled): Adjust instructions to translators.
20600         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
20601         text, since this would be wrong when using Unicode.
20602         * modules/quotearg: Depend on c-strcaseeq.
20604 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
20606         quotearg: fix Wikipedia link
20607         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
20609 2012-01-07  Simon Josefsson  <simon@josefsson.org>
20611         Fix for mingw with MSVC9.
20612         * m4/ld-version-script.m4: Check that compiler rejects version
20613         scripts with syntax errors.  Reported by Bruno Haible
20614         <bruno@clisp.org>.
20616 2012-01-06  Bruno Haible  <bruno@clisp.org>
20618         Talk about "native Windows API", not "Woe32".
20619         * lib/accept4.c: Update comments to mention native Windows.
20620         * lib/execute.c: Likewise.
20621         * lib/fatal-signal.c: Likewise.
20622         * lib/localcharset.c: Likewise.
20623         * lib/nanosleep.c: Likewise.
20624         * lib/nl_langinfo.c: Likewise.
20625         * lib/pclose.c: Likewise.
20626         * lib/pipe-filter-gi.c: Likewise.
20627         * lib/pipe-filter-ii.c: Likewise.
20628         * lib/pipe.c: Likewise.
20629         * lib/pipe2.c: Likewise.
20630         * lib/popen.c: Likewise.
20631         * lib/progreloc.c: Likewise.
20632         * lib/relocatable.c: Likewise.
20633         * lib/sigaction.c: Likewise.
20634         * lib/sigprocmask.c: Likewise.
20635         * lib/spawn-pipe.h: Likewise.
20636         * lib/spawn-pipe.c: Likewise.
20637         * lib/spawni.c: Likewise.
20638         * lib/stat-time.h: Likewise.
20639         * lib/w32spawn.h: Likewise.
20640         * tests/test-isatty.c: Likewise.
20641         * lib/config.charset: More comments.
20642         * doc/gnulib-intro.texi: Mention native Windows.
20643         * doc/posix-functions/_Exit_C99.texi: Likewise.
20644         * doc/posix-headers/fcntl.texi: Likewise.
20646 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
20648         argp: Avoid crash if translator uses % characters in a translation.
20649         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
20650         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
20652 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20654         doc: C11 and C++11 are now official
20655         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
20656         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
20657         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
20658         * modules/stdalign:
20659         Replace references to draft C1X to C11, and to draft C++0X to C++11.
20661 2012-01-06  Bruno Haible  <bruno@clisp.org>
20663         uc-is-grapheme-break tests: Tweak.
20664         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
20665         message.
20667 2012-01-06  Bruno Haible  <bruno@clisp.org>
20669         test-init.sh: correct the test for diff -u
20670         * tests/test-init.sh: Also redirect stdout to /dev/null.
20672 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20674         Use ', not `, for quoting output.
20675         * build-aux/announce-gen (usage, sizes, print_news_deltas)
20676         (print_changelog_deltas, get_tool_versions, main program):
20677         * build-aux/git-version-gen:
20678         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
20679         * build-aux/move-if-change (help):
20680         * build-aux/useless-if-before-free (usage, main program):
20681         * check-module (parse_module_file, usage)
20682         (find_included_lib_files, check_module):
20683         * lib/argmatch.c (main) [TEST]:
20684         * lib/argp-help.c (_help):
20685         * lib/getopt1.c (main) [TEST]:
20686         * lib/git-merge-changelog.c (usage):
20687         * lib/xstrtol-error.c (xstrtol_error):
20688         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
20689         * m4/argz.m4 (gl_FUNC_ARGZ):
20690         * m4/bison.m4 (gl_BISON):
20691         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
20692         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
20693         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20694         * m4/fpending.m4 (gl_PREREQ_FPENDING):
20695         * m4/gc-random.m4 (gl_GC_RANDOM):
20696         * m4/intl.m4 (gt_CHECK_DECL):
20697         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
20698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
20699         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
20700         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
20701         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
20702         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
20703         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
20704         * tests/test-dirname.c (main):
20705         * tests/test-getpass.c (main):
20706         * tests/test-iconvme.c (main):
20707         * tests/test-parse-datetime.c (LOG):
20708         * tests/test-xstrtoimax.sh:
20709         * tests/test-xstrtol.sh:
20710         * tests/test-xstrtoll.sh:
20711         * tests/test-xstrtoumax.sh:
20712         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
20713         * top/GNUmakefile (abort-due-to-no-makefile):
20714         Quote 'like this', not `like this', as per the recent change to
20715         the GNU coding standards.
20717 2012-01-05  Bruno Haible  <bruno@clisp.org>
20719         strtoimax: Don't force a replacement on systems where intmax_t is int.
20720         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
20721         'intmax_t' is not larger than 'int'.
20722         Reported by Pádraig Brady <P@draigBrady.com>.
20724 2012-01-05  Bruno Haible  <bruno@clisp.org>
20726         doc: Mention NetBSD bugs.
20727         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
20728         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
20730 2012-01-05  Bruno Haible  <bruno@clisp.org>
20732         strtoumax tests: Enhance tests.
20733         * tests/test-strtoumax.c (main): Add tests for large values.
20735 2012-01-05  Bruno Haible  <bruno@clisp.org>
20737         strtoimax: Work around AIX 5.1 bug.
20738         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
20739         definition.
20740         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
20741         Set HAVE_STRTOIMAX.
20742         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
20743         REPLACE_STRTOIMAX.
20744         * modules/inttypes-incomplete (Makefile.am): Substitute
20745         REPLACE_STRTOIMAX.
20746         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
20747         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
20748         (Depends-on): Update conditions.
20749         * tests/test-strtoimax.c (main): Add tests for large values.
20750         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
20752 2012-01-05  Bruno Haible  <bruno@clisp.org>
20754         inttypes: Modernize.
20755         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
20756         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
20757         (Makefile.am): Update inttypes.h rule.
20759 2012-01-05  Jim Meyering  <meyering@redhat.com>
20761         init.sh: don't waste a subshell just to redirect stderr
20762         * tests/init.sh: In testing for diff -u and diff -c, use a
20763         stderr-redirecting exec inside `...` rather than a subshell.
20765         test-init.sh: avoid failure on HP-UX 11.00
20766         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
20767         resolves to diff -c or cmp.  Reported by Bruno Haible.
20769 2012-01-05  Bruno Haible  <bruno@clisp.org>
20771         Tests for module 'strtoull'.
20772         * modules/strtoull-tests: New file.
20773         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
20775 2012-01-05  Bruno Haible  <bruno@clisp.org>
20777         Tests for module 'strtoll'.
20778         * modules/strtoll-tests: New file.
20779         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
20781 2012-01-05  Bruno Haible  <bruno@clisp.org>
20783         Tests for module 'strtoul'.
20784         * modules/strtoul-tests: New file.
20785         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
20787 2012-01-05  Bruno Haible  <bruno@clisp.org>
20789         Tests for module 'strtol'.
20790         * modules/strtol-tests: New file.
20791         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
20793 2012-01-04  Jim Meyering  <meyering@redhat.com>
20795         test-init.sh: accommodate Solaris 5.10's different diff -u output
20796         * tests/test-init.sh: Also exempt @@ lines from the comparison
20797         of diff output, since Solaris 5.10 and GNU diff formats differ.
20798         Reported by Stefano Lattarini.
20800 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20802         test-posixtm: don't assume signed integer wraparound
20803         * tests/test-posixtm.c (main): Don't assume wraparound semantics
20804         after signed integer overflow.  Inspired by (though it may not
20805         fix) Bruno Haible's bug report in
20806         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
20808         Spell out "Windows 9x" and "Windows XP".
20809         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
20810         "Windows 9x" and "WinXP" with "Windows XP".
20812 2012-01-04  Jim Meyering  <meyering@redhat.com>
20814         test-vc-list-files-cvs.sh: remove obsolete comment
20815         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
20816         double exit.  Now that's all encapsulated via skip_ and Exit.
20818 2012-01-04  Bruno Haible  <bruno@clisp.org>
20820         Talk about "native Windows API", not "Win32".
20821         * lib/classpath.c: Update comments to mention native Windows.
20822         * lib/csharpexec.c: Likewise.
20823         * lib/dup2.c: Likewise.
20824         * lib/error.c: Likewise.
20825         * lib/fcntl.c: Likewise.
20826         * lib/filename.h: Likewise.
20827         * lib/findprog.c: Likewise.
20828         * lib/get-rusage-as.c: Likewise.
20829         * lib/get-rusage-data.c: Likewise.
20830         * lib/getpagesize.c: Likewise.
20831         * lib/javaexec.c: Likewise.
20832         * lib/msvc-inval.c: Likewise.
20833         * lib/msvc-nothrow.c: Likewise.
20834         * lib/nanosleep.c: Likewise.
20835         * lib/nonblocking.c: Likewise.
20836         * lib/printf-parse.c: Likewise.
20837         * lib/setlocale.c: Likewise.
20838         * lib/sigaction.c: Likewise.
20839         * lib/strerror_r.c: Likewise.
20840         * lib/tmpdir.c: Likewise.
20841         * lib/vasnprintf.c: Likewise.
20842         * lib/w32spawn.h: Likewise.
20843         * lib/waitpid.c: Likewise.
20844         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
20845         * m4/locale-ar.m4: Likewise.
20846         * m4/locale-fr.m4: Likewise.
20847         * m4/locale-ja.m4: Likewise.
20848         * m4/locale-tr.m4: Likewise.
20849         * m4/locale-zh.m4: Likewise.
20850         * m4/printf.m4: Likewise.
20851         * tests/test-cloexec.c: Likewise.
20852         * tests/test-copy-acl.sh: Likewise.
20853         * tests/test-copy-file.sh: Likewise.
20854         * tests/test-file-has-acl.sh: Likewise.
20855         * tests/test-set-mode-acl.sh: Likewise.
20856         * tests/test-dup-safer.c: Likewise.
20857         * tests/test-dup2.c: Likewise.
20858         * tests/test-dup3.c: Likewise.
20859         * tests/test-fcntl.c: Likewise.
20860         * tests/test-nonblocking-pipe.h: Likewise.
20861         * tests/test-nonblocking-socket.h: Likewise.
20862         * tests/test-pipe.c: Likewise.
20863         * tests/test-pipe2.c: Likewise.
20864         * tests/test-spawn-pipe-child.c: Likewise.
20865         * doc/acl-resources.txt: Likewise.
20866         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
20867         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
20868         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
20869         * lib/localcharset.c: Update comments to mention native Windows.
20870         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
20871         * lib/localename.c: Likewise.
20872         * lib/progreloc.c: Likewise.
20873         * lib/relocatable.c: Likewise.
20874         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
20875         (windows_compute_revents): Renamed from win32_compute_revents.
20876         (windows_compute_revents_socket): Renamed from
20877         win32_compute_revents_socket.
20878         * lib/select.c: Update comments to mention native Windows.
20879         (windows_poll_handle): Renamed from win32_poll_handle.
20880         * m4/threadlib.m4: Update comments to mention native Windows.
20881         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
20882         --enable-threads=windows instead of --enable-threads=win32. Set
20883         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
20884         * lib/glthread/lock.h: Update comments to mention native Windows.
20885         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
20886         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
20887         USE_WIN32_THREADS.
20888         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
20889         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
20890         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
20891         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
20892         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
20893         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
20894         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
20895         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
20896         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
20897         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
20898         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
20899         * tests/test-tls.c: Likewise.
20900         Rationale:
20901         Microsoft renamed the "Win32 API" to "Windows API", as it is available
20902         on both 32-bit and 64-bit Windows systems.
20903         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
20904         line of distinction is between "native Windows" on one side and Unix/
20905         POSIX systems on the other side. More details in
20906         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
20907         Suggested by Paul Eggert.
20909 2012-01-03  Bruno Haible  <bruno@clisp.org>
20911         isatty: Support for MSVC 9.
20912         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
20913         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
20914         (_isatty_nothrow): New function.
20915         (isatty): Use it instead of _isatty.
20916         (IsConsoleHandle): Add comment, from Paolo Bonzini.
20917         * lib/poll.c (IsConsoleHandle): Likewise.
20918         * lib/select.c (IsConsoleHandle): Likewise.
20919         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
20920         (gl_PREREQ_ISATTY): New macro.
20921         * modules/isatty (Depends-on): Add msvc-inval.
20922         (configure.ac): Invoke gl_PREREQ_ISATTY.
20924 2012-01-03  Jim Meyering  <meyering@redhat.com>
20926         maint.mk: remove temporary transition aid from over 1.5 years ago
20927         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
20928         purpose was to aid in the transition (avoiding silent malfunction)
20929         from that old name to the new _sc_search_regexp.  This shim was
20930         added by commit 219c504b.
20932         init.sh: do not try to accommodate compare arguments starting with "-"
20933         * tests/init.sh (compare_dev_null_): Do not try to accommodate
20934         compare arguments that start with "-".  Besides, we do not worry
20935         about this when invoking diff or cmp; why start now with sed?
20936         Using "--" to separate options from argument would trigger sed
20937         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
20938         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
20940 2012-01-02  Bruno Haible  <bruno@clisp.org>
20942         Enhance tests for module 'isatty'.
20943         * modules/isatty-tests (Depends-on): Add pipe-posix.
20944         * tests/test-isatty.c: Include <fcntl.h>.
20945         (DEV_NULL): New macro.
20946         (main): Test the resut of isatty() also on regular files, pipes, and
20947         /dev/null.
20949         New module 'isatty'.
20950         * lib/unistd.in.h (isatty): New declaration.
20951         * lib/isatty.c: New file, based on an idea of
20952         Bastien Roucariès <roucaries.bastien@gmail.com>.
20953         * m4/isatty.m4: New file.
20954         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
20955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
20956         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
20957         REPLACE_ISATTY.
20958         * modules/isatty: New file.
20959         * doc/posix-functions/isatty.texi: Mention the new module.
20960         Suggested by Paolo Bonzini.
20962 2012-01-02  Bruno Haible  <bruno@clisp.org>
20964         canonicalize: Tweak 2011-12-29 commit.
20965         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
20966         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
20968 2012-01-02  Jim Meyering  <meyering@redhat.com>
20970         gitlog-to-changelog: describe input syntax in --help output
20971         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
20973         gitlog-to-changelog: fix typo in --help: show backslash before email @
20974         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
20975         in sources, but not in actual output.
20977 2011-12-30  Jim Meyering  <meyering@redhat.com>
20979         gitlog-to-changelog: don't malfunction when name contains %-directive
20980         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
20981         in a name string cause trouble.  E.g., with a user name of "%s",
20982         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
20984 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
20986         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
20987         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
20988         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
20989         the "  (tiny change)" notation that is appended to the standard
20990         ChangeLog "date  name  email" header line.
20992 2012-01-01  Jim Meyering  <meyering@redhat.com>
20994         test-framework-sh: init.sh: fix "make dist" failure
20995         When using gnulib-tool's --with-tests option and any module that
20996         depends on test-framework-sh, "make dist" would fail due to the
20997         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
20998         in the gltests directory, and not in the gllib/ directory.
20999         One way to work around that is to move the EXTRA_DIST += init.sh
21000         from the primary module to the -tests one:
21001         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
21002         * modules/test-framework-sh (Makefile.am): ...not here.
21003         Reported by Tom G. Christensen in
21004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
21006         version-etc: update copyright year reported by --version
21007         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
21009 2011-12-31  Pádraig Brady  <P@draigBrady.com>
21011         canonicalize: only stat() if required
21012         * lib/canonicalize.c (canonicalize_filename_mode):
21013         Avoid calling l?stat() when both CAN_MISSING,
21014         and CAN_NOLINKS are set, as we neither need
21015         to resolve symlinks or test component existence.
21017 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
21019         doc: cover st_ino issues once; add OpenVMS etc.
21020         * doc/posix-functions/stat.texi (stat):
21021         * doc/posix-functions/lstat.texi (lstat):
21022         * doc/posix-functions/fstatat.texi (fstatat):
21023         * doc/posix-functions/fstat.texi (fstat):
21024         Move general 'struct stat' stuff to sys_stat.texi,
21025         leaving behind a pointer.
21026         * doc/posix-headers/sys_stat.texi (sys/stat.h):
21027         Merge duplicate info about 'struct stat' problems into here.
21028         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
21029         and suggest partial workarounds.
21031         same-inode: port to OpenVMS
21032         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
21033         three st_ino values.
21035 2011-12-30  Pádraig Brady  <P@draigBrady.com>
21037         canonicalize: fix references to stat() and lstat()
21038         * lib/canonicalize.c (canonicalize_filename_mode):
21039         Ensure references always resolve to a replacement
21040         function if required (even via a macro).
21042 2011-12-30  Jim Meyering  <meyering@redhat.com>
21044         gitlog-to-changelog: remove a little duplication
21045         * build-aux/gitlog-to-changelog (main): Grep @lines once,
21046         rather than twice.
21048 2011-12-29  Pádraig Brady  <P@draigBrady.com>
21050         canonicalize: add support for not resolving symlinks
21051         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
21052         indicate we don't want to follow symlinks.  Also
21053         provide CAN_MODE_MASK to aid setting these existing
21054         mutually exclusive values.
21055         * lib/canonicalize.c (canonicalize_filename_mode):
21056         Extract the flags from can_mode parameter, which
21057         are currently just used to select between stat()
21058         and lstat().  Also ensure that mutually exclusive
21059         values are flagged immediately as invalid.
21060         * tests/test-canonicalize.c: Verify symlinks are
21061         not followed, and that invalid flag combinations
21062         are diagnosed.
21064 2011-12-25  Jim Meyering  <meyering@redhat.com>
21066         gitlog-to-changelog: do not clump multi-paragraph entries
21067         Identical header lines (date,name,email+coauthors) are suppressed,
21068         thus putting all entries with those same characteristics under
21069         a single header.  However, when a log entry consists of two or
21070         more paragraphs, it may not be clear where it starts and ends.
21071         This change makes it so that such an entry is always separated
21072         from others by a header line, even when that header would
21073         otherwise be suppressed.
21074         * build-aux/gitlog-to-changelog: Implement the above.
21075         Inspired by a related request from Stefano Lattarini in
21076         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
21078 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21080         announce-gen: fix `cmd' typo in diagnostic
21081         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
21082         diagnostic: a missing '$' meant that the command was not output.
21084 2011-12-23  Jim Meyering  <meyering@redhat.com>
21086         test-framework-sh: distribute init.sh
21087         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
21088         Otherwise, "make -C gnulib-tests check" (at least in grep) would
21089         fail due to the lack of init.sh.
21091         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
21092         * modules/atexit-tests: Rather than listing tests/init.sh,
21093         now that there's a module for it, simply depend on that new module.
21094         * modules/closein-tests: Likewise.
21095         * modules/exclude-tests: Likewise.
21096         * modules/getcwd-tests: Likewise.
21097         * modules/perror-tests: Likewise.
21098         * modules/pread-tests: Likewise.
21099         * modules/pwrite-tests: Likewise.
21100         * modules/vc-list-files-tests: Likewise.
21101         * modules/verify-tests: Likewise.
21102         * modules/xalloc-die-tests: Likewise.
21103         * modules/xstrtoimax-tests: Likewise.
21104         * modules/xstrtol-tests: Likewise.
21105         * modules/xstrtoll-tests: Likewise.
21106         * modules/xstrtoumax-tests: Likewise.
21107         * modules/yesno-tests: Likewise.
21109 2011-12-22  Jim Meyering  <meyering@redhat.com>
21111         test-framework-sh: add minimal tests of init.sh's compare function
21112         * modules/test-framework-sh-tests: New file.
21113         * tests/test-init.sh: New file.
21115         test-framework-sh: new module
21116         * modules/test-framework-sh: New file.
21117         * MODULES.html.sh (Support for maintaining and releasing projects):
21118         List it.
21120         init.sh: do not emit simulated diff output to stderr
21121         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
21123 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
21125         .gitignore: ignore gnulib.dvi and regex.info
21126         * doc/.gitignore:add gnulib.dvi and regex.info
21128 2011-12-22  Jim Meyering  <meyering@redhat.com>
21130         init.sh: correct previous change
21131         * tests/init.sh (compare): My previous change was wrong.
21132         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
21134         init.sh: avoid unwarranted test failure when using "set -e"
21135         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
21136         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
21137         a use like "compare exp out" would get evoke an unconditional failure.
21139 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
21141         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
21142         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
21143         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
21144         autoreconf that did not.
21145         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
21146         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
21148 2011-12-17  Jim Meyering  <meyering@redhat.com>
21150         bootstrap: remove some now-unneeded code
21151         This script arose back when gnulib-tool was young.
21152         Since then, it has seen improvements that render much of this
21153         script unnecessary.  In particular, it can now make symlinks
21154         to the files it uses.  Also, I no longer see as much value in
21155         marking files as read-only via comments.
21156         If you relied on the symlink-creation feature of the preceding
21157         version of this script, you can get most of that functionality
21158         by adding the --symlink option to the definition of
21159         gnulib_tool_option_extras in your bootstrap.conf file.
21160         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
21161         Run autopoint and libtoolize *before* gnulib-tool.
21162         After it, run an abbreviated autoreconf, rather than a loop around
21163         all tools.
21164         (slirp, bt_mark_as_generated): Remove functions.
21166 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21168         ftoastr: fix typo
21169         * lib/ftoastr.h: Fix misspelling in comment.
21171 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
21173         * top/README-release: fix punctuation.
21175 2011-12-17  Jim Meyering  <meyering@redhat.com>
21177         bootstrap: correct the recent buildreq change
21178         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
21179         had no effect.
21180         * build-aux/bootstrap (buildreq): Bracket each search term with
21181         "*...*", so that the shell "case" statement works as intended.
21182         Add comments.
21184 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
21186         build: let bootstrap resort to wget when downloading .po files
21187         * build-aux/bootstrap (download_po_files): Fallback to wget when
21188         downloading the .po files via rsync fails.  This is necessary to
21189         bootstrap from behind a strict firewall.
21191 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
21193         stdint: don't assume C++11 when compiling with g++
21194         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
21195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
21196         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
21197         work also in C++ before C++11, as that improperly inhibits
21198         generating a substitute stdint.h for that case.
21200 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
21202         alloca: protect comment from gnulib-tool
21203         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
21204         that gnulib-tool doesn't think it's a license, and munge it to
21205         say "GCC version 3".
21207 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
21209         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
21210         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
21211         $(abs_top_builddir) instead of $(top_builddir).
21213 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
21215         strftime-tests: also test nanoseconds
21216         * tests/test-strftime.c (T): Add a test of %N.
21218 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
21220         inttypes, stdint: add C++11 support
21221         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
21222         when including inttypes.h and stdint.h.  Support this change to
21223         the standard.
21224         * doc/posix-headers/inttypes.texi (inttypes.h):
21225         * doc/posix-headers/stdint.texi (stdint.h): Document this.
21226         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
21227         Define if not defined already, for the benefit of pre-C++11 hosts.
21228         Define the standard format macros (e.g., PRId8) always.
21229         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
21230         Likewise, if __cpluspus.  Define the standard constant and limit
21231         macros (e.g., INT8_C, INT8_MAX) always.
21232         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
21233         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
21234         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
21235         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
21236         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
21237         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
21238         Likewise.
21240 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21242         nonblocking tests: Fix test failure on Linux/PPC.
21243         Suggested by Prerna Saxena in
21244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
21245         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
21246         Set to 1100000.
21248 2011-12-12  Jim Meyering  <meyering@redhat.com>
21250         argmatch: don't hard-code `' when listing valid option arguments
21251         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
21252         use the quote function to add quotes.  Use fputs rather than
21253         fprintf for the format string with no format directive.
21255 2011-12-07  Eric Blake  <eblake@redhat.com>
21257         bootstrap: detect tools required by gnulib-tool
21258         * build-aux/bootstrap (buildreq): Provide minimum implicit
21259         dependencies.
21260         * DEPENDENCIES: Mention patch as a prereq.
21262 2011-12-04  Bruno Haible  <bruno@clisp.org>
21264         sethostname: Port to Windows platforms.
21265         * lib/sethostname.c: Provide an alternate implementation for Windows
21266         platforms.
21267         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
21268         (main): Skip the test if sethostname() fails with EPERM. On Windows
21269         platforms, don't check the result of gethostname().
21271 2011-12-04  Bruno Haible  <bruno@clisp.org>
21272             Jim Meyering  <meyering@redhat.com>
21274         tests: Avoid spurious error message on platforms without mktemp program.
21275         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
21277 2011-12-04  Bruno Haible  <bruno@clisp.org>
21279         sethostname: Fix documentation.
21280         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
21281         "not fixed" section.
21283 2011-12-03  Bruno Haible  <bruno@clisp.org>
21285         gnulib-tool: Verify that the License field is present and non-empty.
21286         * gnulib-tool (func_get_license_raw): New function, extracted from
21287         func_get_license.
21288         (func_get_license): Use it. Warn if the module is not a test module and
21289         has no license.
21290         Suggested by Jim Meyering.
21292 2011-12-03  Bruno Haible  <bruno@clisp.org>
21294         sethostname tests: Fix link error on mingw.
21295         * tests/test-sethostname1.c: New file, extracted from
21296         tests/test-sethostname.c.
21297         * tests/test-sethostname2.c: New file, extracted from
21298         tests/test-sethostname.c.
21299         * tests/test-sethostname.c: Remove file.
21300         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
21301         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
21302         (Depends-on): Add gethostname.
21303         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
21304         Link the latter with $(GETHOSTNAME_LIB).
21306         sethostname tests: Fix compilation error on mingw.
21307         * tests/test-sethostname.c: Don't include <sys/types.h>.
21308         (geteuid): Use a dummy value without uid_t.
21309         * modules/sethostname-tests (Depends-on): Remove sys_types.
21311         sethostname tests: Avoid a gcc warning.
21312         * tests/test-sethostname.c (main): Remove an unused variable.
21314         Tweak last commit.
21315         * modules/sethostname-tests (Files): Sort by decreasing importance.
21316         (configure.ac): Check for geteuid.
21317         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
21318         the test when there's nothing to test. Drop an unnecessary cast.
21319         Improve an error message. Verify that the final sethostname() call
21320         succeeds.
21322 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21324         Add a test suite for the sethostname module.
21325         * modules/sethostname-tests: New file.  A test program
21326         for the sethostname module.
21327         * tests/test-sethostname.c: Likewise.
21329 2011-12-03  Bruno Haible  <bruno@clisp.org>
21331         Tweak last commit.
21332         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
21333         Fix preprocessor directives indentation. Fix typos.
21334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
21335         * modules/unistd (Makefile): Likewise.
21337 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21339         Integrate the sethostname module into unistd.
21340         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
21341         into the unistd.h header.
21342         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
21343         preprocessor directives.
21344         * modules/unistd: Setup the Makefile substitutions of the
21345         SETHOSTNAME preprocessor directives.
21347 2011-12-03  Bruno Haible  <bruno@clisp.org>
21349         Tweak last commit.
21350         * lib/sethostname.c: Don't include <string.h>.
21351         (sethostname): No need to copy the argument string to the stack. Don't
21352         call clearerr. Preserve errno when fprintf failed.
21353         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
21354         Don't invoke AC_REPLACE_FUNCS.
21355         * modules/sethostname (Link): Remove empty section.
21356         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
21357         failure problem.
21359 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21361         New module 'sethostname'.
21362         * lib/sethostname.c (sethostname): New file.  Provide sethostname
21363         for systems that lack it.
21364         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
21365         sethostname declaration and function.
21366         * modules/sethostname: New file.  Define the sethostname module.
21368 2011-12-03  Bruno Haible  <bruno@clisp.org>
21370         Tweak last commit.
21371         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
21373 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21375         Split the HOST_NAME_MAX detection into a separate m4 macro.
21376         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
21377         macro so it can be used by the pending sethostname module.
21379 2011-12-03  Bruno Haible  <bruno@clisp.org>
21381         Fix module descriptions syntax.
21382         * modules/argv-iter (License): Fix syntax.
21383         * modules/di-set (License): Likewise.
21384         * modules/ino-map (License): Likewise.
21385         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
21387 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
21389         stdalign: port to Clang 3.0
21390         Problem reported by Simon Josefsson in
21391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
21392         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
21393         which has <stdalign.h> but which does not define alignof.
21394         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
21396 2011-12-01  Eric Blake  <eblake@redhat.com>
21398         mktempd: silence dd usage
21399         * build-aux/mktempd (rand_bytes): Silence dd.
21401 2011-11-30  Simon Josefsson  <simon@josefsson.org>
21403         manywarnings: Don't mention gcc version in docstring.
21404         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
21405         Jim Meyering <meyering@redhat.com>.
21407 2011-11-30  Jim Meyering  <meyering@redhat.com>
21409         hash: mark a few floating point constants with "f" suffix
21410         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
21411         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
21412         floating point constants with "f", since they're destined to be
21413         saved/used as "float"s.
21415 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
21417         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
21418         * tests/test-float.c (test_long_double): Correct and re-enable the
21419         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
21421 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
21423         Avoid subtracting two pointers that don't point into the same block.
21424         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
21425         only pointers into the same memory block are subtracted. We cannot
21426         assume that sizeof (ptrdiff_t) == sizeof (void *).
21428 2011-11-29  Eric Blake  <eblake@redhat.com>
21430         maint.mk: add syntax check for use of compare from init.sh
21431         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
21432         moved here from coreutils.
21434         manywarnings: drop -Wunsuffixed-float-constants
21435         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
21436         '1.0D', which is the only way to silence this warning for 'double'.
21438 2011-11-29  Jim Meyering  <meyering@redhat.com>
21440         hash: mark compute_bucket_size with the pure attribute
21441         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
21443         quotearg, propername: correct pragma guard expression
21444         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
21445         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
21447 2011-11-28  Jim Meyering  <meyering@redhat.com>
21449         propername: do not mark proper_name with the const attribute
21450         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
21451         since it examines data pointed to by its parameter.
21452         * lib/propername.c (proper_name): Instead, add a pragma to suppress
21453         the suggestion from -Wsuggest-attribute=const.
21455         propername: mark one more function as const
21456         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
21458 2011-11-27  Jim Meyering  <meyering@redhat.com>
21460         mark functions with const and pure attributes
21462         Mark functions per suggestions from gcc-4.6 when using these options:
21463         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
21464         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
21465         Follow these guidelines: when possible, apply the attribute to
21466         an extern declaration, not to its definition.  Apply it to the
21467         definition only when the definition is static.
21468         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
21469         * lib/argv-iter.h (argv_iter_n_args): Likewise.
21470         * lib/base64.h (isbase64): Likewise.
21471         * lib/basename-lgpl.c (last_component, base_len): Likewise.
21472         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
21473         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
21474         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
21475         (c_tolower, c_toupper): Likewise.
21476         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
21477         * lib/chdir-long.c (find_non_slash): Likewise.
21478         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
21479         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
21480         * lib/file-type.h (file_type): Likewise.
21481         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
21482         * lib/filevercmp.c (verrevcmp): Likewise.
21483         * lib/freadahead.h (freadahead): Likewise.
21484         * lib/fts.c (fts_maxarglen): Likewise.
21485         * lib/hash-pjw.h (hash_pjw): Likewise.
21486         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
21487         * lib/hash.c (is_prime, next_prime): Likewise.
21488         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
21489         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
21490         (hash_table_ok, hash_get_first, hash_string): Likewise.
21491         (compute_bucket_size): Likewise.
21492         * lib/i-ring.h (i_ring_empty): Likewise.
21493         * lib/isnan.c (isnanl): Likewise.
21494         * lib/math.h (isnanl, rpl_isnanl): Likewise.
21495         * lib/memcasecmp.h (memcasecmp): Likewise.
21496         * lib/memchr2.h (memchr2): Likewise.
21497         * lib/memcmp2.h (memcmp2): Likewise.
21498         * lib/parse-datetime.y (lookup_zone): Likewise.
21499         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
21500         [!WINDOWS_SOCKETS]: Likewise.
21501         * lib/strnlen1.h (strnlen1): Likewise.
21502         * lib/uniwidth.in.h (uc_width): Likewise.
21503         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
21504         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
21505         (quoting_options_from_style): Add a comment.
21506         * lib/propername.h (proper_name): Add a comment.
21508 2011-11-27  Bruno Haible  <bruno@clisp.org>
21510         Remove unused macros from !_LIBC code in glibc-borrowed files.
21511         * lib/fnmatch.c (STRCOLL): Remove macro.
21512         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
21513         * lib/glob.c (__stat, __readdir64): Remove macros.
21514         * lib/tempname.c (__open64, __xstat64): Remove macros.
21515         Suggested by Paul Eggert.
21517 2011-11-27  Bruno Haible  <bruno@clisp.org>
21519         getcwd: Fix link error on MSVC 9.
21520         * modules/getcwd (Depends-on): Add readdir, rewinddir.
21522 2011-11-27  Bruno Haible  <bruno@clisp.org>
21524         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
21525         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
21526         HAVE_OPENDIR is 0.
21527         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
21528         HAVE_CLOSEDIR is 0.
21529         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
21530         is 0.
21531         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
21533 2011-11-27  Bruno Haible  <bruno@clisp.org>
21535         getcwd: Fix bug from 2011-08-17.
21536         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
21537         platforms that need it.
21538         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
21539         code of 4 to be a failure, not a success. This ensures that
21540         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
21542 2011-11-27  Bruno Haible  <bruno@clisp.org>
21544         binary-io tests: Avoid test failure on mingw when libtool is used.
21545         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
21546         Don't verify the size of t-bin-out1.tmp here.
21547         * tests/test-binary-io.sh: Verify it here.
21548         Reported by Simon Josefsson.
21550 2011-11-26  Bruno Haible  <bruno@clisp.org>
21552         Fix conflict between two instantiations of module 'unistd'.
21553         * gnulib-tool (func_emit_autoconf_snippet): Substitute
21554         ${include_guard_prefix} also in the autoconf snippet.
21555         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
21556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
21557         GNULIB_UNISTD_H_GETOPT.
21558         * modules/getopt-posix (configure.ac): Set the
21559         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
21560         * modules/getopt-gnu (configure.ac): Likewise.
21561         * modules/unistd (Makefile.am): Change the substitution value of
21562         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
21563         Reported by Simon Josefsson.
21565 2011-11-25  Bruno Haible  <bruno@clisp.org>
21567         pagealign_alloc: Doc and comments.
21568         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
21569         module.
21570         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
21572 2011-11-25  Jim Meyering  <meyering@redhat.com>
21574         test-update-copyright.sh: avoid false-positive failure
21575         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
21576         around false positive failure on Cygwin/Windows.  The latter was
21577         matching erroneously-created files with names like
21578         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
21580 2011-11-25  Simon Josefsson  <simon@josefsson.org>
21582         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
21583         * m4/valgrind-tests.m4: Check that the parameters that will be
21584         used works, not just a subset of them.  Reported by Bruno Haible
21585         <bruno@clisp.org>.
21587 2011-11-24  Jim Meyering  <meyering@redhat.com>
21589         test-stdalign.c: comment out long double tests
21590         * tests/test-stdalign.c: Don't try to reduce alignment of long double
21591         variables.  That provokes errors like this from gcc-4.7.0 20111124:
21592         error: '_Alignas' specifiers cannot reduce alignment of \
21593         'static_longdouble_alignas'.
21595 2011-11-22  Jim Meyering  <meyering@redhat.com>
21597         init.sh: make "compare /dev/null FILE" output more readable
21598         * tests/init.sh (compare_): Document the preferred order of arguments.
21599         (emit_diff_u_header_): New function.
21600         (compare_dev_null_): Emit a simulated diff, rather than just the
21601         contents of the unexpected file.  Suggestion from Bruno Haible.
21603 2011-11-21  Jim Meyering  <meyering@redhat.com>
21604             Eric Blake  <eblake@redhat.com>
21606         init.sh: work around OSF/1 5.1's mishandling of /dev/null
21607         * tests/init.sh: Make our compare function slightly more portable.
21608         Reported by Bruno Haible in
21609         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
21611 2011-11-21  Simon Josefsson  <simon@josefsson.org>
21613         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
21614         before using it, in code that ends up in config.h.
21616 2011-11-20  Bruno Haible  <bruno@clisp.org>
21618         getcwd: Work around getcwd bug on AIX 5..7.
21619         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
21620         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
21621         Use a different value for gl_cv_func_getcwd_path_max. Move the
21622         definition of HAVE_PARTLY_WORKING_GETCWD from here...
21623         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
21624         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
21625         Define HAVE_MINIMALLY_WORKING_GETCWD.
21626         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
21627         where it is not even minimally working, that is, on AIX.
21628         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
21629         m4/getcwd-path-max.m4.
21630         (main): Update exit code computation.
21631         * doc/posix-functions/getcwd.texi: Mention list of platforms where
21632         getcwd does not handle long file names.
21634 2011-11-20  Bruno Haible  <bruno@clisp.org>
21636         getcwd: Fix bug from 2009-09-10.
21637         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
21638         like "no".
21640 2011-11-20  Simon Josefsson  <simon@josefsson.org>
21642         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
21644 2011-11-20  Bruno Haible  <bruno@clisp.org>
21646         fma tests: Avoid shadowing local variables.
21647         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
21648         expected.
21650 2011-11-20  Bruno Haible  <bruno@clisp.org>
21652         copysignf tests: Fix.
21653         * tests/test-copysignf.c: Fix signature check.
21655 2011-11-20  Bruno Haible  <bruno@clisp.org>
21657         fma: Remove unused code.
21658         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
21659         unused macros.
21661 2011-11-20  Bruno Haible  <bruno@clisp.org>
21663         sethostname: Fix doc about AIX.
21664         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
21665         sethostname; it has it.
21667         sethostname: Mention more portability problems.
21668         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
21669         problem.
21670         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21672 2011-11-19  Bruno Haible  <bruno@clisp.org>
21674         Depend on module fcntl-h when AT_FDCWD is used.
21675         * modules/utimens (Depends-on): Add fcntl-h.
21676         * modules/areadlinkat (Depends-on): Likewise.
21677         * modules/areadlinkat-with-size (Depends-on): Likewise.
21678         * modules/faccessat (Depends-on): Likewise.
21679         * modules/fchmodat (Depends-on): Likewise.
21680         * modules/fchownat (Depends-on): Likewise.
21681         * modules/getcwd (Depends-on): Likewise.
21682         * modules/mkdirat (Depends-on): Likewise.
21683         * modules/mkfifoat (Depends-on): Likewise.
21684         * modules/readlinkat (Depends-on): Likewise.
21685         * modules/symlinkat (Depends-on): Likewise.
21686         * modules/dup2-tests (Depends-on): Likewise.
21687         * modules/fdutimensat-tests (Depends-on): Likewise.
21688         * modules/futimens-tests (Depends-on): Likewise.
21690 2011-11-19  Bruno Haible  <bruno@clisp.org>
21692         euidaccess: Update a comment.
21693         * lib/euidaccess.c: Update comment about platforms with faccessat.
21695 2011-11-19  Bruno Haible  <bruno@clisp.org>
21697         openat: Fix file list.
21698         * modules/openat (Files): Remove lib/at-func.c.
21700 2011-11-19  Bruno Haible  <bruno@clisp.org>
21702         fstatat: Simplify.
21703         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
21704         gnulib should define rpl_fstatat, there is a
21705         "#define fstatat rpl_fstatat" in <sys/stat.h>.
21707 2011-11-19  Bruno Haible  <bruno@clisp.org>
21709         Ensure 'inline' can be used in tests/test-utimens-common.h.
21710         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
21711         * modules/futimens-tests (configure.ac): Likewise.
21712         * modules/utimens-tests (configure.ac): Likewise.
21713         * modules/utimensat-tests (configure.ac): Likewise.
21715 2011-11-19  Simon Josefsson  <simon@josefsson.org>
21717         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
21718         not hash_insert0.
21719         (hash_insert_if_absent): Doc fix.
21721 2011-11-19  Simon Josefsson  <simon@josefsson.org>
21723         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
21725 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21727         test-getcwd: disambiguate exit status
21728         * tests/test-getcwd.c (test_long_name): Return 0..7.
21729         (main): Exit with an unambiguous exit status.  The old
21730         code yielded a mysterious mixture of two failure codes.
21732         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
21733         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
21734         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
21735         rpl_fstatat or fstatat.  This should fix the other problem
21736         reported by Kai Habel in
21737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
21738         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
21739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
21740         and I reproduced it on a Solaris 8 host we still have in production.
21742 2011-11-18  Jim Meyering  <meyering@redhat.com>
21744         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
21745         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
21746         Add a sentence to the comment.
21747         (hash_insert0): New function that simply calls hash_insert_if_absent.
21748         * lib/hash.h (hash_insert_if_absent): Declare it.
21749         (hash_insert0): Add deprecation attribute.
21750         (_GL_ATTRIBUTE_DEPRECATED): Define.
21751         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
21752         not hash_insert0.
21753         * NEWS: Mention it, even though it's not really an incompatible change.
21755 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
21757         openat: avoid compilation failure due to lack of <errno.h> inclusion
21758         * lib/openat.c: Include <errno.h>.
21760 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21762         * modules/getcwd (Depends-on): Add fdopendir.
21763         This fixes one of the two problems reported by Kai Habel in
21764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
21766         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
21767         stdalign problem reported by Ian Beckwith in
21768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
21769         * modules/crypto/gc-arcfour (Depends-on):
21770         Depend conditionally on crypto/arcfour.
21771         * modules/crypto/gc-arctwo (Depends-on):
21772         Depend conditionally on crypto/arctwo.
21773         * modules/crypto/gc-des (Depends-on):
21774         Depend conditionally on crypto/des.
21775         * modules/crypto/gc-hmac-md5 (Depends-on):
21776         Depend conditionally on crypto/hmac-md5.
21777         * modules/crypto/gc-hmac-sha1 (Depends-on):
21778         Depend conditionally on crypto/hmac-sha1.
21779         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
21780         * modules/crypto/gc-md4 (Depends-on):
21781         Depend conditionally on crypto/md4.
21782         * modules/crypto/gc-md5 (Depends-on):
21783         Depend conditionally on crypto/md5.
21784         * modules/crypto/gc-rijndael (Depends-on):
21785         Depend conditionally on crypto/rijndael.
21786         * modules/crypto/gc-sha1 (Depends-on):
21787         Depend conditionally on crypto/sha1.
21788         * modules/crypto/gc-arcfour:
21789         * modules/crypto/gc-arctwo:
21790         * modules/crypto/gc-des:
21791         * modules/crypto/gc-hmac-md5:
21792         * modules/crypto/gc-hmac-sha1:
21793         * modules/crypto/gc-md2:
21794         * modules/crypto/gc-md4:
21795         * modules/crypto/gc-md5:
21796         * modules/crypto/gc-rijndael:
21797         * modules/crypto/gc-sha1:
21798         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
21799         now that the conditional dependencies do the work for us.
21801 2011-11-17  Jim Meyering  <meyering@redhat.com>
21803         tests: factor st_ctime-comparison out of two headers
21804         * tests/test-utimens-common.h (ctime_compare): Define.
21805         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
21806         * tests/test-lutimens.h (test_lutimens): Likewise.
21807         * tests/test-utimens.h (test_utimens): Likewise.
21809         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
21810         Invoke the test program via an init.sh-using wrapper.
21811         * tests/test-getcwd.sh: New file.
21812         * modules/getcwd-tests (Files): Add it.
21813         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
21815 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
21817         gitlog-to-changelog: support multi-author commits.
21818         The FSF cares about keeping track of all authors of patches to its
21819         projects, but Git doesn't provide obvious support for multi-author
21820         changesets. Consensus seems to be forming around the use of extra
21821         Signed-off-by inspired lines in the log message formatted as
21822         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
21823         multi-author commits between version control systems.
21824         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
21825         log message and output in standard ChangeLog multi-author format.
21826         Reported by Peter Rosin <peda@lysator.liu.se>
21828 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
21829             Bruno Haible  <bruno@clisp.org>
21831         Fix some modules' file list.
21832         * modules/fstatat (Files): Add m4/lstat.m4.
21833         * modules/openat (Files): Likewise.
21834         * modules/unlinkat (Files): Likewise.
21836 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
21838         maint.mk: fix tight-scope.mk generation in VPATH builds.
21839         * top/maint.mk (tight-scope.mk): Make sure to prefix file
21840         reference with $(srcdir) so that the file is found correctly even
21841         when running `make syntax-check' in a VPATH build.
21843 2011-11-13  Bruno Haible  <bruno@clisp.org>
21844             Jim Meyering  <meyering@redhat.com>
21846         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
21847         * tests/init.sh (compare): Remove "No differences encountered" or
21848         synonymous output from the 'diff' program.
21850 2011-11-13  Bruno Haible  <bruno@clisp.org>
21852         Makefile: Tweak indentation.
21853         * Makefile: Use tab as first character in every line that contains rule
21854         commands.
21856 2011-11-13  Bruno Haible  <bruno@clisp.org>
21858         Syntax check for copyright statements.
21859         * check-copyright: New file.
21860         * Makefile (sc_check_copyright): New rule.
21862 2011-11-13  Simon Josefsson  <simon@josefsson.org>
21864         * build-aux/git-version-gen: Add --prefix to configure the tag
21865         match string.
21867 2011-11-13  Simon Josefsson  <simon@josefsson.org>
21869         * build-aux/git-version-gen: Add --help and --version.
21871 2011-11-12  Jim Meyering  <meyering@redhat.com>
21873         revamp the other test-exclude?.sh scripts to use init.sh, too
21874         * tests/test-exclude1.sh: Use init.sh.
21875         * tests/test-exclude2.sh: Likewise.
21876         * tests/test-exclude3.sh: Likewise.
21877         * tests/test-exclude4.sh: Likewise.
21878         * tests/test-exclude5.sh: Likewise.
21879         * tests/test-exclude6.sh: Likewise.
21880         * tests/test-exclude7.sh: Likewise.
21881         * tests/test-exclude8.sh: Likewise.
21882         * modules/exclude-tests (Files): List init.sh.
21884         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
21885         These shell scripts ignored failure of the binary test-exclude,
21886         so making the latter return 77 didn't cause them to be skipped.
21887         * tests/test-exclude5.sh: Exit with test-exclude's error status
21888         when that program fails.  Revamp to use init.sh.
21889         * tests/test-exclude2.sh: Likewise.
21891         test-exclude: fix a typo
21892         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
21894 2011-11-11  Bruno Haible  <bruno@clisp.org>
21896         obstack: Fix compilation error on MSVC 9.
21897         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
21899 2011-11-11  Jim Meyering  <meyering@redhat.com>
21901         test-exclude: skip tests rather than failing on deficient systems
21902         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
21903         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
21904         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
21905         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
21907 2011-11-10  Bruno Haible  <bruno@clisp.org>
21909         ptsname_r test: Avoid gcc warning on glibc systems.
21910         * tests/test-ptsname_r.c (null_ptr): New function.
21911         (test_errors): Use it.
21913 2011-11-10  Bruno Haible  <bruno@clisp.org>
21915         ptsname_r: Avoid compilation error on OSF/1 5.1.
21916         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
21917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
21918         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
21919         function is not declared or incompatibly declared.
21920         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
21921         * modules/ptsname_r (Depends-on, configure.ac): Update.
21922         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
21924 2011-11-10  Bruno Haible  <bruno@clisp.org>
21926         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
21927         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
21928         When cross-compiling, guess yes on all platforms except AIX.
21929         Reported by Ludovic Courtès <ludo@gnu.org>.
21931 2011-11-09  Bruno Haible  <bruno@clisp.org>
21933         ptsname_r tests: Fix bugs.
21934         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
21935         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
21937 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21939         fstatat: work with cross-compilation
21940         Problem reported by Ludovic Courtès in
21941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
21942         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
21943         "cross-compiling" and assume the bug is present.  Replace
21944         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
21945         an inverted sense, to be more conservative about our assumptions.
21946         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
21948 2011-11-09  Bruno Haible  <bruno@clisp.org>
21950         Improve MODULES.html output.
21951         * modules/mkfifoat (Description): Use the word "function".
21952         * modules/readlinkat (Description): Likewise.
21953         * modules/symlinkat (Description): Likewise.
21955 2011-11-09  Eric Blake  <eblake@redhat.com>
21957         ptsname_r-tests: new test module
21958         * modules/ptsname_r-tests: New module.
21959         * tests/test-ptsname_r.c: New file.
21961         ptsname_r: new module
21962         * modules/ptsname_r: New module.
21963         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
21964         * lib/ptsname.c (__ptsname_r): Split...
21965         * lib/ptsname_r.c: ...into new file.
21966         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
21967         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
21968         * modules/stdlib (Makefile.am): Substitute witnesses.
21969         * lib/stdlib.in.h (ptsname_r): Declare it.
21970         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
21971         * MODULES.html.sh (Misc): Likewise.
21972         * modules/ptsname (Depends-on): Alter dependency.
21973         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
21975 2011-11-09  Jim Meyering  <meyering@redhat.com>
21977         announce-gen: be more concise when there's only one URL+tarball
21978         * build-aux/announce-gen (get_tool_versions): When you distribute
21979         only one type of tarball, combine the first two "Here are..."
21980         sections and make the key-checking grammar independent of
21981         how many tarballs there are.
21983 2011-11-09  Eric Blake  <eblake@redhat.com>
21985         openpty: provide a stub on mingw
21986         * lib/pty.in.h (includes): Provide forward declarations.
21987         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
21989         raise: fix mingw handling of SIGPIPE
21990         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
21992 2011-11-08  Bruno Haible  <bruno@clisp.org>
21994         More conditional dependencies.
21995         * modules/faccessat (Depends-on): Add conditions.
21996         * modules/fchmodat (Depends-on): Likewise.
21997         * modules/fchownat (Depends-on): Likewise.
21998         * modules/fstatat (Depends-on): Likewise.
21999         * modules/mkfifoat (Depends-on): Likewise.
22000         * modules/readlinkat (Depends-on): Likewise.
22001         * modules/symlinkat (Depends-on): Likewise.
22002         * modules/unlinkat (Depends-on): Likewise.
22003         * modules/utimensat (Depends-on): Likewise.
22004         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
22005         * modules/linkat (Depends-on): Refine the conditions.
22006         * modules/renameat (Depends-on): Likewise.
22008 2011-11-08  Bruno Haible  <bruno@clisp.org>
22010         faccessat: Move AC_LIBOBJ invocation to module description.
22011         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
22012         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
22013         invocation from here...
22014         * modules/faccessat (configure.ac): ... to here. Invoke
22015         gl_PREREQ_FACCESSAT.
22017 2011-11-08  Bruno Haible  <bruno@clisp.org>
22019         faccessat: Simplify autoconf macro.
22020         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
22021         gl_FUNC_EUIDACCESS.
22023 2011-11-08  Bruno Haible  <bruno@clisp.org>
22025         renameat: Fix dependencies.
22026         * modules/renameat (Depends-on): Add stdbool.
22028 2011-11-08  Bruno Haible  <bruno@clisp.org>
22030         mkfifoat: Fix module description.
22031         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
22032         not gl_UNISTD_MODULE_INDICATOR.
22034 2011-11-08  Bruno Haible  <bruno@clisp.org>
22036         fstatat: Remove unused dependency.
22037         * modules/fstatat (Depends-on): Remove fstat.
22039 2011-11-08  Simon Josefsson  <simon@josefsson.org>
22041         GNUmakefile: behave when Makefile is missing.
22042         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
22044 2011-11-08  Bruno Haible  <bruno@clisp.org>
22046         openat: Conditionalize dependencies.
22047         * lib/openat.c: Reduce the scope of some #includes.
22048         * modules/openat (Depends-on): Add conditions.
22050 2011-11-07  Jim Meyering  <meyering@redhat.com>
22052         maint.mk: extract GPG key ID without using a temporary file
22053         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
22054         without using a temporary file.  Based on a suggestion from Werner Koch
22055         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
22057 2011-11-07  Eric Blake  <eblake@redhat.com>
22059         grantpt: fix typo
22060         * lib/stdlib.in.h (grantpt): Check correct function.
22062         maint.mk: silence new syntax check
22063         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
22065 2011-11-06  Bruno Haible  <bruno@clisp.org>
22067         Doc about floating-point and math API.
22068         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
22069         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
22071 2011-11-06  Bruno Haible  <bruno@clisp.org>
22073         stdalign tests: Skip the test when compiled by Sun C.
22074         * tests/test-stdalign.c (main): Skip the test on Sun C.
22076 2011-11-06  Bruno Haible  <bruno@clisp.org>
22078         ansi-c++-opt: Complete the 2011-06-05 change.
22079         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
22080         does not support namespaces, set the variable to "no", not to ":".
22082 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
22084         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
22086 2011-11-06  Bruno Haible  <bruno@clisp.org>
22088         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
22089         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
22090         (minus_zerol) [HP-UX]: New macro.
22091         (unary_minus) [HP-UX]: New function.
22092         (copysignl) [HP-UX]: Use unary_minus function.
22094 2011-11-06  Bruno Haible  <bruno@clisp.org>
22096         ldexp, ldexpf, ldexpl: Enhance tests.
22097         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
22098         and tests/test-ldexpl.c.
22099         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
22100         LDEXP, MIN_EXP, MAX_EXP): New macros.
22101         Include test-ldexp.h.
22102         (main): Just call test_function.
22103         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
22104         infinity.h, nan.h.
22105         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
22106         MAX_EXP): New macros.
22107         Include test-ldexp.h.
22108         (x, y): Remove variables.
22109         (main): Just call test_function.
22110         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
22111         infinity.h, nan.h.
22112         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
22113         MAX_EXP): New macros.
22114         Include test-ldexp.h.
22115         (x, y): Remove variables.
22116         (main): Just call test_function.
22117         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
22118         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
22119         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
22120         (Depends-on): Add isnand-nolibm, signbit, float.
22121         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
22122         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
22123         (Depends-on): Add isnanf-nolibm, signbit, float.
22125 2011-11-06  Bruno Haible  <bruno@clisp.org>
22127         math tests: Cosmetics.
22128         * tests/test-math-c++.cc: Reorder declarations.
22130 2011-11-05  Bruno Haible  <bruno@clisp.org>
22132         fma*: Simplify test.
22133         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
22134         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
22136         Tests for module 'fmal'.
22137         * modules/fmal-tests: New file.
22138         * tests/test-fmal1.c: New file.
22139         * tests/test-fmal2.c: New file.
22141         New module 'fmal'.
22142         * lib/math.in.h (fmal): New declaration.
22143         * lib/fmal.c: New file.
22144         * m4/fmal.m4: New file.
22145         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
22146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
22147         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
22148         REPLACE_FMAL.
22149         * modules/fmal: New file.
22150         * doc/posix-functions/fmal.texi: Mention the new module and the various
22151         bugs.
22153         Tests for module 'fmaf'.
22154         * modules/fmaf-tests: New file.
22155         * tests/test-fmaf1.c: New file.
22156         * tests/test-fmaf2.c: New file.
22158         New module 'fmaf'.
22159         * lib/math.in.h (fmaf): New declaration.
22160         * lib/fmaf.c: New file.
22161         * m4/fmaf.m4: New file.
22162         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
22163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
22164         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
22165         REPLACE_FMAF.
22166         * modules/fmaf: New file.
22167         * doc/posix-functions/fmaf.texi: Mention the new module and the various
22168         bugs.
22170         Tests for module 'fma'.
22171         * modules/fma-tests: New file.
22172         * tests/test-fma1.c: New file.
22173         * tests/test-fma1.h: New file.
22174         * tests/test-fma2.c: New file.
22175         * tests/test-fma2.h: New file.
22177         New module 'fma'.
22178         * lib/math.in.h (fma): New declaration.
22179         * lib/fma.c: New file.
22180         * m4/fma.m4: New file.
22181         * m4/fegetround.m4: New file.
22182         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
22183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
22184         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
22185         REPLACE_FMA.
22186         * modules/fma: New file.
22187         * doc/posix-functions/fma.texi: Mention the new module and the various
22188         bugs.
22190         Extend gl_MATHFUNC.
22191         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
22192         Support 'void' as argument type.
22193         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
22195 2011-11-05  Jim Meyering  <meyering@redhat.com>
22197         maint.mk: also prohibit inclusion of dirent.h without use
22198         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
22200 2011-11-05  Bruno Haible  <bruno@clisp.org>
22202         ldexpl tests: Avoid test failure on MSVC 9.
22203         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
22204         value. Needed in order to enforce the conversion from a value greater
22205         than LDBL_MAX to Infinity.
22207 2011-11-05  Bruno Haible  <bruno@clisp.org>
22209         New modules 'at-internal', 'openat-h', split off from module 'openat'.
22210         * modules/at-internal: New file, extracted from modules/openat.
22211         * modules/openat-h: New file.
22212         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
22213         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
22214         * modules/openat (Description): Add reference to POSIX function.
22215         (Files): Remove lib/openat.h, lib/openat-proc.c.
22216         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
22217         intprops, unistd.
22218         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
22219         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
22220         gl_FCNTL_MODULE_INDICATOR.
22221         (Include): Remove unistd.h, openat.h.
22222         * modules/areadlinkat (Files): Add lib/at-func.c.
22223         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
22224         openat-die, openat-h, save-cwd.
22225         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
22226         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
22227         openat-die, openat-h, save-cwd, unistd.
22228         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
22229         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22230         openat-h, save-cwd. Remove fcntl-h, openat.
22231         * modules/fchmodat (Files): Remove lib/openat.h.
22232         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
22233         openat, stdbool, unistd.
22234         * modules/fchownat (Files): Remove lib/openat.h.
22235         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
22236         openat, stdbool, sys_stat.
22237         * modules/fdopendir (Files): Remove lib/openat-priv.h,
22238         lib/openat-proc.c.
22239         (Depends-on): Add at-internal.
22240         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
22241         * modules/fstatat (Files): Remove lib/openat.h.
22242         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
22243         stdbool, unistd.
22244         * modules/fts (Depends-on): Add openat-h.
22245         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
22246         openat.
22247         * modules/mkdirat (Files): Remove lib/openat.h.
22248         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
22249         openat, stdbool, sys_stat.
22250         * modules/mkfifoat (Files): Add lib/at-func.c.
22251         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22252         openat-h, save-cwd. Remove fcntl-h, openat.
22253         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
22254         * modules/readlinkat (Files): Add lib/at-func.c.
22255         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22256         openat-h, save-cwd. Remove fcntl-h, openat.
22257         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
22258         openat.
22259         * modules/selinux-at (Files): Add lib/at-func.c.
22260         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
22261         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
22262         * modules/symlinkat (Files): Add lib/at-func.c.
22263         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22264         openat-h, save-cwd. Remove fcntl-h, openat.
22265         * modules/unlinkat (Files): Remove lib/openat.h.
22266         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
22267         stdbool.
22268         * modules/utimensat (Files): Add lib/at-func.c.
22269         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
22270         openat-die, openat-h, save-cwd.
22271         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
22272         * modules/fdutimensat-tests (Depends-on): Add openat.
22273         * modules/fstatat-tests (Depends-on): Add openat-h.
22274         * modules/readlinkat-tests (Depends-on): Add openat.
22275         * modules/symlinkat-tests (Depends-on): Add openat.
22277 2011-11-05  Bruno Haible  <bruno@clisp.org>
22279         openat: Include <stdbool.h>.
22280         * lib/openat.c: Include <stdbool.h>.
22282 2011-11-04  Bruno Haible  <bruno@clisp.org>
22284         fchownat, renameat, unlinkat: Fix dependencies.
22285         * modules/fchownat (Depends-on): Add fstatat.
22286         * modules/renameat (Depends-on): Likewise.
22287         * modules/unlinkat (Depends-on): Likewise.
22289 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
22291         openat: remove direct dependency on dirent
22292         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
22293         and hasn't been needed ever since fdopendir was split into its own
22294         module on 2009-08-31.
22295         * modules/openat (Depends-on): Remove dirent.
22297 2011-11-04  Bruno Haible  <bruno@clisp.org>
22299         renameat: Optimize code size.
22300         * modules/renameat (configure.ac): Don't compile at-func2.c if
22301         REPLACE_RENAMEAT is 1.
22303 2011-11-04  Bruno Haible  <bruno@clisp.org>
22305         openat tests: Fix file list.
22306         * modules/openat-tests (Files): Add tests/test-open.h.
22308 2011-11-04  Bruno Haible  <bruno@clisp.org>
22310         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
22311         * modules/fchmodat (Depends-on): Add openat-die.
22312         * modules/fchownat (Depends-on): Likewise.
22313         * modules/linkat (Depends-on): Likewise.
22314         * modules/renameat (Depends-on): Likewise.
22315         * modules/openat (Depends-on): Add dirent.
22317 2011-11-04  Jim Meyering  <meyering@redhat.com>
22319         at-func*.c: fix comments
22320         * lib/at-func2.c: Correct/improve first-line comment.
22321         * lib/at-func.c: Correct grammar in first-line comment.
22323 2011-11-04  Bruno Haible  <bruno@clisp.org>
22325         New module 'mkdirat', split off from module 'openat'.
22326         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
22327         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
22328         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
22329         * modules/mkdirat: New file, extracted from modules/openat.
22330         * modules/openat (Files): Remove lib/mkdirat.c.
22331         (Depends-on): Remove mkdir.
22332         (configure.ac): Remove AC_LIBOBJ of mkdirat.
22333         (Include): Remove <sys/stat.h>.
22334         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
22335         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
22336         tests/test-mkdir.h.
22337         (Depends-on): Remove ignore-value.
22338         (Makefile.am): Remove rules for test-mkdirat.
22339         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
22340         of module 'openat'.
22341         * NEWS: Mention the change.
22343 2011-11-04  Bruno Haible  <bruno@clisp.org>
22345         closedir: Avoid warning on mingw.
22346         * lib/closedir.c: Include <unistd.h>.
22348 2011-11-04  Bruno Haible  <bruno@clisp.org>
22350         New module 'fstatat', split off from module 'openat'.
22351         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
22352         defined.
22353         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
22354         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
22355         gl_FUNC_FSTATAT.
22356         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
22357         * modules/fstatat: New file, extracted from modules/openat.
22358         * modules/openat (Files): Remove lib/fstatat.c.
22359         (Depends-on): Remove lstat.
22360         (configure.ac): Remove AC_LIBOBJ of fstatat.
22361         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
22362         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
22363         tests/test-lstat.h, tests/test-stat.h.
22364         (Depends-on): Remove getcwd-lgpl.
22365         (Makefile.am): Remove rules for test-fstatat.
22366         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
22367         of module 'openat'.
22368         * NEWS: Mention the change.
22369         * modules/getcwd (Depends-on): Add fstatat.
22370         * modules/linkat (Depends-on): Likewise.
22371         * modules/mkfifoat-tests (Depends-on): Likewise.
22372         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
22374 2011-11-03  Bruno Haible  <bruno@clisp.org>
22376         New module 'unlinkat', split off from module 'openat'.
22377         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
22378         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
22379         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
22380         * modules/unlinkat: New file, extracted from modules/openat. Correct
22381         the dependency conditions.
22382         * modules/openat (Files): Remove lib/unlinkat.c.
22383         (Depends-on): Remove rmdir, unlink.
22384         (configure.ac): Remove AC_LIBOBJ of unlinkat.
22385         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
22386         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
22387         tests/test-rmdir.h, tests/test-unlink.h.
22388         (Depends-on): Remove unlinkdir.
22389         (Makefile.am): Remove rules for test-unlinkat.
22390         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
22391         of module 'openat'.
22392         * NEWS: Mention the change.
22393         * modules/linkat-tests (Depends-on): Add unlinkat.
22394         * modules/mkfifoat-tests (Depends-on): Likewise.
22395         * modules/readlinkat-tests (Depends-on): Likewise.
22397 2011-11-02  Bruno Haible  <bruno@clisp.org>
22399         New module 'fchmodat', split off from module 'openat'.
22400         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
22401         defined.
22402         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
22403         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
22404         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
22405         * modules/fchmodat: New file, extracted from modules/openat.
22406         * modules/openat (Files): Remove lib/fchmodat.c.
22407         (configure.ac): Remove AC_LIBOBJ of fchmodat.
22408         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
22409         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
22410         (Makefile.am): Remove rules for test-fchmodat.
22411         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
22412         of module 'openat'.
22413         * NEWS: Mention the change.
22415 2011-11-02  Jim Meyering  <meyering@redhat.com>
22417         putenv: indent #definition of "environ" to placate cppi
22418         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
22420         gitlog-to-changelog: provide a ChangeLog-repair mechanism
22421         Git logs are often treated as immutable, because editing them
22422         changes the SHA1 checksums of all descendants.  Thus, errors in
22423         git logs tend to stay there forever.  However, when we generate
22424         a ChangeLog file -- typically for distribution -- from that git log,
22425         we can actually make corrections in the generated file.  The key
22426         lies in recording in machine-readable/applicable form the desired
22427         corrections.  See --help for description and an example.
22428         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
22429         (usage): Describe it; alphabetize option descriptions.
22430         (main): Honor the new option, carefully.
22432 2011-11-01  Jim Meyering  <meyering@redhat.com>
22434         gitlog-to-changelog: avoid an infloop
22435         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
22436         that ends up being empty.
22438 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22440         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
22441         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
22442         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
22443         contains (possibly-quoted) backslashes.  This should avoid
22444         all-too-common shell bugs if COMPLICATED contains backslashes in
22445         the "wrong" places.  Reported by David Evans in
22446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
22447         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
22448         because we want ASCII ranges.  Is there some reason we don't use
22449         the C locale everywhere in this script?
22450         (func_module, top level): Avoid unwanted pathname expansion when
22451         $repo_url_prefix or $repo_url_suffix_repl contain shell
22452         metacharacters like '?' and '*'.
22454 2011-11-01  Bruno Haible  <bruno@clisp.org>
22456         fchownat: Improve description.
22457         * modules/fchownat (Description): Add link to function.
22459 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22461         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
22462         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
22463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
22464         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
22466 2011-11-01  Bruno Haible  <bruno@clisp.org>
22468         alignof: Avoid collision with stdalign module.
22469         * lib/alignof.h (alignof): Remove macro.
22470         * NEWS: Mention the change.
22471         Reported by Paul Eggert.
22473 2011-11-01  Bruno Haible  <bruno@clisp.org>
22475         New module 'fchownat', split off from module 'openat'.
22476         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
22477         defined.
22478         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
22479         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
22480         invoke gl_FUNC_FCHOWNAT.
22481         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
22482         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
22483         * modules/fchownat: New file, extracted from modules/openat.
22484         * modules/openat (Files): Remove lib/fchownat.c.
22485         (Depends-on): Remove lchown.
22486         (configure.ac): Remove AC_LIBOBJ of fchownat.
22487         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
22488         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
22489         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
22490         (Depends-on): Remove mgetgroups, usleep, stat-time.
22491         (configure.ac): Remove test for getegid.
22492         (Makefile.am): Remove rules for test-fchownat.
22493         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
22494         of module 'openat'.
22495         * NEWS: Mention the change.
22497 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
22499         stdalign: port better to MSVC and to Sun C 5.11
22500         This fixes some of the problems reported by Bruno Haible in
22501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
22502         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
22503         shortcomings of MSVC and of Sun C 5.11.
22504         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
22505         around __declspec arg.
22506         * modules/stdalign-tests (Files): Add tests/macros.h.
22507         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
22508         Include macros.h, for ASSERT.
22509         (DECLARE_ALIGNED): Remove.
22510         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
22511         to catch bug), and to 1 if not (simplifies the rest of the code).
22512         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
22513         (CHECK_AUTO): Remove.
22514         (CHECK_ALIGNED): Check only the alignment of the static vars,
22515         since auto var alignment isn't supported by Sun C 5.11.
22516         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
22517         ASSERT failures are easier to diagnose.
22519 2011-10-31  Bruno Haible  <bruno@clisp.org>
22521         doc about some IRIX 5.3 problems.
22522         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
22523         on IRIX 5.3.
22524         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
22525         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
22526         5.3.
22527         * doc/posix-functions/grantpt.texi: Likewise.
22528         * doc/posix-functions/unlockpt.texi: Likewise.
22529         * doc/posix-functions/lgamma.texi: Likewise.
22530         * doc/posix-functions/nextafter.texi: Likewise.
22531         * doc/posix-functions/remainder.texi: Likewise.
22532         * doc/posix-functions/select.texi: Mention misplaced declaration on
22533         IRIX 5.3.
22534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22536 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
22538         gitlog-to-changelog: fix git-log invocation.
22539         git-log mishandles date strings before 1970-01-01 UTC, and there is
22540         no use to specify --since=1970-01-01 by default anyway.
22541         * build-aux/gitlog-to-changelog: By default, when no --since option
22542         was given, do not specify explicit --since option to git-log.
22544 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
22546         gitlog-to-changelog: new option --append-dot.
22547         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
22548         first non-blank line of each commit message terminated with a dot.
22550 2011-10-30  Bruno Haible  <bruno@clisp.org>
22552         ffsl, ffsll: Avoid compilation error due to 'restrict'.
22553         * lib/ffsl.h: Include <config.h>.
22554         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
22556 2011-10-30  Jim Meyering  <meyering@redhat.com>
22558         GNUmakefile: reenable "make syntax-check" for most projects
22559         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
22560         build-aux variable", "syntax-check" would do nothing but succeed with
22561         the "No version control files detected..." diagnostic (unless you
22562         happened to override _build-aux via cfg.mk).
22563         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
22564         to precede inclusion of maint.mk.  Otherwise, these variables would
22565         be used undefined in any project that does not override the default.
22567 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
22569         gitlog-to-changelog: treat a message with only blank lines as empty.
22570         * build-aux/gitlog-to-changelog: Move the code that removes leading and
22571         trailing blank lines before the code that issues a warning about an
22572         empty commit message.
22574 2011-10-30  Jim Meyering  <meyering@redhat.com>
22576         test-parse-datetime.c: avoid new DST-related false positive test failure
22577         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
22578         based on the time/date we'll convert, not the current time.
22579         Otherwise, the moment we cross a DST boundary like today's in
22580         Europe, (CEST to CET), that offset ends up being one hour off.
22582 2011-10-27  Bruno Haible  <bruno@clisp.org>
22584         fstat: Tweak documentation.
22585         * modules/fstat (Description): More precise description.
22587 2011-10-27  Bruno Haible  <bruno@clisp.org>
22589         Update documentation regarding 'largefile' module.
22590         * doc/posix-functions/fstat.texi: Tweak wording.
22591         * doc/posix-functions/opendir.texi: Mention that the module fixes the
22592         problems with huge directories and/or small ino_t types.
22593         * doc/posix-functions/readdir.texi: Likewise.
22594         * doc/posix-functions/rewinddir.texi: Likewise.
22596 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
22598         maint.mk: don't maintain a second build-aux variable.
22599         * maint.mk (build_aux): Removed.  The maintainer-makefile module
22600         depends on GNUmakefile, which already maintains a cfg.mk
22601         overridable $(_build-aux) for projects with a non-standard
22602         build-aux directory location, although without the $(srcdir)
22603         prefix.  Use that variable consistently instead of introducing a
22604         second one.  Adjust all call sites.
22606 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22608         Add stdalign module and use it in other modules.
22609         This is based on a previous proposal by Bruno Haible
22610         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
22612         stdalign: new module
22613         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
22614         * modules/stdalign: New files.
22615         * MODULES.html.sh (c1x_core_properties): Add stdalign.
22616         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
22618         stdalign-tests: new module
22619         * modules/stdalign-tests, tests/test-stdalign.c: New files.
22621         argp: use stdalign
22622         * lib/argp-parse.c: Include <stdalign.h>.
22623         (alignof): Remove.
22624         * modules/argp (Depends-on): Add stdalign.
22626         crypto libraries: use stdalign
22627         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
22628         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
22629         Do not include <stdlib.h> twice, in md4.c.
22630         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
22631         because we are accessing a pointer's bit-pattern, not a size.
22632         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
22633         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
22634         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
22635         * modules/crypto/sha512: Likewise.
22637         sys_socket: use stdalign, not alignof
22638         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
22639         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
22641 2011-10-27  Bruno Haible  <bruno@clisp.org>
22643         raise test: Avoid a test failure on Linux/MIPS.
22644         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
22645         because 99 is a valid signal on Linux/MIPS.
22647 2011-10-27  Bruno Haible  <bruno@clisp.org>
22649         nonblocking tests: Fix test failure on Linux/MIPS.
22650         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
22651         Set to 270000.
22653 2011-10-27  Bruno Haible  <bruno@clisp.org>
22655         utimensat: Work around problem on Linux/hppa.
22656         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
22657         values.
22658         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
22660 2011-10-25  Jim Meyering  <meyering@redhat.com>
22662         maint.mk: fix a bug in sc_prohibit_stddef_without_use
22663         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
22664         after symbols like NULL, size_t, etc.
22665         Reported by Alfred M. Szmidt.
22667         maint.mk: exempt ENODATA from a syntax-check rule
22668         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
22669         from the sc_prohibit_always-defined_macros syntax-check rule.
22670         Add a comment.  See this for more details:
22671         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
22673 2011-10-23  Jim Meyering  <meyering@redhat.com>
22675         fts: close parent dir FD before returning from post-traversal fts_read
22676         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
22677         unlink A, even though an FD open on A remained.  This is suboptimal
22678         (holding a file descriptor open longer than needed), but otherwise not
22679         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
22680         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
22681         that represents a real problem: it causes the removal of A to fail
22682         with e.g., "rm: cannot remove `A': Device or resource busy"
22684         fts visits each directory twice and keeps a cache (fts_fd_ring) of
22685         directory file descriptors.  After completing the final, FTS_DP,
22686         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
22687         cache, but then proceeded to add a new FD to it via the subsequent
22688         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
22689         final file descriptor would be closed only via fts_close's call to
22690         fd_ring_clear.  Now, it is usually closed earlier, via the final
22691         FTS_DP-returning fts_read call.
22692         * lib/fts.c (restore_initial_cwd): New function, converted from
22693         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
22694         Update callers.
22695         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
22696         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
22698 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
22699             Bruno Haible  <bruno@clisp.org>
22700             Jim Meyering  <jim@meyering.net>
22702         readme-release: improve safety of release prep instructions.
22703         * README-release: Don't git pull all branches when only master
22704         is needed for the release process.
22705         Run make maintainer-clean before changing trees and merging.
22706         Don't try to run ./configure right after git pull in case files
22707         that influence the bootstrap process have changed, move the
22708         ./configure step to after running ./bootstrap.
22709         Don't bootstrap "one last time"... it's the first time!
22711 2011-10-22  Bruno Haible  <bruno@clisp.org>
22713         errno, strerror-override: Support for MSVC 10.
22714         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
22715         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
22716         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
22717         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
22718         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
22719         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
22720         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
22721         Assign values compatible with MSVC 10.
22722         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
22723         New macros.
22724         (GNULIB_defined_EWINSOCK): New macro.
22725         * lib/strerror-override.c (strerror_override): Update accordingly.
22726         * lib/strerror-override.h: Likewise.
22727         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
22728         longer equal to the corresponding errno value.
22729         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22731 2011-10-22  Bruno Haible  <bruno@clisp.org>
22733         perror: Recognize when test program crashes.
22734         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
22735         strerror, set gl_cv_func_perror_works to no.
22736         Reported by Daniel Richard G. <skunk@iskunk.org>.
22738         perror: Fix indentation.
22739         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
22741 2011-10-22  Bruno Haible  <bruno@clisp.org>
22743         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
22744         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
22745         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
22746         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
22747         functions, not as a macro.
22748         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
22749         macros.
22750         (isfinite, isinf, isnan, signbit): Check overloaded functions and
22751         absence of macro.
22752         Suggested by Eric Blake.
22753         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22755 2011-10-21  Bruno Haible  <bruno@clisp.org>
22757         relocatable-prog-wrapper: Don't leave object files behind.
22758         * build-aux/install-reloc: Re-synchronize list of .o files to be
22759         removed with list of compilation units.
22761 2011-10-20  Bruno Haible  <bruno@clisp.org>
22763         openpty, posix_openpt: Remove code duplication.
22764         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
22765         * lib/openpty.c: Include <stdlib.h>.
22766         (openpty): Use posix_openpt on all platforms except IRIX.
22767         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
22769 2011-10-20  Bruno Haible  <bruno@clisp.org>
22771         unlockpt: Detect invalid argument.
22772         * lib/unlockpt.c: Include <fcntl.h>.
22773         (unlockpt): Check whether fd is valid, using fcntl().
22774         * modules/unlockpt (Depends-on): Add fcntl-h.
22776 2011-10-20  Bruno Haible  <bruno@clisp.org>
22778         openpty: Avoid compilation error on AIX 6.1.
22779         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
22781 2011-10-20  Bruno Haible  <bruno@clisp.org>
22783         posix_openpt: Support for OpenBSD.
22784         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
22785         (posix_openpt) [OpenBSD]: New code.
22786         * lib/grantpt.c: Include <fcntl.h>.
22787         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
22788         * modules/grantpt (Depends-on): Add fcntl-h.
22790 2011-10-20  Bruno Haible  <bruno@clisp.org>
22792         posix_openpt test: Coding style.
22793         * tests/test-posix_openpt.c: Use GNU coding style.
22795 2011-10-20  Bruno Haible  <bruno@clisp.org>
22797         grantpt: Support --avoid=pt_chown.
22798         * modules/grantpt (Files): Add lib/pty-private.h.
22800 2011-10-20  Bruno Haible  <bruno@clisp.org>
22802         posix_openpt: Fix autoconf macro.
22803         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
22804         unneeded check for _getpty.
22806 2011-10-20  Bruno Haible  <bruno@clisp.org>
22808         openpty: Update comments.
22809         * lib/openpty.c: Add comments about Minix.
22811 2011-10-19  Eric Blake  <eblake@redhat.com>
22813         openpty: relax license
22814         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
22816         pt_chown: use configmake to simplify build
22817         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
22819         ptsname and others: relax license
22820         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
22821         * modules/unlockpt (License): Likewise.
22822         * modules/pt_chown (License): Likewise.
22823         * modules/ptsname (License): Likewise.
22824         * modules/ttyname_r (License): Likewise.
22826 2011-10-19  Jim Meyering  <meyering@redhat.com>
22828         posix_openpt: remove spurious #endif
22829         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
22831 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
22833         maint.mk: Respect $(build_aux) in web-manual rule.
22834         * top/maint.mk (web-manual): Find gen-announce script in user's
22835         $(build_aux) directory instead of hard-coding 'build-aux'.
22837 2011-10-19  Bruno Haible  <bruno@clisp.org>
22839         posix_openpt: Fix compilation error.
22840         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
22841         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
22842         Mention the openpty module as an alternative.
22844 2011-10-19  Bruno Haible  <bruno@clisp.org>
22846         Support for old NeXTstep 3.3 frexp().
22847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
22848         execution time of the test to 5 seconds.
22849         Reported by Daniel Richard G. <skunk@iskunk.org>.
22851 2011-10-19  Bruno Haible  <bruno@clisp.org>
22853         Support for old NeXTstep 3.3 sed.
22854         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
22855         part, use /.../, not \|...|. Escape periods in the header file name.
22856         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
22857         Reported by Daniel Richard G. <skunk@iskunk.org>.
22859 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
22861         Support for old NeXTstep 3.3 gcc.
22862         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
22863         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
22864         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
22865         * lib/spawn.in.h (_Restrict_arr_): Likewise.
22866         * lib/regex.h (_Restrict_arr_): Likewise.
22867         * lib/regex_internal.h (re_token_t): Likewise.
22868         * lib/regexec.c (check_node_accept_bytes): Likewise.
22869         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
22871 2011-10-18  Eric Blake  <eblake@redhat.com>
22873         posix_openpt: new module
22874         * modules/posix_openpt: New module.
22875         * m4/posix_openpt.m4: New file.
22876         * lib/posix_openpt.c: Likewise.
22877         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
22878         (gl_STDLIB_H_DEFAULTS): Set defaults.
22879         * modules/stdlib (Makefile.am): Substitute macros.
22880         * lib/stdlib.in.h (posix_openpt): Declare.
22881         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
22882         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
22883         * modules/posix_openpt-tests: New test module.
22884         * tests/test-posix_openpt.c: New test.
22886 2011-10-15  Bruno Haible  <bruno@clisp.org>
22888         xstrtoll: Fix compilation failure.
22889         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
22890         from lib/strtol.c.
22891         * doc/posix-headers/limits.texi: Mention missing numerical limits on
22892         some platforms.
22893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22895 2011-10-15  Bruno Haible  <bruno@clisp.org>
22897         vasnprintf: Optimize bit search operation.
22898         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
22899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
22900         gl_DOUBLE_EXPONENT_LOCATION.
22901         * modules/vasnprintf (Files): Add m4/exponentd.m4.
22902         * modules/unistdio/u8-vasnprintf (Files): Likewise.
22903         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
22904         * modules/unistdio/u16-vasnprintf (Files): Likewise.
22905         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
22906         * modules/unistdio/u32-vasnprintf (Files): Likewise.
22907         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
22908         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
22909         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
22911 2011-10-15  Bruno Haible  <bruno@clisp.org>
22913         vasnprintf: Fix comments.
22914         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
22916 2011-10-14  Bruno Haible  <bruno@clisp.org>
22918         Tests for module 'integer_length_ll'.
22919         * modules/integer_length_ll-tests: New file.
22920         * tests/test-integer_length_ll.c: New file.
22922         New module 'integer_length_ll'.
22923         * lib/integer_length_ll.c: New file.
22924         * modules/integer_length_ll: New file.
22926 2011-10-14  Bruno Haible  <bruno@clisp.org>
22928         Tests for module 'integer_length_l'.
22929         * modules/integer_length_l-tests: New file.
22930         * tests/test-integer_length_l.c: New file.
22932         New module 'integer_length_l'.
22933         * lib/integer_length_l.c: New file.
22934         * modules/integer_length_l: New file.
22936 2011-10-14  Bruno Haible  <bruno@clisp.org>
22938         Tests for module 'integer_length'.
22939         * modules/integer_length-tests: New file.
22940         * tests/test-integer_length.c: New file.
22942         New module 'integer_length'.
22943         * lib/integer_length.h: New file.
22944         * lib/integer_length.c: New file.
22945         * modules/integer_length: New file.
22947 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
22949         popen: Fix dependency conditions.
22950         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
22952 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
22954         perror: Fix autoconf test.
22955         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
22956         <stdlib.h> and <string.h>.
22958 2011-10-14  Bruno Haible  <bruno@clisp.org>
22960         ffsl: Optimize on 64-bit platforms.
22961         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
22962         unrolling.
22964 2011-10-13  Bruno Haible  <bruno@clisp.org>
22966         ffsl: Optimize on 32-bit platforms.
22967         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
22968         use ffs() without a loop.
22970         ffsl, ffsll: Optimize for GCC.
22971         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
22972         * lib/ffsl.c (GCC_BUILTIN): New macro.
22973         * lib/ffsll.c (GCC_BUILTIN): Likewise.
22975 2011-10-13  Bruno Haible  <bruno@clisp.org>
22977         ffs, bcopy, memset: Support symbol renaming via config.h.
22978         * lib/ffs.c: Include <config.h>.
22979         * lib/bcopy.c: Likewise.
22980         * lib/memset.c: Likewise.
22982 2011-10-10  Bruno Haible  <bruno@clisp.org>
22984         atanl: Simplify for platforms where 'long double' == 'double'.
22985         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22986         alternative implementation.
22987         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22988         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22989         * modules/atanl (Depends-on): Add atan. Update conditions.
22991 2011-10-10  Bruno Haible  <bruno@clisp.org>
22993         acosl: Simplify for platforms where 'long double' == 'double'.
22994         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22995         alternative implementation.
22996         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22997         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22998         * modules/acosl (Depends-on): Add acos. Update conditions.
23000 2011-10-10  Bruno Haible  <bruno@clisp.org>
23002         asinl: Simplify for platforms where 'long double' == 'double'.
23003         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23004         alternative implementation.
23005         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23006         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23007         * modules/asinl (Depends-on): Add asin. Update conditions.
23009 2011-10-10  Bruno Haible  <bruno@clisp.org>
23011         tanl: Simplify for platforms where 'long double' == 'double'.
23012         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23013         implementation.
23014         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23015         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23016         * modules/tanl (Depends-on): Add tan. Update conditions.
23017         (configure.ac): Don't compile trigl.c if
23018         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23020 2011-10-10  Bruno Haible  <bruno@clisp.org>
23022         cosl: Simplify for platforms where 'long double' == 'double'.
23023         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23024         implementation.
23025         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23026         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23027         * modules/cosl (Depends-on): Add cos. Update conditions.
23028         (configure.ac): Don't compile sincosl.c and trigl.c if
23029         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23031 2011-10-10  Bruno Haible  <bruno@clisp.org>
23033         sinl: Simplify for platforms where 'long double' == 'double'.
23034         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23035         implementation.
23036         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23037         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23038         * modules/sinl (Depends-on): Add sin. Update conditions.
23039         (configure.ac): Don't compile sincosl.c and trigl.c if
23040         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23042 2011-10-10  Bruno Haible  <bruno@clisp.org>
23044         logl: Simplify for platforms where 'long double' == 'double'.
23045         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23046         implementation.
23047         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23048         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23049         * modules/logl (Depends-on): Add log. Update conditions.
23051 2011-10-10  Bruno Haible  <bruno@clisp.org>
23053         expl: Simplify for platforms where 'long double' == 'double'.
23054         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23055         implementation.
23056         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23057         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23058         * modules/expl (Depends-on): Add exp. Update conditions.
23060 2011-10-10  Bruno Haible  <bruno@clisp.org>
23062         sqrtl: Simplify for platforms where 'long double' == 'double'.
23063         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23064         alternative implementation.
23065         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23066         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23067         * modules/sqrtl (Depends-on): Update conditions.
23069 2011-10-10  Bruno Haible  <bruno@clisp.org>
23071         ldexpl: Simplify for platforms where 'long double' == 'double'.
23072         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23073         alternative implementation.
23074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23075         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23076         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
23078 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
23080         ffsll: set correct witness
23081         * modules/ffsll (configure.ac): Fix typo.
23083 2011-10-10  Bruno Haible  <bruno@clisp.org>
23085         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
23086         * lib/printf-frexpl.c: Include <config.h>.
23087         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23088         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
23089         second time.
23090         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
23091         gl_LONG_DOUBLE_VS_DOUBLE.
23092         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
23093         conditions.
23095 2011-10-10  Bruno Haible  <bruno@clisp.org>
23097         frexpl: Simplify for platforms where 'long double' == 'double'.
23098         * lib/frexpl.c: Include <config.h>.
23099         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23100         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23101         time.
23102         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23103         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23104         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
23105         * modules/frexpl (Depends-on): Add frexp. Update conditions.
23106         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
23107         conditions.
23109 2011-10-10  Jim Meyering  <meyering@redhat.com>
23111         test-renameat: don't leave behind a temporary file
23112         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
23113           ERROR: files left in build directory after distclean:
23114           ./gltests/test-renameat.too
23115           make[1]: *** [distcleancheck] Error 1
23116         Reported by Tom G. Christensen.
23118 2011-10-09  Bruno Haible  <bruno@clisp.org>
23120         rint: Determine RINT_LIBM correctly on AIX 7.
23121         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
23122         directly, not only through a function pointer. Also accept an optional
23123         4th argument with extra code.
23124         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
23125         rintf() call by gcc when optimizing.
23127         mathfunc.m4: Refactor.
23128         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
23129         m4 variable.
23131 2011-10-09  Bruno Haible  <bruno@clisp.org>
23133         rintl: Simplify for platforms where 'long double' == 'double'.
23134         * lib/rintl.c: Include <config.h>.
23135         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23136         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23137         time.
23138         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23139         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23140         * modules/rintl (Depends-on): Add rint. Update conditions.
23142 2011-10-09  Bruno Haible  <bruno@clisp.org>
23144         roundl: Simplify for platforms where 'long double' == 'double'.
23145         * lib/roundl.c: Include <config.h>.
23146         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23147         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23148         time.
23149         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23150         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23151         * modules/roundl (Depends-on): Add round. Update conditions.
23153 2011-10-09  Bruno Haible  <bruno@clisp.org>
23155         truncl: Simplify for platforms where 'long double' == 'double'.
23156         * lib/truncl.c: Include <config.h>.
23157         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23158         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23159         time.
23160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23161         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23162         * modules/truncl (Depends-on): Add trunc. Update conditions.
23164 2011-10-09  Bruno Haible  <bruno@clisp.org>
23166         ceill: Simplify for platforms where 'long double' == 'double'.
23167         * lib/ceill.c: Include <config.h>.
23168         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23169         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23170         time.
23171         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23172         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23173         * modules/ceill (Depends-on): Add ceil. Update conditions.
23175 2011-10-09  Bruno Haible  <bruno@clisp.org>
23177         floorl: Simplify for platforms where 'long double' == 'double'.
23178         * lib/floorl.c: Include <config.h>.
23179         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23180         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23181         time.
23182         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23183         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23184         * modules/floorl (Depends-on): Add floor. Update conditions.
23186 2011-10-09  Bruno Haible  <bruno@clisp.org>
23188         rint: Fix ordering constraints.
23189         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
23190         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
23191         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
23193 2011-10-09  Bruno Haible  <bruno@clisp.org>
23195         copysignl: Simplify for platforms where 'long double' == 'double'.
23196         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23197         alternative.
23198         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23199         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23200         * modules/copysignl (Depends-on): Add copysign. Update conditions.
23202 2011-10-09  Bruno Haible  <bruno@clisp.org>
23204         Tests for module 'rintl'.
23205         * modules/rintl-tests: New file.
23206         * tests/test-rintl.c: New file.
23208         New module 'rintl'.
23209         * lib/math.in.h (rintl): New declaration.
23210         * lib/rintl.c: New file.
23211         * m4/rintl.m4: New file.
23212         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
23213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
23214         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
23215         * modules/rintl: New file.
23216         * tests/test-math-c++.cc: Check the declaration of rintl.
23217         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
23218         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
23219         * doc/posix-functions/rintl.texi: Mention the new module.
23221 2011-10-09  Bruno Haible  <bruno@clisp.org>
23223         Tests for module 'rintf'.
23224         * modules/rintf-tests: New file.
23225         * tests/test-rintf.c: New file.
23227         New module 'rintf'.
23228         * lib/math.in.h (rintf): New declaration.
23229         * lib/rintf.c: New file.
23230         * m4/rintf.m4: New file.
23231         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
23232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
23233         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
23234         * modules/rintf: New file.
23235         * tests/test-math-c++.cc: Check the declaration of rintf.
23236         * doc/posix-functions/rintf.texi: Mention the new module.
23238 2011-10-09  Bruno Haible  <bruno@clisp.org>
23240         rint: Support for MSVC.
23241         * lib/math.in.h (rint): New declaration.
23242         * lib/rint.c: New file.
23243         * m4/rint.m4: New file.
23244         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
23245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
23246         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
23247         * modules/rint (Description): Fix.
23248         (Files): Add lib/rint.c, m4/rint.m4.
23249         (Depends-on): Add math.
23250         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
23251         gl_MATH_MODULE_INDICATOR.
23252         * tests/test-math-c++.cc: Check the declaration of rint.
23253         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
23254         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
23255         * doc/posix-functions/rint.texi: Mention the replacement provided by
23256         the module.
23258         rint tests: More tests.
23259         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
23260         minus-zero.h, infinity.h, nan.h.
23261         (main): Skip the test if the current rounding mode is not standard. Add
23262         tests for negative numbers, minus zero, infinity, NaN.
23263         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
23264         tests/nan.h.
23265         (Depends-on): Add isnand-nolibm.
23267 2011-10-09  Bruno Haible  <bruno@clisp.org>
23269         Tests for module 'copysignl'.
23270         * modules/copysignl-tests: New file.
23271         * tests/test-copysignl.c: New file.
23273         New module 'copysignl'.
23274         * lib/math.in.h (copysignl): New declaration.
23275         * lib/copysignl.c: New file.
23276         * m4/copysignl.m4: New file.
23277         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
23278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
23279         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
23280         HAVE_COPYSIGNL.
23281         * modules/copysignl: New file.
23282         * tests/test-math-c++.cc: Check the declaration of copysignl.
23283         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
23284         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
23285         * doc/posix-functions/copysignl.texi: Mention the new module.
23287 2011-10-09  Bruno Haible  <bruno@clisp.org>
23289         Tests for module 'copysignf'.
23290         * modules/copysignf-tests: New file.
23291         * tests/test-copysignf.c: New file.
23293         New module 'copysignf'.
23294         * lib/math.in.h (copysignf): New declaration.
23295         * lib/copysignf.c: New file.
23296         * m4/copysignf.m4: New file.
23297         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
23298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
23299         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
23300         HAVE_COPYSIGNF.
23301         * modules/copysignf: New file.
23302         * tests/test-math-c++.cc: Check the declaration of copysignf.
23303         * doc/posix-functions/copysignf.texi: Mention the new module.
23305 2011-10-09  Bruno Haible  <bruno@clisp.org>
23307         Ensure that HAVE_* variables are set to 1 before they are set to 0.
23308         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
23309         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
23310         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
23311         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
23312         gl_SIGNAL_H_DEFAULTS.
23314 2011-10-09  Bruno Haible  <bruno@clisp.org>
23316         poll: Make macro safer.
23317         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
23318         ac_cv_header_poll_h is not set.
23320 2011-10-09  Bruno Haible  <bruno@clisp.org>
23322         copysign: Provide replacement.
23323         * lib/math.in.h (copysign): New declaration.
23324         * lib/copysign.c: New file.
23325         * m4/copysign.m4: New file.
23326         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
23327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
23328         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
23329         HAVE_COPYSIGN.
23330         * modules/copysign (Description): Clarify.
23331         (Files): Add lib/copysign.c, m4/copysign.m4.
23332         (Depends-on): Add math, signbit.
23333         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
23334         gl_MATH_MODULE_INDICATOR.
23335         * tests/test-math-c++.cc: Check the declaration of copysign.
23336         * doc/posix-functions/copysign.texi: Mention the effects of the module
23337         on Minix and MSVC.
23339 2011-10-09  Bruno Haible  <bruno@clisp.org>
23341         isinf: Ensure macro on AIX 5.1.
23342         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
23343         macro.
23344         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
23346 2011-10-09  Bruno Haible  <bruno@clisp.org>
23348         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
23349         * modules/snprintf-posix-tests (configure.ac): Require
23350         gl_LONG_DOUBLE_VS_DOUBLE.
23351         * modules/sprintf-posix-tests (configure.ac): Likewise.
23352         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
23353         * modules/vasprintf-posix-tests (configure.ac): Likewise.
23354         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
23355         * modules/vsprintf-posix-tests (configure.ac): Likewise.
23356         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
23357         tests on platforms where 'long double' is the same as 'double'.
23358         * tests/test-sprintf-posix.h (test_function): Likewise.
23359         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23360         * tests/test-vasprintf-posix.c (test_function): Likewise.
23362         *printf: Fix for platforms where 'long double' == 'double'.
23363         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
23364         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
23365         * modules/dprintf-posix (Files): Add m4/math_h.m4.
23366         * modules/fprintf-posix (Files): Likewise.
23367         * modules/obstack-printf-posix (Files): Likewise.
23368         * modules/snprintf-posix (Files): Likewise.
23369         * modules/sprintf-posix (Files): Likewise.
23370         * modules/vasnprintf (Files): Likewise.
23371         * modules/vasnprintf-posix (Files): Likewise.
23372         * modules/vasprintf-posix (Files): Likewise.
23373         * modules/vdprintf-posix (Files): Likewise.
23374         * modules/vfprintf-posix (Files): Likewise.
23375         * modules/vsnprintf-posix (Files): Likewise.
23376         * modules/vsprintf-posix (Files): Likewise.
23377         * modules/unistdio/u8-vasnprintf (Files): Likewise.
23378         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
23379         * modules/unistdio/u16-vasnprintf (Files): Likewise.
23380         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
23381         * modules/unistdio/u32-vasnprintf (Files): Likewise.
23382         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
23383         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
23385         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
23386         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
23387         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23388         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
23389         'long double'.
23390         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
23392         isinf: Fix for platforms where 'long double' == 'double'.
23393         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
23394         Don't blindly assume 80-bit 'long double'.
23396         isfinite: Fix for platforms where 'long double' == 'double'.
23397         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
23398         Don't blindly assume 80-bit 'long double'.
23400         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
23401         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
23402         * modules/isfinite-tests (configure.ac): Require
23403         gl_LONG_DOUBLE_VS_DOUBLE.
23404         * modules/isinf-tests (configure.ac): Likewise.
23405         * modules/isnan-tests (configure.ac): Likewise.
23406         * modules/isnanl-tests (configure.ac): Likewise.
23407         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
23408         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
23409         tests on platforms where 'long double' is the same as 'double'.
23410         * tests/test-isinf.c (test_isinfl): Likewise.
23411         * tests/test-isnan.c (test_long_double): Likewise.
23412         * tests/test-isnanl.h (main): Likewise.
23414 2011-10-08  Bruno Haible  <bruno@clisp.org>
23416         Tests for module 'tanhf'.
23417         * modules/tanhf-tests: New file.
23418         * tests/test-tanhf.c: New file.
23420         New module 'tanhf'.
23421         * lib/math.in.h (tanhf): New declaration.
23422         * lib/tanhf.c: New file.
23423         * m4/tanhf.m4: New file.
23424         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
23425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
23426         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
23427         * modules/tanhf: New file.
23428         * tests/test-math-c++.cc: Check the declaration of tanhf.
23429         * doc/posix-functions/tanhf.texi: Mention the new module.
23431         tanh: Use a .m4 file.
23432         * m4/tanh.m4: New file.
23433         * modules/tanh (Files): Add it.
23434         (configure.ac): Just invoke gl_FUNC_TANH.
23436 2011-10-08  Bruno Haible  <bruno@clisp.org>
23438         Tests for module 'coshf'.
23439         * modules/coshf-tests: New file.
23440         * tests/test-coshf.c: New file.
23442         New module 'coshf'.
23443         * lib/math.in.h (coshf): New declaration.
23444         * lib/coshf.c: New file.
23445         * m4/coshf.m4: New file.
23446         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
23447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
23448         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
23449         * modules/coshf: New file.
23450         * tests/test-math-c++.cc: Check the declaration of coshf.
23451         * doc/posix-functions/coshf.texi: Mention the new module.
23453         cosh: Use a .m4 file.
23454         * m4/cosh.m4: New file.
23455         * modules/cosh (Files): Add it.
23456         (configure.ac): Just invoke gl_FUNC_COSH.
23458 2011-10-08  Bruno Haible  <bruno@clisp.org>
23460         Tests for module 'sinhf'.
23461         * modules/sinhf-tests: New file.
23462         * tests/test-sinhf.c: New file.
23464         New module 'sinhf'.
23465         * lib/math.in.h (sinhf): New declaration.
23466         * lib/sinhf.c: New file.
23467         * m4/sinhf.m4: New file.
23468         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
23469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
23470         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
23471         * modules/sinhf: New file.
23472         * tests/test-math-c++.cc: Check the declaration of sinhf.
23473         * doc/posix-functions/sinhf.texi: Mention the new module.
23475         sinh: Use a .m4 file.
23476         * m4/sinh.m4: New file.
23477         * modules/sinh (Files): Add it.
23478         (configure.ac): Just invoke gl_FUNC_SINH.
23480 2011-10-08  Bruno Haible  <bruno@clisp.org>
23482         Tests for module 'atan2f'.
23483         * modules/atan2f-tests: New file.
23484         * tests/test-atan2f.c: New file.
23486         New module 'atan2f'.
23487         * lib/math.in.h (atan2f): New declaration.
23488         * lib/atan2f.c: New file.
23489         * m4/atan2f.m4: New file.
23490         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
23491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
23492         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
23493         * modules/atan2f: New file.
23494         * tests/test-math-c++.cc: Check the declaration of atan2f.
23495         * doc/posix-functions/atan2f.texi: Mention the new module.
23497         atan2: Use a .m4 file.
23498         * m4/atan2.m4: New file.
23499         * modules/atan2 (Files): Add it.
23500         (configure.ac): Just invoke gl_FUNC_ATAN2.
23502 2011-10-08  Bruno Haible  <bruno@clisp.org>
23504         Tests for module 'atanf'.
23505         * modules/atanf-tests: New file.
23506         * tests/test-atanf.c: New file.
23508         New module 'atanf'.
23509         * lib/math.in.h (atanf): New declaration.
23510         * lib/atanf.c: New file.
23511         * m4/atanf.m4: New file.
23512         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
23513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
23514         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
23515         * modules/atanf: New file.
23516         * tests/test-math-c++.cc: Check the declaration of atanf.
23517         * doc/posix-functions/atanf.texi: Mention the new module.
23519         atan: Use a .m4 file.
23520         * m4/atan.m4: New file.
23521         * modules/atan (Files): Add it.
23522         (configure.ac): Just invoke gl_FUNC_ATAN.
23524 2011-10-08  Bruno Haible  <bruno@clisp.org>
23526         Tests for module 'acosf'.
23527         * modules/acosf-tests: New file.
23528         * tests/test-acosf.c: New file.
23530         New module 'acosf'.
23531         * lib/math.in.h (acosf): New declaration.
23532         * lib/acosf.c: New file.
23533         * m4/acosf.m4: New file.
23534         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
23535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
23536         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
23537         * modules/acosf: New file.
23538         * tests/test-math-c++.cc: Check the declaration of acosf.
23539         * doc/posix-functions/acosf.texi: Mention the new module.
23541         acos: Use a .m4 file.
23542         * m4/acos.m4: New file.
23543         * modules/acos (Files): Add it.
23544         (configure.ac): Just invoke gl_FUNC_ACOS.
23546 2011-10-08  Bruno Haible  <bruno@clisp.org>
23548         Tests for module 'asinf'.
23549         * modules/asinf-tests: New file.
23550         * tests/test-asinf.c: New file.
23552         New module 'asinf'.
23553         * lib/math.in.h (asinf): New declaration.
23554         * lib/asinf.c: New file.
23555         * m4/asinf.m4: New file.
23556         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
23557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
23558         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
23559         * modules/asinf: New file.
23560         * tests/test-math-c++.cc: Check the declaration of asinf.
23561         * doc/posix-functions/asinf.texi: Mention the new module.
23563         asin: Use a .m4 file.
23564         * m4/asin.m4: New file.
23565         * modules/asin (Files): Add it.
23566         (configure.ac): Just invoke gl_FUNC_ASIN.
23568 2011-10-08  Bruno Haible  <bruno@clisp.org>
23570         Tests for module 'tanf'.
23571         * modules/tanf-tests: New file.
23572         * tests/test-tanf.c: New file.
23574         New module 'tanf'.
23575         * lib/math.in.h (tanf): New declaration.
23576         * lib/tanf.c: New file.
23577         * m4/tanf.m4: New file.
23578         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
23579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
23580         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
23581         * modules/tanf: New file.
23582         * tests/test-math-c++.cc: Check the declaration of tanf.
23583         * doc/posix-functions/tanf.texi: Mention the new module.
23585         tan: Use a .m4 file.
23586         * m4/tan.m4: New file.
23587         * modules/tan (Files): Add it.
23588         (configure.ac): Just invoke gl_FUNC_TAN.
23590 2011-10-08  Bruno Haible  <bruno@clisp.org>
23592         Tests for module 'cosf'.
23593         * modules/cosf-tests: New file.
23594         * tests/test-cosf.c: New file.
23596         New module 'cosf'.
23597         * lib/math.in.h (cosf): New declaration.
23598         * lib/cosf.c: New file.
23599         * m4/cosf.m4: New file.
23600         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
23601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
23602         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
23603         * modules/cosf: New file.
23604         * tests/test-math-c++.cc: Check the declaration of cosf.
23605         * doc/posix-functions/cosf.texi: Mention the new module.
23607         cos: Use a .m4 file.
23608         * m4/cos.m4: New file.
23609         * modules/cos (Files): Add it.
23610         (configure.ac): Just invoke gl_FUNC_COS.
23612 2011-10-08  Bruno Haible  <bruno@clisp.org>
23614         Tests for module 'sinf'.
23615         * modules/sinf-tests: New file.
23616         * tests/test-sinf.c: New file.
23618         New module 'sinf'.
23619         * lib/math.in.h (sinf): New declaration.
23620         * lib/sinf.c: New file.
23621         * m4/sinf.m4: New file.
23622         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
23623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
23624         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
23625         * modules/sinf: New file.
23626         * tests/test-math-c++.cc: Check the declaration of sinf.
23627         * doc/posix-functions/sinf.texi: Mention the new module.
23629         sin: Use a .m4 file.
23630         * m4/sin.m4: New file.
23631         * modules/sin (Files): Add it.
23632         (configure.ac): Just invoke gl_FUNC_SIN.
23634 2011-10-08  Bruno Haible  <bruno@clisp.org>
23636         Tests for module 'powf'.
23637         * modules/powf-tests: New file.
23638         * tests/test-powf.c: New file.
23640         New module 'powf'.
23641         * lib/math.in.h (powf): New declaration.
23642         * lib/powf.c: New file.
23643         * m4/powf.m4: New file.
23644         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
23645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
23646         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
23647         * modules/powf: New file.
23648         * tests/test-math-c++.cc: Check the declaration of powf.
23649         * doc/posix-functions/powf.texi: Mention the new module.
23651         pow: Use a .m4 file.
23652         * m4/pow.m4: New file.
23653         * modules/pow (Files): Add it.
23654         (configure.ac): Just invoke gl_FUNC_POW.
23656 2011-10-08  Bruno Haible  <bruno@clisp.org>
23658         Tests for module 'log10f'.
23659         * modules/log10f-tests: New file.
23660         * tests/test-log10f.c: New file.
23662         New module 'log10f'.
23663         * lib/math.in.h (log10f): New declaration.
23664         * lib/log10f.c: New file.
23665         * m4/log10f.m4: New file.
23666         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
23667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
23668         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
23669         * modules/log10f: New file.
23670         * tests/test-math-c++.cc: Check the declaration of log10f.
23671         * doc/posix-functions/log10f.texi: Mention the new module.
23673         log10: Use a .m4 file.
23674         * m4/log10.m4: New file.
23675         * modules/log10 (Files): Add it.
23676         (configure.ac): Just invoke gl_FUNC_LOG10.
23678 2011-10-08  Bruno Haible  <bruno@clisp.org>
23680         Tests for module 'logf'.
23681         * modules/logf-tests: New file.
23682         * tests/test-logf.c: New file.
23684         New module 'logf'.
23685         * lib/math.in.h (logf): New declaration.
23686         * lib/logf.c: New file.
23687         * m4/logf.m4: New file.
23688         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
23689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
23690         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
23691         * modules/logf: New file.
23692         * tests/test-math-c++.cc: Check the declaration of logf.
23693         * doc/posix-functions/logf.texi: Mention the new module.
23695         log: Use a .m4 file.
23696         * m4/log.m4: New file.
23697         * modules/log (Files): Add it.
23698         (configure.ac): Just invoke gl_FUNC_LOG.
23700 2011-10-08  Bruno Haible  <bruno@clisp.org>
23702         Tests for module 'expf'.
23703         * modules/expf-tests: New file.
23704         * tests/test-expf.c: New file.
23706         New module 'expf'.
23707         * lib/math.in.h (expf): New declaration.
23708         * lib/expf.c: New file.
23709         * m4/expf.m4: New file.
23710         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
23711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
23712         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
23713         * modules/expf: New file.
23714         * tests/test-math-c++.cc: Check the declaration of expf.
23715         * doc/posix-functions/expf.texi: Mention the new module.
23717         exp: Use a .m4 file.
23718         * m4/exp.m4: New file.
23719         * modules/exp (Files): Add it.
23720         (configure.ac): Just invoke gl_FUNC_EXP.
23722 2011-10-08  Bruno Haible  <bruno@clisp.org>
23724         Tests for module 'sqrtf'.
23725         * modules/sqrtf-tests: New file.
23726         * tests/test-sqrtf.c: New file.
23728         New module 'sqrtf'.
23729         * lib/math.in.h (sqrtf): New declaration.
23730         * lib/sqrtf.c: New file.
23731         * m4/sqrtf.m4: New file.
23732         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
23733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
23734         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
23735         * modules/sqrtf: New file.
23736         * tests/test-math-c++.cc: Check the declaration of sqrtf.
23737         * doc/posix-functions/sqrtf.texi: Mention the new module.
23739 2011-10-08  Bruno Haible  <bruno@clisp.org>
23741         Tests: Avoid link failures w.r.t. libintl.
23742         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
23743         $(LIBINTL).
23744         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
23745         $(LIBINTL).
23746         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
23747         against $(LIBINTL).
23748         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
23749         $(LIBINTL).
23750         * modules/openat-tests (Makefile.am): Link test-fchmodat against
23751         $(LIBINTL).
23752         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
23754 2011-10-08  Bruno Haible  <bruno@clisp.org>
23756         pow tests: Defeat compiler optimizations.
23757         * tests/test-pow.c (main): Assign arguments to x and y before use.
23759 2011-10-08  Bruno Haible  <bruno@clisp.org>
23761         gnulib-tool: Improve last commit.
23762         * gnulib-tool (func_modules_transitive_closure): Simplify code.
23763         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
23764         ignore dependencies that are not among the modules list.
23766 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
23768         gnulib-tool: don't follow dependencies to avoided modules
23769         This fixes a bug that is related to the previous one.
23770         * gnulib-tool (func_modules_transitive_closure)
23771         (func_emit_autoconf_snippets):
23772         Check whether a dependency is acceptable before using it.
23773         (--extract-dependencies): Report an error if --avoid is also used,
23774         since this combination of options is not yet supported.
23776         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
23777         Problem reported by Peter Dyballa in
23778         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
23779         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
23780         when echoing "$condition".
23782 2011-10-07  Bruno Haible  <bruno@clisp.org>
23784         Fix documentation about math functions on MacOS X.
23785         * doc/posix-functions/exp2.texi: Don't say the function is missing on
23786         MacOS X 10.5.
23787         * doc/posix-functions/fdim.texi: Likewise.
23788         * doc/posix-functions/feclearexcept.texi: Likewise.
23789         * doc/posix-functions/fegetenv.texi: Likewise.
23790         * doc/posix-functions/fegetround.texi: Likewise.
23791         * doc/posix-functions/feholdexcept.texi: Likewise.
23792         * doc/posix-functions/feraiseexcept.texi: Likewise.
23793         * doc/posix-functions/fesetenv.texi: Likewise.
23794         * doc/posix-functions/fesetround.texi: Likewise.
23795         * doc/posix-functions/fetestexcept.texi: Likewise.
23796         * doc/posix-functions/feupdateenv.texi: Likewise.
23797         * doc/posix-functions/fmax.texi: Likewise.
23798         * doc/posix-functions/fmin.texi: Likewise.
23799         * doc/posix-functions/log2.texi: Likewise.
23800         * doc/posix-functions/modff.texi: Likewise.
23801         * doc/posix-functions/nan.texi: Likewise.
23802         * doc/posix-functions/nanf.texi: Likewise.
23803         * doc/posix-functions/nextafterf.texi: Likewise.
23804         * doc/posix-functions/remquo.texi: Likewise.
23806 2011-10-07  Bruno Haible  <bruno@clisp.org>
23808         modff: Drop assumption about library that defines modff.
23809         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
23810         AC_CHECK_FUNCS.
23811         * modules/modff (Files): Add m4/mathfunc.m4.
23813 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
23815         raise tests: Avoid a GCC warning.
23816         * tests/test-raise.c (handler): Use _Noreturn.
23818 2011-10-07  Bruno Haible  <bruno@clisp.org>
23820         Tests for module 'ldexpf'.
23821         * modules/ldexpf-tests: New file.
23822         * tests/test-ldexpf.c: New file.
23824         New module 'ldexpf'.
23825         * lib/math.in.h (ldexpf): New declaration.
23826         * lib/ldexpf.c: New file.
23827         * m4/ldexpf.m4: New file.
23828         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
23829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
23830         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
23831         * modules/ldexpf: New file.
23832         * tests/test-math-c++.cc: Check the declaration of ldexpf.
23833         * doc/posix-functions/ldexpf.texi: Mention the new module.
23835 2011-10-06  Bruno Haible  <bruno@clisp.org>
23837         frexpf: Work around problems on IRIX and mingw.
23838         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
23839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
23840         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
23841         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
23842         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
23843         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
23844         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
23846 2011-10-06  Bruno Haible  <bruno@clisp.org>
23848         fabsf: Drop assumption about library that defines fabsf.
23849         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
23850         AC_CHECK_FUNCS.
23851         * modules/fabsf (Files): Add m4/mathfunc.m4.
23853 2011-10-06  Bruno Haible  <bruno@clisp.org>
23855         frexpf: Drop assumption about library that defines frexpf.
23856         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
23857         'int *', 'float *', 'long double *', 'float', 'long double'.
23858         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
23859         AC_CHECK_FUNCS.
23860         * modules/frexpf (Files): Add m4/mathfunc.m4.
23862         Tests for module 'frexpf'.
23863         * modules/frexpf-tests: New file.
23864         * tests/test-frexpf.c: New file.
23866         New module 'frexpf'.
23867         * lib/math.in.h (frexpf): New declaration.
23868         * lib/frexpf.c: New file.
23869         * m4/frexpf.m4: New file.
23870         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
23871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
23872         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
23873         * modules/frexpf: New file.
23874         * tests/test-math-c++.cc: Check the declaration of frexpf.
23875         * doc/posix-functions/frexpf.texi: Mention the new module.
23877 2011-10-06  Bruno Haible  <bruno@clisp.org>
23879         math: Sort function declarations of math.in.h.
23880         * lib/math.in.h (frexp, logb): Move declarations.
23882 2011-10-05  Bruno Haible  <bruno@clisp.org>
23884         Tests for module 'modff'.
23885         * modules/modff-tests: New file.
23886         * tests/test-modff.c: New file.
23888         New module 'modff'.
23889         * lib/math.in.h (modff): New declaration.
23890         * lib/modff.c: New file.
23891         * m4/modff.m4: New file.
23892         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
23893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
23894         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
23895         * modules/modff: New file.
23896         * tests/test-math-c++.cc: Check the declaration of modff.
23897         * doc/posix-functions/modff.texi: Mention the new module.
23899         modf tests: Make test sharper.
23900         * tests/test-modf.c (main): Strengthen upper bound.
23902         modf: Use a .m4 file.
23903         * m4/modf.m4: New file.
23904         * modules/modf (Files): Add it.
23905         (configure.ac): Just invoke gl_FUNC_MODF.
23907 2011-10-05  Bruno Haible  <bruno@clisp.org>
23909         Tests for module 'fmodf'.
23910         * modules/fmodf-tests: New file.
23911         * tests/test-fmodf.c: New file.
23913         New module 'fmodf'.
23914         * lib/math.in.h (fmodf): New declaration.
23915         * lib/fmodf.c: New file.
23916         * m4/fmodf.m4: New file.
23917         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
23918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
23919         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
23920         * modules/fmodf: New file.
23921         * tests/test-math-c++.cc: Check the declaration of fmodf.
23922         * doc/posix-functions/fmodf.texi: Mention the new module.
23924         fmod: Use a .m4 file.
23925         * m4/fmod.m4: New file.
23926         * modules/fmod (Files): Add it.
23927         (configure.ac): Just invoke gl_FUNC_FMOD.
23929 2011-10-05  Bruno Haible  <bruno@clisp.org>
23931         Tests for module 'fabsf'.
23932         * modules/fabsf-tests: New file.
23933         * tests/test-fabsf.c: New file.
23935         New module 'fabsf'.
23936         * lib/math.in.h (fabsf): New declaration.
23937         * lib/fabsf.c: New file.
23938         * m4/fabsf.m4: New file.
23939         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
23940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
23941         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
23942         * modules/fabsf: New file.
23943         * tests/test-math-c++.cc: Check the declaration of fabsf.
23944         * doc/posix-functions/fabsf.texi: Mention the new module.
23946         fabs: Use a .m4 file.
23947         * m4/fabs.m4: New file.
23948         * modules/fabs (Files): Add it.
23949         (configure.ac): Just invoke gl_FUNC_FABS.
23951 2011-10-05  Jim Meyering  <meyering@redhat.com>
23953         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
23954         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
23955         ls -lL regression introduced in coreutils-8.12, it does so at the
23956         cost of an additional stat call in the common case.  Besides, now
23957         that the kernel change that prompted commit 95f7c57f has been reverted
23958         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
23959         we have no use for commit 95f7c57f, "file-has-acl: use
23960         acl_extended_file_nofollow if available".
23962 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
23964         file-has-acl: revert unintended change in behavior of ls -L
23965         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
23966         derived from...
23967         (file_has_acl): ...code here.  Call it.
23968         This problem was introduced with 2011-07-22 commit 95f7c57f,
23969         "file-has-acl: use acl_extended_file_nofollow if available".
23970         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
23972 2011-10-03  Bruno Haible  <bruno@clisp.org>
23974         poll: Avoid link errors on MSVC.
23975         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
23976         * modules/poll (Depends-on): Add sockets.
23977         (Link): New section.
23978         * NEWS: Mention the change.
23979         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
23980         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
23981         $(LIB_POLL) instead of $(LIBSOCKET).
23983 2011-10-03  Bruno Haible  <bruno@clisp.org>
23985         sys_select tests: Fix link error on MSVC 9.
23986         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
23987         with $(LIB_SELECT) instead of $(LIBSOCKET).
23989 2011-10-03  Bruno Haible  <bruno@clisp.org>
23991         sys_select: Fix compilation error on mingw.
23992         * lib/sys_select.in.h: On native Windows, include <io.h>.
23994 2011-10-03  Bruno Haible  <bruno@clisp.org>
23996         wmemset: Support for MSVC.
23997         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
23998         whether wmemset() exists.
24000 2011-10-03  Bruno Haible  <bruno@clisp.org>
24002         wmemmove: Support for MSVC.
24003         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
24004         whether wmemmove() exists.
24006 2011-10-03  Bruno Haible  <bruno@clisp.org>
24008         wmemcpy: Support for MSVC.
24009         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
24010         whether wmemcpy() exists.
24012 2011-10-03  Bruno Haible  <bruno@clisp.org>
24014         wmemcmp: Support for MSVC.
24015         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
24016         whether wmemcmp() exists.
24018 2011-10-03  Bruno Haible  <bruno@clisp.org>
24020         wmemchr: Support for MSVC.
24021         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
24022         whether wmemchr() exists.
24024 2011-10-03  Bruno Haible  <bruno@clisp.org>
24026         glthread/*, strsignal: Support for MSVC.
24027         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
24028         including <winsock.h> on MSVC 9.
24029         * lib/glthread/lock.h: Likewise.
24030         * lib/glthread/thread.h: Likewise.
24031         * lib/glthread/tls.h: Likewise.
24032         * lib/glthread/yield.h: Likewise.
24033         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
24034         if HAVE_UNISTD_H is false.
24035         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
24037 2011-10-03  Bruno Haible  <bruno@clisp.org>
24039         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
24040         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
24041         Set to 100000.
24043 2011-10-03  Bruno Haible  <bruno@clisp.org>
24045         acl: Fix specification.
24046         * lib/file-has-acl.c (file_has_acl): Fix specification.
24048 2011-10-03  Bruno Haible  <bruno@clisp.org>
24050         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
24051         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
24052         (compute_curr_prefix, shared_library_fullname,
24053         find_shared_library_fullname, get_shared_library_fullname, relocate):
24054         Use it together with PIC && INSTALLDIR.
24055         Reported by <jojelino@gmail.com>
24056         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
24058 2011-10-01  Jim Meyering  <meyering@redhat.com>
24060         maint.mk: adjust a release-related rule not to require use of gzip
24061         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
24062         Instead, check each file in $(DIST_ARCHIVES).  This is better for
24063         projects that build only .tar.xz files.  Also fix an erroneous test.
24065         test-linkat: don't leave behind a temporary file
24066         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
24067         Otherwise, coreutils' "make distcheck" would fail with this:
24068           Only in /c/cu/tests/torture/coreutils/test/\
24069             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
24070           make[2]: *** [my-distcheck] Error 1
24072         float, math: add omitted file
24073         * lib/itold.c: Add file, required for yesterday's float change.
24075 2011-10-01  Bruno Haible  <bruno@clisp.org>
24077         isinf: Fix for OpenBSD/x86.
24078         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
24079         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
24080         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
24082 2011-10-01  Bruno Haible  <bruno@clisp.org>
24084         isfinite: Fix syntax error in configure test.
24085         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
24087         isfinite: Fix typo.
24088         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
24089         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
24091 2011-10-01  Bruno Haible  <bruno@clisp.org>
24093         nonblocking tests: Fix test failure on Linux/IA-64.
24094         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
24095         Set to 270000.
24097 2011-10-01  Bruno Haible  <bruno@clisp.org>
24099         mkfifoat tests: Fix a test failure on mingw.
24100         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
24101         with error ENOSYS.
24103 2011-09-30  Bruno Haible  <bruno@clisp.org>
24105         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
24106         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
24107         'long double'. Set REPLACE_ITOLD.
24108         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
24109         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
24110         * lib/itold.c: New file.
24111         * modules/float (Files): Add lib/itold.c.
24112         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
24113         (Makefile.am): Substitute REPLACE_ITOLD.
24114         * modules/math (Depends-on): Add float.
24115         (Makefile.am): Substitute REPLACE_ITOLD.
24116         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
24117         * doc/posix-headers/math.texi: Likewise.
24118         * doc/posix-functions/logl.texi: Likewise.
24120 2011-09-30  Bruno Haible  <bruno@clisp.org>
24122         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
24123         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
24124         Set to 140000.
24126 2011-09-30  Bruno Haible  <bruno@clisp.org>
24128         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
24129         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
24130         invocation, say "right after AC_PROG_CC_STDC", not "right after
24131         AC_PROG_CC".
24132         Reported by Gary V. Vaughan <gary@gnu.org>.
24134 2011-09-30  Bruno Haible  <bruno@clisp.org>
24136         Centralize C99 requirement.
24137         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
24138         * modules/stdarg (configure.ac-early): Invoke it instead of
24139         AC_PROG_CC_STDC.
24140         Reported by Gary V. Vaughan and Paul Eggert.
24142 2011-09-29  Bruno Haible  <bruno@clisp.org>
24144         float: Fix LDBL_MAX value on Linux/PowerPC.
24145         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
24146         on Linux/PowerPC.
24147         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
24148         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
24149         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
24150         platform.
24151         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
24153 2011-09-29  Bruno Haible  <bruno@clisp.org>
24155         doc: Improve doc about gl_EARLY.
24156         * doc/gnulib-tool.texi (Initial import): Mention where to place an
24157         AC_PROG_CC_STDC invocation.
24158         Reported by Gary V. Vaughan <gary@gnu.org>.
24160 2011-09-28  Bruno Haible  <bruno@clisp.org>
24162         fgetc, fputc, fread, fwrite tests: Fix link error.
24163         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
24164         on non-MSVC platforms.
24165         * tests/test-fputc.c (main): Likewise.
24166         * tests/test-fread.c (main): Likewise.
24167         * tests/test-fwrite.c (main): Likewise.
24168         Reported by Jim Meyering.
24170 2011-09-27  Bruno Haible  <bruno@clisp.org>
24172         fputc, fwrite tests: Avoid test failure on MSVC.
24173         * tests/test-fgetc.c: Include msvc-inval.h.
24174         (main): Invoke gl_msvc_inval_ensure_handler.
24175         * tests/test-fputc.c: Include msvc-inval.h.
24176         (main): Invoke gl_msvc_inval_ensure_handler.
24177         * tests/test-fread.c: Include msvc-inval.h.
24178         (main): Invoke gl_msvc_inval_ensure_handler.
24179         * tests/test-fwrite.c: Include msvc-inval.h.
24180         (main): Invoke gl_msvc_inval_ensure_handler.
24181         * modules/fgetc-tests (Depends-on): Add msvc-inval.
24182         * modules/fputc-tests (Depends-on): Likewise.
24183         * modules/fread-tests (Depends-on): Likewise.
24184         * modules/fwrite-tests (Depends-on): Likewise.
24186 2011-09-27  Bruno Haible  <bruno@clisp.org>
24188         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
24189         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
24190         (raise): Remove older, duplicated declaration.
24191         (_gl_raise_SIGPIPE): New declaration.
24192         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
24193         (rpl_raise): Remove function.
24194         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
24195         a gnulib-defined SIGPIPE here.
24196         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
24197         'sigprocmask' has detected missing signal-blocking and the module
24198         'sigpipe' is enabled.
24199         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24201 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
24203         base64-tests: avoid memory leak
24204         * tests/test-base64.c (main): Plug memory leak.
24206         base32: new module
24207         * modules/base32: New module.
24208         * lib/base32.c: New file.
24209         * lib/base32.h: Likewise.
24210         * m4/base32.m4: Likewise.
24211         * modules/base32-tests: New test.
24212         * tests/test-base32.c: Likewise.
24213         * MODULES.html.sh (Misc): Mention it.
24215 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
24217         gnulib: use more-standard license notice wording
24218         * gnulib-tool (func_emit_copyright_notice): When emitting a
24219         license notice into a file, use the standard wording as suggested
24220         by the current information for GNU maintainers, except say "file"
24221         rather than "program".  The new wording gives a license version
24222         number, which addresses an issue raised by Glenn Morris in
24223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
24224         * m4/onceonly.m4: Use that same wording here, too.
24226         dup2: minor simplification
24227         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
24228         as lib/dup2.c no longer uses 'inline'.
24230 2011-09-25  Bruno Haible  <bruno@clisp.org>
24232         strings: Fix compilation error on MSVC.
24233         * lib/strings.in.h: Include <stddef.h> for size_t.
24235 2011-09-25  Bruno Haible  <bruno@clisp.org>
24237         fflush et al.: Document limitation on MSVC.
24238         * doc/posix-functions/fflush.texi: Document possible crash in handling
24239         mode other than DEFAULT_HANDLING.
24240         * doc/posix-functions/fgetc.texi: Likewise.
24241         * doc/posix-functions/fputc.texi: Likewise.
24242         * doc/posix-functions/fread.texi: Likewise.
24243         * doc/posix-functions/fwrite.texi: Likewise.
24245 2011-09-25  Bruno Haible  <bruno@clisp.org>
24247         msvc-inval: Allow three invalid parameter handling modes.
24248         * lib/msvc-inval.h: Don't include <stdlib.h> here.
24249         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
24250         macros.
24251         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
24252         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
24253         SANE_LIBRARY_HANDLING as a no-op.
24254         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
24255         <stdlib.h>.
24256         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
24258 2011-09-25  Bruno Haible  <bruno@clisp.org>
24260         msvc-inval: Make handler multithread-safe.
24261         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
24262         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
24263         declarations.
24264         (gl_msvc_inval_current): New declaration.
24265         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
24266         Operate on the structure returned by gl_msvc_inval_current().
24267         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
24268         Remove varaiables.
24269         (tls_index, tls_initialized): New variables.
24270         (not_per_thread): New variable.
24271         (gl_msvc_inval_current): New function.
24272         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
24273         returned by gl_msvc_inval_current().
24275 2011-09-25  Bruno Haible  <bruno@clisp.org>
24277         msvc-inval: Install handler globally.
24278         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
24279         !_MSC_VER.
24280         (gl_msvc_invalid_parameter_handler): Remove declaration.
24281         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
24282         declarations.
24283         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
24284         Install the handler globally, don't uninstall it.
24285         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
24286         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
24287         currently valid, call RaiseException instead.
24288         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
24289         for !_MSC_VER.
24291 2011-09-25  Bruno Haible  <bruno@clisp.org>
24293         strerror_r-posix: Fix for MSVC 9.
24294         * lib/strerror_r.c (local_snprintf): New function.
24295         (snprintf): Define to local_snprintf, not to _snprintf.
24297 2011-09-25  Bruno Haible  <bruno@clisp.org>
24299         ftruncate: Support for MSVC 9.
24300         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
24301         (chsize_nothrow): New function.
24302         (chsize): Redefine as a macro.
24303         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
24304         * modules/ftruncate (Depends-on): Add msvc-inval.
24306 2011-09-25  Bruno Haible  <bruno@clisp.org>
24308         New module 'fstat'.
24309         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
24310         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
24311         * lib/fchdir.c (rpl_fstat): Remove function.
24312         * m4/fstat.m4: New file.
24313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
24314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
24315         declared.
24316         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
24317         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
24318         * modules/fstat: New file.
24319         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
24320         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
24321         is set.
24322         * doc/posix-functions/fstat.texi: Mention the new module and the
24323         problem on MSVC.
24324         * NEWS: Mention the change.
24325         * modules/acl (Depends-on): Add fstat.
24326         * modules/chdir-safer (Depends-on): Likewise.
24327         * modules/chown (Depends-on): Likewise.
24328         * modules/copy-file (Depends-on): Likewise.
24329         * modules/fchdir (Depends-on): Likewise.
24330         * modules/fdopendir (Depends-on): Likewise.
24331         * modules/fopen (Depends-on): Likewise.
24332         * modules/fts (Depends-on): Likewise.
24333         * modules/getcwd (Depends-on): Likewise.
24334         * modules/isapipe (Depends-on): Likewise.
24335         * modules/linkat (Depends-on): Likewise.
24336         * modules/lseek (Depends-on): Likewise.
24337         * modules/mkdir-p (Depends-on): Likewise.
24338         * modules/open (Depends-on): Likewise.
24339         * modules/openat (Depends-on): Likewise.
24340         * modules/read-file (Depends-on): Likewise.
24341         * modules/renameat (Depends-on): Likewise.
24342         * modules/utimens (Depends-on): Likewise.
24344 2011-09-25  Bruno Haible  <bruno@clisp.org>
24346         linkat: Fix compilation on MSVC 9.
24347         * lib/linkat.c: Don't include <stdint.h>.
24349 2011-09-25  Bruno Haible  <bruno@clisp.org>
24351         fclose: Support for MSVC 9.
24352         * lib/fclose.c: Include msvc-inval.h.
24353         (fclose_nothrow): New function.
24354         (rpl_fclose): Use it.
24355         * modules/fclose (Depends-on): Add msvc-inval.
24356         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
24358 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24360         dup2: minor simplifications
24361         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
24362         that it's a performance win.
24363         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
24364         ! defined __CYGWIN__)" to "ifdef F_GETFL".
24366 2011-09-24  Jim Meyering  <meyering@redhat.com>
24368         test-futimens: avoid a warning from gcc -Wshadow
24369         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
24370         to avoid a shadowing warning.
24372 2011-09-24  Bruno Haible  <bruno@clisp.org>
24374         fdopen: Support for MSVC 9.
24375         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
24376         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
24377         * lib/fdopen.c: Include msvc-inval.h.
24378         (fdopen_nothrow): New function.
24379         (rpl_fdopen): Use it.
24380         * modules/fdopen (Depends-on): Add msvc-inval.
24381         * modules/fclose-tests (Depends-on): Add fdopen.
24382         * modules/fflush-tests (Depends-on): Likewise.
24383         * modules/fgetc-tests (Depends-on): Likewise.
24384         * modules/fputc-tests (Depends-on): Likewise.
24385         * modules/fread-tests (Depends-on): Likewise.
24386         * modules/freopen-tests (Depends-on): Likewise.
24387         * modules/fseeko-tests (Depends-on): Likewise.
24388         * modules/ftello-tests (Depends-on): Likewise.
24389         * modules/fwrite-tests  (Depends-on): Likewise.
24390         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
24392 2011-09-24  Bruno Haible  <bruno@clisp.org>
24394         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
24395         * modules/fgetc-tests (Depends-on): Add unistd.
24396         * modules/fputc-tests (Depends-on): Likewise.
24397         * modules/fread-tests (Depends-on): Likewise.
24398         * modules/fwrite-tests (Depends-on): Likewise.
24400 2011-09-24  Bruno Haible  <bruno@clisp.org>
24402         dup: Simplify autoconf test.
24403         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
24404         on gl_MSVC_INVAL's result.
24406 2011-09-24  Bruno Haible  <bruno@clisp.org>
24408         Tests for function fwrite().
24409         * modules/fwrite-tests: New file.
24410         * tests/test-fwrite.c: New file.
24411         * modules/stdio-tests (Depends-on): Add fwrite-tests.
24413         Tests for function fread().
24414         * modules/fread-tests: New file.
24415         * tests/test-fread.c: New file.
24416         * modules/stdio-tests (Depends-on): Add fread-tests.
24418         Activate fputc tests.
24419         * modules/stdio-tests (Depends-on): Add fputc-tests.
24421         Enhance fgetc, fputc tests.
24422         * tests/test-fgetc.c (main): Also test the stream's error indicator.
24423         * tests/test-fputc.c (main): Likewise.
24425 2011-09-24  Bruno Haible  <bruno@clisp.org>
24427         write: Support for MSVC 9.
24428         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
24429         is not 1.
24430         * lib/write.c (write_nothrow): New function.
24431         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
24432         not 1. Use write_nothrow.
24433         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
24434         invalid parameter handler.
24435         (gl_PREREQ_WRITE): New macro.
24436         * modules/write (Depends-on): Add msvc-inval.
24437         (configure.ac): Invoke gl_PREREQ_WRITE.
24438         * doc/posix-functions/write.texi: Mention the problem on MSVC.
24440 2011-09-24  Bruno Haible  <bruno@clisp.org>
24442         read: Fix last commit.
24443         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
24445 2011-09-24  Bruno Haible  <bruno@clisp.org>
24447         dup2: Fix last commit.
24448         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
24449         (rpl_dup2): Disable fcntl workaround on native Windows.
24451         sigprocmask: Make code safer.
24452         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
24453         section that changes macro definitions for this compilation unit.
24455 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24457         dup2: clarify by coalescing Windows-specific material
24458         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
24459         "msvc-nothrow.h"' to the Windows-specific section, so that the
24460         Emacs source need not contain these include files.
24461         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
24462         Windows-specific fixes into this function rather than just the
24463         nothrow fix, as this shortens and clarifies the code.  Always
24464         define as a function, as that's a bit cleaner than having it be
24465         sometimes a function and sometimes a macro.
24466         (rpl_dup2): Move the Windows-specific stuff out of here and into
24467         ms_windows_dup2.  Don't protect the Haiku-related fix with
24468         "#if !defined __linux__", as the same code also works around
24469         a Linux kernel bug, and it doesn't add any system calls on any
24470         platform.  Add comment about FreeBSD 6.1.
24472         sigprocmask: move #include directive
24473         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
24474         Windows-specific section, so that the Emacs source need not
24475         contain msvc-inval.h.
24477 2011-09-23  Bruno Haible  <bruno@clisp.org>
24479         read: Support for MSVC 9.
24480         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
24481         is not 1.
24482         * lib/read.c (read_nothrow): New function.
24483         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
24484         read_nothrow.
24485         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
24486         invalid parameter handler.
24487         (gl_PREREQ_READ): New macro.
24488         * modules/read (Depends-on): Add msvc-inval.
24489         (configure.ac): Invoke gl_PREREQ_READ.
24490         * doc/posix-functions/read.texi: Mention the problem on MSVC.
24492 2011-09-23  Bruno Haible  <bruno@clisp.org>
24494         close: Support for MSVC 9.
24495         * lib/close.c: Include <errno.h>, msvc-inval.h.
24496         (close_nothrow): New function.
24497         (rpl_close): Use it.
24498         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
24499         invalid parameter handler.
24500         * modules/close (Depends-on): Add msvc-inval.
24501         * modules/dup2-tests (Depends-on): Add close.
24502         * modules/dup3-tests (Depends-on): Likewise.
24503         * modules/fcntl-tests (Depends-on): Likewise.
24504         * modules/spawn-pipe-tests (Depends-on): Likewise.
24505         * modules/unistd-safer-tests (Depends-on): Likewise.
24506         * doc/posix-functions/close.texi: Mention the problem on MSVC.
24508 2011-09-23  Bruno Haible  <bruno@clisp.org>
24510         New module 'dup'.
24511         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
24512         Allow replacement.
24513         * lib/dup.c: New file.
24514         * lib/fchdir.c (rpl_dup): Remove function.
24515         * m4/dup.m4: New file.
24516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
24517         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
24518         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
24519         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
24520         * modules/dup: New file.
24521         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
24522         'dup' module is in use.
24523         * modules/fdopendir (Depends-on): Add dup.
24524         * modules/fdutimensat-tests (Depends-on): Likewise.
24525         * modules/fts (Depends-on): Likewise.
24526         * modules/futimens-tests (Depends-on): Likewise.
24527         * modules/posix_spawnp-tests (Depends-on): Likewise.
24528         * modules/unistd-safer-tests (Depends-on): Likewise.
24529         * modules/utimens-tests (Depends-on): Likewise.
24530         * doc/posix-functions/dup.texi: Mention the new module and the problem
24531         on MSVC.
24533 2011-09-23  Bruno Haible  <bruno@clisp.org>
24535         getdtablesize: Support for MSVC 9.
24536         * lib/getdtablesize.c: Include msvc-inval.h.
24537         (_setmaxstdio_nothrow): New function.
24538         (_setmaxstdio): Redefine it.
24539         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
24540         * modules/getdtablesize (Depends-on): Add msvc-inval.
24541         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
24543 2011-09-23  Bruno Haible  <bruno@clisp.org>
24545         signal-h: Rename from signal.
24546         * modules/signal-h: Renamed from modules/signal.
24547         * modules/pthread_sigmask (Depends-on): Update.
24548         * modules/raise (Depends-on): Likewise.
24549         * modules/sigaction (Depends-on): Likewise.
24550         * modules/sigpipe (Depends-on): Likewise.
24551         * modules/sigprocmask (Depends-on): Likewise.
24552         * modules/sys_select (Depends-on): Likewise.
24553         * modules/signal-h-tests: Renamed from modules/signal-tests.
24554         (Files, Depends-on, Makefile.am): Update.
24555         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
24556         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
24557         (Files, Makefile.am): Update.
24558         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
24559         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
24560         * modules/signal: New placeholder file.
24561         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
24562         * doc/posix-headers/signal.texi: Update.
24563         * NEWS: Mention the change.
24565 2011-09-23  Bruno Haible  <bruno@clisp.org>
24567         sigprocmask: Avoid crashes through signal() on MSVC 9.
24568         * lib/sigprocmask.c: Include msvc-inval.h.
24569         (signal_nothrow): New function.
24570         (signal): Redefine it.
24571         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
24572         * modules/sigprocmask (Depends-on): Add msvc-inval.
24573         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
24575 2011-09-23  Bruno Haible  <bruno@clisp.org>
24577         Tests for module 'raise'.
24578         * modules/raise-tests: New file.
24579         * tests/test-raise.c: New file.
24581         raise: Support for MSVC.
24582         * lib/signal.in.h (raise): New declaration.
24583         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
24584         for native Windows platforms.
24585         * m4/raise.m4: New file.
24586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
24587         HAVE_RAISE, REPLACE_RAISE.
24588         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
24589         REPLACE_RAISE.
24590         * modules/raise (Status, Notice): Remove fields.
24591         (Files): Add m4/raise.m4.
24592         (Depends-on): Add signal, msvc-inval.
24593         (configure.ac): Use the common idioms.
24594         (Maintainer): Add me.
24595         * tests/test-signal-c++.cc: Check the signature of raise.
24596         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
24598 2011-09-23  Bruno Haible  <bruno@clisp.org>
24600         pipe2: Fix compilation on pre-C99 compilers.
24601         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
24603 2011-09-23  Bruno Haible  <bruno@clisp.org>
24605         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
24606         * lib/msvc-nothrow.h: New file.
24607         * lib/msvc-nothrow.c: New file.
24608         * m4/msvc-nothrow.m4: New file.
24609         * modules/msvc-nothrow: New file.
24610         * lib/dup2.c: Include msvc-nothrow.h.
24611         (rpl_dup2): No need to protect _get_osfhandle call here.
24612         * lib/accept4.c: Include msvc-nothrow.h.
24613         * lib/error.c: Likewise.
24614         * lib/fcntl.c: Likewise.
24615         * lib/lseek.c: Likewise.
24616         * lib/nonblocking.c: Likewise.
24617         * lib/poll.c: Likewise.
24618         * lib/read.c: Likewise.
24619         * lib/select.c: Likewise.
24620         * lib/sockets.h: Likewise.
24621         * lib/sockets.c: Likewise.
24622         * lib/stdio-read.c: Likewise.
24623         * lib/stdio-write.c: Likewise.
24624         * lib/write.c: Likewise.
24625         * lib/w32sock.h: Likewise.
24626         * lib/w32spawn.h: Likewise.
24627         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
24628         * lib/fsync.c: Likewise.
24629         * lib/isapipe.c: Likewise.
24630         * modules/dup2 (Depends-on): Add msvc-nothrow.
24631         * modules/accept4 (Depends-on): Likewise.
24632         * modules/error (Depends-on): Likewise.
24633         * modules/fcntl (Depends-on): Likewise.
24634         * modules/lseek (Depends-on): Likewise.
24635         * modules/nonblocking (Depends-on): Likewise.
24636         * modules/poll (Depends-on): Likewise.
24637         * modules/read (Depends-on): Likewise.
24638         * modules/select (Depends-on): Likewise.
24639         * modules/sockets (Depends-on): Likewise.
24640         * modules/sigpipe (Depends-on): Likewise.
24641         * modules/write (Depends-on): Likewise.
24642         * modules/accept (Depends-on): Likewise.
24643         * modules/bind (Depends-on): Likewise.
24644         * modules/connect (Depends-on): Likewise.
24645         * modules/gethostname (Depends-on): Likewise.
24646         * modules/getpeername (Depends-on): Likewise.
24647         * modules/getsockname (Depends-on): Likewise.
24648         * modules/getsockopt (Depends-on): Likewise.
24649         * modules/ioctl (Depends-on): Likewise.
24650         * modules/listen (Depends-on): Likewise.
24651         * modules/recv (Depends-on): Likewise.
24652         * modules/recvfrom (Depends-on): Likewise.
24653         * modules/send (Depends-on): Likewise.
24654         * modules/sendto (Depends-on): Likewise.
24655         * modules/setsockopt (Depends-on): Likewise.
24656         * modules/shutdown (Depends-on): Likewise.
24657         * modules/socket (Depends-on): Likewise.
24658         * modules/execute (Depends-on): Likewise.
24659         * modules/spawn-pipe (Depends-on): Likewise.
24660         * modules/flock (Depends-on): Likewise.
24661         * modules/fsync (Depends-on): Likewise.
24662         * modules/isapipe (Depends-on): Likewise.
24663         * tests/test-cloexec.c: Include msvc-nothrow.h.
24664         * tests/test-dup-safer.c: Likewise.
24665         * tests/test-dup2.c: Likewise.
24666         * tests/test-dup3.c: Likewise.
24667         * tests/test-fcntl.c: Likewise.
24668         * tests/test-pipe.c: Likewise.
24669         * tests/test-pipe2.c: Likewise.
24670         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
24671         * modules/unistd-safer-tests (Depends-on): Likewise.
24672         * modules/dup2-tests (Depends-on): Likewise.
24673         * modules/dup3-tests (Depends-on): Likewise.
24674         * modules/fcntl-tests (Depends-on): Likewise.
24675         * modules/pipe-posix-tests (Depends-on): Likewise.
24676         * modules/pipe2-tests (Depends-on): Likewise.
24678 2011-09-23  Bruno Haible  <bruno@clisp.org>
24680         dup2: Make code more maintainable.
24681         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
24682         (rpl_dup2): Use it.
24683         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
24684         * modules/dup2 (configure.ac): Invoke it.
24685         Reported by Paul Eggert.
24687 2011-09-23  Bruno Haible  <bruno@clisp.org>
24689         msvc-inval: Fix compilation error.
24690         * lib/msvc-inval.h: Include <excpt.h>.
24692 2011-09-23  Bruno Haible  <bruno@clisp.org>
24694         mkdir: Tweak for MSVC 9.
24695         * lib/sys_stat.in.h: Update comments.
24696         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
24698         Tests for module 'chdir'.
24699         * modules/chdir-tests: New file.
24700         * tests/test-chdir.c: New file.
24702         New module 'chdir'.
24703         * modules/chdir: New file.
24704         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
24705         (chdir): New declaration.
24706         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
24707         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
24708         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
24709         * tests/test-unistd-c++.cc: Check signature of chdir.
24710         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
24711         * modules/chdir-long (Depends-on): Add chdir.
24712         * modules/fchdir (Depends-on): Likewise.
24713         * modules/rename (Depends-on): Likewise.
24714         * modules/savewd (Depends-on): Likewise.
24716         rmdir: Support for mingw, MSVC 9.
24717         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
24718         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
24720         getcwd: Tweak for MSVC 9.
24721         * lib/unistd.in.h: Update comments.
24722         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
24724 2011-09-22  Bruno Haible  <bruno@clisp.org>
24726         strerror_r-posix: Avoid a link error on MSVC.
24727         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
24728         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
24730 2011-09-22  Bruno Haible  <bruno@clisp.org>
24732         select: Avoid link errors on MSVC.
24733         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
24734         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
24735         * modules/pselect (Link): Likewise.
24736         * NEWS: Mention the change.
24737         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
24738         test-select-stdin against $(LIB_SELECT).
24739         * modules/pselect-tests (Makefile.am): Link test-pselect against
24740         $(LIB_SELECT).
24742 2011-09-22  Bruno Haible  <bruno@clisp.org>
24744         select: Avoid compilation error on MSVC.
24745         * lib/select.c: Don't include <stdbool.h>.
24747 2011-09-21  Bruno Haible  <bruno@clisp.org>
24749         Consolidate all uses of PATH_MAX in *.m4 files.
24750         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
24751         macros.
24752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
24753         and gl_PATHMAX_SNIPPET.
24754         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
24755         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24756         * modules/chdir-long (Files): Add m4/pathmax.m4.
24757         * modules/getcwd (Files): Likewise.
24759 2011-09-21  Bruno Haible  <bruno@clisp.org>
24761         ftruncate: Un-deprecate, concentrate on Win32 support.
24762         * modules/ftruncate (Status, Notice): Remove sections.
24763         (Depends-on): Add largefile.
24764         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
24765         non-mingw platforms.
24766         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
24767         include <io.h>.
24768         * modules/perror-tests (Depends-on): Add ftruncate.
24769         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
24770         'ftruncate' module.
24772 2011-09-21  Bruno Haible  <bruno@clisp.org>
24774         Add dependencies to new dirent related modules.
24775         * modules/opendir (Depends-on): Add closedir.
24776         * modules/getcwd (Depends-on): Add opendir, closedir.
24777         * modules/dirent-safer-tests (Depends-on): Likewise.
24778         * modules/fdopendir-tests (Depends-on): Likewise.
24779         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
24780         * modules/renameat-tests (Depends-on): Likewise.
24782 2011-09-21  Bruno Haible  <bruno@clisp.org>
24784         opendir: Avoid compilation error on mingw.
24785         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
24786         * modules/opendir (Depends-on): Add unistd.
24788 2011-09-21  Bruno Haible  <bruno@clisp.org>
24790         ftruncate tests: Avoid a test failure on mingw.
24791         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
24793 2011-09-21  Bruno Haible  <bruno@clisp.org>
24795         select tests: Avoid test failures on OSF/1 5.1 and mingw.
24796         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
24797         native Windows.
24799 2011-09-21  Bruno Haible  <bruno@clisp.org>
24801         New module 'fdopen'.
24802         * lib/stdio.in.h (fdopen): New declaration.
24803         * lib/fdopen.c: New file.
24804         * m4/fdopen.m4: New file.
24805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
24806         REPLACE_FDOPEN.
24807         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
24808         REPLACE_FDOPEN.
24809         * modules/fdopen: New file.
24810         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
24811         * tests/test-stdio-c++.cc: Check signature of fdopen.
24812         * doc/posix-functions/fdopen.texi: Mention the new module.
24814 2011-09-21  Bruno Haible  <bruno@clisp.org>
24816         unlockpt tests: Avoid test failure on NetBSD 5.1.
24817         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
24818         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
24820 2011-09-21  Bruno Haible  <bruno@clisp.org>
24822         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
24823         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
24824         * tests/test-getlogin_r.c (main): Likewise.
24826 2011-09-20  Bruno Haible  <bruno@clisp.org>
24828         time tests: Don't require pid_t.
24829         * doc/posix-headers/time.texi: Revert last change.
24830         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
24831         * tests/test-time.c: Comment out the check for pid_t.
24833 2011-09-20  Bruno Haible  <bruno@clisp.org>
24835         fsync tests: Avoid a test failure on mingw.
24836         * tests/test-fsync.c (main): Allow a failure with EIO.
24838 2011-09-20  Bruno Haible  <bruno@clisp.org>
24840         euidaccess: Update comments.
24841         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
24843 2011-09-20  Bruno Haible  <bruno@clisp.org>
24845         Ensure EBADF returns for socket functions on mingw.
24846         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
24847         descriptor is invalid.
24848         * lib/bind.c (rpl_bind): Likewise.
24849         * lib/connect.c (rpl_connect): Likewise.
24850         * lib/getpeername.c (rpl_getpeername): Likewise.
24851         * lib/getsockname.c (rpl_getsockname): Likewise.
24852         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24853         * lib/listen.c (rpl_listen): Likewise.
24854         * lib/recv.c (rpl_recv): Likewise.
24855         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24856         * lib/send.c (rpl_send): Likewise.
24857         * lib/sendto.c (rpl_sendto): Likewise.
24858         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24859         * lib/shutdown.c (rpl_shutdown): Likewise.
24861 2011-09-20  Bruno Haible  <bruno@clisp.org>
24863         select tests: EBADF tests.
24864         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
24865         test_bad_fd): New functions.
24866         (test_function): Invoke also test_bad_fd.
24868 2011-09-20  Bruno Haible  <bruno@clisp.org>
24870         Tests for module 'posix_spawn_file_actions_addopen.
24871         * modules/posix_spawn_file_actions_addopen-tests: New file.
24872         * tests/test-posix_spawn_file_actions_addopen.c: New file.
24874         Tests for module 'posix_spawn_file_actions_adddup2'.
24875         * modules/posix_spawn_file_actions_adddup2-tests: New file.
24876         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
24878         Tests for module 'posix_spawn_file_actions_addclose'.
24879         * modules/posix_spawn_file_actions_addclose-tests: New file.
24880         * tests/test-posix_spawn_file_actions_addclose.c: New file.
24882 2011-09-20  Bruno Haible  <bruno@clisp.org>
24884         Tests for module 'unlockpt'.
24885         * modules/unlockpt-tests: New file.
24886         * tests/test-unlockpt.c: New file.
24887         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
24889         Tests for module 'grantpt'.
24890         * modules/grantpt-tests: New file.
24891         * tests/test-grantpt.c: New file.
24892         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
24894 2011-09-20  Bruno Haible  <bruno@clisp.org>
24896         freopen tests: EBADF tests.
24897         * tests/test-freopen.c: Include errno.h, unistd.h.
24898         (main): Add tests for EBADF, commented out for the moment.
24900         fclose tests: EBADF tests.
24901         * tests/test-fclose.c (main): Add tests for EBADF.
24903         fflush tests: EBADF tests.
24904         * tests/test-fflush.c: Include errno.h, macros.h.
24905         (main): Add tests for EBADF.
24907         ftello tests: EBADF tests.
24908         * tests/test-ftello4.sh: New file.
24909         * tests/test-ftello4.c: New file.
24910         * modules/ftello-tests (Files): Add them.
24911         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
24913         fseeko tests: EBADF tests.
24914         * tests/test-fseeko4.sh: New file.
24915         * tests/test-fseeko4.c: New file.
24916         * modules/fseeko-tests (Files): Add them.
24917         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
24919         Tests for function fputc().
24920         * modules/fputc-tests: New file.
24921         * tests/test-fputc.c: New file.
24922         * modules/stdio-tests (Depends-on): Add fputc-tests.
24924         Tests for function fgetc().
24925         * modules/fgetc-tests: New file.
24926         * tests/test-fgetc.c: New file.
24927         * modules/stdio-tests (Depends-on): Add fgetc-tests.
24929         Tests for function fdopen().
24930         * modules/fdopen-tests: New file.
24931         * tests/test-fdopen.c: New file.
24932         * modules/stdio-tests (Depends-on): Add fdopen-tests.
24934         Tests for module 'vdprintf'.
24935         * modules/vdprintf-tests: New file.
24936         * tests/test-vdprintf.c: New file.
24938         Tests for module 'dprintf'.
24939         * modules/dprintf-tests: New file.
24940         * tests/test-dprintf.c: New file.
24942 2011-09-20  Bruno Haible  <bruno@clisp.org>
24944         Tests for module 'ioctl'.
24945         * modules/ioctl-tests: New file.
24946         * tests/test-ioctl.c: New file.
24948 2011-09-20  Bruno Haible  <bruno@clisp.org>
24950         fcntl tests: EBADF tests.
24951         * tests/test-fcntl.c (main): Add more tests for EBADF.
24953 2011-09-20  Bruno Haible  <bruno@clisp.org>
24955         utimensat tests: EBADF tests.
24956         * tests/test-utimensat.c (main): Add tests for EBADF.
24958         renameat tests: EBADF tests.
24959         * tests/test-renameat.c (main): Add tests for EBADF.
24961         mkfifoat tests: EBADF tests.
24962         * tests/test-mkfifoat.c (main): Add tests for EBADF.
24964         readlinkat tests: EBADF tests.
24965         * tests/test-readlinkat.c (main): Add tests for EBADF.
24967         symlinkat tests: EBADF tests.
24968         * tests/test-symlinkat.c (main): Add tests for EBADF.
24970         linkat tests: EBADF tests.
24971         * tests/test-linkat.c (main): Add tests for EBADF.
24973         Tests for module 'faccessat'.
24974         * modules/faccessat-tests: New file.
24975         * tests/test-faccessat.c: New file.
24977         fdopendir tests: EBADF tests.
24978         * tests/test-fdopendir.c (main): Add more tests for EBADF.
24980         openat tests: EBADF tests.
24981         * tests/test-fchownat.c (main): Add tests for EBADF.
24982         * tests/test-fstatat.c (main): Likewise.
24983         * tests/test-mkdirat.c (main): Likewise.
24984         * tests/test-openat.c (main): Likewise.
24985         * tests/test-unlinkat.c (main): Likewise.
24986         * tests/test-fchmodat.c: New file.
24987         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
24988         (Makefile.am): Also run 'test-fchmodat'.
24990 2011-09-20  Bruno Haible  <bruno@clisp.org>
24992         utimens, futimens, fdutimensat tests: EBADF tests.
24993         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
24995         Tests for function fstat().
24996         * modules/fstat-tests: New file.
24997         * tests/test-fstat.c: New file.
24998         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
25000 2011-09-20  Bruno Haible  <bruno@clisp.org>
25002         test-ttyname_r tests: EBADF tests.
25003         * tests/test-ttyname_r.c (main): Add tests for EBADF.
25005         Tests for module 'isatty'.
25006         * modules/isatty-tests: New file.
25007         * tests/test-isatty.c: New file.
25009         Tests for module 'write'.
25010         * modules/write-tests: New file.
25011         * tests/test-write.c: New file.
25013         Tests for module 'read'.
25014         * modules/read-tests: New file.
25015         * tests/test-read.c: New file.
25017         pwrite tests: EBADF tests.
25018         * tests/test-pwrite.c (main): Add tests for EBADF.
25020         pread tests: EBADF tests.
25021         * tests/test-pread.c (main): Add tests for EBADF.
25023         lseek tests: EBADF tests.
25024         * tests/test-lseek.c (main): Add more tests for EBADF.
25026         Tests for module 'ftruncate'.
25027         * modules/ftruncate-tests: New file.
25028         * tests/test-ftruncate.sh: New file.
25029         * tests/test-ftruncate.c: New file.
25031         fsync tests: EBADF tests.
25032         * tests/test-fsync.c (main): Add more tests for EBADF.
25034         fdatasync tests: EBADF tests.
25035         * tests/test-fdatasync.c (main): Add more tests for EBADF.
25037         Tests for module 'fchown'.
25038         * modules/fchown-tests: New file.
25039         * tests/test-fchown.c: New file.
25041         Tests for module 'fchmod'.
25042         * modules/fchmod-tests: New file.
25043         * tests/test-fchmod.c: New file.
25045         fchdir tests: EBADF tests.
25046         * tests/test-fchdir.c (main): Add more tests for EBADF.
25048         dup2 tests: EBADF tests.
25049         * tests/test-dup2.c (main): Add more tests for EBADF.
25051         Tests for module 'dup'.
25052         * modules/dup-tests: New file.
25053         * tests/test-dup.c: New file.
25055         Tests for module 'close'.
25056         * modules/close-tests: New file.
25057         * tests/test-close.c: New file.
25059 2011-09-20  Bruno Haible  <bruno@clisp.org>
25061         Tests for module 'shutdown'.
25062         * modules/shutdown-tests: New file.
25063         * tests/test-shutdown.c: New file.
25065         Tests for module 'setsockopt'.
25066         * modules/setsockopt-tests: New file.
25067         * tests/test-setsockopt.c: New file.
25069         Tests for module 'sendto'.
25070         * modules/sendto-tests: New file.
25071         * tests/test-sendto.c: New file.
25073         Tests for module 'send'.
25074         * modules/send-tests: New file.
25075         * tests/test-send.c: New file.
25077         Tests for module 'recvfrom'.
25078         * modules/recvfrom-tests: New file.
25079         * tests/test-recvfrom.c: New file.
25081         Tests for module 'recv'.
25082         * modules/recv-tests: New file.
25083         * tests/test-recv.c: New file.
25085         Tests for module 'listen'.
25086         * modules/listen-tests: New file.
25087         * tests/test-listen.c: New file.
25089         Tests for module 'getsockopt'.
25090         * modules/getsockopt-tests: New file.
25091         * tests/test-getsockopt.c: New file.
25093         Tests for module 'getsockname'.
25094         * modules/getsockname-tests: New file.
25095         * tests/test-getsockname.c: New file.
25097         Tests for module 'getpeername'.
25098         * modules/getpeername-tests: New file.
25099         * tests/test-getpeername.c: New file.
25101         Tests for module 'connect'.
25102         * modules/connect-tests: New file.
25103         * tests/test-connect.c: New file.
25105         Tests for module 'bind'.
25106         * modules/bind-tests: New file.
25107         * tests/test-bind.c: New file.
25109         accept4 tests: Fix for native Windows.
25110         * tests/test-accept4.c: Include sockets.h.
25111         (main): Invoke gl_sockets_startup.
25112         * modules/accept4-tests (Depends-on): Add sockets.
25114         accept tests: Fix for native Windows.
25115         * tests/test-accept.c: Include sockets.h.
25116         (main): Invoke gl_sockets_startup.
25117         * modules/accept-tests (Depends-on): Add sockets.
25119 2011-09-19  Bruno Haible  <bruno@clisp.org>
25121         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
25122         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
25123         do...while(0).
25124         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
25125         Suggested by Paul Eggert.
25127 2011-09-19  Bruno Haible  <bruno@clisp.org>
25129         sched: Ensure pid_t is defined.
25130         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
25131         not define pid_t.
25132         * lib/sched.in.h: Include <sys/types.h>.
25133         * doc/posix-headers/sched.texi: Mention the pid_t problem.
25134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25136 2011-09-19  Bruno Haible  <bruno@clisp.org>
25138         msvc-inval: Ensure the entire expansion is a single statement.
25139         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
25140         of braces.
25142 2011-09-19  Jim Meyering  <meyering@redhat.com>
25144         tests: use printf, not echo in init.sh's warn_ function
25145         * tests/init.sh (warn_): Use printf, not echo.  The latter would
25146         misbehave when given strings containing a backslash or starting
25147         with e.g., -n.  James Youngman suggested setting IFS.
25149 2011-09-19  Eric Blake  <eblake@redhat.com>
25151         futimens: enhance test
25152         * tests/test-futimens.h (test_futimens): Also check for EBADF on
25153         closed non-negative fd.
25155         date: accept 'hence' as opposite of 'ago'
25156         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
25157         * tests/test-parse-datetime.c (main): Enhance test.
25158         Suggested by Jesse Wilson.
25160 2011-09-19  Jim Meyering  <meyering@redhat.com>
25162         getcwd: don't fail in a deep directory on a system without openat
25163         Before this change, getcwd would fail when called from a directory
25164         of depth PATH_MAX / 3 or greater.  That was due to the fact that
25165         the non-openat implementation used "..", "../..", "../../..", etc.
25166         to access ancestor directories.  With too many, that string would
25167         be longer than PATH_MAX.
25168         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
25169         using gnulib's openat replacement.
25170         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
25171         we're using the replacement function.
25173 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
25175         maint.mk: avoid warnings from perl about missing files
25176         * top/maint.mk (def_sym_regex): Ignore files listed in
25177         $(gl_other_headers_) that do not exist, say because a project
25178         does not use a corresponding module.
25180 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
25182         stat: use pathmax.h only if needed
25183         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
25184         This is better for Emacs, which does not have a mingw port and
25185         therefore can avoid the pathmax module.
25187         utimens: remove dependency on dup2
25188         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
25189         to work around the Linux kernel bug.
25190         * modules/utimens (Depends-on): Remove dup2.
25192 2011-09-18  Bruno Haible  <bruno@clisp.org>
25194         inet_ntop, inet_pton: Look for it also in libresolv.
25195         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
25196         libnsl, search for it in libresolv.
25197         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
25198         Needed on Solaris 7.
25200 2011-09-18  Bruno Haible  <bruno@clisp.org>
25202         accept, accept4 tests: Avoid link error on Solaris.
25203         * modules/accept-tests (Makefile.am): Link test-accept against
25204         $(LIBSOCKET).
25205         * modules/accept4-tests (Makefile.am): Link test-accept4 against
25206         $(LIBSOCKET).
25208         accept4: Avoid link error on Solaris.
25209         * modules/accept4 (Link): New section.
25211         socket functions: Avoid link errors on Solaris.
25212         * modules/accept (Depends-on): Add socketlib.
25213         (Link): New section.
25214         * modules/bind (Depends-on): Add socketlib.
25215         (Link): New section.
25216         * modules/connect (Depends-on): Add socketlib.
25217         (Link): New section.
25218         * modules/getpeername (Depends-on): Add socketlib.
25219         (Link): New section.
25220         * modules/getsockname (Depends-on): Add socketlib.
25221         (Link): New section.
25222         * modules/getsockopt (Depends-on): Add socketlib.
25223         (Link): New section.
25224         * modules/listen (Depends-on): Add socketlib.
25225         (Link): New section.
25226         * modules/recv (Depends-on): Add socketlib.
25227         (Link): New section.
25228         * modules/recvfrom (Depends-on): Add socketlib.
25229         (Link): New section.
25230         * modules/send (Depends-on): Add socketlib.
25231         (Link): New section.
25232         * modules/sendto (Depends-on): Add socketlib.
25233         (Link): New section.
25234         * modules/setsockopt (Depends-on): Add socketlib.
25235         (Link): New section.
25236         * modules/shutdown (Depends-on): Add socketlib.
25237         (Link): New section.
25238         * modules/socket (Depends-on): Add socketlib.
25239         (Link): New section.
25241 2011-09-18  Bruno Haible  <bruno@clisp.org>
25243         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
25244         * tests/test-ptsname.c (main): Terminate the test if it takes longer
25245         than 5 seconds.
25246         * modules/ptsname-tests (configure.ac): Test for alarm.
25248 2011-09-18  Bruno Haible  <bruno@clisp.org>
25250         posix_spawn_file_actions_add*: Fix module dependencies.
25251         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
25252         posix_spawn_file_actions_init.
25253         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
25254         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
25256 2011-09-18  Bruno Haible  <bruno@clisp.org>
25258         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
25259         * tests/test-rename.h (test_rename): Allow error code EEXIST.
25260         * tests/test-renameat.c (main): Likewise.
25262 2011-09-18  Bruno Haible  <bruno@clisp.org>
25264         Tests for module 'accept4'.
25265         * modules/accept4-tests: New file.
25266         * tests/test-accept4.c: New file.
25268 2011-09-18  Bruno Haible  <bruno@clisp.org>
25270         Tests for module 'accept'.
25271         * modules/accept-tests: New file.
25272         * tests/test-accept.c: New file.
25274 2011-09-18  Bruno Haible  <bruno@clisp.org>
25276         dup2: Support for MSVC.
25277         * lib/dup2.c: Include msvc-inval.h.
25278         (rpl_dup2): Handle invalid parameter notifications during dup2 and
25279         _get_osfhandle calls.
25280         * modules/dup2 (Depends-on): Add msvc-inval.
25281         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
25283         New module 'msvc-inval'.
25284         * lib/msvc-inval.h: New file.
25285         * lib/msvc-inval.c: New file.
25286         * m4/msvc-inval.m4: New file.
25287         * modules/msvc-inval: New file.
25289 2011-09-17  Bruno Haible  <bruno@clisp.org>
25291         Tests for module 'pclose'.
25292         * modules/pclose-tests: New file.
25294         New module 'pclose'.
25295         * lib/stdio.in.h (pclose): New declaration.
25296         * lib/pclose.c: New file.
25297         * m4/pclose.m4: New file.
25298         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
25299         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
25300         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
25301         * modules/pclose: New file.
25302         * modules/popen-tests (Depends-on): Add pclose.
25303         * modules/popen-safer-tests (Depends-on): Likewise.
25304         * doc/posix-functions/pclose.texi: Mention the new module.
25306 2011-09-17  Bruno Haible  <bruno@clisp.org>
25308         popen: Support for MSVC.
25309         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
25310         * lib/popen.c (popen): Provide alternate definition for native Windows.
25311         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
25312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
25313         * modules/popen (Depends-on, configure.ac): Update condition.
25314         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
25315         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
25316         fixed.
25318 2011-09-17  Bruno Haible  <bruno@clisp.org>
25320         isnanl, isnand, isnanf: Work around MSVC bug.
25321         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
25323 2011-09-17  Bruno Haible  <bruno@clisp.org>
25325         sys_socket tests: Fix recent mistake.
25326         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
25328 2011-09-17  Bruno Haible  <bruno@clisp.org>
25330         putenv: Support for MSVC.
25331         * modules/putenv (Depends-on): Add environ.
25332         * lib/putenv.c (environ): Disable declaration.
25333         * lib/unistd.in.h: Update comment.
25335 2011-09-17  Bruno Haible  <bruno@clisp.org>
25337         math: Avoid macro redefinition warnings on MSVC.
25338         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
25339         Undefine before redefining.
25341 2011-09-17  Bruno Haible  <bruno@clisp.org>
25343         doc: Mention functions which are declared as macros.
25344         * doc/posix-functions/*[fl].texi: Mention that some functions are
25345         defined as macros with arguments only.
25347 2011-09-17  Bruno Haible  <bruno@clisp.org>
25349         Add dependencies to new dirent related modules.
25350         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
25351         * modules/fts (Depends-on): Likewise.
25352         * modules/glob (Depends-on): Likewise.
25353         * modules/savedir (Depends-on): Likewise.
25354         * modules/scandir (Depends-on): Likewise.
25355         * modules/dirent-safer (Depends-on): Add opendir, closedir.
25356         * modules/fdopendir (Depends-on): Add opendir.
25358 2011-09-17  Bruno Haible  <bruno@clisp.org>
25360         inet_pton: Support for MSVC on Windows Vista or newer.
25361         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
25362         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
25363         HAVE_DECL_INET_PTON is defined.
25364         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
25365         On platforms with <winsock2.h>, test whether inet_pton is declared in
25366         <ws2tcpip.h>. If so, arrange to replace it.
25367         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
25368         REPLACE_INET_PTON.
25369         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
25370         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
25371         (Depends-on, configure.ac): Update condition.
25372         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
25374 2011-09-17  Bruno Haible  <bruno@clisp.org>
25376         inet_ntop: Support for MSVC on Windows Vista or newer.
25377         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
25378         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
25379         HAVE_DECL_INET_NTOP is defined.
25380         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
25381         On platforms with <winsock2.h>, test whether inet_ntop is declared in
25382         <ws2tcpip.h>. If so, arrange to replace it.
25383         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
25384         REPLACE_INET_NTOP.
25385         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
25386         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
25387         (Depends-on, configure.ac): Update condition.
25388         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
25390 2011-09-16  Eric Blake  <eblake@redhat.com>
25392         test-fsync: yet another enhancement
25393         * tests/test-fsync.c (main): Also test behavior on read-only text
25394         file.
25396 2011-09-16  Bruno Haible  <bruno@clisp.org>
25398         Enhance fsync, fdatasync tests.
25399         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
25400         * tests/test-fdatasync.c (main): Likewise.
25402 2011-09-16  Bruno Haible  <bruno@clisp.org>
25404         Support for MSVC compiler: Ensure mode_t gets defined.
25405         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
25406         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25408         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
25409         * tests/test-fcntl-h.c: Check that mode_t is defined.
25410         * tests/test-sys_stat.c: Likewise.
25411         * tests/test-sys_types.c: Likewise.
25412         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
25413         * doc/posix-headers/sys_stat.texi: Likewise.
25414         * doc/posix-headers/sys_types.texi: Likewise.
25416 2011-09-16  Bruno Haible  <bruno@clisp.org>
25418         sys_stat: Support for MSVC.
25419         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
25420         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
25421         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
25422         MSVC.
25424 2011-09-16  Bruno Haible  <bruno@clisp.org>
25426         Support for MSVC compiler: Ensure off_t gets defined.
25427         * lib/unistd.in.h: Include <sys/types.h>.
25428         * tests/test-fcntl-h.c: Check that off_t is defined.
25429         * tests/test-sys_stat.c: Likewise.
25430         * tests/test-sys_types.c: Likewise.
25432 2011-09-16  Eric Blake  <eblake@redhat.com>
25434         fdatasync: port to Solaris
25435         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
25436         * modules/fdatasync (Link): Document it.
25437         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
25439         fdatasync: port to MacOS X 10.7
25440         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
25441         declared.
25442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
25443         * modules/unistd (Makefile.am): Substitute it.
25444         * lib/unistd.in.h (fdatasync): Declare on MacOS.
25445         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
25447         fdatasync: minor improvements
25448         * modules/fdatasync (Depends-on): Add condition for fsync.
25449         * lib/fdatasync.c (fdatasync): Add comment.
25450         * tests/test-unistd-c++.cc: Test fdatasync.
25452         unistd: update refs to newer POSIX
25453         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
25454         Suggested by Bruno Haible.
25456         fdatasync: new module
25457         * modules/fsync (Description): Document difference to fdatasync.
25458         * modules/fdatasync: New module.
25459         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
25460         * lib/fdatasync.c (fdatasync): Likewise.
25461         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
25462         defaults.
25463         * modules/unistd (Makefile.am): Set witnesses.
25464         * lib/unistd.in.h (fdatasync): Declare.
25465         * MODULES.html.sh: Document it.
25466         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
25467         * modules/fdatasync-tests: New test.
25468         * tests/test-fdatasync.c: Likewise.
25470 2011-09-16  Eric Blake  <eblake@redhat.com>
25472         test-fsync: enhance tests
25473         * modules/fsync-tests (Depends-on): Add errno, for mingw.
25474         * tests/test-fsync.c (main): Enhance test.
25476 2011-09-15  Bruno Haible  <bruno@clisp.org>
25478         Support for MSVC compiler: Ensure ssize_t gets defined.
25479         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
25480         * doc/posix-headers/stdio.texi: Likewise.
25481         * modules/stdio (Depends-on): Add ssize_t.
25482         * modules/sys_socket (Depends-on): Likewise.
25483         * modules/sys_types (Depends-on): Likewise.
25484         * modules/sys_uio (Depends-on): Likewise.
25485         * modules/unistd (Depends-on): Likewise.
25486         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
25487         * tests/test-sys_types.c: Check that ssize_t is defined.
25489 2011-09-14  Bruno Haible  <bruno@clisp.org>
25491         Avoid using #, the m4 comment starter character, near brackets.
25492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
25493         delimiter character in sed expressions.
25494         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
25495         Suggested by Eric Blake.
25497         Properly quote AC_CHECK_DECLS' 4th argument.
25498         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
25499         argument.
25500         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
25501         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25502         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25503         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25504         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25505         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
25506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
25507         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
25508         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
25509         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25510         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
25511         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
25512         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25513         * m4/isinf.m4 (gl_ISINF): Likewise.
25514         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25515         * m4/readutmp.m4 (gl_READUTMP): Likewise.
25516         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25517         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25518         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25519         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
25520         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25521         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25522         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
25523         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25524         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25525         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
25527         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25529         Reported by Eric Blake.
25531         Properly quote AC_CHECK_DECL's 4th argument.
25532         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
25533         argument.
25534         * m4/argp.m4 (gl_ARGP): Likewise.
25535         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25536         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25537         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25538         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25539         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
25540         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
25541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25542         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25543         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25544         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25545         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25546         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25547         Reported by Eric Blake.
25549 2011-09-14  Eric Blake  <eblake@redhat.com>
25551         opendir: avoid compile warning
25552         * lib/opendir.c (includes): Always include errno.h.
25553         Reported by Tatsuro MATSUOKA.
25555 2011-09-14  Jim Meyering  <meyering@redhat.com>
25557         maint.mk: sc_tight_scope: propagate failure from sub-make
25558         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
25559         Reported by Martin von Gagern.
25561 2011-09-13  Bruno Haible  <bruno@clisp.org>
25563         tempname: Support for MSVC.
25564         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
25565         MSVC.
25566         * modules/tempname (Depends-on): Add fcntl-h.
25568 2011-09-13  Bruno Haible  <bruno@clisp.org>
25570         sys_time: Support for MSVC.
25571         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
25572         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
25573         include <winsock2.h>.
25574         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
25575         function declarations that collide with POSIX.
25576         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
25577         (Makefile.am): Substitute HAVE_WINSOCK2_H.
25579 2011-09-13  Bruno Haible  <bruno@clisp.org>
25581         stat: Support for MSVC.
25582         * lib/stat.c: Include pathmax.h.
25583         * modules/stat (Depends-on): Add pathmax.
25585         pathmax: Support for native Windows.
25586         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
25588 2011-09-12  Bruno Haible  <bruno@clisp.org>
25590         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
25591         * lib/dirent.in.h (struct dirent): New type.
25592         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
25593         DT_WHT): New macros.
25594         (DIR): New type.
25595         (opendir, closedir): Declare only if the module 'opendir' is enabled.
25596         (readdir, rewinddir): New declarations.
25597         * lib/dirent-private.h: New file.
25598         * lib/opendir.c: New file.
25599         * lib/readdir.c: New file.
25600         * lib/rewinddir.c: New file.
25601         * lib/closedir.c: New file.
25602         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
25603         * m4/opendir.m4: New file.
25604         * m4/readdir.m4: New file.
25605         * m4/rewinddir.m4: New file.
25606         * m4/closedir.m4: New file.
25607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
25608         REPLACE_CLOSEDIR here.
25609         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
25610         readdir, rewinddir are declared.
25611         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
25612         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
25613         HAVE_REWINDDIR, HAVE_CLOSEDIR.
25614         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
25615         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
25616         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
25617         * modules/opendir: New file.
25618         * modules/readdir: New file.
25619         * modules/rewinddir: New file.
25620         * modules/closedir: New file.
25621         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
25622         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
25623         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
25624         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
25625         * NEWS: Mention the 'fchdir' change.
25627 2011-09-11  Bruno Haible  <bruno@clisp.org>
25629         asm-underscore.m4: Support for MSVC.
25630         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
25631         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
25633 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
25635         Doc about crypt functions.
25636         * doc/posix-functions/crypt.texi: Expand range of glibc versions
25637         needing for _GNU_SOURCE to get crypt.
25638         * doc/posix-functions/encrypt.texi: Likewise.
25639         * doc/posix-functions/setkey.texi: Likewise.
25641 2011-09-11  Bruno Haible  <bruno@clisp.org>
25643         doc: Update regarding MSVC 9.
25644         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
25645         tested".
25646         * doc/posix-functions/*.texi: Update with info about MSVC 9.
25647         * doc/posix-headers/*.texi: Likewise.
25648         * doc/pastposix-functions/*.texi: Likewise.
25649         * doc/glibc-functions/*.texi: Likewise.
25650         * doc/glibc-headers/*.texi: Likewise.
25652 2011-09-11  Bruno Haible  <bruno@clisp.org>
25654         unistd et al.: Don't assume <unistd.h> exists.
25655         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
25656         does not exist.
25657         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
25658         exist. But include <stdlib.h>.
25659         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
25660         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
25661         symlink() does not exist.
25662         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
25663         include <io.h> instead.
25664         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
25665         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
25666         include <direct.h> instead.
25667         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
25668         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25669         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
25670         <io.h> instead.
25671         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
25672         correctly if the system does not have hard links.
25673         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
25674         <direct.h> instead.
25675         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
25676         it when looking for function declarations.
25677         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
25678         <direct.h> and <io.h> instead.
25679         * doc/posix-headers/unistd.texi: More details about MSVC problem.
25681 2011-09-11  Bruno Haible  <bruno@clisp.org>
25683         strcase: Support for MSVC.
25684         * modules/strcase (Status, Notice): Remove obsoletion mark.
25685         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
25686         * doc/posix-functions/strncasecmp.texi: Likewise.
25688         strings: Don't assume <strings.h> exists.
25689         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
25690         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
25691         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
25692         * doc/posix-headers/strings.texi: Mention the MSVC problem.
25694 2011-09-11  Bruno Haible  <bruno@clisp.org>
25696         dirent: Don't assume <dirent.h> exists.
25697         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
25698         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
25699         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
25700         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
25702 2011-09-11  Bruno Haible  <bruno@clisp.org>
25704         Fix wint_t on MSVC.
25705         * lib/wchar.in.h (wint_t): On MSVC, override it.
25706         * lib/wctype.in.h (wint_t): Likewise.
25707         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
25708         MSVC.
25709         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
25710         * doc/posix-headers/wctype.texi: Likewise.
25712 2011-09-11  Bruno Haible  <bruno@clisp.org>
25714         sys_types: Fix typo.
25715         * lib/sys_types.in.h: Fix typo in comment.
25716         Reported by Paul Eggert.
25718         Support for MSVC compiler: Ensure size_t gets defined.
25719         * modules/strings (Depends-on): Add 'sys_types'.
25720         * modules/sys_uio (Depends-on): Likewise.
25721         * lib/sys_uio.in.h: Update comment.
25723         C++ tests for module 'sys_types'.
25724         * modules/sys_types-c++-tests: New file.
25725         * tests/test-sys_types-c++.cc: New file.
25727         Tests for module 'sys_types'.
25728         * modules/sys_types-tests: New file.
25729         * tests/test-sys_types.c: New file.
25731         New module 'sys_types'.
25732         * lib/sys_types.in.h: New file.
25733         * m4/sys_types_h.m4: New file.
25734         * modules/sys_types: New file.
25735         * doc/posix-headers/sys_types.texi: Mention the new module and the
25736         size_t problem on MSVC 9.
25738 2011-09-11  Bruno Haible  <bruno@clisp.org>
25740         Support for MSVC compiler: Avoid division by a literal 0.
25741         * lib/math.in.h (NAN): Define through a function call also on MSVC.
25742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
25743         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
25744         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
25745         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
25746         * tests/infinity.h: New file.
25747         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
25748         on MSVC.
25749         * tests/test-ceilf1.c: Include infinity.h.
25750         (main): Use Infinityf.
25751         * tests/test-ceil1.c: Include infinity.h.
25752         (main): Use Infinityd.
25753         * tests/test-ceill.c: Include infinity.h.
25754         (main): Use Infinityl.
25755         * tests/test-dprintf-posix.c: Include infinity.h.
25756         (test_function): Use Infinityd.
25757         * tests/test-floorf1.c: Include infinity.h.
25758         (main): Use Infinityf.
25759         * tests/test-floor1.c: Include infinity.h.
25760         (main): Use Infinityd.
25761         * tests/test-floorl.c: Include infinity.h.
25762         (main): Use Infinityl.
25763         * tests/test-fprintf-posix.c: Include infinity.h.
25764         (test_function): Use Infinityd.
25765         * tests/test-frexp.c: Include infinity.h.
25766         (main): Use Infinityd.
25767         * tests/test-frexpl.c: Include infinity.h.
25768         (main): Use Infinityl.
25769         * tests/test-isfinite.c: Include infinity.h.
25770         (test_isfinitef): Use Infinityf.
25771         (test_isfinited): Use Infinityd.
25772         (test_isfinitel): Use Infinityl.
25773         * tests/test-isinf.c: Include infinity.h.
25774         (test_isinff): Use Infinityf.
25775         (test_isinfd): Use Infinityd.
25776         (test_isinfl): Use Infinityl.
25777         * tests/test-isnan.c: Include infinity.h.
25778         (test_float): Use Infinityf.
25779         (test_double): Use Infinityd.
25780         (test_long_double): Use Infinityl.
25781         * tests/test-isnanf.h: Include infinity.h.
25782         (main): Use Infinityf.
25783         * tests/test-isnand.h: Include infinity.h.
25784         (main): Use Infinityd.
25785         * tests/test-isnanl.h: Include infinity.h.
25786         (main): Use Infinityl.
25787         * tests/test-ldexpl.c: Include infinity.h.
25788         (main): Use Infinityl.
25789         * tests/test-printf-posix.h: Include infinity.h.
25790         (test_function): Use Infinityd.
25791         * tests/test-roundf1.c: Include infinity.h.
25792         (main): Use Infinityf.
25793         * tests/test-round1.c: Include infinity.h.
25794         (main): Use Infinityd.
25795         * tests/test-roundl.c: Include infinity.h.
25796         (main): Use Infinityl.
25797         * tests/test-signbit.c: Include infinity.h.
25798         (test_signbitf): Use Infinityf.
25799         (test_signbitd): Use Infinityd.
25800         (test_signbitl): Use Infinityl.
25801         * tests/test-snprintf-posix.h: Include infinity.h.
25802         (test_function): Use Infinityd, Infinityl.
25803         * tests/test-sprintf-posix.h: Include infinity.h.
25804         (test_function): Use Infinityd, Infinityl.
25805         * tests/test-truncf1.c: Include infinity.h.
25806         (main): Use Infinityf.
25807         * tests/test-trunc1.c: Include infinity.h.
25808         (main): Use Infinityd.
25809         * tests/test-truncl.c: Include infinity.h.
25810         (main): Use Infinityl.
25811         * tests/test-vasnprintf-posix.c: Include infinity.h.
25812         (test_function): Use Infinityd, Infinityl.
25813         * tests/test-vasprintf-posix.c: Include infinity.h.
25814         (test_function): Use Infinityd, Infinityl.
25815         * modules/ceilf-tests (Files): Add tests/infinity.h.
25816         * modules/ceil-tests (Files): Likewise.
25817         * modules/ceill-tests (Files): Likewise.
25818         * modules/dprintf-posix-tests (Files): Likewise.
25819         * modules/floorf-tests (Files): Likewise.
25820         * modules/floor-tests (Files): Likewise.
25821         * modules/floorl-tests (Files): Likewise.
25822         * modules/fprintf-posix-tests (Files): Likewise.
25823         * modules/frexp-tests (Files): Likewise.
25824         * modules/frexp-nolibm-tests (Files): Likewise.
25825         * modules/frexpl-tests (Files): Likewise.
25826         * modules/frexpl-nolibm-tests (Files): Likewise.
25827         * modules/isfinite-tests (Files): Likewise.
25828         * modules/isinf-tests (Files): Likewise.
25829         * modules/isnan-tests (Files): Likewise.
25830         * modules/isnanf-tests (Files): Likewise.
25831         * modules/isnanf-nolibm-tests (Files): Likewise.
25832         * modules/isnand-tests (Files): Likewise.
25833         * modules/isnand-nolibm-tests (Files): Likewise.
25834         * modules/isnanl-tests (Files): Likewise.
25835         * modules/isnanl-nolibm-tests (Files): Likewise.
25836         * modules/ldexpl-tests (Files): Likewise.
25837         * modules/printf-posix-tests (Files): Likewise.
25838         * modules/roundf-tests (Files): Likewise.
25839         * modules/round-tests (Files): Likewise.
25840         * modules/roundl-tests (Files): Likewise.
25841         * modules/signbit-tests (Files): Likewise.
25842         * modules/snprintf-posix-tests (Files): Likewise.
25843         * modules/sprintf-posix-tests (Files): Likewise.
25844         * modules/truncf-tests (Files): Likewise.
25845         * modules/trunc-tests (Files): Likewise.
25846         * modules/truncl-tests (Files): Likewise.
25847         * modules/vasnprintf-posix-tests (Files): Likewise.
25848         * modules/vasprintf-posix-tests (Files): Likewise.
25849         * modules/vdprintf-posix-tests (Files): Likewise.
25850         * modules/vfprintf-posix-tests (Files): Likewise.
25851         * modules/vprintf-posix-tests (Files): Likewise.
25852         * modules/vsnprintf-posix-tests (Files): Likewise.
25853         * modules/vsprintf-posix-tests (Files): Likewise.
25854         * modules/xprintf-posix-tests (Files): Likewise.
25856 2011-09-11  Bruno Haible  <bruno@clisp.org>
25858         Ensure pid_t gets defined.
25859         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
25860         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25861         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25862         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25863         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25864         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25865         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
25866         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25867         * tests/test-fcntl-h.c: Check that pid_t is defined.
25868         * tests/test-sched.c: Likewise.
25869         * tests/test-termios.c: Likewise.
25870         * tests/test-time.c: Likewise.
25871         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
25872         * doc/posix-headers/signal.texi: Likewise.
25873         * doc/posix-headers/sys_types.texi: Likewise.
25874         * doc/posix-headers/time.texi: Likewise.
25876 2011-09-11  Bruno Haible  <bruno@clisp.org>
25878         acl: Fix compilation on Solaris 10 (older version).
25879         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
25880         of ACE_EVERYONE.
25881         * lib/set-mode-acl.c (qset_acl): Likewise.
25882         Reported by Christian Jullien <eligis@orange.fr>.
25884 2011-09-10  Bruno Haible  <bruno@clisp.org>
25886         iconv, unsetenv: Add support for MSVC compiler.
25887         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
25888         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
25890 2011-09-10  Bruno Haible  <bruno@clisp.org>
25892         *printf: Add support for MSVC compiler.
25893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
25894         handles the exception caused by the %n directive. When cross-compiling,
25895         guess no on native Windows.
25896         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25897         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
25898         emulate it through vsnprintf.
25899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
25900         * doc/posix-functions/dprintf.texi: Update documentation regarding
25901         MSVC 9.
25902         * doc/posix-functions/fprintf.texi: Likewise.
25903         * doc/posix-functions/printf.texi: Likewise.
25904         * doc/posix-functions/snprintf.texi: Likewise.
25905         * doc/posix-functions/sprintf.texi: Likewise.
25906         * doc/posix-functions/swprintf.texi: Likewise.
25907         * doc/posix-functions/vdprintf.texi: Likewise.
25908         * doc/posix-functions/vfprintf.texi: Likewise.
25909         * doc/posix-functions/vprintf.texi: Likewise.
25910         * doc/posix-functions/vsnprintf.texi: Likewise.
25911         * doc/posix-functions/vsprintf.texi: Likewise.
25912         * doc/glibc-functions/asprintf.texi: Likewise.
25913         * doc/glibc-functions/obstack_printf.texi: Likewise.
25914         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25915         * doc/glibc-functions/vasprintf.texi: Likewise.
25917 2011-09-10  Bruno Haible  <bruno@clisp.org>
25919         nocrash: Add support for native Windows.
25920         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
25922 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
25923             Bruno Haible  <bruno@clisp.org>
25925         absolute-header, include-next: Add support for MSVC compiler.
25926         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
25927         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
25928         directory separator in #line directives.
25929         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
25930         recognize also backslash as directory separator in #line directives.
25932 2011-09-08  Jim Meyering  <meyering@redhat.com>
25934         maint.mk: mark the post-release commit log with "maint: " prefix
25935         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
25936         one-line commit-log summary.
25938 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
25939             Bruno Haible  <bruno@clisp.org>
25941         Doc about crypt functions.
25942         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
25943         systems.
25944         * doc/posix-functions/encrypt.texi: Likewise.
25945         * doc/posix-functions/setkey.texi: Likewise.
25947 2011-09-08  Simon Josefsson  <simon@josefsson.org>
25949         * lib/gc.h: Fix copyright header.
25951 2011-09-07  Bruno Haible  <bruno@clisp.org>
25953         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
25954         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
25955         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
25957 2011-09-07  Bruno Haible  <bruno@clisp.org>
25959         openat: Work around compilation error with OSF/1 5.1 DTK cc.
25960         * lib/fopen.c: Use different syntax for include of <stdio.h>.
25961         * lib/freopen.c: Likewise.
25962         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
25963         * lib/lstat.c: Likewise.
25964         * lib/stat.c: Likewise.
25965         * lib/open.c: Use different syntax for include of <fcntl.h>.
25966         * lib/openat.c: Include fcntl.h again, explicitly.
25968 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
25970         parse-datetime: document the newly accepted format
25971         * doc/parse-datetime.texi (Combined date and time of day items):
25972         New section.
25974 2011-09-06  Bruno Haible  <bruno@clisp.org>
25976         acl: Fix a test failure on newer Solaris 10 with ZFS.
25977         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
25978         ENOSYS as no ACL.
25979         Reported by Jim Meyering.
25981 2011-09-06  Bruno Haible  <bruno@clisp.org>
25983         acl: Update for AIX >= 5.3 with NFS.
25984         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
25985         ENOSYS as no ACL.
25987         acl: Fix a test failure on AIX >= 5.3 with NFS.
25988         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
25989         as no ACL.
25991 2011-09-06  Bruno Haible  <bruno@clisp.org>
25993         acl: Fix a test failure on IRIX 6.5 with NFS.
25994         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
25995         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
25996         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
25997         * lib/copy-acl.c (qcopy_acl): Likewise.
25999 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26001         openat: port to AIX 7.1 with large files
26002         AIX 7.1 does a "#define openat open64at" if large files are in use,
26003         so we can't simply #undef openat.  Use the orig_openat trick (similar
26004         to orig_open in lib/open.c) to work around the problem.  Problem
26005         reported by Kevin Brott for GNU tar, in the thread containing
26006         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
26007         * lib/openat.c (__need_system_fcntl_h): Define first.
26008         Include <fcntl.h> and <sys/types.h> before undefining.
26009         (orig_openat) [HAVE_OPENAT]: New inline function.
26010         (openat) [HAVE_OPENAT]: Do not undef.
26011         (rpl_openat): Use orig_openat, not openat.
26013 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26014             Bruno Haible  <bruno@clisp.org>
26016         acl: Avoid errors on NonStop Kernel.
26017         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
26018         ENOTSUP errors.
26020 2011-09-05  Bruno Haible  <bruno@clisp.org>
26022         acl: Clean up Solaris code.
26023         * lib/acl-internal.h: Remove no-op #if.
26024         * lib/file-has-acl.c: Likewise.
26025         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
26026         * lib/copy-acl.c (qcopy_acl): Likewise.
26028 2011-09-05  Bruno Haible  <bruno@clisp.org>
26030         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
26031         binaries built on the original Solaris 10.
26032         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
26033         trivial.
26035 2011-09-05  Bruno Haible  <bruno@clisp.org>
26037         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
26038         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
26039         10.
26040         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
26041         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
26042         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
26043         instead of acl_get, facl_get, acl_set, facl_set.
26045 2011-09-05  Bruno Haible  <bruno@clisp.org>
26047         copy-file: Try unit tests on more file systems.
26048         * tests/test-copy-file-1.sh: New file.
26049         * tests/test-copy-file-2.sh: New file.
26050         * modules/copy-file-tests (Files): Add them.
26051         (Makefile.am): Add them to TESTS.
26053         acl: Try unit tests on more file systems.
26054         * tests/test-file-has-acl-1.sh: New file.
26055         * tests/test-file-has-acl-2.sh: New file.
26056         * tests/test-set-mode-acl-1.sh: New file.
26057         * tests/test-set-mode-acl-2.sh: New file.
26058         * tests/test-copy-acl-1.sh: New file.
26059         * tests/test-copy-acl-2.sh: New file.
26060         * modules/acl-tests (Files): Add them.
26061         (Makefile.am): Add them to TESTS.
26063 2011-09-04  Bruno Haible  <bruno@clisp.org>
26065         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
26066         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
26067         10.
26068         (OLD_ALLOW, OLD_DENY): New macros.
26069         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
26070         ACE_ACCESS_ALLOWED_ACE_TYPE.
26071         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
26072         ACE_ACCESS_DENIED_ACE_TYPE.
26073         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
26074         (NEW_ACE_EXECUTE): Fix value.
26075         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
26076         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
26077         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
26078         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
26079         NEW_ACE_SYNCHRONIZE): New macros.
26080         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
26081         instead of acl_fromtext, acl_set, facl_set.
26082         Fixes a coreutils/tests/cp/perm failure.
26084 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
26086         openat: test for fstatat (..., 0) bug
26087         Further testing with tar suggests that fstatat (..., 0)
26088         does not work in general, on AIX 7.1; see
26089         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
26090         So, give up entirely on AIX 7.1's fstatat, and fall back on our
26091         replacement fstatat (which is what older AIX releases were using
26092         anyway).
26093         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
26094         use is now changed to orig_fstatat.  This was probably the right
26095         thing to do anyway.
26096         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
26097         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
26098         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
26099         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
26100         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
26101         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
26102         if the bug is found.
26104         openat: test for fstatat (AT_FDCWD, ..., 0) bug
26105         This tests for another fstatat bug on AIX 7.1:
26106         fstatat (AT_FDCWD, ..., 0) does not work.  See
26107         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
26108         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
26109         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
26110         (rpl_fstatat): Adjust so that it works around either (or both)
26111         bugs if present.
26112         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
26114 2011-09-03  Karl Berry  <karl@gnu.org>
26116         * doc/regex.texi (Character Class Operators): Avoid literal ":"
26117         in index entries.
26119 2011-09-02  Bruno Haible  <bruno@clisp.org>
26121         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
26122         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
26123         values of AR, ARFLAGS, RANLIB.
26124         Reported by John W. Eaton <jwe@gnu.org> for Octave.
26126 2011-09-02  Bruno Haible  <bruno@clisp.org>
26128         Find 'ar' program that fits with --host argument.
26129         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
26131 2011-09-02  Bruno Haible  <bruno@clisp.org>
26133         tests: init.sh: Support any non-GNU diff.
26134         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
26135         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
26136         Solaris 8.
26138 2011-09-02  Bruno Haible  <bruno@clisp.org>
26140         tests: init.sh: work also with any non-GNU diff that supports -u
26141         * tests/init.sh: Relax check for diff -u support.
26142         Rather than checking for GNU diff via --version, simply check
26143         for support for -u itself.  Useful at least on OpenBSD 4.9,
26144         AIX 7.1, IRIX 6.5, and Solaris 10.
26146 2011-09-01  Bruno Haible  <bruno@clisp.org>
26148         strtoimax, strtoumax: Document problem on HP-UX 11.
26149         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
26150         * doc/posix-functions/strtoumax.texi: Likewise.
26152 2011-09-01  Bruno Haible  <bruno@clisp.org>
26154         strtoumax: Avoid link error on OSF/1 with DTK cc.
26155         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
26156         defined as a function.
26157         * modules/strtoumax (Depends-on, configure.ac): Test only whether
26158         strtoumax is defined, not whether it is declared.
26160 2011-09-01  Bruno Haible  <bruno@clisp.org>
26162         strtoimax: Avoid link error on OSF/1 with DTK cc.
26163         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
26164         defined as a function.
26165         * modules/strtoimax (Depends-on, configure.ac): Test only whether
26166         strtoimax is defined, not whether it is declared.
26168 2011-09-01  Bruno Haible  <bruno@clisp.org>
26170         imaxdiv: Avoid link error on OSF/1 with DTK cc.
26171         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
26172         as a function.
26173         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
26174         whether it is declared.
26176 2011-09-01  Bruno Haible  <bruno@clisp.org>
26178         imaxabs: Avoid link error on OSF/1 with DTK cc.
26179         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
26180         as a function.
26181         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
26182         whether it is declared.
26184 2011-09-01  Bruno Haible  <bruno@clisp.org>
26186         Tests for module 'strtoumax'.
26187         * modules/strtoumax-tests: New file.
26188         * tests/test-strtoumax.c: New file.
26190         Tests for module 'strtoimax'.
26191         * modules/strtoimax-tests: New file.
26192         * tests/test-strtoimax.c: New file.
26194         Tests for module 'imaxdiv'.
26195         * modules/imaxdiv-tests: New file.
26196         * tests/test-imaxdiv.c: New file.
26198         Tests for module 'imaxabs'.
26199         * modules/imaxabs-tests: New file.
26200         * tests/test-imaxabs.c: New file.
26202 2011-09-01  Bruno Haible  <bruno@clisp.org>
26204         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
26205         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
26206         pthread_create.
26208 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26210         openat: work around AIX 7.1 fstatat issue
26211         This should fix the problem that was not properly fixed
26212         in the previous change, dated 2011-08-30.
26213         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
26214         __need_system_stat_h defined.
26215         (orig_fstatat) [HAVE_FSTATAT]: New function.
26216         (rpl_fstatat): Go back to the old way of doing things,
26217         except call orig_fstatat instead of fstatat.
26218         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
26219         Remove unnecessary check whether fstatat fills in st_size etc.
26221 2011-09-01  Bruno Haible  <bruno@clisp.org>
26223         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
26224         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
26225         just include the system's header.
26227 2011-08-31  Jim Meyering  <meyering@redhat.com>
26229         tests: avoid spurious assertion failure in test-float.c on ppc64
26230         * tests/test-float.c (test_long_double): Comment out an assertion,
26231         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
26232         with gcc-4.4.4.
26234         maint: indent with spaces, not TABs
26235         I need to get in the habit of running gnulib's "make check".
26236         Both of these would have been caught.
26237         * m4/largefile.m4: Indent with spaces, not TABs.
26238         * lib/parse-datetime.y (iso_8601_time): Likewise.
26239         Spotted by Pádraig Brady.
26241         test-parse-datetime.c: accommodate a relatively strict gcc warning
26242         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
26243         to avoid a warning from gcc's -Werror=missing-declarations.
26244         Insert a few spaces-before-funcall-parenthesis.
26246 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
26248         parse-datetime: accept ISO 8601 date and time rep with "T" separator
26249         The parser now accepts ISO 8601 date-time strings with "T" as the
26250         separator.  It has long parsed dates like "2004-02-29 16:21:42"
26251         with a space between the date and time strings.  Now it also parses
26252         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
26253         variants like "2004-02-29T16:21:42.333-07:00"
26254         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
26255         of day representation using the 'T' separator character.
26256         * doc/parse-datetime.texi (General date syntax): replace use of
26257         deprecated --iso-8601 option with --rfc-3339 in example of date
26258         command output formats that can be parsed.
26259         * tests/test-parse-datetime.c (tm_diff): New function, taken from
26260         lib/parse-datetime.y.
26261         (gmt_offset): New function.
26262         (main): Add additional test cases to validate ISO8601 extended
26263         date and time of day parsing.
26265 2011-08-31  Bruno Haible  <bruno@clisp.org>
26267         freopen: Documentation.
26268         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
26269         name.
26270         Reported by Claudio Bley <claudio.bley@gmail.com>.
26272 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
26274         freopen: Don't crash if the filename argument is NULL.
26275         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
26276         NULL.
26278 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26280         openat: work around AIX 7.1 fstatat bug
26281         Problem reported by Kevin Brott for GNU tar, in the thread containing
26282         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
26283         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
26284         FSTATAT_ST_SIZE_ETC_BROKEN.
26285         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
26286         rpl_fstatat.
26287         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
26288         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
26289         AC_CHECK_FUNCS_ONCE for fstatat.
26290         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
26291         fchmodat, mkdirat, openat and unlinkat.
26293 2011-08-30  Bruno Haible  <bruno@clisp.org>
26295         Avoid endless recursions if config.h includes some header files.
26296         * lib/fopen.c (__need_FILE): Define already before including config.h.
26297         * lib/freopen.c (__need_FILE): Likewise.
26298         * lib/open.c (__need_system_fcntl_h): Likewise.
26299         * lib/stat.c (__need_system_sys_stat_h): Likewise.
26300         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
26301         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26303 2011-08-25  Karl Berry  <karl@gnu.org>
26305         * config/srclist.txt (ylwrap): new try.
26306         * build-aux/ylwrap: new file.
26308 2011-08-23  Bruno Haible  <bruno@clisp.org>
26310         tmpdir: Use a good default directory on native Windows.
26311         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
26312         (P_tmpdir): Default to _P_tmpdir on native Windows.
26313         (path_search): On native Windows, try the value returned by GetTempPath
26314         before trying P_tmpdir.
26315         * modules/tmpdir (Depends-on): Add pathmax.
26316         Suggested by John Darrington <john@darrington.wattle.id.au>.
26318 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
26320         doc: fix typo in README-release
26321         * top/README-release: Capitalize first word of a sentence.
26323 2011-08-19  Jim Meyering  <meyering@redhat.com>
26325         fts: do not exhaust memory when processing million-entry directories
26326         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
26327         directory would require about 256*N bytes of memory.  Thus, it was
26328         easy to construct a directory too large to be processed by any of
26329         those tools.  With this change, fts' maximum memory utilization is
26330         now limited to around 30MB.
26331         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
26332         (fts_read): When we've processed the final entry (i.e., when
26333         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
26334         using the parent entry to read any remaining entries.  Dispatch
26335         depending on what fts_build returns:
26336         - NULL+stop, aka failure: stop
26337         - NULL otherwise: move up in the dir hierarchy
26338         - non-NULL: handle this new entry
26339         (fts_build): Declare and use new local, continue_readdir.
26340         Prepare to be called from fts_read, when the entries
26341         from a partially-read directory have just been exhausted.
26342         In that case, we'll skip the opendir and instead use the parent's
26343         fts_dirp and derive dir_fd from that.
26344         Finally, in the readdir loop, if we read max_entries entries,
26345         exit the loop ensuring *not* to call closedir.  This is required
26346         so that fts_dirp can be reused on a subsequent call.
26347         Prompted by Ben England's report of memory exhaustion in find
26348         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
26350         maint: fts: move decl of `dp' down into while loop; split a long line
26351         * lib/fts.c (fts_build): No semantic change.
26353         fts: add/use new struct member, fts_dirp
26354         We are about to use this to manage any directory with
26355         too many entries to read all of them into memory at once.
26356         To do that, we'll need to save the DIR* pointer in each
26357         affected FTSENT struct.
26358         * lib/fts_.h: Include <dirent.h>.
26359         (struct FTSENT) [fts_dirp]: New member.
26360         * lib/fts.c (closedir_and_clear): Define.
26361         Use it in place of closedir so that we are sure to
26362         clear the new fts_dirp member when done with it.
26363         (fts_alloc): Initialize the new member.
26364         (fts_lfree): Free, if needed.
26366         maint: fts: give __opendir2 a new parameter and rename
26367         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
26368         than surreptitiously using sole caller's "dir_fd".
26369         (fts_opendir): Rename from __opendir2.
26371         maint: fts.c: remove __opendir2's now-unused parameter, oflag
26372         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
26374         maint: fts.c: correct off-by-one indentation
26375         * lib/fts.c (fts_build): Correct indentation, change style
26376         of a couple of block comments, and bracing style.
26378         maint: fts.c: move __opendir2 #define "up" out of function body
26379         * lib/fts.c (__opendir2): Move "up".  No semantic change.
26381         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
26382         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
26383         out for a long time and besides was useful only on BSD systems.
26385 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26387         regex: port to Stratus OpenVOS
26388         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
26389         define to empty, rather than attempting nonportable optimizations.
26390         Problem reported by Paul Green in:
26391         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
26392         and fix suggested by Eric Blake in:
26393         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
26395 2011-08-17  Eric Blake  <eblake@redhat.com>
26397         getcwd: fix test failures on mingw
26398         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
26399         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
26400         test if long directory cannot be created, and allow mingw errno.
26402         getcwd-lgpl: fix m4 to match relaxed test for BSD
26403         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
26404         (gl_FUNC_GETCWD_SIGNATURE): New macro.
26405         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
26406         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
26407         signature problem.
26409         getcwd: fix compilation on mingw64
26410         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
26411         getcwd.
26412         Reported by Marc-André Lureau.
26414         pipe2: silence compiler warning
26415         * lib/pipe2.c (pipe2): Hide label if it is not used.
26417 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
26419         relocatable-prog: fix link error
26420         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
26421         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
26422         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
26423         into modules/relocatable-lib without noticing that
26424         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
26425         also needs to build relocatable.c.
26427 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26429         getaddrinfo: fix sh typo in gai_strerrorA decl checking
26430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
26431         shell code: it contained a 'break' that was not in a loop.
26432         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
26433         via a shell-language loop; this may have been true in old Autoconf
26434         versions, but it's not true in Autoconf 2.68.  I found this bug
26435         when testing coreutils git on Solaris 8, whose shell complains
26436         about the syntax error.
26438 2011-08-12  Simon Josefsson  <simon@josefsson.org>
26440         * lib/base64.c: Fix comment to reference RFC 4648.
26441         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
26442         <gvtulder@gmail.com>.
26444 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26446         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
26448         po/Makefile.in.in: fix make -q problem
26449         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
26450         rule, since there's no file named 'check-macro-version' and its
26451         use as a file breaks make -q.
26452         (all): Don't depend on check-macro-version.
26453         (CHECK_MACRO_VERSION): New macro.
26454         (stamp-po): Use it.
26456         configmake: fix make -q problem
26457         * modules/configmake (configmake.h): Update configmake.h's time stamp
26458         even if the file does not change.  Otherwise, 'make -q' fails.
26459         Problem reported by Simon Josefsson in
26460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
26462 2011-08-11  Jim Meyering  <meyering@redhat.com>
26464         git-version-gen: correct the advice in a comment
26465         * build-aux/git-version-gen: Correct comment.
26466         Don't recommend to list .tarball-version in .gitignore.
26468 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26470         base64: fix off-by-one buffer size bug
26471         Problem and (trivial) fix reported by Gijs van Tulder in
26472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
26473         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
26474         * tests/test-base64.c (main): Catch the bug.
26476 2011-08-10  Eric Blake  <eblake@redhat.com>
26478         closein: correct comments
26479         * lib/closein.c (close_stdin): Improve comments.
26481 2011-08-09  Bruno Haible  <bruno@clisp.org>
26483         More tests for 'fseeko'.
26484         * tests/test-fseeko3.c: New file, from Eric Blake.
26485         * tests/test-fseeko3.sh: New file.
26486         * modules/fseeko-tests (Files): Add them.
26487         (TESTS): Add test-fseeko3.sh.
26488         (check_PROGRAMS): Add test-fseeko3.
26490 2011-08-09  Eric Blake  <eblake@redhat.com>
26492         fseeko: remove unneeded hack
26493         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
26495         fseeko: fix bug on glibc
26496         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
26497         Reported by John W. Eaton.
26499 2011-08-08  Bruno Haible  <bruno@clisp.org>
26501         unictype/base: Fix interoperability with preinstalled libunistring.
26502         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
26503         Reported by Simon Josefsson.
26505 2011-08-08  Bruno Haible  <bruno@clisp.org>
26507         iswblank: Detect declaration correctly.
26508         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
26509         AC_CHECK_DECLS invocation.
26511 2011-08-08  Bruno Haible  <bruno@clisp.org>
26513         tcgetsid: Detect declaration correctly.
26514         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
26515         AC_CHECK_DECLS invocation.
26516         Reported by Simon Josefsson.
26518 2011-08-08  Eric Blake  <eblake@redhat.com>
26520         largefile: fix typo that regressed large file support
26521         * modules/largefile (configure.ac-early): Fix section name.
26523 2011-08-06  Karl Berry  <karl@gnu.org>
26525         * MODULES.html.sh (func_all_files): _Noreturn is no longer
26526         a separate module.
26528 2011-08-05  Simon Josefsson  <simon@josefsson.org>
26530         openat: Fix warnings and commens when building unlinkat.c on Hurd.
26531         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
26532         get prototype for free.
26534 2011-08-04  Bruno Haible  <bruno@clisp.org>
26536         Tests for module 'pathmax'.
26537         * modules/pathmax-tests: New file.
26538         * tests/test-pathmax.c: New file.
26540         canonicalize-lgpl: Support larger filenames on the Hurd.
26541         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
26542         Reported by Paul Eggert.
26544         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
26545         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
26546         * lib/chdir-long.h: Include pathmax.h.
26547         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
26548         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
26549         (PATH_MAX): Remove code that is done by pathmax.h.
26550         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
26551         * lib/tmpfile.c: Add a comment.
26552         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
26553         * modules/chdir-long (Depends-on): Add pathmax.
26554         * modules/getcwd (Depends-on): Add pathmax.
26555         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
26556         is not defined.
26557         * doc/posix-headers/limits.texi: Mention the pathmax module.
26558         * NEWS: Mention the change.
26560 2011-08-02  Bruno Haible  <bruno@clisp.org>
26562         pthread_sigmask: Actually use results of gl_THREADLIB.
26563         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
26564         gl_THREADLIB, not gl_[]THREADLIB.
26565         Reported by Eric Blake.
26567 2011-08-02  Jim Meyering  <meyering@redhat.com>
26569         maint.mk: relax the default _gl_TS_function_match regexp
26570         * top/maint.mk (_gl_TS_function_match): Don't require at least one
26571         space between function name and "(" in an "extern" declaration.
26572         That would fail to match a decl with no space there: extern void foo();
26574 2011-07-31  Iain Nicol  <iain@thenicols.net>
26576         git-version-gen: document that EXTRA_DIST must include .version
26577         * build-aux/git-version-gen: In the how-to-use comment, document
26578         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
26579         will fail when run from an unpacked distribution tarball.
26581 2011-08-01  Bruno Haible  <bruno@clisp.org>
26583         wctype-h: Fix last change.
26584         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
26585         REPLACE_TOWLOWER to 0.
26586         Reported by Sam Steingold <sds@gnu.org>.
26588 2011-07-31  Bruno Haible  <bruno@clisp.org>
26590         frexpl: Update autoconf test.
26591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
26592         according to changes of 2011-06-20.
26594 2011-07-31  Bruno Haible  <bruno@clisp.org>
26596         sys_utsname: Add support for Minix.
26597         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
26598         <sys/utsname.h>.
26599         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26600         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
26602 2011-07-31  Bruno Haible  <bruno@clisp.org>
26604         strings: Add support for Minix.
26605         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
26606         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26607         * doc/posix-headers/strings.texi: Document the Minix problem.
26609 2011-07-31  Bruno Haible  <bruno@clisp.org>
26611         wctype-h: Add support for Minix.
26612         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
26613         REPLACE_TOWLOWER.
26614         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
26615         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
26616         REPLACE_ISWCNTRL.
26618 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
26620         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
26621         This is a performance improvement for 64-bit hosts: it causes the
26622         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
26624 2011-07-31  Bruno Haible  <bruno@clisp.org>
26626         stdioext: Add support for Minix.
26627         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
26628         * lib/fpurge.c (fpurge): Likewise.
26629         * lib/freadahead.c (freadahead): Likewise.
26630         * lib/freadable.c (freadable): Likewise.
26631         * lib/freading.c (freading): Likewise.
26632         * lib/freadptr.c (freadptr): Likewise.
26633         * lib/freadseek.c (freadptrinc): Likewise.
26634         * lib/fseeko.c (rpl_fseeko): Likewise.
26635         * lib/fseterr.c (fseterr): Likewise.
26636         * lib/fwritable.c (fwritable): Likewise.
26637         * lib/fwriting.c (fwriting): Likewise.
26638         * lib/fflush.c (clear_ungetc_buffer): Update comment.
26639         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
26641 2011-07-31  Bruno Haible  <bruno@clisp.org>
26643         errno: Port to Minix.
26644         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
26645         ECONNABORTED are defined.
26646         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
26647         GNULIB_defined_ECONNABORTED): New macros.
26648         * lib/strerror-override.h (strerror_override): Test also
26649         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
26650         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
26651         ECONNABORTED.
26652         * doc/posix-headers/errno.texi: Mention the Minix problem.
26654 2011-07-31  Bruno Haible  <bruno@clisp.org>
26656         Work around declaration collisions on Minix.
26657         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
26658         defined, set REPLACE_MBSINIT.
26659         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
26660         defined, set REPLACE_MBRTOWC.
26661         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
26662         set REPLACE_MBRLEN.
26663         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
26664         defined, set REPLACE_MBSRTOWCS.
26665         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
26666         defined, set REPLACE_WCRTOMB.
26667         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
26668         defined, set REPLACE_WCSRTOMBS.
26670 2011-07-31  Bruno Haible  <bruno@clisp.org>
26672         Add support for Minix with ACK compiler.
26673         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
26674         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
26675         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
26677 2011-07-31  Bruno Haible  <bruno@clisp.org>
26679         Documentation about Minix.
26680         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
26681         * doc/glibc-headers/*.texi: Likewise.
26682         * doc/posix-functions/*.texi: Likewise.
26683         * doc/glibc-functions/*.texi: Likewise.
26685 2011-07-31  Bruno Haible  <bruno@clisp.org>
26687         snippet/warn-on-use: Fix indentation.
26688         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
26690 2011-07-25  Jim Meyering  <meyering@redhat.com>
26692         tests: test-update-copyright.sh: remove unnecessary "rm" commands
26693         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
26694         commands.
26696 2011-07-27  Jim Meyering  <meyering@redhat.com>
26698         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
26699         * top/maint.mk (gl_extract_significant_defines_): Now that
26700         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
26701         gnulib/lib/signal.in.h, and now that we recommend to
26702         define-if-undefined those two symbols in application code,
26703         we must filter them out of the "significant" list.
26704         This avoids a "make syntax-check" failure in coreutils.
26706 2011-07-26  Eric Blake  <eblake@redhat.com>
26708         warnings: add comments about previous patch
26709         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
26710         * m4/include_next.m4: Likewise.
26711         * m4/warn-on-use.m4: Likewise.
26712         * m4/warnings.m4: Likewise, and simplify use.
26713         Suggested by Stefano Lattarini.
26715         include-next, warnings: support older autoconf
26716         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
26717         AS_VAR_PUSHDEF in a way that works with older autoconf.
26718         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
26719         Reported by Daniel P. Berrange.
26721 2011-07-25  Bruno Haible  <bruno@clisp.org>
26723         fseek, ftell: Fix doc.
26724         * doc/posix-functions/fseek.texi: Reword statement about
26725         AC_SYS_LARGEFILE.
26726         * doc/posix-functions/ftell.texi: Likewise.
26728 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26729             Bruno Haible  <bruno@clisp.org>
26731         Add dependencies to the 'largefile' module.
26732         * modules/fopen (Depends-on): Add 'largefile'.
26733         * modules/freopen (Depends-on): Likewise.
26734         * modules/fseeko (Depends-on): Likewise.
26735         * modules/ftello (Depends-on): Likewise.
26736         * modules/glob (Depends-on): Likewise.
26737         * modules/lseek (Depends-on): Likewise.
26738         * modules/lstat (Depends-on): Likewise.
26739         * modules/mkostemp (Depends-on): Likewise.
26740         * modules/mkostemps (Depends-on): Likewise.
26741         * modules/mkstemp (Depends-on): Likewise.
26742         * modules/mkstemps (Depends-on): Likewise.
26743         * modules/open (Depends-on): Likewise.
26744         * modules/openat (Depends-on): Likewise.
26745         * modules/pread (Depends-on): Likewise.
26746         * modules/pwrite (Depends-on): Likewise.
26747         * modules/scandir (Depends-on): Likewise.
26748         * modules/stat (Depends-on): Likewise.
26749         * modules/tmpfile (Depends-on): Likewise.
26750         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
26751         since the containing module now depends on the largefile module.
26752         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
26753         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
26754         off_t is fixed by gnulib.
26755         * doc/posix-functions/freopen.texi: Likewise.
26756         * doc/posix-functions/fseeko.texi: Likewise.
26757         * doc/posix-functions/fstatat.texi: Likewise.
26758         * doc/posix-functions/ftello.texi: Likewise.
26759         * doc/posix-functions/glob.texi: Likewise.
26760         * doc/posix-functions/lseek.texi: Likewise.
26761         * doc/posix-functions/lstat.texi: Likewise.
26762         * doc/posix-functions/mkstemp.texi: Likewise.
26763         * doc/posix-functions/open.texi: Likewise.
26764         * doc/posix-functions/openat.texi: Likewise.
26765         * doc/posix-functions/pread.texi: Likewise.
26766         * doc/posix-functions/pwrite.texi: Likewise.
26767         * doc/posix-functions/scandir.texi: Likewise.
26768         * doc/posix-functions/stat.texi: Likewise.
26769         * doc/posix-functions/tmpfile.texi: Likewise.
26770         * doc/glibc-functions/mkostemp.texi: Likewise.
26771         * doc/glibc-functions/mkostemps.texi: Likewise.
26772         * doc/glibc-functions/mkstemps.texi: Likewise.
26774 2011-07-25  Bruno Haible  <bruno@clisp.org>
26776         fcntl: Move AC_LIBOBJ invocation to module description.
26777         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
26778         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
26780         fcntl: Remove call-in from fchdir.m4.
26781         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
26782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
26784         dup3: Remove potential call-in from fchdir.m4.
26785         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
26786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
26788         dup2: Move AC_LIBOBJ invocation to module description.
26789         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
26790         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
26791         Don't invoke AC_LIBOBJ.
26792         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
26794         dup2: Remove call-in from fchdir.m4.
26795         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
26796         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
26798         fclose: Move AC_LIBOBJ invocation to module description.
26799         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
26800         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
26801         to 1.
26802         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
26804         fclose: Remove call-in from close.m4.
26805         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
26806         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
26808         close: Move AC_LIBOBJ invocation to module description.
26809         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
26810         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
26811         1.
26812         * modules/close (configure.ac): Invoke AC_LIBOBJ.
26814         close: Remove call-in from fchdir.m4.
26815         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
26816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
26818         open: Move AC_LIBOBJ invocation to module description.
26819         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
26820         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
26821         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
26823         open: Remove call-in from fchdir.m4.
26824         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
26825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
26827         fchdir: Start to remove gl_REPLACE_* idiom.
26828         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
26829         (gl_FUNC_FCHDIR): Invoke it.
26831 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26833         * lib/ftell.c (ftell): Comment out cast.
26835         close: use gl_REPLACE_FCLOSE only if defined
26836         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
26837         is defined.  The close module doesn't depend on the fclose module
26838         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
26839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
26840         I reproduced the problem with "./gnulib-tool --test close sys_socket".
26842 2011-07-24  Jim Meyering  <meyering@redhat.com>
26844         test-select.h: avoid warning when using gcc's -Wmissing-declarations
26845         * tests/test-select.h (test_function): Declare as "static".
26847 2011-07-24  Bruno Haible  <bruno@clisp.org>
26849         doc: Mention the effects of AC_SYS_LARGEFILE.
26850         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
26851         on this function.
26852         * doc/posix-functions/aio_error.texi: Likewise.
26853         * doc/posix-functions/aio_fsync.texi: Likewise.
26854         * doc/posix-functions/aio_read.texi: Likewise.
26855         * doc/posix-functions/aio_return.texi: Likewise.
26856         * doc/posix-functions/aio_suspend.texi: Likewise.
26857         * doc/posix-functions/aio_write.texi: Likewise.
26858         * doc/posix-functions/fgetpos.texi: Likewise.
26859         * doc/posix-functions/fopen.texi: Likewise.
26860         * doc/posix-functions/freopen.texi: Likewise.
26861         * doc/posix-functions/fsetpos.texi: Likewise.
26862         * doc/posix-functions/fstatvfs.texi: Likewise.
26863         * doc/posix-functions/ftruncate.texi: Likewise.
26864         * doc/posix-functions/ftw.texi: Likewise.
26865         * doc/posix-functions/getrlimit.texi: Likewise.
26866         * doc/posix-functions/glob.texi: Likewise.
26867         * doc/posix-functions/lio_listio.texi: Likewise.
26868         * doc/posix-functions/lockf.texi: Likewise.
26869         * doc/posix-functions/mkstemp.texi: Likewise.
26870         * doc/posix-functions/mmap.texi: Likewise.
26871         * doc/posix-functions/nftw.texi: Likewise.
26872         * doc/posix-functions/openat.texi: Likewise.
26873         * doc/posix-functions/opendir.texi: Likewise.
26874         * doc/posix-functions/posix_fadvise.texi: Likewise.
26875         * doc/posix-functions/posix_fallocate.texi: Likewise.
26876         * doc/posix-functions/pread.texi: Likewise.
26877         * doc/posix-functions/pwrite.texi: Likewise.
26878         * doc/posix-functions/readdir.texi: Likewise.
26879         * doc/posix-functions/readdir_r.texi: Likewise.
26880         * doc/posix-functions/rewinddir.texi: Likewise.
26881         * doc/posix-functions/scandir.texi: Likewise.
26882         * doc/posix-functions/seekdir.texi: Likewise.
26883         * doc/posix-functions/setrlimit.texi: Likewise.
26884         * doc/posix-functions/statvfs.texi: Likewise.
26885         * doc/posix-functions/telldir.texi: Likewise.
26886         * doc/posix-functions/tmpfile.texi: Likewise.
26887         * doc/posix-functions/truncate.texi: Likewise.
26888         * doc/glibc-functions/fallocate.texi: Likewise.
26889         * doc/glibc-functions/fstatfs.texi: Likewise.
26890         * doc/glibc-functions/fts_children.texi: Likewise.
26891         * doc/glibc-functions/fts_read.texi: Likewise.
26892         * doc/glibc-functions/getdirentries.texi: Likewise.
26893         * doc/glibc-functions/mkostemp.texi: Likewise.
26894         * doc/glibc-functions/mkostemps.texi: Likewise.
26895         * doc/glibc-functions/mkstemps.texi: Likewise.
26896         * doc/glibc-functions/preadv.texi: Likewise.
26897         * doc/glibc-functions/pwritev.texi: Likewise.
26898         * doc/glibc-functions/sendfile.texi: Likewise.
26899         * doc/glibc-functions/statfs.texi: Likewise.
26901 2011-07-24  Bruno Haible  <bruno@clisp.org>
26903         doc: Fix typo.
26904         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
26906 2011-07-24  Bruno Haible  <bruno@clisp.org>
26908         doc: Mention fsusage.
26909         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
26911 2011-07-24  Bruno Haible  <bruno@clisp.org>
26913         doc: Mention new glibc headers and functions.
26914         * doc/glibc-headers/gshadow.texi: New file.
26915         * doc/glibc-functions/endsgent.texi: New file.
26916         * doc/glibc-functions/fgetsgent.texi: New file.
26917         * doc/glibc-functions/fgetsgent_r.texi: New file.
26918         * doc/glibc-functions/getsgent.texi: New file.
26919         * doc/glibc-functions/getsgent_r.texi: New file.
26920         * doc/glibc-functions/getsgnam.texi: New file.
26921         * doc/glibc-functions/getsgnam_r.texi: New file.
26922         * doc/glibc-functions/putsgent.texi: New file.
26923         * doc/glibc-functions/setsgent.texi: New file.
26924         * doc/glibc-functions/sgetsgent.texi: New file.
26925         * doc/glibc-functions/sgetsgent_r.texi: New file.
26926         * doc/glibc-functions/malloc_info.texi: New file.
26927         * doc/glibc-functions/preadv.texi: New file.
26928         * doc/glibc-functions/pwritev.texi: New file.
26929         * doc/glibc-functions/register_printf_modifier.texi: New file.
26930         * doc/glibc-functions/register_printf_specifier.texi: New file.
26931         * doc/glibc-functions/register_printf_type.texi: New file.
26932         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
26933         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
26934         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
26935         * doc/glibc-functions/pthread_getname_np.texi: New file.
26936         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
26937         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
26938         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
26939         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
26940         * doc/glibc-functions/pthread_setname_np.texi: New file.
26941         * doc/glibc-functions/pthread_sigqueue.texi: New file.
26942         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
26943         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
26944         * doc/glibc-functions/qsort_r.texi: New file.
26945         * doc/glibc-functions/quick_exit.texi: New file.
26946         * doc/glibc-functions/syncfs.texi: New file.
26947         * doc/gnulib.texi: Include them.
26948         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
26949         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
26950         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
26951         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
26952         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
26953         * doc/glibc-functions/execvpe.texi: Likewise.
26955 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26957         ftell: don't include <unistd.h>
26958         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
26959         guaranteed to define off_t, and the ftell module depends on the
26960         stdio module.
26962         ftell: do not assume wraparound signed arithmetic
26963         * lib/ftell.c: Include <limits.h>.
26964         (ftell): Don't assume wraparound signed arithmetic.
26966 2011-07-24  Bruno Haible  <bruno@clisp.org>
26968         close: No longer depend on module 'fclose'.
26969         * modules/close (Depends-on): Remove fclose.
26970         * NEWS: Mention the change.
26971         Suggested by Sam Steingold <sds@gnu.org>.
26973 2011-07-24  Bruno Haible  <bruno@clisp.org>
26975         fsusage: Enable large volume support on AIX >= 5.2.
26976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
26977         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
26978         instead of STAT_STATVFS.
26979         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
26981         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
26982         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
26983         f_blocks field only on MacOS X.
26985         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
26986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
26987         * modules/fsusage (Depends-on): Add largefile.
26989 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26991         * README: Modernize discussion of signed integers.
26992         Assuming overflow wraparound is no longer safe.
26993         Mention ones' complement and signed magnitude.
26995 2011-07-22  Bruno Haible  <bruno@clisp.org>
26997         select tests, pselect tests: Refactor.
26998         * tests/test-select.h: New file, extracted from tests/test-select.c.
26999         (select_fn): New type.
27000         (test, do_select, do_select_nowait, do_select_wait, test_tty,
27001         test_connect_first, test_accept_first, test_pair, test_socket_pair,
27002         test_pipe): Add my_select argument.
27003         (test_function): Renamed from main. Add my_select argument.
27004         * tests/test-select.c: Move most code to tests/test-select.h. Include
27005         test-select.h.
27006         * modules/select-tests (Files): Add tests/test-select.h.
27007         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
27008         (my_select, main): New functions.
27009         * modules/pselect-tests (Files): Add tests/test-select.h,
27010         tests/macros.h, tests/signature.h.
27011         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
27012         (configure.ac): Check for <sys/wait.h>.
27014 2011-07-22  Bruno Haible  <bruno@clisp.org>
27016         sys_select tests: Check the signature of FD_*.
27017         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
27018         signature tests from here...
27019         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
27020         here.
27021         * modules/sys_select-tests (Files): Add tests/signature.h.
27023 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
27025         largefile: new module, replacing large-inode
27026         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
27027         * MODULES.html.sh: Add largefile, remove large-inode.
27028         * modules/largefile, m4/largefile.m4: New files.
27029         * modules/large-inode, m4/large-inode.m4: Remove.
27031         fsusage: port to MacOS X 10.7 with 4 TiB file systems
27032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
27033         implementations that use only 32 bits to count blocks.
27034         On typical hosts with 1024-byte blocks, this fails with file
27035         systems as small as 4 TiB.  Problem reported by Herb Wartens
27036         <http://debbugs.gnu.org/9140> and this should also fix a similar
27037         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
27039         large-inode: New module
27040         * MODULES.html.sh: Add it.
27041         * modules/large-inode, m4/large-inode.m4: New files.
27043         extensions: Enable extensions on MacOS X 10.5 and later.
27044         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
27046 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
27048         file-has-acl: use acl_extended_file_nofollow if available
27049         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
27050         (acl_extended_file): New macro.
27051         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
27052         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
27054 2011-07-21  Bruno Haible  <bruno@clisp.org>
27056         Declare system functions in a way that works with C++.
27057         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
27058         declare fdopendir as extern "C".
27059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
27060         declare frexpl as extern "C".
27061         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
27062         declare gai_strerror as extern "C".
27063         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
27064         programs, declare gai_strerror as extern "C".
27065         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
27066         declare getlogin_r as extern "C".
27067         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
27068         as extern "C".
27069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
27070         declare ldexpl as extern "C".
27071         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
27072         as extern "C".
27073         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
27074         program, declare getmntinfo as extern "C".
27075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
27076         stpncpy as extern "C".
27077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
27078         program, declare __xpg_strerror_r as extern "C".
27079         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
27080         strndup as extern "C".
27081         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
27082         declare memset and bzero as extern "C".
27083         Reported by Sam Steingold <sds@gnu.org>.
27085 2011-07-12  Jim Meyering  <meyering@redhat.com>
27087         maint.mk: prohibit inclusion of "verify.h" without use
27088         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
27090 2011-07-19  Pádraig Brady  <P@draigBrady.com>
27092         timer-time: A new module to check for timer_settime()
27093         * m4/timer_time.m4: Check for the posix function.
27094         * modules/timer-time: Add the new module.
27095         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
27096         Mention it.
27098 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
27099             Bruno Haible  <bruno@clisp.org>
27101         pthread_sigmask: assume POSIX threads if --avoid=threadlib
27102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
27103         not defined, assume POSIX threads and look for pthread_sigmask in
27104         $LIBS, without changing $CPPFLAGS.
27106 2011-07-19  Bruno Haible  <bruno@clisp.org>
27108         strstr: Update cross-compilation guess.
27109         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
27110         CPUs, guess no, in view of glibc
27111         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
27112         Suggested by Eric Blake. Reported by Reuben Thomas.
27114 2011-07-19  Pádraig Brady  <P@draigBrady.com>
27116         getopt-gnu: suppress core dumps from detection code
27117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
27118         to suppress core dumps that may well occur on glibc systems.
27119         * modules/getopt-gnu: Depend on nocrash.
27121 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
27123         pthread_sigmask: ensure usleep is declared
27124         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
27125         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
27127 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27129         doc: Document NonStop portability issues.
27130         * doc/posix-functions/sigaction.texi (sigaction):
27131         * doc/posix-headers/signal.texi (signal.h):
27132         Document NonStop.  See Joachim Schmitz in
27133         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
27135 2011-07-15  Bruno Haible  <bruno@clisp.org>
27137         ffsl, ffsll: Avoid unportable behaviour.
27138         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
27140 2011-07-15  Bruno Haible  <bruno@clisp.org>
27142         ffs: More tests.
27143         * tests/test-ffs.c (NBITS): New macro.
27144         (main): Add more tests.
27145         * tests/test-ffsl.c (NBITS): New macro.
27146         (main): Add more tests.
27147         * tests/test-ffsll.c (NBITS): New macro.
27148         (main): Add more tests.
27150 2011-07-15  Eric Blake  <eblake@redhat.com>
27152         ffsl, ffsll: new modules
27153         * modules/ffsl: New file.
27154         * modules/ffsll: Likewise.
27155         * m4/ffsl.m4: Likewise.
27156         * m4/ffsll.m4: Likewise.
27157         * lib/ffsl.c: Likewise.
27158         * lib/ffsl.h: Likewise.
27159         * lib/ffsll.c: Likewise.
27160         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
27161         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
27162         * modules/string (Makefile.am): Substitute witnesses.
27163         * lib/strings.in.h (ffsl, ffsll): Declare.
27164         * modules/ffsl-tests: New test file.
27165         * modules/ffsll-tests: Likewise.
27166         * tests/test-ffsl.c: Likewise.
27167         * tests/test-ffsll.c: Likewise.
27168         * MODULES.html.sh (Integer arithmetic functions): Mention it.
27169         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
27170         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
27172         ffs: fix m4 prerequisite
27173         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
27175         ffs: avoid undefined behavior
27176         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
27177         * tests/test-ffs.c (naive, main): Avoid signed shifts.
27178         Reported by Bruno Haible.
27180 2011-07-12  Bruno Haible  <bruno@clisp.org>
27182         pthread_sigmask: Rely on module 'threadlib'.
27183         * modules/pthread_sigmask (Depends-on): Add threadlib.
27184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
27185         is defined.
27187 2011-07-12  Bruno Haible  <bruno@clisp.org>
27189         regex: Depend on module 'strcase'.
27190         * modules/regex (Depends-on): Add strcase, for strcasecmp().
27192 2011-07-12  Jim Meyering  <meyering@redhat.com>
27194         warn-on-use: fix typo in file name
27195         * modules/snippet/warn-on-use (Files): Correct file name:
27196         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
27198 2011-07-12  Bruno Haible  <bruno@clisp.org>
27200         strings: Document module.
27201         * doc/posix-headers/strings.texi: Mention module 'strings'.
27203 2011-07-12  Bruno Haible  <bruno@clisp.org>
27205         Rename module '_Noreturn' to 'snippet/_Noreturn'.
27206         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
27207         (Files, Makefile.am): Update.
27208         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
27209         * modules/stdlib (Depends-on): Update.
27211 2011-07-12  Bruno Haible  <bruno@clisp.org>
27213         * NEWS: Mention the changes.
27215         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
27216         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
27217         (Files, Makefile.am): Update.
27218         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
27219         * modules/arpa_inet (Depends-on): Update.
27220         * modules/ctype (Depends-on): Update.
27221         * modules/dirent (Depends-on): Update.
27222         * modules/fcntl-h (Depends-on): Update.
27223         * modules/glob (Depends-on): Update.
27224         * modules/iconv-h (Depends-on): Update.
27225         * modules/inttypes-incomplete (Depends-on): Update.
27226         * modules/langinfo (Depends-on): Update.
27227         * modules/locale (Depends-on): Update.
27228         * modules/math (Depends-on): Update.
27229         * modules/netdb (Depends-on): Update.
27230         * modules/poll-h (Depends-on): Update.
27231         * modules/pty (Depends-on): Update.
27232         * modules/search (Depends-on): Update.
27233         * modules/signal (Depends-on): Update.
27234         * modules/spawn (Depends-on): Update.
27235         * modules/stdio (Depends-on): Update.
27236         * modules/stdlib (Depends-on): Update.
27237         * modules/string (Depends-on): Update.
27238         * modules/strings (Depends-on): Update.
27239         * modules/sys_file (Depends-on): Update.
27240         * modules/sys_ioctl (Depends-on): Update.
27241         * modules/sys_select (Depends-on): Update.
27242         * modules/sys_socket (Depends-on): Update.
27243         * modules/sys_stat (Depends-on): Update.
27244         * modules/sys_time (Depends-on): Update.
27245         * modules/sys_times (Depends-on): Update.
27246         * modules/sys_utsname (Depends-on): Update.
27247         * modules/sys_wait (Depends-on): Update.
27248         * modules/termios (Depends-on): Update.
27249         * modules/time (Depends-on): Update.
27250         * modules/unistd (Depends-on): Update.
27251         * modules/wchar (Depends-on): Update.
27252         * modules/wctype-h (Depends-on): Update.
27253         * MODULES.html.sh (Support for building libraries and executables):
27254         Update.
27256         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
27257         * modules/snippet/unused-parameter: Renamed from
27258         modules/unused-parameter.
27259         (Files, Makefile.am): Update.
27260         * build-aux/snippet/unused-parameter.h: Renamed from
27261         build-aux/unused-parameter.h.
27262         * modules/selinux-h (Depends-on): Update.
27263         * modules/unistr/base (Depends-on): Update.
27264         * MODULES.html.sh (Core language properties): Update.
27266         Rename module 'link-warning' to 'snippet/link-warning'.
27267         * modules/snippet/link-warning: Renamed from modules/link-warning.
27268         (Files, Makefile.am): Update.
27269         * build-aux/snippet/link-warning.h: Renamed from
27270         build-aux/link-warning.h.
27271         * MODULES.html.sh (Support for building libraries and executables):
27272         Update.
27274         Rename module 'c++defs' to 'snippet/c++defs'.
27275         * modules/snippet/c++defs: Renamed from modules/c++defs.
27276         (Files, Makefile.am): Update.
27277         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
27278         * modules/arpa_inet (Depends-on): Update.
27279         * modules/ctype (Depends-on): Update.
27280         * modules/dirent (Depends-on): Update.
27281         * modules/fcntl-h (Depends-on): Update.
27282         * modules/glob (Depends-on): Update.
27283         * modules/iconv-h (Depends-on): Update.
27284         * modules/langinfo (Depends-on): Update.
27285         * modules/locale (Depends-on): Update.
27286         * modules/math (Depends-on): Update.
27287         * modules/netdb (Depends-on): Update.
27288         * modules/poll-h (Depends-on): Update.
27289         * modules/pty (Depends-on): Update.
27290         * modules/search (Depends-on): Update.
27291         * modules/signal (Depends-on): Update.
27292         * modules/spawn (Depends-on): Update.
27293         * modules/stdio (Depends-on): Update.
27294         * modules/stdlib (Depends-on): Update.
27295         * modules/string (Depends-on): Update.
27296         * modules/strings (Depends-on): Update.
27297         * modules/sys_ioctl (Depends-on): Update.
27298         * modules/sys_select (Depends-on): Update.
27299         * modules/sys_socket (Depends-on): Update.
27300         * modules/sys_stat (Depends-on): Update.
27301         * modules/sys_time (Depends-on): Update.
27302         * modules/sys_wait (Depends-on): Update.
27303         * modules/termios (Depends-on): Update.
27304         * modules/time (Depends-on): Update.
27305         * modules/unistd (Depends-on): Update.
27306         * modules/wchar (Depends-on): Update.
27307         * modules/wctype-h (Depends-on): Update.
27309         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
27310         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
27311         (Files, Makefile.am): Update.
27312         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
27313         * modules/argv-iter (Depends-on): Update.
27314         * modules/arpa_inet (Depends-on): Update.
27315         * modules/dirent (Depends-on): Update.
27316         * modules/fcntl-h (Depends-on): Update.
27317         * modules/fnmatch (Depends-on): Update.
27318         * modules/getopt-posix (Depends-on): Update.
27319         * modules/glob (Depends-on): Update.
27320         * modules/iconv-h (Depends-on): Update.
27321         * modules/inttypes-incomplete (Depends-on): Update.
27322         * modules/locale (Depends-on): Update.
27323         * modules/math (Depends-on): Update.
27324         * modules/netdb (Depends-on): Update.
27325         * modules/search (Depends-on): Update.
27326         * modules/signal (Depends-on): Update.
27327         * modules/spawn (Depends-on): Update.
27328         * modules/stdio (Depends-on): Update.
27329         * modules/stdlib (Depends-on): Update.
27330         * modules/string (Depends-on): Update.
27331         * modules/strings (Depends-on): Update.
27332         * modules/sys_socket (Depends-on): Update.
27333         * modules/sys_stat (Depends-on): Update.
27334         * modules/sys_time (Depends-on): Update.
27335         * modules/sys_times (Depends-on): Update.
27336         * modules/sys_utsname (Depends-on): Update.
27337         * modules/time (Depends-on): Update.
27338         * modules/unistd (Depends-on): Update.
27339         * modules/wchar (Depends-on): Update.
27340         * MODULES.html.sh (Support for building libraries and executables):
27341         Update.
27343 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
27345         Improvements on _Noreturn and related modules.
27347         modules/_Exit-tests: test _Noreturn too
27348         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
27349         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
27350         (main): Use them.
27352         stdnoreturn, stdnoreturn-tests: remove modules
27353         They're not needed here and a bit premature for use elsewhere.  See
27354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
27355         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
27356         * tests/test-stdnoreturn.c: Remove files.
27357         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
27358         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
27359         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
27360         and using noreturn.
27361         * modules/openat, modules/sigpipe-die, modules/xalloc:
27362         * modules/xmemdup0, modules/xstrtol:
27363         Remove dependency on stdnoreturn.
27365         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
27366         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
27367         Reparenthesize to avoid GCC warning.
27368         Support Microsoft's syntax.
27369         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
27371         _Noreturn-tests: remove module
27372         * modules/_Noreturn-tests: Remove.
27373         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
27374         * tests/test-_Noreturn.c: Remove.
27375         * tests/test-stdnoreturn.c: Merge from the old
27376         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
27378 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
27380         _Noreturn, stdnoreturn, and related modules.
27382         * top/maint.mk: Adjust to new noreturn support.
27383         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
27384         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
27386         xalloc: use stdnoreturn.h
27387         * lib/xalloc.h: Include <stdnoreturn.h>.
27388         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27389         * modules/xalloc (Depends-on): Add stdnoreturn.
27391         xstrtol: use stdnoreturn.h
27392         * lib/xstrtol.h: Include <stdnoreturn.h>.
27393         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27394         * modules/xstrtol (Depends-on): Add stdnoreturn.
27396         xmemdup0: use stdnoreturn.h
27397         * lib/xmemdup0.h: Include <stdnoreturn.h>.
27398         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27399         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
27401         sigpipe-die: use stdnoreturn.h
27402         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
27403         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27404         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
27406         openat: use stdnoreturn.h
27407         * lib/openat.h: Include <stdnoreturn.h>.
27408         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27409         * modules/openat (Depends-on): Add stdnoreturn.
27411         * lib/openat-die.c (openat_save_fail): Modernize comment.
27413         * lib/xalloc-die.c (xalloc_die): Modernize comment.
27415         * lib/glthread/thread.h: Modernize comment.
27417         obstack: use _Noreturn
27418         * lib/obstack.c (__attribute__): Remove macro.
27419         (print_and_abort): Use _Noreturn.
27421         c-stack: use _Noreturn
27422         * lib/c-stack.c (die, overflow_handler, segv_handler):
27423         Use _Noreturn rather than __attribute__((noreturn)).
27425         argmatch-tests, exclude_tests: use _Noreturn
27426         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
27427         Remove.
27428         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
27430         stdlib: use _Noreturn
27431         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
27432         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
27433         * modules/stdlib (Depends-on): Add _Noreturn.
27434         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
27436         stdnoreturn-tests: new module
27437         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
27439         stdnoreturn: new module
27440         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
27441         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
27443         _Noreturn-tests: new module
27444         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
27446         _Noreturn: new module
27447         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
27448         New section, mentioning it.
27449         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
27451         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
27453 2011-07-11  Eric Blake  <eblake@redhat.com>
27455         ffs: new module
27456         * modules/ffs: New file.
27457         * m4/ffs.m4: Likewise.
27458         * lib/ffs.c: Likewise.
27459         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
27460         * modules/strings (Makefile.am): Substitute witness.
27461         (Depends-on): Add c++defs.
27462         * lib/strings.in.h (ffs): Declare.
27463         * modules/ffs-tests: New test file.
27464         * tests/test-ffs.c: Test new module.
27465         * MODULES.html.sh (Integer arithmetic functions): Mention it.
27466         * doc/posix-functions/ffs.texi (ffs): Likewise.
27468         regex: avoid compiler warning
27469         * lib/regex.c (includes): Include <strings.h>, for use of
27470         strcasecmp in regcomp.c.
27471         Reported by Joachim Schmitz.
27473 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27475         stdint: respect system's intmax_t if INTMAX_MAX
27476         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
27477         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
27478         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
27479         long but int64_t is long long, and where we will clash with the
27480         system intmax_t if we override it.  See
27481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
27482         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
27483         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
27484         similarly for UINTMAX_C.
27486 2011-07-08  Bruno Haible  <bruno@clisp.org>
27488         pthread_sigmask tests: Avoid a compiler warning.
27489         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
27490         non-zero.
27492         sigprocmask tests: A better way to avoid a compiler warning.
27493         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
27494         (main): Complain if system() returns non-zero.
27495         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
27497 2011-07-08  Bruno Haible  <bruno@clisp.org>
27499         pthread_sigmask: Work around IRIX bug.
27500         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
27501         bug.
27502         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
27503         there may be unblocked pending signals.
27504         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
27506 2011-07-08  Bruno Haible  <bruno@clisp.org>
27508         pthread_sigmask: Work around Cygwin bug.
27509         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
27510         bug.
27511         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
27512         the system's pthread_sigmask function.
27513         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
27515 2011-07-08  Bruno Haible  <bruno@clisp.org>
27517         pthread_sigmask: Work around bug in single-threaded implementation.
27518         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
27519         FreeBSD, HP-UX, Solaris bug.
27520         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
27521         * lib/pthread_sigmask.c: Include <stddef.h>.
27522         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
27523         the system's pthread_sigmask function.
27524         * modules/pthread_sigmask (configure.ac): Invoke
27525         gl_PREREQ_PTHREAD_SIGMASK.
27526         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
27527         HP-UX, Solaris.
27529 2011-07-08  Eric Blake  <eblake@redhat.com>
27531         test-sigprocmask: avoid compiler warning
27532         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
27533         * tests/test-sigprocmask.c (main): Use it to silence warning.
27534         Reported by Jim Meyering.
27536         test-snprintf: avoid compiler warning
27537         * tests/test-snprintf.c (main): Avoid shadowed declaration.
27538         * tests/test-vsnprintf.c (main): Likewise.
27539         Reported by Jim Meyering.
27541 2011-07-08  Bruno Haible  <bruno@clisp.org>
27543         Tests for module 'pthread_sigmask'.
27544         * modules/pthread_sigmask-tests: New file.
27545         * tests/test-pthread_sigmask1.c: New file, based on
27546         tests/test-sigprocmask.c.
27547         * tests/test-pthread_sigmask2.c: New file.
27549 2011-07-08  Jim Meyering  <meyering@redhat.com>
27551         test-getopt.h: avoid warning about an unused variable
27552         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
27554 2011-07-07  Jim Meyering  <meyering@redhat.com>
27556         maint: reduce list of files exempt from sc_prohibit_leading_TABs
27557         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
27558         now that it no longer contains leading TABs.
27559         Remove unused "url=FIXME" statement.
27561 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27563         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
27564         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27565         When gl_THREADLIB is not in use, assume that the POSIX sematics
27566         are desired.  This is better for Emacs, which uses POSIX semantics
27567         on GNUish and/or POSIXish platforms, and does not use threads at
27568         all otherwise.
27570         pthread_sigmask: fix typo when testing for libraries
27571         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27572         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
27574 2011-07-08  Eric Blake  <eblake@redhat.com>
27576         fts: introduce FTS_NOATIME
27577         * lib/fts_.h (FTS_NOATIME): New bit flag.
27578         (FTS_OPTIONMASK): Adjust.
27579         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
27580         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
27582 2011-07-08  Bruno Haible  <bruno@clisp.org>
27584         Tests for module 'thread'.
27585         * modules/thread-tests: New file.
27586         * tests/test-thread_self.c: New file.
27587         * tests/test-thread_create.cc: New file.
27589 2011-07-08  Bruno Haible  <bruno@clisp.org>
27591         thread: Avoid gcc warnings when using gl_thread_self().
27592         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
27593         'void *'.
27594         (gl_thread_self_pointer): Update.
27596 2011-07-07  Bruno Haible  <bruno@clisp.org>
27598         signal-c++-tests: Check declaration of pthread_sigmask.
27599         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
27600         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
27601         $(LIB_PTHREAD_SIGMASK).
27603 2011-07-07  Bruno Haible  <bruno@clisp.org>
27605         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
27606         * lib/signal.in.h (pthread_sigmask): Override if
27607         REPLACE_PTHREAD_SIGMASK is 1.
27608         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27609         REPLACE_PTHREAD_SIGMASK.
27610         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
27611         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
27612         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
27613         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
27614         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
27616 2011-07-07  Bruno Haible  <bruno@clisp.org>
27618         pthread_sigmask: Ensure declaration in <signal.h>.
27619         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
27620         include <pthread.h>.
27621         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
27622         problem.
27624 2011-07-07  Bruno Haible  <bruno@clisp.org>
27626         pthread_sigmask: Document the module.
27627         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
27629 2011-07-07  Bruno Haible  <bruno@clisp.org>
27631         pthread_sigmask: Follow gnulib conventions.
27632         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
27633         gl_PTHREAD_SIGMASK.
27634         * modules/pthread_sigmask (configure.ac): Update.
27636 2011-07-07  Bruno Haible  <bruno@clisp.org>
27638         pthread_sigmask: Make declaration C++ safe.
27639         * lib/signal.in.h: In two special conditions, just do an #include_next.
27640         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
27641         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
27642         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27643         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
27644         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
27645         not REPLACE_PTHREAD_MASK.
27646         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
27647         not REPLACE_PTHREAD_MASK.
27648         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
27650 2011-07-07  Bruno Haible  <bruno@clisp.org>
27652         pthread_sigmask: Fix return value.
27653         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
27654         * lib/pthread_sigmask.c: New file.
27655         * modules/pthread_sigmask (Files): Add it.
27656         (configure.ac): Invoke AC_LIBOBJ.
27658 2011-07-07  Eric Blake  <eblake@redhat.com>
27660         getopt: more portable argv creation
27661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
27662         const, use char arrays rather than strings.
27663         Suggested by Paul Eggert.
27665 2011-07-07  Bruno Haible  <bruno@clisp.org>
27667         Tests for module 'sigprocmask'.
27668         * modules/sigprocmask-tests: New file.
27669         * tests/test-sigprocmask.c: New file.
27671 2011-07-07  Bruno Haible  <bruno@clisp.org>
27673         float tests: Tweak.
27674         * tests/test-float.c (main): Tweak skip message.
27676 2011-07-07  Eric Blake  <eblake@redhat.com>
27678         getopt: avoid compiler warning during configure
27679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
27680         assigning string literals to non-const pointer.
27682         getopt-gnu: avoid crash in glibc getopt
27683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
27684         * tests/test-getopt.h (test_getopt): Enhance test.
27685         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27686         * doc/posix-functions/getopt.texi (getopt): Document it.
27687         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27688         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27689         Likewise.
27691 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
27693         getopt: handle W; without long options in getopt [BZ #12922]
27694         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
27695         but no long options are defined, just return 'W'.
27697 2011-07-07  Bruno Haible  <bruno@clisp.org>
27699         Avoid literal tabs.
27700         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
27701         variable containing a tab instead of a literal tab.
27702         Reported by Jim Meyering.
27704 2011-07-07  Bruno Haible  <bruno@clisp.org>
27706         Comments.
27707         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
27709 2011-07-06  Bruno Haible  <bruno@clisp.org>
27711         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
27712         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
27713         <winsock2.h>.
27714         (rpl_fd_isset, FD_ISSET): New definitions, copied from
27715         lib/sys_socket.in.h.
27716         (close, gethostname): Hide declarations from <winsock2.h>.
27717         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27718         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
27719         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
27720         (select): Don't override if gnulib's <sys/select.h> was already
27721         included.
27722         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27723         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27724         setsockopt, shutdown, select): Tweak indentation.
27726 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27728         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
27729         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
27730         in an application that does not use the sys_select module.
27732 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
27734         poll: do not return 0 on timeout=-1
27735         * lib/poll.c: Loop with yield if no events occurred.
27737 2011-07-06  Eric Blake  <eblake@redhat.com>
27739         pthread_sigmask: always replace when not using pthread
27740         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
27741         replacement when using some threading other than pthread.  Fix
27742         logic bug.
27744 2011-07-06  Bruno Haible  <bruno@clisp.org>
27746         Comments.
27747         * m4/printf.m4: Update comments about mingw.
27749 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27751         sys_select: define sigset_t more portably
27752         * lib/sys_select.in.h: Always include <sys/types.h>, since
27753         we now need sigset_t and mingw defines it there.
27754         Include <signal.h> before split inclusion guard, to avoid
27755         mishaps on Solaris, whose <signal.h> eventually includes us.
27756         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
27757         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
27758         which come from ...
27759         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
27760         gl_CHECK_TYPE_SIGSET_T.
27761         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
27762         does the real work.
27763         * modules/sys_select (Depends-on): Add 'signal'.
27765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
27766         Suggested by Bruno Haible.
27768         pselect: Use pthread_sigmask, not sigprocmask.
27769         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
27770         multithreaded apps better than sigprocmask does.
27771         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
27772         sigprocmask directly.
27774 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27776         * lib/pselect.c (pselect): Use plain name, without "rpl_".
27777         Don't #undef,  since we don't need any underlying pselect.
27778         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
27779         (Depends-on): Add select.
27780         (Link): Add $(LIBSOCKET).
27781         These changes suggested by Bruno Haible.
27783         pselect: document better
27784         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
27785         * doc/posix-functions/pselect.texi (pselect): Document new module.
27787         pthread_sigmask: new module
27788         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
27789         * doc/posix-functions/pthread_sigmask.texi: Document new module.
27790         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
27791         This is done only as a macro; I don't know how well that'll
27792         work for C++.  Move <sys/types.h> include before the include_next,
27793         to avoid mishap on Solaris.
27794         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
27795         * modules/signal (Makefile.am): Substitute the check's results.
27796         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
27798         test-pselect: new module
27799         * modules/pselect-tests, tests/test-pselect.c: New files.
27800         * tests/test-select.c, tests/test-sys_select-c++.cc:
27801         If TEST_PSELECT is defined, test pselect instead of testing select.
27803         * tests/test-sys_select.c (sigset_t): Test for it, too.
27804         Suggested by Bruno Haible.
27806 2011-07-05  Eric Blake  <eblake@redhat.com>
27808         snprintf: guarantee %1$d, for libintl
27809         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
27810         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
27811         * doc/posix-functions/snprintf.texi (snprintf): Update.
27812         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27813         * tests/test-snprintf.c (main): Enhance test.
27814         * tests/test-vsnprintf.c (main): Likewise.
27816 2011-07-05  Jim Meyering  <meyering@redhat.com>
27818         maint: exempt stdio-read.c and stdio-write.c from the cppi check
27819         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
27820         per Bruno's request, to accommodate this idiom (no space after "#")
27821         even when the function is inside an #if block:
27822         char *
27823         gets (char *s)
27824         #undef gets
27825         {
27826           ...
27827         }
27829 2011-07-04  Jim Meyering  <meyering@redhat.com>
27831         maint: indent with spaces, not TABs, and add a rule to check this
27832         * tests/test-userspec.c: Indent with spaces, not TABs.
27833         * tests/test-argp.c: Likewise.
27834         * tests/test-c-stack2.sh: Likewise.
27835         * tests/test-parse-duration.sh: Likewise
27836         * m4/strtod.m4: Likewise.
27837         * m4/alloca.m4: Likewise.
27838         * m4/pselect.m4: Likewise.
27839         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
27841 2011-07-03  Jim Meyering  <meyering@redhat.com>
27843         maint.mk: correct omissions in prohibit_argmatch_without_use check
27844         This rule would mistakenly report that argmatch.h is included without
27845         use even when both the argmatch and invalid_arg macro were used.
27846         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
27847         of argmatch and invalid_arg.
27849 2011-07-03  Bruno Haible  <bruno@clisp.org>
27851         Comments about EINTR.
27852         * lib/safe-read.h: Explain the purpose of this module.
27853         * lib/safe-write.h: Likewise.
27854         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
27855         module.
27856         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
27857         module.
27858         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27860 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
27862         xnanosleep: Rewrite to use new dtotimespec module.
27863         It has the conversion code that used to be in xnanosleep.
27864         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
27865         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
27866         (TIME_T_MAX): Remove.
27867         (xnanosleep): Rewrite in terms of dtotimespec.
27868         * modules/xnanosleep (Depends-on): Add dtotimespec.
27869         Remove intprops, stdbool.
27871         timespec-add, timespec-sub: new modules
27872         * lib/timespec.h (timespec_add, timespec_sub): New decls.
27873         * lib/timespec-add.c, lib/timespec-sub.c:
27874         * modules/timespec-add, modules/timespec-sub: New files.
27876         dtotimespec: new module
27877         * lib/timespec.h (dtotimespec): New decl.
27878         * lib/dtotimespec.c, modules/dtotimespec: New files.
27880         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
27882         pselect: new module
27883         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
27884         (pselect): New decls.
27885         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
27886         since the standard pselect decl uses 'restrict'.
27887         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
27888         HAVE_PSELECT, REPLACE_PSELECT.
27889         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
27890         HAVE_PSELECT, REPLACE_PSELECT.
27891         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
27893         sys_select: don't depend on sys_socket
27894         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
27895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
27896         This fix works on GNU and GNU-like platforms, but has not been tested
27897         on native Windows.
27898         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
27899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
27900         gl_HEADER_SYS_SOCKET.
27901         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
27902         gl_PREREQ_SYS_H_WINSOCK2.
27904 2011-06-29  Eric Blake  <eblake@redhat.com>
27906         pipe2: fix C89 compile problem
27907         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
27908         Reported by Bruno Haible.
27910         pipe, pipe2: don't corrupt fd on error
27911         * lib/pipe.c (pipe): Leave fd unchanged on error.
27912         * lib/pipe2.c (pipe2): Likewise.
27913         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
27914         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27916 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
27918         mmap-anon: do not use regular expressions inadvertently
27919         * m4/mmap-anon.m4: Remove trailing period from strings sought
27920         in the output.
27922 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
27924         nanosleep: fix integer overflow problem
27925         * lib/nanosleep.c (my_usleep): Don't assume signed integer
27926         arithmetic wraps around on overflow.
27928         nanosleep: simplify carrying
27929         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
27930         first call to the underyling nanosleep, not for the last one.
27931         This doesn't fix any bugs, but it simplifies the computation of
27932         the remaining delay.  Found while auditing integer overflow issues.
27934         dup2: remove test for existence of fcntl
27935         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
27936         "#if HAVE_FCNTL", in the configure-time test program.
27937         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
27938         and therefore speeds up "configure" a bit.  Found while
27939         adding the dup2 module to Emacs.
27941 2011-06-24  Eric Blake  <eblake@redhat.com>
27943         maint.mk: enhance useless header checks
27944         * top/maint.mk (_sc_header_without_use): Check both include
27945         styles.
27946         (sc_prohibit_assert_without_use)
27947         (sc_prohibit_close_stream_without_use)
27948         (sc_prohibit_getopt_without_use)
27949         (sc_prohibit_quotearg_without_use)
27950         (sc_prohibit_quote_without_use)
27951         (sc_prohibit_long_options_without_use)
27952         (sc_prohibit_inttostr_without_use)
27953         (sc_prohibit_ignore_value_without_use)
27954         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
27955         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
27956         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
27957         (sc_prohibit_hash_pjw_without_use)
27958         (sc_prohibit_safe_read_without_use)
27959         (sc_prohibit_argmatch_without_use)
27960         (sc_prohibit_canonicalize_without_use)
27961         (sc_prohibit_root_dev_ino_without_use)
27962         (sc_prohibit_openat_without_use)
27963         (sc_prohibit_c_ctype_without_use)
27964         (sc_prohibit_signal_without_use)
27965         (sc_prohibit_stdio--_without_use)
27966         (sc_prohibit_stdio-safer_without_use)
27967         (sc_prohibit_strings_without_use)
27968         (sc_prohibit_intprops_without_use)
27969         (sc_prohibit_stddef_without_use)
27970         (sc_prohibit_xfreopen_without_use): Update clients.
27972 2011-06-24  Jim Meyering  <meyering@redhat.com>
27974         syntax-check: keep one maint.mk rule in sync with its header
27975         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
27976         of the bug Eric has just fixed, with today's commit 25e4c2ec.
27977         I prefer to avoid temporary files here, so use <(...), but that
27978         is not supported by /bin/sh, so...
27979         (SHELL): Define to /bin/bash.
27981 2011-06-24  Eric Blake  <eblake@redhat.com>
27983         maint.mk: update sc_prohibit_intprops_without_use
27984         * top/maint.mk (_intprops_names): Match recent changes.
27986 2011-06-24  Bruno Haible  <bruno@clisp.org>
27988         strerror-override: No-op tweak.
27989         * lib/strerror-override.h (strerror_override): Reorder conditions,
27990         for consistency with lib/strerror-override.c.
27992 2011-06-23  Eric Blake  <eblake@redhat.com>
27994         maint.mk: test further PATH_MAX issues
27995         * top/maint.mk (sc_prohibit_path_max_array): Rename...
27996         (sc_prohibit_path_max_allocation): ...and also test alloca.
27997         Suggested by Jim Meyering.
27999 2011-06-22  Eric Blake  <eblake@redhat.com>
28001         maint.mk: add syntax-check to avoid char[PATH_MAX]
28002         * top/maint.mk (sc_prohibit_path_max_array): New rule.
28004         stat: be robust to PATH_MAX definition
28005         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
28006         * modules/stat (Depends-on): Add verify.
28008         link: work around IRIX bug
28009         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
28010         * lib/link.c (rpl_link): Work around it.
28011         * tests/test-link.h (test_link): Enhance test.
28012         * doc/posix-functions/link.texi (link): Document the bug.
28014         getopt: silence clang warning
28015         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
28016         dereference.
28017         Reported by Gustavo Martin Domato.
28019 2011-06-22  Jim Meyering  <meyering@redhat.com>
28021         bootstrap: do not insert a blank line into each .gitignore file
28022         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
28024 2011-06-21  Eric Blake  <eblake@redhat.com>
28026         perror: test for output mismatch
28027         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
28028         perror on IRIX.
28030         strerror_r: fix OpenBSD behavior on out-of-range
28031         * lib/strerror_r.c (strerror_r): Always use maximal string.
28032         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
28034         strerror_r: fix OpenBSD behavior on 0
28035         * lib/strerror-override.c (strerror_override): Also override 0
28036         when needed.
28037         * lib/strerror-override.h (strerror_override): Likewise.
28038         * lib/strerror.c (strerror): Simplify, now that 0 override is done
28039         earlier.
28040         * lib/strerror_r.c (strerror_r): Likewise.
28041         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
28042         behavior...
28043         (gl_FUNC_STRERROR_0): ...into new macro.
28044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
28045         is overridden.
28046         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
28047         * modules/strerror-override (Files): Add strerror.m4.
28048         (configure.ac): Also provide override for 0 when needed.
28049         * doc/posix-functions/strerror.texi (strerror): Document this.
28050         * doc/posix-functions/perror.texi (perror): Likewise.
28052         perror: adjust array size
28053         * modules/perror (Depends-on): Add strerror-override.
28054         * lib/perror.c (perror): Use it to avoid magic number.
28056         strerror-override: reduce size
28057         * lib/strerror-override.c (strerror_override): Use fewer lines.
28059 2011-06-20  Bruno Haible  <bruno@clisp.org>
28061         pathmax: Ensure correct value for PATH_MAX on HP-UX.
28062         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
28064 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28066         alloca: port to compilers that can optimize like GCC 4.6.0
28067         * lib/alloca.c (find_stack_direction): New signature, taken from
28068         Autoconf git.  This works with GCC 4.6.0.  This code should never
28069         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
28070         be used with other compilers that optimize as well as GCC 4.6.0 does.
28071         (alloca): Adjust to new signature.
28072         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
28073         New macro, which patches Autoconf in a similar way.
28075         c-stack: stop worrying about stack direction
28076         * lib/c-stack.c (find_stack_direction): Remove.
28077         (segv_handler): Don't worry about stack direction growth, as it's
28078         too much of a pain to configure this correctly, given how compilers
28079         are optimizing-away our stack-growth detection code.  Instead, assume
28080         that any access to just before or just after the stack is OK.
28081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
28082         Don't require AC_FUNC_ALLOCA; no longer needed.
28084 2011-06-20  Eric Blake  <eblake@redhat.com>
28086         test-stat: don't allocate PATH_MAX bytes
28087         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
28088         PATH_MAX-sized buffer.
28089         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
28090         * modules/stat-tests (Depends-on): Likewise.
28091         * tests/test-fstatat.c (includes): Drop pathmax.h.
28092         * tests/test-stat.c (includes): Likewise.
28093         Reported by Bruno Haible.
28095 2011-06-20  Bruno Haible  <bruno@clisp.org>
28097         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
28098         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
28099         * lib/float.c: New file.
28100         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
28101         REPLACE_FLOAT_LDBL.
28102         * modules/float (Files): Add lib/float.c.
28103         (configure.ac): Invoke AC_LIBOBJ.
28104         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
28106 2011-06-20  Bruno Haible  <bruno@clisp.org>
28108         Tests for module 'float'.
28109         * modules/float-tests: New file.
28110         * tests/test-float.c: New file.
28112 2011-06-19  Bruno Haible  <bruno@clisp.org>
28114         isinf: Coding style.
28115         * lib/isinf.c: Use GNU coding style.
28117 2011-06-19  Bruno Haible  <bruno@clisp.org>
28119         linkat test: Avoid test failure on AIX 7.1.
28120         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
28121         * tests/test-link.h (test_link): Likewise.
28123 2011-06-19  Bruno Haible  <bruno@clisp.org>
28125         pread test: Avoid test failure on OpenBSD 4.9.
28126         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
28128 2011-06-19  Bruno Haible  <bruno@clisp.org>
28130         sprintf-posix: Fix test failure on AIX 7.1.
28131         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
28132         * doc/posix-functions/dprintf.texi: Mention limited precision problem
28133         on AIX.
28134         * doc/posix-functions/fprintf.texi: Likewise.
28135         * doc/posix-functions/printf.texi: Likewise.
28136         * doc/posix-functions/snprintf.texi: Likewise.
28137         * doc/posix-functions/sprintf.texi: Likewise.
28138         * doc/posix-functions/vdprintf.texi: Likewise.
28139         * doc/posix-functions/vfprintf.texi: Likewise.
28140         * doc/posix-functions/vprintf.texi: Likewise.
28141         * doc/posix-functions/vsnprintf.texi: Likewise.
28142         * doc/posix-functions/vsprintf.texi: Likewise.
28144 2011-06-19  Bruno Haible  <bruno@clisp.org>
28146         roundl-ieee: Fix test failure on AIX 7.1.
28147         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
28148         * doc/posix-functions/roundl.texi: Mention problem with negative
28149         arguments.
28151 2011-06-19  Bruno Haible  <bruno@clisp.org>
28153         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
28154         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
28155         * doc/posix-functions/round.texi: Mention problem with negative
28156         arguments.
28157         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
28159 2011-06-19  Bruno Haible  <bruno@clisp.org>
28161         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
28162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
28163         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
28164         * doc/posix-functions/roundf.texi: Mention problem with negative
28165         arguments.
28166         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
28168 2011-06-19  Bruno Haible  <bruno@clisp.org>
28170         ceilf-ieee: Work around bug on MacOS X 10.5.
28171         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
28173         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
28174         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
28175         IEEE compliant, avoid compiler optimizations.
28176         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
28177         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28178         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
28179         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28180         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28181         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28182         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28184         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28185         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
28187 2011-06-19  Bruno Haible  <bruno@clisp.org>
28189         ceilf-ieee: Work around bug on AIX 7.1.
28190         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
28191         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
28193 2011-06-19  Bruno Haible  <bruno@clisp.org>
28195         ceil-ieee: Work around bug on AIX 7.1.
28196         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
28197         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
28199 2011-06-18  Bruno Haible  <bruno@clisp.org>
28201         fsync test: Avoid test failure on MacOS X and AIX.
28202         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
28203         EINVAL.
28205 2011-06-18  Bruno Haible  <bruno@clisp.org>
28207         openat, fdopendir tests: Fix link errors.
28208         * modules/openat-tests (Depends-on): Add progname.
28209         * modules/fdopendir-tests (Depends-on): Likewise.
28210         * tests/test-fchownat.c: Include progname.h.
28211         (main): Call set_program_name.
28212         * tests/test-fstatat.c: Include progname.h.
28213         (main): Call set_program_name.
28214         * tests/test-mkdirat.c: Include progname.h.
28215         (main): Call set_program_name.
28216         * tests/test-openat.c: Include progname.h.
28217         (main): Call set_program_name.
28218         * tests/test-unlinkat.c: Include progname.h.
28219         (main): Call set_program_name.
28220         * tests/test-fdopendir.c: Include progname.h.
28221         (main): Call set_program_name.
28223 2011-06-18  Bruno Haible  <bruno@clisp.org>
28225         Doc update.
28226         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
28227         HP-UX.
28228         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
28230 2011-06-18  Bruno Haible  <bruno@clisp.org>
28232         getcwd tests: Avoid compilation error on HP-UX 11.31.
28233         * modules/getcwd-tests (Depends-on): Add pathmax.
28234         * tests/test-getcwd.c: Include pathmax.h.
28236 2011-06-18  Bruno Haible  <bruno@clisp.org>
28238         isfinite, isinf: Fix link error on AIX 6 and 7.
28239         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
28240         needed, also test the macro with a 'float' argument.
28241         * m4/isinf.m4 (gl_ISINF): Likewise.
28243 2011-06-18  Bruno Haible  <bruno@clisp.org>
28245         getloadavg: Don't clobber LIBS. Regression from previous commit.
28246         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
28247         AC_CHECK_LIB from here...
28248         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
28249         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
28250         gl_func_getloadavg_done.
28251         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28253 2011-06-18  Bruno Haible  <bruno@clisp.org>
28255         clean-temp: Improve documentation.
28256         * lib/clean-temp.h: Explain better how to use this module.
28257         Reported by John Darrington <john@darrington.wattle.id.au>.
28259 2011-06-17  Bruno Haible  <bruno@clisp.org>
28261         pread, pwrite: Avoid cc warning on AIX.
28262         * lib/unistd.in.h (pread): Undefine before defining as a macro.
28263         (pwrite): Likewise.
28265 2011-06-17  Bruno Haible  <bruno@clisp.org>
28267         spawn-pipe tests: Fix link error.
28268         * tests/test-spawn-pipe-child.c: Undefine fprintf.
28269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28271 2011-06-17  Bruno Haible  <bruno@clisp.org>
28273         Tests: Remove unnecessary dependency.
28274         * modules/canonicalize-tests (Depends-on): Remove progname.
28275         * modules/chown-tests (Depends-on): Likewise.
28276         * modules/dirname-tests (Depends-on): Likewise.
28277         * modules/fdopendir-tests (Depends-on): Likewise.
28278         * modules/fdutimensat-tests (Depends-on): Likewise.
28279         * modules/hash-tests (Depends-on): Likewise.
28280         * modules/lchown-tests (Depends-on): Likewise.
28281         * modules/linkat-tests (Depends-on): Likewise.
28282         * modules/renameat-tests (Depends-on): Likewise.
28283         * modules/spawn-pipe-tests (Depends-on): Likewise.
28284         * modules/utimensat-tests (Depends-on): Likewise.
28286 2011-06-17  Bruno Haible  <bruno@clisp.org>
28288         spawn-pipe tests: Fix link error.
28289         * tests/test-spawn-pipe-child.c: Undefine fflush.
28291 2011-06-17  Bruno Haible  <bruno@clisp.org>
28293         Fix tests link errors.
28294         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
28295         * modules/chown-tests (Makefile.am): Don't link test-chown with
28296         LIBINTL.
28297         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
28298         LIBINTL.
28299         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
28300         LIBINTL.
28301         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
28302         LIBINTL.
28304 2011-06-16  Bruno Haible  <bruno@clisp.org>
28306         crypto/gc-sha1: Fix recent regression.
28307         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
28308         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
28310         crypto/gc-md5: Fix recent regression.
28311         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
28313         crypto/gc-md4: Fix recent regression.
28314         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
28315         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
28317         crypto/gc-arctwo: Fix recent regression.
28318         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
28319         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
28321         crypto/gc-rijndael: Fix recent regression.
28322         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
28323         (configure.ac): Invoke AC_LIBOBJ here.
28324         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
28325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28327         crypto/gc-hmac-sha1: Fix recent regression.
28328         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
28329         (configure.ac): Invoke AC_LIBOBJ here.
28330         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
28331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28333         crypto/gc-hmac-md5: Fix recent regression.
28334         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
28335         (configure.ac): Invoke AC_LIBOBJ here.
28336         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
28337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28339         crypto/gc-des: Fix recent regression.
28340         * modules/crypto/gc-des (Files): Remove m4/des.m4.
28341         (configure.ac): Invoke AC_LIBOBJ here.
28342         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
28343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28345         crypto/gc-arcfour: Fix recent regression.
28346         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
28347         (configure.ac): Invoke AC_LIBOBJ here.
28348         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
28349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28351 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
28353         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
28354         After the 2011-05-21 change, this macro requires
28355         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
28356         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28358 2011-06-16  Bruno Haible  <bruno@clisp.org>
28360         fprintftime: Move AC_LIBOBJ invocations to module description.
28361         * m4/fprintftime.m4: Remove file.
28362         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
28363         (configure.ac): Remove gl_FPRINTFTIME call.
28364         (Makefile.am): Augment lib_SOURCES.
28365         Reported by Jim Meyering.
28367 2011-06-16  Bruno Haible  <bruno@clisp.org>
28369         tmpfile-safer: Finish 2011-05-23 commit.
28370         * m4/stdio-safer.m4: Really remove file.
28371         Reported by Jim Meyering.
28373 2011-06-16  Bruno Haible  <bruno@clisp.org>
28375         syntax-check: Fix typo.
28376         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
28377         printf-posix.m4.
28378         Reported by Jim Meyering.
28380 2011-06-13  Jim Meyering  <meyering@redhat.com>
28382         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
28383         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
28385 2011-05-23  Bruno Haible  <bruno@clisp.org>
28387         yesno: Move AC_LIBOBJ invocations to module description.
28388         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
28389         * modules/yesno (Makefile.am): Augment lib_SOURCES.
28391 2011-05-23  Bruno Haible  <bruno@clisp.org>
28393         xstrtol: Move AC_LIBOBJ invocations to module description.
28394         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
28395         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
28397 2011-05-23  Bruno Haible  <bruno@clisp.org>
28399         xstrtold: Move AC_LIBOBJ invocations to module description.
28400         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
28401         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
28403 2011-05-23  Bruno Haible  <bruno@clisp.org>
28405         xstrtod: Move AC_LIBOBJ invocations to module description.
28406         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
28407         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
28409 2011-05-23  Bruno Haible  <bruno@clisp.org>
28411         xnanosleep: Move AC_LIBOBJ invocations to module description.
28412         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
28413         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
28415 2011-05-23  Bruno Haible  <bruno@clisp.org>
28417         xgetcwd: Move AC_LIBOBJ invocations to module description.
28418         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
28419         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
28421 2011-05-23  Bruno Haible  <bruno@clisp.org>
28423         xalloc: Move AC_LIBOBJ invocations to module description.
28424         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
28425         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
28427 2011-05-23  Bruno Haible  <bruno@clisp.org>
28429         write-any-file: Move AC_LIBOBJ invocations to module description.
28430         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
28431         invocation.
28432         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
28434 2011-05-23  Bruno Haible  <bruno@clisp.org>
28436         utimens: Move AC_LIBOBJ invocations to module description.
28437         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
28438         * modules/utimens (Makefile.am): Augment lib_SOURCES.
28440 2011-05-23  Bruno Haible  <bruno@clisp.org>
28442         utimecmp: Move AC_LIBOBJ invocations to module description.
28443         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
28444         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
28446 2011-05-23  Bruno Haible  <bruno@clisp.org>
28448         userspec: Move AC_LIBOBJ invocations to module description.
28449         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
28450         * modules/userspec (Makefile.am): Augment lib_SOURCES.
28452 2011-05-23  Bruno Haible  <bruno@clisp.org>
28454         unlinkdir: Move AC_LIBOBJ invocations to module description.
28455         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
28456         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
28458 2011-05-23  Bruno Haible  <bruno@clisp.org>
28460         unistd-safer: Move AC_LIBOBJ invocations to module description.
28461         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
28462         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
28464 2011-05-23  Bruno Haible  <bruno@clisp.org>
28466         tempname: Move AC_LIBOBJ invocations to module description.
28467         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
28468         * modules/tempname (Makefile.am): Augment lib_SOURCES.
28470 2011-05-23  Bruno Haible  <bruno@clisp.org>
28472         strftime: Move AC_LIBOBJ invocations to module description.
28473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
28474         * modules/strftime (Makefile.am): Augment lib_SOURCES.
28476 2011-05-23  Bruno Haible  <bruno@clisp.org>
28478         stdlib-safer: Move AC_LIBOBJ invocations to module description.
28479         * m4/stdlib-safer.m4: Remove file.
28480         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
28481         (configure.ac): Remove gl_STDLIB_SAFER call.
28482         (Makefile.am): Augment lib_SOURCES.
28484 2011-05-23  Bruno Haible  <bruno@clisp.org>
28486         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
28487         * m4/stdio-safer.m4: Remove file.
28488         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
28489         (configure.ac): Remove gl_TMPFILE_SAFER call.
28490         (Makefile.am): Augment lib_SOURCES.
28492 2011-05-23  Bruno Haible  <bruno@clisp.org>
28494         popen-safer: Move AC_LIBOBJ invocations to module description.
28495         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
28496         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
28497         (configure.ac): Remove gl_POPEN_SAFER call.
28498         (Makefile.am): Augment lib_SOURCES.
28500 2011-05-23  Bruno Haible  <bruno@clisp.org>
28502         freopen-safer: Move AC_LIBOBJ invocations to module description.
28503         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
28504         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
28505         (configure.ac): Remove gl_FREOPEN_SAFER call.
28506         (Makefile.am): Augment lib_SOURCES.
28508 2011-05-23  Bruno Haible  <bruno@clisp.org>
28510         fopen-safer: Move AC_LIBOBJ invocations to module description.
28511         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
28512         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
28513         (configure.ac): Remove gl_FOPEN_SAFER call.
28514         (Makefile.am): Augment lib_SOURCES.
28516 2011-05-23  Bruno Haible  <bruno@clisp.org>
28518         crypto/sha512: Move AC_LIBOBJ invocations to module description.
28519         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
28520         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
28522 2011-05-23  Bruno Haible  <bruno@clisp.org>
28524         crypto/sha256: Move AC_LIBOBJ invocations to module description.
28525         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
28526         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
28528 2011-05-23  Bruno Haible  <bruno@clisp.org>
28530         crypto/sha1: Move AC_LIBOBJ invocations to module description.
28531         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
28532         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
28534 2011-05-23  Bruno Haible  <bruno@clisp.org>
28536         settime: Move AC_LIBOBJ invocations to module description.
28537         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
28538         * modules/settime (Makefile.am): Augment lib_SOURCES.
28540 2011-05-23  Bruno Haible  <bruno@clisp.org>
28542         savedir: Move AC_LIBOBJ invocations to module description.
28543         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
28544         * modules/savedir (Makefile.am): Augment lib_SOURCES.
28546 2011-05-23  Bruno Haible  <bruno@clisp.org>
28548         save-cwd: Move AC_LIBOBJ invocations to module description.
28549         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
28550         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
28552 2011-05-23  Bruno Haible  <bruno@clisp.org>
28554         same: Move AC_LIBOBJ invocations to module description.
28555         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
28556         * modules/same (Makefile.am): Augment lib_SOURCES.
28558 2011-05-23  Bruno Haible  <bruno@clisp.org>
28560         safe-write: Move AC_LIBOBJ invocations to module description.
28561         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
28562         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
28563         instead of gl_SAFE_WRITE.
28564         (Makefile.am): Augment lib_SOURCES.
28566 2011-05-23  Bruno Haible  <bruno@clisp.org>
28568         safe-read: Move AC_LIBOBJ invocations to module description.
28569         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
28570         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
28571         of gl_SAFE_READ.
28572         (Makefile.am): Augment lib_SOURCES.
28574 2011-05-23  Bruno Haible  <bruno@clisp.org>
28576         safe-alloc: Move AC_LIBOBJ invocations to module description.
28577         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
28578         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
28580 2011-05-23  Bruno Haible  <bruno@clisp.org>
28582         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
28583         * m4/rijndael.m4: Remove file.
28584         * modules/crypto/rijndael (Files): Remove it.
28585         (configure.ac): Remove gl_RIJNDAEL call.
28586         (Makefile.am): Augment lib_SOURCES.
28588 2011-05-23  Bruno Haible  <bruno@clisp.org>
28590         readtokens: Move AC_LIBOBJ invocations to module description.
28591         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
28592         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
28594 2011-05-23  Bruno Haible  <bruno@clisp.org>
28596         read-file: Move AC_LIBOBJ invocations to module description.
28597         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
28598         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
28599         of gl_FUNC_READ_FILE.
28600         (Makefile.am): Augment lib_SOURCES.
28602 2011-05-23  Bruno Haible  <bruno@clisp.org>
28604         quotearg: Move AC_LIBOBJ invocations to module description.
28605         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
28606         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
28608 2011-05-23  Bruno Haible  <bruno@clisp.org>
28610         quote: Move AC_LIBOBJ invocations to module description.
28611         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
28612         * modules/quote (Makefile.am): Augment lib_SOURCES.
28614 2011-05-23  Bruno Haible  <bruno@clisp.org>
28616         posixver: Move AC_LIBOBJ invocations to module description.
28617         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
28618         * modules/posixver (Makefile.am): Augment lib_SOURCES.
28620 2011-05-23  Bruno Haible  <bruno@clisp.org>
28622         posixtm: Move AC_LIBOBJ invocations to module description.
28623         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
28624         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
28626 2011-05-23  Bruno Haible  <bruno@clisp.org>
28628         physmem: Move AC_LIBOBJ invocations to module description.
28629         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
28630         * modules/physmem (Makefile.am): Augment lib_SOURCES.
28632 2011-05-23  Bruno Haible  <bruno@clisp.org>
28634         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
28635         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
28636         invocation.
28637         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
28639 2011-05-23  Bruno Haible  <bruno@clisp.org>
28641         mpsort: Move AC_LIBOBJ invocations to module description.
28642         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
28643         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
28645 2011-05-23  Bruno Haible  <bruno@clisp.org>
28647         modechange: Move AC_LIBOBJ invocations to module description.
28648         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
28649         * modules/modechange (Makefile.am): Augment lib_SOURCES.
28651 2011-05-23  Bruno Haible  <bruno@clisp.org>
28653         mkdir-p: Move AC_LIBOBJ invocations to module description.
28654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
28655         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
28657 2011-05-23  Bruno Haible  <bruno@clisp.org>
28659         mkancesdirs: Move AC_LIBOBJ invocations to module description.
28660         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
28661         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
28663 2011-05-23  Bruno Haible  <bruno@clisp.org>
28665         mgetgroups: Move AC_LIBOBJ invocations to module description.
28666         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
28667         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
28669 2011-05-23  Bruno Haible  <bruno@clisp.org>
28671         memxor: Move AC_LIBOBJ invocations to module description.
28672         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
28673         * modules/memxor (Makefile.am): Augment lib_SOURCES.
28675 2011-05-23  Bruno Haible  <bruno@clisp.org>
28677         memcoll: Move AC_LIBOBJ invocations to module description.
28678         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
28679         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
28681 2011-05-23  Bruno Haible  <bruno@clisp.org>
28683         memcasecmp: Move AC_LIBOBJ invocations to module description.
28684         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
28685         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
28687 2011-05-23  Bruno Haible  <bruno@clisp.org>
28689         crypto/md5: Move AC_LIBOBJ invocations to module description.
28690         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
28691         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
28693 2011-05-23  Bruno Haible  <bruno@clisp.org>
28695         crypto/md4: Move AC_LIBOBJ invocations to module description.
28696         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
28697         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
28699 2011-05-23  Bruno Haible  <bruno@clisp.org>
28701         crypto/md2: Move AC_LIBOBJ invocations to module description.
28702         * m4/md2.m4: Remove file.
28703         * modules/crypto/md2 (Files): Remove it.
28704         (configure.ac): Remove gl_MD2 call.
28705         (Makefile.am): Augment lib_SOURCES.
28707 2011-05-23  Bruno Haible  <bruno@clisp.org>
28709         long-options: Move AC_LIBOBJ invocations to module description.
28710         * m4/long-options.m4: Remove file.
28711         * modules/long-options (Files): Remove it.
28712         (configure.ac): Remove gl_LONG_OPTIONS call.
28713         (Makefile.am): Augment lib_SOURCES.
28715 2011-05-23  Bruno Haible  <bruno@clisp.org>
28717         i-ring: Move AC_LIBOBJ invocations to module description.
28718         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
28719         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
28721 2011-05-23  Bruno Haible  <bruno@clisp.org>
28723         idcache: Move AC_LIBOBJ invocations to module description.
28724         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
28725         * modules/idcache (Makefile.am): Augment lib_SOURCES.
28727 2011-05-23  Bruno Haible  <bruno@clisp.org>
28729         human: Move AC_LIBOBJ invocations to module description.
28730         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
28731         * modules/human (Makefile.am): Augment lib_SOURCES.
28733 2011-05-23  Bruno Haible  <bruno@clisp.org>
28735         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
28736         * m4/hmac-sha1.m4: Remove file.
28737         * modules/crypto/hmac-sha1 (Files): Remove it.
28738         (configure.ac): Remove gl_HMAC_SHA1 call.
28739         (Makefile.am): Augment lib_SOURCES.
28741 2011-05-23  Bruno Haible  <bruno@clisp.org>
28743         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
28744         * m4/hmac-md5.m4: Remove file.
28745         * modules/crypto/hmac-md5 (Files): Remove it.
28746         (configure.ac): Remove gl_HMAC_MD5 call.
28747         (Makefile.am): Augment lib_SOURCES.
28749 2011-05-23  Bruno Haible  <bruno@clisp.org>
28751         hash: Move AC_LIBOBJ invocations to module description.
28752         * m4/hash.m4: Remove file.
28753         * modules/hash (Files): Remove it.
28754         (configure.ac): Remove gl_HASH call.
28755         (Makefile.am): Augment lib_SOURCES.
28757 2011-05-23  Bruno Haible  <bruno@clisp.org>
28759         hard-locale: Move AC_LIBOBJ invocations to module description.
28760         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
28761         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
28763 2011-05-23  Bruno Haible  <bruno@clisp.org>
28765         getugroups: Move AC_LIBOBJ invocations to module description.
28766         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
28767         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
28769 2011-05-23  Bruno Haible  <bruno@clisp.org>
28771         gettime: Move AC_LIBOBJ invocations to module description.
28772         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
28773         * modules/gettime (Makefile.am): Augment lib_SOURCES.
28775 2011-05-23  Bruno Haible  <bruno@clisp.org>
28777         getndelim2: Move AC_LIBOBJ invocations to module description.
28778         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
28779         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
28781 2011-05-23  Bruno Haible  <bruno@clisp.org>
28783         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
28784         * m4/gc-pbkdf2-sha1.m4: Remove file.
28785         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
28786         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
28787         (Makefile.am): Augment lib_SOURCES.
28789 2011-05-23  Bruno Haible  <bruno@clisp.org>
28791         fts: Move AC_LIBOBJ invocations to module description.
28792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
28793         * modules/fts (configure.ac): ... to here.
28795 2011-05-23  Bruno Haible  <bruno@clisp.org>
28797         file-type: Move AC_LIBOBJ invocations to module description.
28798         * m4/file-type.m4: Remove file.
28799         * modules/file-type (Files): Remove it.
28800         (configure.ac): Remove gl_FILE_TYPE call.
28801         (Makefile.am): Augment lib_SOURCES.
28803 2011-05-23  Bruno Haible  <bruno@clisp.org>
28805         filenamecat*: Respect rules for use of AC_LIBOBJ.
28806         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
28807         Remove AC_LIBOBJ invocation.
28808         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
28809         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
28811 2011-05-23  Bruno Haible  <bruno@clisp.org>
28813         filemode: Move AC_LIBOBJ invocations to module description.
28814         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
28815         * modules/filemode (Makefile.am): Augment lib_SOURCES.
28817 2011-05-23  Bruno Haible  <bruno@clisp.org>
28819         openat-safer: Move AC_LIBOBJ invocations to module description.
28820         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
28821         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
28823 2011-05-23  Bruno Haible  <bruno@clisp.org>
28825         fcntl-safer: Move AC_LIBOBJ invocations to module description.
28826         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
28827         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
28829 2011-05-23  Bruno Haible  <bruno@clisp.org>
28831         exclude: Move AC_LIBOBJ invocations to module description.
28832         * m4/exclude.m4: Remove file.
28833         * modules/exclude (Files): Remove it.
28834         (configure.ac): Remove gl_EXCLUDE call.
28835         (Makefile.am): Augment lib_SOURCES.
28837 2011-05-23  Bruno Haible  <bruno@clisp.org>
28839         dirname*: Respect rules for use of AC_LIBOBJ.
28840         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
28841         invocations.
28842         * modules/dirname (Makefile.am): Augment lib_SOURCES.
28843         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
28845 2011-05-23  Bruno Haible  <bruno@clisp.org>
28847         dirent-safer: Move AC_LIBOBJ invocations to module description.
28848         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
28849         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
28851 2011-05-23  Bruno Haible  <bruno@clisp.org>
28853         crypto/des: Move AC_LIBOBJ invocations to module description.
28854         * m4/des.m4: Remove file.
28855         * modules/crypto/des (Files): Remove it.
28856         (configure.ac): Remove gl_DES call.
28857         (Makefile.am): Augment lib_SOURCES.
28859 2011-05-23  Bruno Haible  <bruno@clisp.org>
28861         cycle-check: Move AC_LIBOBJ invocations to module description.
28862         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
28863         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
28865 2011-05-23  Bruno Haible  <bruno@clisp.org>
28867         c-strtold: Move AC_LIBOBJ invocations to module description.
28868         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
28869         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
28871 2011-05-23  Bruno Haible  <bruno@clisp.org>
28873         c-strtod: Move AC_LIBOBJ invocations to module description.
28874         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
28875         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
28877 2011-05-23  Bruno Haible  <bruno@clisp.org>
28879         crc: Move AC_LIBOBJ invocations to module description.
28880         * m4/crc.m4: Remove file.
28881         * modules/crc (Files): Remove it.
28882         (configure.ac): Remove gl_CRC call.
28883         (Makefile.am): Augment lib_SOURCES.
28885 2011-05-23  Bruno Haible  <bruno@clisp.org>
28887         close-stream: Move AC_LIBOBJ invocations to module description.
28888         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
28889         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
28891 2011-05-23  Bruno Haible  <bruno@clisp.org>
28893         closeout: Move AC_LIBOBJ invocations to module description.
28894         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
28895         * modules/closeout (Makefile.am): Augment lib_SOURCES.
28897 2011-05-23  Bruno Haible  <bruno@clisp.org>
28899         closein: Move AC_LIBOBJ invocations to module description.
28900         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
28901         * modules/closein (Makefile.am): Augment lib_SOURCES.
28903 2011-05-23  Bruno Haible  <bruno@clisp.org>
28905         cloexec: Move AC_LIBOBJ invocations to module description.
28906         * m4/cloexec.m4: Remove file.
28907         * modules/cloexec (Files): Remove it.
28908         (configure.ac): Remove gl_CLOEXEC call.
28909         (Makefile.am): Augment lib_SOURCES.
28911 2011-05-23  Bruno Haible  <bruno@clisp.org>
28913         check-version: Move AC_LIBOBJ invocations to module description.
28914         * m4/check-version.m4: Remove file.
28915         * modules/check-version (Files): Remove it.
28916         (configure.ac): Remove gl_CHECK_VERSION call.
28917         (Makefile.am): Augment lib_SOURCES.
28919 2011-05-23  Bruno Haible  <bruno@clisp.org>
28921         chdir-safer: Move AC_LIBOBJ invocations to module description.
28922         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
28923         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
28925 2011-05-23  Bruno Haible  <bruno@clisp.org>
28927         canonicalize: Move AC_LIBOBJ invocations to module description.
28928         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
28929         AC_LIBOBJ invocation.
28930         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
28932 2011-05-23  Bruno Haible  <bruno@clisp.org>
28934         canon-host: Move AC_LIBOBJ invocations to module description.
28935         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
28936         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
28937         instead of gl_CANON_HOST.
28938         (Makefile.am): Augment lib_SOURCES.
28940 2011-05-23  Bruno Haible  <bruno@clisp.org>
28942         backupfile: Move AC_LIBOBJ invocations to module description.
28943         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
28944         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
28946 2011-05-23  Bruno Haible  <bruno@clisp.org>
28948         argmatch: Move AC_LIBOBJ invocations to module description.
28949         * m4/argmatch.m4: Remove file.
28950         * modules/argmatch (Files): Remove it.
28951         (configure.ac): Remove gl_ARGMATCH call.
28952         (Makefile.am): Augment lib_SOURCES.
28954 2011-05-23  Bruno Haible  <bruno@clisp.org>
28956         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
28957         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
28958         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
28960 2011-05-23  Bruno Haible  <bruno@clisp.org>
28962         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
28963         * m4/arcfour.m4: Remove file.
28964         * modules/crypto/arcfour (Files): Remove it.
28965         (configure.ac): Remove gl_ARCFOUR call.
28966         (Makefile.am): Augment lib_SOURCES.
28968 2011-05-22  Bruno Haible  <bruno@clisp.org>
28970         write: Move AC_LIBOBJ invocations to module description.
28971         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
28972         * modules/write (configure.ac): ... to here.
28974 2011-05-22  Bruno Haible  <bruno@clisp.org>
28976         wmemset: Move AC_LIBOBJ invocations to module description.
28977         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
28978         here...
28979         * modules/wmemset (configure.ac): ... to here.
28981 2011-05-22  Bruno Haible  <bruno@clisp.org>
28983         wmemmove: Move AC_LIBOBJ invocations to module description.
28984         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
28985         here...
28986         * modules/wmemmove (configure.ac): ... to here.
28988 2011-05-22  Bruno Haible  <bruno@clisp.org>
28990         wmemcpy: Move AC_LIBOBJ invocations to module description.
28991         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
28992         here...
28993         * modules/wmemcpy (configure.ac): ... to here.
28995 2011-05-22  Bruno Haible  <bruno@clisp.org>
28997         wmemcmp: Move AC_LIBOBJ invocations to module description.
28998         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
28999         here...
29000         * modules/wmemcmp (configure.ac): ... to here.
29002 2011-05-22  Bruno Haible  <bruno@clisp.org>
29004         wmemchr: Move AC_LIBOBJ invocations to module description.
29005         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
29006         here...
29007         * modules/wmemchr (configure.ac): ... to here.
29009 2011-05-22  Bruno Haible  <bruno@clisp.org>
29011         wcswidth: Move AC_LIBOBJ invocations to module description.
29012         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
29013         here...
29014         * modules/wcswidth (configure.ac): ... to here.
29016 2011-05-22  Bruno Haible  <bruno@clisp.org>
29018         wcwidth: Respect rules for use of AC_LIBOBJ.
29019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
29020         invocation from here...
29021         * modules/wcwidth (configure.ac): ... to here.
29022         (Depends-on): Update conditions.
29024 2011-05-22  Bruno Haible  <bruno@clisp.org>
29026         wctype: Move AC_LIBOBJ invocations to module description.
29027         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
29028         invocation from here...
29029         * modules/wctype (configure.ac): ... to here.
29030         (Depends-on): Update conditions.
29032 2011-05-22  Bruno Haible  <bruno@clisp.org>
29034         wctrans: Move AC_LIBOBJ invocations to module description.
29035         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
29036         invocation from here...
29037         * modules/wctrans (configure.ac): ... to here.
29039 2011-05-22  Bruno Haible  <bruno@clisp.org>
29041         wctomb: Move AC_LIBOBJ invocations to module description.
29042         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
29043         invocations from here...
29044         * modules/wctomb (configure.ac): ... to here.
29046 2011-05-22  Bruno Haible  <bruno@clisp.org>
29048         wctob: Move AC_LIBOBJ invocations to module description.
29049         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
29050         gl_PREREQ_WCTOB invocations from here...
29051         * modules/wctob (configure.ac): ... to here.
29052         (Depends-on): Update conditions.
29054 2011-05-22  Bruno Haible  <bruno@clisp.org>
29056         wcsxfrm: Move AC_LIBOBJ invocations to module description.
29057         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
29058         here...
29059         * modules/wcsxfrm (configure.ac): ... to here.
29061 2011-05-22  Bruno Haible  <bruno@clisp.org>
29063         wcstok: Move AC_LIBOBJ invocations to module description.
29064         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
29065         * modules/wcstok (configure.ac): ... to here.
29067 2011-05-22  Bruno Haible  <bruno@clisp.org>
29069         wcsstr: Move AC_LIBOBJ invocations to module description.
29070         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
29071         * modules/wcsstr (configure.ac): ... to here.
29073 2011-05-22  Bruno Haible  <bruno@clisp.org>
29075         wcsspn: Move AC_LIBOBJ invocations to module description.
29076         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
29077         * modules/wcsspn (configure.ac): ... to here.
29079 2011-05-22  Bruno Haible  <bruno@clisp.org>
29081         wcsrtombs: Move AC_LIBOBJ invocations to module description.
29082         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
29083         gl_PREREQ_WCSRTOMBS invocations from here...
29084         * modules/wcsrtombs (configure.ac): ... to here.
29086 2011-05-22  Bruno Haible  <bruno@clisp.org>
29088         wcsrchr: Move AC_LIBOBJ invocations to module description.
29089         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
29090         here...
29091         * modules/wcsrchr (configure.ac): ... to here.
29093 2011-05-22  Bruno Haible  <bruno@clisp.org>
29095         wcspbrk: Move AC_LIBOBJ invocations to module description.
29096         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
29097         here...
29098         * modules/wcspbrk (configure.ac): ... to here.
29100 2011-05-22  Bruno Haible  <bruno@clisp.org>
29102         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
29103         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
29104         gl_PREREQ_WCSNRTOMBS invocations from here...
29105         * modules/wcsnrtombs (configure.ac): ... to here.
29107 2011-05-22  Bruno Haible  <bruno@clisp.org>
29109         wcsnlen: Move AC_LIBOBJ invocations to module description.
29110         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
29111         here...
29112         * modules/wcsnlen (configure.ac): ... to here.
29114 2011-05-22  Bruno Haible  <bruno@clisp.org>
29116         wcsncpy: Move AC_LIBOBJ invocations to module description.
29117         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
29118         here...
29119         * modules/wcsncpy (configure.ac): ... to here.
29121 2011-05-22  Bruno Haible  <bruno@clisp.org>
29123         wcsncmp: Move AC_LIBOBJ invocations to module description.
29124         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
29125         here...
29126         * modules/wcsncmp (configure.ac): ... to here.
29128 2011-05-22  Bruno Haible  <bruno@clisp.org>
29130         wcsncat: Move AC_LIBOBJ invocations to module description.
29131         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
29132         here...
29133         * modules/wcsncat (configure.ac): ... to here.
29135 2011-05-22  Bruno Haible  <bruno@clisp.org>
29137         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
29138         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
29139         from here...
29140         * modules/wcsncasecmp (configure.ac): ... to here.
29142 2011-05-22  Bruno Haible  <bruno@clisp.org>
29144         wcslen: Move AC_LIBOBJ invocations to module description.
29145         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
29146         * modules/wcslen (configure.ac): ... to here.
29148 2011-05-22  Bruno Haible  <bruno@clisp.org>
29150         wcsdup: Move AC_LIBOBJ invocations to module description.
29151         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
29152         * modules/wcsdup (configure.ac): ... to here.
29154 2011-05-22  Bruno Haible  <bruno@clisp.org>
29156         wcscspn: Move AC_LIBOBJ invocations to module description.
29157         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
29158         here...
29159         * modules/wcscspn (configure.ac): ... to here.
29161 2011-05-22  Bruno Haible  <bruno@clisp.org>
29163         wcscpy: Move AC_LIBOBJ invocations to module description.
29164         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
29165         * modules/wcscpy (configure.ac): ... to here.
29167 2011-05-22  Bruno Haible  <bruno@clisp.org>
29169         wcscoll: Move AC_LIBOBJ invocations to module description.
29170         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
29171         here...
29172         * modules/wcscoll (configure.ac): ... to here.
29174 2011-05-22  Bruno Haible  <bruno@clisp.org>
29176         wcscmp: Move AC_LIBOBJ invocations to module description.
29177         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
29178         * modules/wcscmp (configure.ac): ... to here.
29180 2011-05-22  Bruno Haible  <bruno@clisp.org>
29182         wcschr: Move AC_LIBOBJ invocations to module description.
29183         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
29184         * modules/wcschr (configure.ac): ... to here.
29186 2011-05-22  Bruno Haible  <bruno@clisp.org>
29188         wcscat: Move AC_LIBOBJ invocations to module description.
29189         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
29190         * modules/wcscat (configure.ac): ... to here.
29192 2011-05-22  Bruno Haible  <bruno@clisp.org>
29194         wcscasecmp: Move AC_LIBOBJ invocations to module description.
29195         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
29196         here...
29197         * modules/wcscasecmp (configure.ac): ... to here.
29199 2011-05-22  Bruno Haible  <bruno@clisp.org>
29201         wcrtomb: Move AC_LIBOBJ invocations to module description.
29202         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
29203         invocations from here...
29204         * modules/wcrtomb (configure.ac): ... to here.
29206 2011-05-22  Bruno Haible  <bruno@clisp.org>
29208         wcpncpy: Move AC_LIBOBJ invocations to module description.
29209         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
29210         here...
29211         * modules/wcpncpy (configure.ac): ... to here.
29213 2011-05-22  Bruno Haible  <bruno@clisp.org>
29215         wcpcpy: Move AC_LIBOBJ invocations to module description.
29216         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
29217         * modules/wcpcpy (configure.ac): ... to here.
29219 2011-05-22  Bruno Haible  <bruno@clisp.org>
29221         waitpid: Move AC_LIBOBJ invocations to module description.
29222         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
29223         invocation from here...
29224         * modules/waitpid (configure.ac): ... to here.
29226 2011-05-22  Bruno Haible  <bruno@clisp.org>
29228         utimensat: Move AC_LIBOBJ invocations to module description.
29229         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
29230         here...
29231         * modules/utimensat (configure.ac): ... to here.
29233 2011-05-22  Bruno Haible  <bruno@clisp.org>
29235         usleep: Move AC_LIBOBJ invocations to module description.
29236         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
29237         here...
29238         * modules/usleep (configure.ac): ... to here.
29240 2011-05-22  Bruno Haible  <bruno@clisp.org>
29242         unlockpt: Move AC_LIBOBJ invocations to module description.
29243         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
29244         gl_PREREQ_UNLOCKPT invocations from here...
29245         * modules/unlockpt (configure.ac): ... to here.
29247 2011-05-22  Bruno Haible  <bruno@clisp.org>
29249         unlink: Respect rules for use of AC_LIBOBJ.
29250         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
29251         * modules/unlink (configure.ac): ... to here.
29253 2011-05-22  Bruno Haible  <bruno@clisp.org>
29255         uname: Move AC_LIBOBJ invocations to module description.
29256         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
29257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
29258         here...
29259         * modules/uname (configure.ac): ... to here.
29261 2011-05-22  Bruno Haible  <bruno@clisp.org>
29263         ttyname_r: Move AC_LIBOBJ invocations to module description.
29264         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
29265         gl_PREREQ_TTYNAME_R invocations from here...
29266         * modules/ttyname_r (configure.ac): ... to here.
29268 2011-05-22  Bruno Haible  <bruno@clisp.org>
29270         tsearch: Move AC_LIBOBJ invocations to module description.
29271         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
29272         invocations from here...
29273         * modules/tsearch (configure.ac): ... to here.
29275 2011-05-22  Bruno Haible  <bruno@clisp.org>
29277         towctrans: Move AC_LIBOBJ invocations to module description.
29278         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
29279         AC_LIBOBJ invocation from here...
29280         * modules/towctrans (configure.ac): ... to here.
29282 2011-05-22  Bruno Haible  <bruno@clisp.org>
29284         tmpfile: Move AC_LIBOBJ invocations to module description.
29285         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
29286         invocations from here...
29287         * modules/tmpfile (configure.ac): ... to here.
29289 2011-05-22  Bruno Haible  <bruno@clisp.org>
29291         times: Move AC_LIBOBJ invocations to module description.
29292         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
29293         * modules/times (configure.ac): ... to here.
29295 2011-05-22  Bruno Haible  <bruno@clisp.org>
29297         time_r: Move AC_LIBOBJ invocations to module description.
29298         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
29299         invocations from here...
29300         * modules/time_r (configure.ac): ... to here.
29302 2011-05-22  Bruno Haible  <bruno@clisp.org>
29304         timegm: Move AC_LIBOBJ invocations to module description.
29305         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
29306         invocations from here...
29307         * modules/timegm (configure.ac): ... to here.
29309 2011-05-22  Bruno Haible  <bruno@clisp.org>
29311         tcgetsid: Move AC_LIBOBJ invocations to module description.
29312         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
29313         and gl_PREREQ_TCGETSID invocations from here...
29314         * modules/tcgetsid (configure.ac): ... to here.
29315         (Depends-on): Update conditions.
29317 2011-05-22  Bruno Haible  <bruno@clisp.org>
29319         symlinkat: Move AC_LIBOBJ invocations to module description.
29320         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
29321         here...
29322         * modules/symlinkat (configure.ac): ... to here.
29324 2011-05-22  Bruno Haible  <bruno@clisp.org>
29326         symlink: Move AC_LIBOBJ invocations to module description.
29327         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
29328         here...
29329         * modules/symlink (configure.ac): ... to here.
29331 2011-05-22  Bruno Haible  <bruno@clisp.org>
29333         strverscmp: Move AC_LIBOBJ invocations to module description.
29334         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
29335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
29336         from here...
29337         * modules/strverscmp (configure.ac): ... to here.
29339 2011-05-22  Bruno Haible  <bruno@clisp.org>
29341         strtok_r: Move AC_LIBOBJ invocations to module description.
29342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
29343         and gl_PREREQ_STRTOK_R invocations from here...
29344         * modules/strtok_r (configure.ac): ... to here.
29345         (Depends-on): Update conditions.
29347 2011-05-22  Bruno Haible  <bruno@clisp.org>
29349         strtoumax: Move AC_LIBOBJ invocations to module description.
29350         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
29351         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
29352         from here...
29353         * modules/strtoumax (configure.ac): ... to here.
29355 2011-05-22  Bruno Haible  <bruno@clisp.org>
29357         strtoimax: Move AC_LIBOBJ invocations to module description.
29358         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
29359         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
29360         from here...
29361         * modules/strtoimax (configure.ac): ... to here.
29363 2011-05-22  Bruno Haible  <bruno@clisp.org>
29365         strtoull: Move AC_LIBOBJ invocations to module description.
29366         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
29367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
29368         from here...
29369         * modules/strtoull (configure.ac): ... to here.
29371 2011-05-22  Bruno Haible  <bruno@clisp.org>
29373         strtoll: Move AC_LIBOBJ invocations to module description.
29374         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
29375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
29376         here...
29377         * modules/strtoll (configure.ac): ... to here.
29379 2011-05-22  Bruno Haible  <bruno@clisp.org>
29381         strtoul: Move AC_LIBOBJ invocations to module description.
29382         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
29383         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
29384         * modules/strtoul (configure.ac): ... to here.
29386 2011-05-22  Bruno Haible  <bruno@clisp.org>
29388         strtol: Move AC_LIBOBJ invocations to module description.
29389         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
29390         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
29391         * modules/strtol (configure.ac): ... to here.
29393 2011-05-22  Bruno Haible  <bruno@clisp.org>
29395         strtod: Move AC_LIBOBJ invocations to module description.
29396         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
29397         invocations from here...
29398         * modules/strtod (configure.ac): ... to here.
29400 2011-05-22  Bruno Haible  <bruno@clisp.org>
29402         strstr*: Move AC_LIBOBJ invocations to module description.
29403         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
29404         invocations from here...
29405         * modules/strstr-simple (configure.ac): ... to here.
29406         * modules/strstr (configure.ac): ... and here.
29408 2011-05-22  Bruno Haible  <bruno@clisp.org>
29410         strsignal: Move AC_LIBOBJ invocations to module description.
29411         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
29412         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
29413         * modules/strsignal (configure.ac): ... to here.
29414         (Depends-on): Update conditions.
29416 2011-05-22  Bruno Haible  <bruno@clisp.org>
29418         strsep: Move AC_LIBOBJ invocations to module description.
29419         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
29420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
29421         here...
29422         * modules/strsep (configure.ac): ... to here.
29424 2011-05-22  Bruno Haible  <bruno@clisp.org>
29426         strptime: Move AC_LIBOBJ invocations to module description.
29427         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
29428         gl_PREREQ_STRPTIME invocations from here...
29429         * modules/strptime (configure.ac): ... to here.
29431 2011-05-22  Bruno Haible  <bruno@clisp.org>
29433         strpbrk: Move AC_LIBOBJ invocations to module description.
29434         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
29435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
29436         here...
29437         * modules/strpbrk (configure.ac): ... to here.
29439 2011-05-22  Bruno Haible  <bruno@clisp.org>
29441         strnlen: Move AC_LIBOBJ invocations to module description.
29442         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
29443         invocations from here...
29444         * modules/strnlen (configure.ac): ... to here.
29446 2011-05-22  Bruno Haible  <bruno@clisp.org>
29448         strndup: Move AC_LIBOBJ invocations to module description.
29449         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
29450         invocations from here...
29451         * modules/strndup (configure.ac): ... to here.
29452         (Depends-on): Update conditions.
29454 2011-05-22  Bruno Haible  <bruno@clisp.org>
29456         strncat: Move AC_LIBOBJ invocations to module description.
29457         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
29458         invocations from here...
29459         * modules/strncat (configure.ac): ... to here.
29461 2011-05-22  Bruno Haible  <bruno@clisp.org>
29463         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
29464         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
29465         invocations from here...
29466         * modules/strdup (configure.ac): ... to here.
29467         * modules/strdup-posix (configure.ac): ... and here.
29469 2011-05-22  Bruno Haible  <bruno@clisp.org>
29471         strcspn: Move AC_LIBOBJ invocations to module description.
29472         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
29473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
29474         here...
29475         * modules/strcspn (configure.ac): ... to here.
29477 2011-05-22  Bruno Haible  <bruno@clisp.org>
29479         strchrnul: Move AC_LIBOBJ invocations to module description.
29480         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
29481         gl_PREREQ_STRCHRNUL invocations from here...
29482         * modules/strchrnul (configure.ac): ... to here.
29484 2011-05-22  Bruno Haible  <bruno@clisp.org>
29486         strcasestr*: Move AC_LIBOBJ invocations to module description.
29487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29488         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
29489         * modules/strcasestr-simple (configure.ac): ... to here.
29490         * modules/strcasestr (configure.ac): ... and here.
29492 2011-05-22  Bruno Haible  <bruno@clisp.org>
29494         strcase: Move AC_LIBOBJ invocations to module description.
29495         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
29496         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
29497         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
29498         gl_PREREQ_STRNCASECMP invocations from here...
29499         * modules/strcase (configure.ac): ... to here.
29501 2011-05-22  Bruno Haible  <bruno@clisp.org>
29503         stpncpy: Move AC_LIBOBJ invocations to module description.
29504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
29505         here...
29506         * modules/stpncpy (configure.ac): ... to here.
29508 2011-05-22  Bruno Haible  <bruno@clisp.org>
29510         stpcpy: Move AC_LIBOBJ invocations to module description.
29511         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
29512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
29513         here...
29514         * modules/stpcpy (configure.ac): ... to here.
29516 2011-05-21  Bruno Haible  <bruno@clisp.org>
29518         stat: Move AC_LIBOBJ invocations to module description.
29519         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
29520         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
29521         here...
29522         * modules/stat (configure.ac): ... to here.
29524 2011-05-21  Bruno Haible  <bruno@clisp.org>
29526         sleep: Move AC_LIBOBJ invocations to module description.
29527         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
29528         * modules/sleep (configure.ac): ... to here.
29530 2011-05-21  Bruno Haible  <bruno@clisp.org>
29532         signbit: Move AC_LIBOBJ invocations to module description.
29533         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
29534         * modules/signbit (configure.ac): ... to here.
29536 2011-05-21  Bruno Haible  <bruno@clisp.org>
29538         sigprocmask: Move AC_LIBOBJ invocations to module description.
29539         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
29540         gl_PREREQ_SIGPROMASK invocations from here...
29541         * modules/sigprocmask (configure.ac): ... to here.
29543 2011-05-21  Bruno Haible  <bruno@clisp.org>
29545         sigaction: Move AC_LIBOBJ invocations to module description.
29546         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
29547         gl_PREREQ_SIGACTION invocations from here...
29548         * modules/sigaction (configure.ac): ... to here.
29550 2011-05-21  Bruno Haible  <bruno@clisp.org>
29552         sig2str: Move AC_LIBOBJ invocations to module description.
29553         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
29554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
29555         here...
29556         * modules/sig2str (configure.ac): ... to here.
29558 2011-05-21  Bruno Haible  <bruno@clisp.org>
29560         setlocale: Move AC_LIBOBJ invocations to module description.
29561         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
29562         gl_PREREQ_SETLOCALE invocations from here...
29563         * modules/setlocale (configure.ac): ... to here.
29565 2011-05-21  Bruno Haible  <bruno@clisp.org>
29567         unsetenv: Move AC_LIBOBJ invocations to module description.
29568         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
29569         and gl_PREREQ_UNSETENV invocations from here...
29570         * modules/unsetenv (configure.ac): ... to here.
29571         (Depends-on): Update.
29573 2011-05-21  Bruno Haible  <bruno@clisp.org>
29575         setenv: Move AC_LIBOBJ invocations to module description.
29576         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
29577         here...
29578         * modules/setenv (configure.ac): ... to here.
29580 2011-05-21  Bruno Haible  <bruno@clisp.org>
29582         selinux-h: Move AC_LIBOBJ invocations to module description.
29583         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
29584         AC_LIBOBJ invocation from here...
29585         * modules/selinux-h (configure.ac): ... to here.
29587 2011-05-21  Bruno Haible  <bruno@clisp.org>
29589         select: Respect rules for use of AC_LIBOBJ.
29590         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
29591         here...
29592         * modules/select (configure.ac): ... to here.
29594 2011-05-21  Bruno Haible  <bruno@clisp.org>
29596         scandir: Move AC_LIBOBJ invocations to module description.
29597         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
29598         invocations from here...
29599         * modules/scandir (configure.ac): ... to here.
29601 2011-05-21  Bruno Haible  <bruno@clisp.org>
29603         rpmatch: Move AC_LIBOBJ invocations to module description.
29604         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
29605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
29606         here...
29607         * modules/rpmatch (configure.ac): ... to here.
29609 2011-05-21  Bruno Haible  <bruno@clisp.org>
29611         rmdir: Respect rules for use of AC_LIBOBJ.
29612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
29613         * modules/rmdir (configure.ac): ... to here.
29615 2011-05-21  Bruno Haible  <bruno@clisp.org>
29617         renameat: Move AC_LIBOBJ invocations to module description.
29618         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
29619         here...
29620         * modules/renameat (configure.ac): ... to here.
29622 2011-05-21  Bruno Haible  <bruno@clisp.org>
29624         rename: Respect rules for use of AC_LIBOBJ.
29625         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
29626         here...
29627         * modules/rename (configure.ac): ... to here.
29629 2011-05-21  Bruno Haible  <bruno@clisp.org>
29631         remove: Move AC_LIBOBJ invocations to module description.
29632         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
29633         here...
29634         * modules/remove (configure.ac): ... to here.
29636 2011-05-21  Bruno Haible  <bruno@clisp.org>
29638         relocatable-lib: Move AC_LIBOBJ invocations to module description.
29639         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
29640         macro.
29641         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
29642         * modules/relocatable-lib (configure.ac): ... to here.
29643         * modules/relocatable-prog-wrapper (configure.ac): Invoke
29644         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
29646 2011-05-21  Bruno Haible  <bruno@clisp.org>
29648         relocatable-prog: Move AC_LIBOBJ invocations to module description.
29649         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
29650         here...
29651         * modules/relocatable-prog (configure.ac): ... to here.
29653 2011-05-21  Bruno Haible  <bruno@clisp.org>
29655         regex: Move AC_LIBOBJ invocations to module description.
29656         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
29657         invocations from here...
29658         * modules/regex (configure.ac): ... to here.
29660 2011-05-21  Bruno Haible  <bruno@clisp.org>
29662         realloc-*: Move AC_LIBOBJ invocations to module description.
29663         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
29664         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
29665         AC_LIBOBJ invocations from here...
29666         * modules/realloc-gnu (configure.ac): ... to here.
29667         * modules/realloc-posix (configure.ac): ... and here.
29669 2011-05-21  Bruno Haible  <bruno@clisp.org>
29671         readutmp: Move AC_LIBOBJ invocations to module description.
29672         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
29673         * modules/readutmp (configure.ac): ... to here.
29675 2011-05-21  Bruno Haible  <bruno@clisp.org>
29677         readlinkat: Move AC_LIBOBJ invocations to module description.
29678         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
29679         here...
29680         * modules/readlinkat (configure.ac): ... to here.
29682 2011-05-21  Bruno Haible  <bruno@clisp.org>
29684         readlink: Move AC_LIBOBJ invocations to module description.
29685         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
29686         gl_PREREQ_READLINK invocations from here...
29687         * modules/readlink (configure.ac): ... to here.
29689 2011-05-21  Bruno Haible  <bruno@clisp.org>
29691         readline: Move AC_LIBOBJ invocations to module description.
29692         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
29693         gl_PREREQ_READLINE invocations from here...
29694         * modules/readline (configure.ac): ... to here.
29696 2011-05-21  Bruno Haible  <bruno@clisp.org>
29698         read: Move AC_LIBOBJ invocations to module description.
29699         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
29700         * modules/read (configure.ac): ... to here.
29702 2011-05-21  Bruno Haible  <bruno@clisp.org>
29704         rawmemchr: Move AC_LIBOBJ invocations to module description.
29705         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
29706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
29707         from here...
29708         * modules/rawmemchr (configure.ac): ... to here.
29710 2011-05-21  Bruno Haible  <bruno@clisp.org>
29712         random_r: Move AC_LIBOBJ invocations to module description.
29713         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
29714         gl_PREREQ_RANDOM_R invocations from here...
29715         * modules/random_r (configure.ac): ... to here.
29717 2011-05-21  Bruno Haible  <bruno@clisp.org>
29719         pwrite: Move AC_LIBOBJ invocations to module description.
29720         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
29721         * modules/pwrite (configure.ac): ... to here.
29723 2011-05-21  Bruno Haible  <bruno@clisp.org>
29725         putenv: Move AC_LIBOBJ invocations to module description.
29726         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
29727         * modules/putenv (configure.ac): ... to here.
29729 2011-05-21  Bruno Haible  <bruno@clisp.org>
29731         login_tty: Move AC_LIBOBJ invocations to module description.
29732         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
29733         * modules/login_tty (configure.ac): ... to here.
29735 2011-05-21  Bruno Haible  <bruno@clisp.org>
29737         openpty: Move AC_LIBOBJ invocations to module description.
29738         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
29739         * modules/openpty (configure.ac): ... to here.
29741 2011-05-21  Bruno Haible  <bruno@clisp.org>
29743         forkpty: Move AC_LIBOBJ invocations to module description.
29744         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
29745         * modules/forkpty (configure.ac): ... to here.
29747 2011-05-21  Bruno Haible  <bruno@clisp.org>
29749         ptsname: Move AC_LIBOBJ invocations to module description.
29750         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
29751         invocations from here...
29752         * modules/ptsname (configure.ac): ... to here.
29754 2011-05-21  Bruno Haible  <bruno@clisp.org>
29756         pread: Move AC_LIBOBJ invocations to module description.
29757         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
29758         * modules/pread (configure.ac): ... to here.
29760 2011-05-21  Bruno Haible  <bruno@clisp.org>
29762         posix_spawn*: Move AC_LIBOBJ invocations to module description.
29763         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
29764         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
29765         * modules/posix_spawn (configure.ac): ... to here.
29766         * modules/posix_spawnp (configure.ac): ... and here.
29768 2011-05-21  Bruno Haible  <bruno@clisp.org>
29770         popen: Move AC_LIBOBJ invocations to module description.
29771         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
29772         invocations from here...
29773         * modules/popen (configure.ac): ... to here.
29775 2011-05-21  Bruno Haible  <bruno@clisp.org>
29777         poll: Move AC_LIBOBJ invocations to module description.
29778         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
29779         invocations from here...
29780         * modules/poll (configure.ac): ... to here.
29782 2011-05-21  Bruno Haible  <bruno@clisp.org>
29784         pipe-posix: Move AC_LIBOBJ invocations to module description.
29785         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
29786         * modules/pipe-posix (configure.ac): ... to here.
29788 2011-05-21  Bruno Haible  <bruno@clisp.org>
29790         openat: Respect rules for use of AC_LIBOBJ.
29791         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
29792         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
29793         * modules/openat (configure.ac): ... to here.
29795 2011-05-21  Bruno Haible  <bruno@clisp.org>
29797         obstack-printf*: Move AC_LIBOBJ invocations to module description.
29798         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
29799         invocation from here...
29800         * modules/obstack-printf (configure.ac): ... to here.
29801         * modules/obstack-printf-posix (configure.ac): ... and here.
29803 2011-05-21  Bruno Haible  <bruno@clisp.org>
29805         nl_langinfo: Move AC_LIBOBJ invocations to module description.
29806         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
29807         from here...
29808         * modules/nl_langinfo (configure.ac): ... to here.
29810 2011-05-21  Bruno Haible  <bruno@clisp.org>
29812         nanosleep: Move AC_LIBOBJ invocations to module description.
29813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
29814         gl_PREREQ_NANOSLEEP invocations from here...
29815         * modules/nanosleep (configure.ac): ... to here.
29817 2011-05-21  Bruno Haible  <bruno@clisp.org>
29819         mountlist: Move AC_LIBOBJ invocations to module description.
29820         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
29821         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
29822         * modules/mountlist (configure.ac): ... to here.
29824 2011-05-21  Bruno Haible  <bruno@clisp.org>
29826         mktime: Respect rules for use of AC_LIBOBJ.
29827         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
29828         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
29829         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
29830         (gl_FUNC_MKTIME_INTERNAL): ... and here...
29831         * modules/mktime (configure.ac): ... to here.
29832         * modules/mktime-internal (configure.ac): ... and here.
29833         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
29835 2011-05-21  Bruno Haible  <bruno@clisp.org>
29837         mkstemps: Move AC_LIBOBJ invocations to module description.
29838         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
29839         here...
29840         * modules/mkstemps (configure.ac): ... to here.
29842 2011-05-21  Bruno Haible  <bruno@clisp.org>
29844         mkstemp: Move AC_LIBOBJ invocations to module description.
29845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
29846         gl_PREREQ_MKSTEMP invocations from here...
29847         * modules/mkstemp (configure.ac): ... to here.
29849 2011-05-21  Bruno Haible  <bruno@clisp.org>
29851         mkostemps: Move AC_LIBOBJ invocations to module description.
29852         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
29853         here...
29854         * modules/mkostemps (configure.ac): ... to here.
29856 2011-05-21  Bruno Haible  <bruno@clisp.org>
29858         mkostemp: Move AC_LIBOBJ invocations to module description.
29859         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
29860         gl_PREREQ_MKOSTEMP invocations from here...
29861         * modules/mkostemp (configure.ac): ... to here.
29863 2011-05-21  Bruno Haible  <bruno@clisp.org>
29865         mknod: Move AC_LIBOBJ invocations to module description.
29866         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
29867         * modules/mknod (configure.ac): ... to here.
29869 2011-05-21  Bruno Haible  <bruno@clisp.org>
29871         mkfifoat: Move AC_LIBOBJ invocations to module description.
29872         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
29873         here...
29874         * modules/mkfifoat (configure.ac): ... to here.
29876 2011-05-21  Bruno Haible  <bruno@clisp.org>
29878         mkfifo: Respect rules for use of AC_LIBOBJ.
29879         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
29880         here...
29881         * modules/mkfifo (configure.ac): ... to here.
29883 2011-05-21  Bruno Haible  <bruno@clisp.org>
29885         mkdtemp: Move AC_LIBOBJ invocations to module description.
29886         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
29887         invocations from here...
29888         * modules/mkdtemp (configure.ac): ... to here.
29890 2011-05-21  Bruno Haible  <bruno@clisp.org>
29892         mkdir: Move AC_LIBOBJ invocations to module description.
29893         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
29894         * modules/mkdir (configure.ac): ... to here.
29896 2011-05-21  Bruno Haible  <bruno@clisp.org>
29898         memset: Move AC_LIBOBJ invocations to module description.
29899         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
29900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
29901         here...
29902         * modules/memset (configure.ac): ... to here.
29904 2011-05-21  Bruno Haible  <bruno@clisp.org>
29906         memrchr: Move AC_LIBOBJ invocations to module description.
29907         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
29908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
29909         here...
29910         * modules/memrchr (configure.ac): ... to here.
29912 2011-05-21  Bruno Haible  <bruno@clisp.org>
29914         mempcpy: Move AC_LIBOBJ invocations to module description.
29915         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
29916         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
29917         here...
29918         * modules/mempcpy (configure.ac): ... to here.
29920 2011-05-21  Bruno Haible  <bruno@clisp.org>
29922         memmove: Move AC_LIBOBJ invocations to module description.
29923         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
29924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
29925         here...
29926         * modules/memmove (configure.ac): ... to here.
29928 2011-05-21  Bruno Haible  <bruno@clisp.org>
29930         memmem*: Move AC_LIBOBJ invocations to module description.
29931         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
29932         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
29933         here...
29934         (gl_FUNC_MEMMEM): ... and here...
29935         * modules/memmem-simple (configure.ac): ... to here.
29936         * modules/memmem (configure.ac): ... and here.
29938 2011-05-21  Bruno Haible  <bruno@clisp.org>
29940         memcpy: Move AC_LIBOBJ invocations to module description.
29941         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
29942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
29943         here...
29944         * modules/memcpy (configure.ac): ... to here.
29946 2011-05-21  Bruno Haible  <bruno@clisp.org>
29948         memcmp: Simplify autoconf macro.
29949         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
29950         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
29951         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
29953 2011-05-21  Bruno Haible  <bruno@clisp.org>
29955         memcmp: Move AC_LIBOBJ invocations to module description.
29956         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
29957         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
29958         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
29959         * modules/memcmp (configure.ac): ... to here.
29960         (Depends-on): Update conditions.
29962 2011-05-21  Bruno Haible  <bruno@clisp.org>
29964         memchr: Respect rules for use of AC_LIBOBJ.
29965         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
29966         invocations from here...
29967         * modules/memchr (configure.ac): ... to here.
29969 2011-05-21  Bruno Haible  <bruno@clisp.org>
29971         mbtowc: Move AC_LIBOBJ invocations to module description.
29972         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
29973         invocations from here...
29974         * modules/mbtowc (configure.ac): ... to here.
29976 2011-05-21  Bruno Haible  <bruno@clisp.org>
29978         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
29979         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
29980         gl_PREREQ_MBSRTOWCS invocations from here...
29981         * modules/mbsrtowcs (configure.ac): ... to here.
29983 2011-05-21  Bruno Haible  <bruno@clisp.org>
29985         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
29986         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
29987         gl_PREREQ_MBSNRTOWCS invocations from here...
29988         * modules/mbsnrtowcs (configure.ac): ... to here.
29990 2011-05-21  Bruno Haible  <bruno@clisp.org>
29992         mbsinit: Move AC_LIBOBJ invocations to module description.
29993         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
29994         invocations from here...
29995         * modules/mbsinit (configure.ac): ... to here.
29997 2011-05-21  Bruno Haible  <bruno@clisp.org>
29999         mbrlen: Move AC_LIBOBJ invocations to module description.
30000         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
30001         invocations from here...
30002         * modules/mbrlen (configure.ac): ... to here.
30004 2011-05-21  Bruno Haible  <bruno@clisp.org>
30006         mbrtowc: Respect rules for use of AC_LIBOBJ.
30007         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
30008         invocations from here...
30009         * modules/mbrtowc (configure.ac): ... to here.
30011 2011-05-21  Bruno Haible  <bruno@clisp.org>
30013         malloc-*: Move AC_LIBOBJ invocations to module description.
30014         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
30015         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
30016         AC_LIBOBJ invocations from here...
30017         * modules/malloc-gnu (configure.ac): ... to here.
30018         * modules/malloc-posix (configure.ac): ... and here.
30020 2011-05-21  Bruno Haible  <bruno@clisp.org>
30022         lstat, openat: Respect rules for use of AC_LIBOBJ.
30023         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
30024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
30025         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
30026         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
30027         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
30028         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
30029         here.
30030         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
30032 2011-05-21  Bruno Haible  <bruno@clisp.org>
30034         lseek: Move AC_LIBOBJ invocations to module description.
30035         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
30036         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
30037         * modules/lseek (configure.ac): ... to here.
30039 2011-05-21  Bruno Haible  <bruno@clisp.org>
30041         linkat: Move AC_LIBOBJ invocations to module description.
30042         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
30043         here...
30044         * modules/linkat (configure.ac): ... to here.
30046 2011-05-21  Bruno Haible  <bruno@clisp.org>
30048         link: Respect rules for use of AC_LIBOBJ.
30049         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
30050         * modules/link (configure.ac): ... to here.
30052 2011-05-21  Bruno Haible  <bruno@clisp.org>
30054         lchown: Move AC_LIBOBJ invocations to module description.
30055         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
30056         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
30057         * modules/lchown (configure.ac): ... to here.
30059 2011-05-21  Bruno Haible  <bruno@clisp.org>
30061         iswctype: Move AC_LIBOBJ invocations to module description.
30062         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
30063         here...
30064         * modules/iswctype (configure.ac): ... to here.
30066 2011-05-21  Bruno Haible  <bruno@clisp.org>
30068         iswblank: Move AC_LIBOBJ invocations to module description.
30069         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
30070         here...
30071         * modules/iswblank (configure.ac): ... to here.
30073 2011-05-21  Bruno Haible  <bruno@clisp.org>
30075         atanl: Move AC_LIBOBJ invocations to module description.
30076         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
30077         * modules/atanl (configure.ac): ... to here.
30079 2011-05-21  Bruno Haible  <bruno@clisp.org>
30081         acosl: Move AC_LIBOBJ invocations to module description.
30082         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
30083         * modules/acosl (configure.ac): ... to here.
30085 2011-05-21  Bruno Haible  <bruno@clisp.org>
30087         asinl: Respect rules for use of AC_LIBOBJ.
30088         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
30089         * modules/asinl (configure.ac): ... to here.
30091 2011-05-21  Bruno Haible  <bruno@clisp.org>
30093         tanl: Move AC_LIBOBJ invocations to module description.
30094         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
30095         * modules/tanl (configure.ac): ... to here.
30097 2011-05-21  Bruno Haible  <bruno@clisp.org>
30099         cosl: Move AC_LIBOBJ invocations to module description.
30100         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
30101         * modules/cosl (configure.ac): ... to here.
30103 2011-05-21  Bruno Haible  <bruno@clisp.org>
30105         sinl: Move AC_LIBOBJ invocations to module description.
30106         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
30107         * modules/sinl (configure.ac): ... to here.
30109 2011-05-21  Bruno Haible  <bruno@clisp.org>
30111         logl: Move AC_LIBOBJ invocations to module description.
30112         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
30113         * modules/logl (configure.ac): ... to here.
30115 2011-05-21  Bruno Haible  <bruno@clisp.org>
30117         expl: Move AC_LIBOBJ invocations to module description.
30118         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
30119         * modules/expl (configure.ac): ... to here.
30121 2011-05-21  Bruno Haible  <bruno@clisp.org>
30123         roundl: Move AC_LIBOBJ invocations to module description.
30124         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
30125         * modules/roundl (configure.ac): ... to here.
30127 2011-05-21  Bruno Haible  <bruno@clisp.org>
30129         round: Move AC_LIBOBJ invocations to module description.
30130         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
30131         * modules/round (configure.ac): ... to here.
30133 2011-05-21  Bruno Haible  <bruno@clisp.org>
30135         roundf: Move AC_LIBOBJ invocations to module description.
30136         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
30137         * modules/roundf (configure.ac): ... to here.
30139 2011-05-21  Bruno Haible  <bruno@clisp.org>
30141         truncl: Move AC_LIBOBJ invocations to module description.
30142         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
30143         * modules/truncl (configure.ac): ... to here.
30145 2011-05-21  Bruno Haible  <bruno@clisp.org>
30147         trunc: Move AC_LIBOBJ invocations to module description.
30148         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
30149         * modules/trunc (configure.ac): ... to here.
30151 2011-05-21  Bruno Haible  <bruno@clisp.org>
30153         truncf: Move AC_LIBOBJ invocations to module description.
30154         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
30155         * modules/truncf (configure.ac): ... to here.
30157 2011-05-21  Bruno Haible  <bruno@clisp.org>
30159         ceill: Move AC_LIBOBJ invocations to module description.
30160         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
30161         * modules/ceill (configure.ac): ... to here.
30163 2011-05-21  Bruno Haible  <bruno@clisp.org>
30165         ceil: Move AC_LIBOBJ invocations to module description.
30166         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
30167         * modules/ceil (configure.ac): ... to here.
30169 2011-05-21  Bruno Haible  <bruno@clisp.org>
30171         ceilf: Move AC_LIBOBJ invocations to module description.
30172         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
30173         * modules/ceilf (configure.ac): ... to here.
30175 2011-05-21  Bruno Haible  <bruno@clisp.org>
30177         floorl: Respect rules for use of AC_LIBOBJ.
30178         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
30179         * modules/floorl (configure.ac): ... to here.
30181 2011-05-21  Bruno Haible  <bruno@clisp.org>
30183         floor: Respect rules for use of AC_LIBOBJ.
30184         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
30185         * modules/floor (configure.ac): ... to here.
30187 2011-05-21  Bruno Haible  <bruno@clisp.org>
30189         floorf: Move AC_LIBOBJ invocations to module description.
30190         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
30191         * modules/floorf (configure.ac): ... to here.
30193 2011-05-20  Bruno Haible  <bruno@clisp.org>
30195         sqrtl: Respect rules for use of AC_LIBOBJ.
30196         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
30197         * modules/sqrtl (configure.ac): ... to here.
30199 2011-05-20  Bruno Haible  <bruno@clisp.org>
30201         ldexpl: Respect rules for use of AC_LIBOBJ.
30202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
30203         * modules/ldexpl (configure.ac): ... to here.
30205 2011-05-20  Bruno Haible  <bruno@clisp.org>
30207         frexpl*: Respect rules for use of AC_LIBOBJ.
30208         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
30209         invocation from here...
30210         * modules/frexpl (configure.ac): ... to here.
30211         * modules/frexpl-nolibm (configure.ac): ... and here.
30213 2011-05-20  Bruno Haible  <bruno@clisp.org>
30215         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
30216         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
30217         invocation from here...
30218         * modules/frexp (configure.ac): ... to here.
30219         * modules/frexp-nolibm (configure.ac): ... and here.
30221 2011-05-20  Bruno Haible  <bruno@clisp.org>
30223         isnan: Respect rules for use of AC_LIBOBJ.
30224         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
30225         invocations here.
30226         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
30227         REPLACE_ISNAN.
30228         * modules/isnand (configure.ac): Likewise.
30229         * modules/isnanl (configure.ac): Likewise.
30231 2011-05-20  Bruno Haible  <bruno@clisp.org>
30233         isnanl*: Respect rules for use of AC_LIBOBJ.
30234         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
30235         invocation from here...
30236         * modules/isnanl (configure.ac): ... to here.
30237         * modules/isnanl-nolibm (configure.ac): ... and here.
30239 2011-05-20  Bruno Haible  <bruno@clisp.org>
30241         isnand*: Move AC_LIBOBJ invocations to module description.
30242         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
30243         invocation from here...
30244         * modules/isnand (configure.ac): ... to here.
30245         * modules/isnand-nolibm (configure.ac): ... and here.
30247 2011-05-20  Bruno Haible  <bruno@clisp.org>
30249         isnanf*: Move AC_LIBOBJ invocations to module description.
30250         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
30251         invocation from here...
30252         * modules/isnanf (configure.ac): ... to here.
30253         * modules/isnanf-nolibm (configure.ac): ... and here.
30255 2011-05-20  Bruno Haible  <bruno@clisp.org>
30257         isnan*: Separate the AC_LIBOBJ invocations.
30258         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
30259         AC_LIBOBJ invocation.
30260         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
30261         here.
30262         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
30263         AC_LIBOBJ invocation.
30264         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
30265         here.
30266         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
30267         AC_LIBOBJ invocation.
30268         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
30269         here.
30270         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
30272 2011-05-08  Bruno Haible  <bruno@clisp.org>
30274         isinf: Move AC_LIBOBJ invocations to module description.
30275         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
30276         * modules/isinf (configure.ac): ... to here.
30278 2011-05-08  Bruno Haible  <bruno@clisp.org>
30280         isfinite: Move AC_LIBOBJ invocations to module description.
30281         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
30282         * modules/isfinite (configure.ac): ... to here.
30284 2011-05-08  Bruno Haible  <bruno@clisp.org>
30286         isblank: Move AC_LIBOBJ invocations to module description.
30287         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
30288         here...
30289         * modules/isblank (configure.ac): ... to here.
30291 2011-05-08  Bruno Haible  <bruno@clisp.org>
30293         isapipe: Move AC_LIBOBJ invocations to module description.
30294         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
30295         gl_PREREQ_ISAPIPE invocations from here...
30296         * modules/isapipe (configure.ac): ... to here.
30297         (Depends-on): Update condition.
30299 2011-05-08  Bruno Haible  <bruno@clisp.org>
30301         ioctl: Move AC_LIBOBJ invocations to module description.
30302         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
30303         invocations from here...
30304         * modules/ioctl (configure.ac): ... to here.
30305         (Depends-on): Update condition.
30307 2011-05-08  Bruno Haible  <bruno@clisp.org>
30309         imaxdiv: Move AC_LIBOBJ invocations to module description.
30310         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
30311         invocations from here...
30312         * modules/imaxdiv (configure.ac): ... to here.
30314 2011-05-08  Bruno Haible  <bruno@clisp.org>
30316         imaxabs: Move AC_LIBOBJ invocations to module description.
30317         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
30318         invocations from here...
30319         * modules/imaxabs (configure.ac): ... to here.
30321 2011-05-08  Bruno Haible  <bruno@clisp.org>
30323         getaddrinfo: Move AC_LIBOBJ invocations to module description.
30324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
30325         AC_LIBOBJ invocations from here...
30326         * modules/getaddrinfo (configure.ac): ... to here.
30327         (Depends-on): Add conditions.
30329 2011-05-08  Bruno Haible  <bruno@clisp.org>
30331         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
30332         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
30333         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
30334         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
30335         (gl_PREREQ_INET_PTON): ... from here.
30336         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
30337         gl_PREREQ_INET_PTON here.
30338         (Depends-on): Update condition.
30340 2011-05-08  Bruno Haible  <bruno@clisp.org>
30342         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
30343         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
30344         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
30345         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
30346         (gl_PREREQ_INET_NTOP): ... from here.
30347         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
30348         gl_PREREQ_INET_NTOP here.
30349         (Depends-on): Update condition.
30351 2011-05-08  Bruno Haible  <bruno@clisp.org>
30353         iconv_open: Move AC_LIBOBJ invocations to module description.
30354         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
30355         AC_LIBOBJ invocations from here...
30356         * modules/iconv_open (configure.ac): ... to here.
30358 2011-05-08  Bruno Haible  <bruno@clisp.org>
30360         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
30361         If module 'iconv_open' is among the main modules and module
30362         'iconv_open-utf' is among the tests dependencies, then
30363         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
30364         return the special iconv_t values. Therefore iconv() and iconv_close()
30365         must support these special iconv_t values, already in lib, not only in
30366         tests.
30367         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
30368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
30369         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
30370         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
30371         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
30372         (Depends-on): Add the dependencies of iconv_open-utf.
30373         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
30374         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
30375         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
30377 2011-05-08  Bruno Haible  <bruno@clisp.org>
30379         group-member: Move AC_LIBOBJ invocations to module description.
30380         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
30381         gl_PREREQ_GROUP_MEMBER invocations from here...
30382         * modules/group-member (configure.ac): ... to here.
30384 2011-05-08  Bruno Haible  <bruno@clisp.org>
30386         grantpt: Move AC_LIBOBJ invocations to module description.
30387         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
30388         invocations from here...
30389         * modules/grantpt (configure.ac): ... to here.
30391 2011-05-08  Bruno Haible  <bruno@clisp.org>
30393         glob: Move AC_LIBOBJ invocations to module description.
30394         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
30395         from here...
30396         * modules/glob (configure.ac): ... to here.
30398 2011-05-08  Bruno Haible  <bruno@clisp.org>
30400         getusershell: Move AC_LIBOBJ invocations to module description.
30401         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
30402         Move AC_LIBOBJ invocation from here...
30403         * modules/getusershell (configure.ac): ... to here.
30404         (Depends-on): Update condition.
30406 2011-05-08  Bruno Haible  <bruno@clisp.org>
30408         gettimeofday: Move AC_LIBOBJ invocations to module description.
30409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
30410         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
30411         gl_PREREQ_GETTIMEOFDAY invocations from here...
30412         * modules/gettimeofday (configure.ac): ... to here.
30414 2011-05-08  Bruno Haible  <bruno@clisp.org>
30416         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
30417         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
30418         just gl_FUNC_TZSET.
30419         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
30420         (gl_FUNC_TZSET_CLOBBER): Remove actions.
30421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
30422         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
30424 2011-05-08  Bruno Haible  <bruno@clisp.org>
30426         getsubopt: Move AC_LIBOBJ invocations to module description.
30427         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
30428         gl_PREREQ_GETSUBOPT invocations from here...
30429         * modules/getsubopt (configure.ac): ... to here.
30431 2011-05-08  Bruno Haible  <bruno@clisp.org>
30433         getpass-gnu: Move AC_LIBOBJ invocations to module description.
30434         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
30435         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
30436         * modules/getpass-gnu (configure.ac): ... to here.
30438 2011-05-08  Bruno Haible  <bruno@clisp.org>
30440         getpass: Move AC_LIBOBJ invocations to module description.
30441         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
30442         gl_PREREQ_GETPASS invocations from here...
30443         * modules/getpass (configure.ac): ... to here.
30445 2011-05-08  Bruno Haible  <bruno@clisp.org>
30447         getpagesize: Move AC_LIBOBJ invocations to module description.
30448         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
30449         from here...
30450         * modules/getpagesize (configure.ac): ... to here.
30452 2011-05-08  Bruno Haible  <bruno@clisp.org>
30454         getopt: Move AC_LIBOBJ invocations to module description.
30455         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
30456         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
30457         invocations from here...
30458         * modules/getopt-gnu (configure.ac): ... to here.
30459         * modules/getopt-posix (configure.ac): ... and here.
30460         (Depends-on): Update condition.
30462 2011-05-08  Bruno Haible  <bruno@clisp.org>
30464         getopt, argp: Respect rules for use of AC_LIBOBJ.
30465         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
30466         (gl_REPLACE_GETOPT_ALWAYS): New macro.
30467         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
30468         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
30470 2011-05-08  Bruno Haible  <bruno@clisp.org>
30472         getlogin_r: Move AC_LIBOBJ invocations to module description.
30473         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
30474         gl_PREREQ_GETLOGIN_R invocations from here...
30475         * modules/getlogin_r (configure.ac): ... to here.
30477 2011-05-08  Bruno Haible  <bruno@clisp.org>
30479         getlogin: Move AC_LIBOBJ invocations to module description.
30480         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
30481         here...
30482         * modules/getlogin (configure.ac): ... to here.
30484 2011-05-08  Bruno Haible  <bruno@clisp.org>
30486         getloadavg: Move AC_LIBOBJ invocations to module description.
30487         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
30488         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
30489         * modules/getloadavg (configure.ac): ... to here.
30491 2011-05-08  Bruno Haible  <bruno@clisp.org>
30493         gethrxtime: Move AC_LIBOBJ invocations to module description.
30494         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
30495         LIB_GETHRXTIME from here...
30496         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
30497         invocations from here...
30498         * modules/gethrxtime (configure.ac): ... to here.
30500 2011-05-08  Bruno Haible  <bruno@clisp.org>
30502         gethostname: Move AC_LIBOBJ invocations to module description.
30503         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
30504         gl_PREREQ_GETHOSTNAME invocations from here...
30505         * modules/gethostname (configure.ac): ... to here.
30507 2011-05-08  Bruno Haible  <bruno@clisp.org>
30509         getgroups: Move AC_LIBOBJ invocations to module description.
30510         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
30511         here...
30512         * modules/getgroups (configure.ac): ... to here.
30514 2011-05-08  Bruno Haible  <bruno@clisp.org>
30516         getdtablesize: Move AC_LIBOBJ invocations to module description.
30517         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
30518         invocation from here...
30519         * modules/getdtablesize (configure.ac): ... to here.
30521 2011-05-08  Bruno Haible  <bruno@clisp.org>
30523         getdomainname: Move AC_LIBOBJ invocations to module description.
30524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
30525         gl_PREREQ_GETDOMAINNAME invocations from here...
30526         * modules/getdomainname (configure.ac): ... to here.
30528 2011-05-08  Bruno Haible  <bruno@clisp.org>
30530         getline: Move AC_LIBOBJ invocations to module description.
30531         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
30532         invocations from here...
30533         * modules/getline (configure.ac): ... to here.
30535 2011-05-08  Bruno Haible  <bruno@clisp.org>
30537         getline: Simplify.
30538         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
30539         It's already handled through the module dependency.
30541 2011-05-08  Bruno Haible  <bruno@clisp.org>
30543         getdelim: Move AC_LIBOBJ invocations to module description.
30544         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
30545         and gl_PREREQ_GETDELIM invocations from here...
30546         * modules/getdelim (configure.ac): ... to here.
30547         (Depends-on): Fix condition.
30549 2011-05-08  Bruno Haible  <bruno@clisp.org>
30551         getcwd: Move AC_LIBOBJ invocations to module description.
30552         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
30553         invocations from here...
30554         * modules/getcwd (configure.ac): ... to here.
30556 2011-05-08  Bruno Haible  <bruno@clisp.org>
30558         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
30559         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
30560         here...
30561         * modules/getcwd-lgpl (configure.ac): ... to here.
30563 2011-05-07  Bruno Haible  <bruno@clisp.org>
30565         crypto/gc: Move AC_LIBOBJ invocations to module description.
30566         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
30567         * modules/crypto/gc (configure.ac): ... to here.
30569 2011-05-07  Bruno Haible  <bruno@clisp.org>
30571         fwriting: Move AC_LIBOBJ invocations to module description.
30572         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
30573         here...
30574         * modules/fwriting (configure.ac): ... to here.
30576 2011-05-07  Bruno Haible  <bruno@clisp.org>
30578         fwritable: Move AC_LIBOBJ invocations to module description.
30579         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
30580         here...
30581         * modules/fwritable (configure.ac): ... to here.
30583 2011-05-07  Bruno Haible  <bruno@clisp.org>
30585         futimens: Move AC_LIBOBJ invocations to module description.
30586         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
30587         here...
30588         * modules/futimens (configure.ac): ... to here.
30590 2011-05-07  Bruno Haible  <bruno@clisp.org>
30592         ftruncate: Move AC_LIBOBJ invocations to module description.
30593         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
30594         gl_PREREQ_FTRUNCATE invocations from here...
30595         * modules/ftruncate (configure.ac): ... to here.
30597 2011-05-07  Bruno Haible  <bruno@clisp.org>
30599         fsync: Move AC_LIBOBJ invocations to module description.
30600         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
30601         invocations from here...
30602         * modules/fsync (configure.ac): ... to here.
30604 2011-05-07  Bruno Haible  <bruno@clisp.org>
30606         fsusage: Move AC_LIBOBJ invocations to module description.
30607         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
30608         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
30609         * modules/fsusage (configure.ac): ... to here.
30611 2011-05-07  Bruno Haible  <bruno@clisp.org>
30613         freopen: Move AC_LIBOBJ invocations to module description.
30614         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
30615         invocations from here...
30616         * modules/freopen (configure.ac): ... to here.
30618 2011-05-07  Bruno Haible  <bruno@clisp.org>
30620         free: Move AC_LIBOBJ invocations to module description.
30621         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
30622         invocations from here...
30623         * modules/free (configure.ac): ... to here.
30625 2011-05-07  Bruno Haible  <bruno@clisp.org>
30627         freadable: Move AC_LIBOBJ invocations to module description.
30628         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
30629         here...
30630         * modules/freadable (configure.ac): ... to here.
30632 2011-05-07  Bruno Haible  <bruno@clisp.org>
30634         fpurge: Move AC_LIBOBJ invocations to module description.
30635         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
30636         invocations from here...
30637         * modules/fpurge (configure.ac): ... to here.
30639 2011-05-07  Bruno Haible  <bruno@clisp.org>
30641         fpending: Move AC_LIBOBJ invocations to module description.
30642         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
30643         gl_FUNC_FPENDING.
30644         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
30645         invocations from here...
30646         * modules/fpending (configure.ac): ... to here.
30648 2011-05-07  Bruno Haible  <bruno@clisp.org>
30650         fopen: Move AC_LIBOBJ invocations to module description.
30651         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
30652         invocations from here...
30653         * modules/fopen (configure.ac): ... to here.
30655 2011-05-07  Bruno Haible  <bruno@clisp.org>
30657         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
30658         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
30659         gl_FUNC_FNMATCH_POSIX.
30660         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
30661         invocations from here...
30662         * modules/fnmatch (configure.ac): ... to here.
30663         * modules/fnmatch-gnu (configure.ac): ... and here.
30665 2011-05-07  Bruno Haible  <bruno@clisp.org>
30667         flock: Move AC_LIBOBJ invocations to module description.
30668         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
30669         invocations from here...
30670         * modules/flock (configure.ac): ... to here.
30672 2011-05-07  Bruno Haible  <bruno@clisp.org>
30674         fileblocks: Move AC_LIBOBJ invocations to module description.
30675         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
30676         gl_PREREQ_FILEBLOCKS invocations from here...
30677         * modules/fileblocks (configure.ac): ... to here.
30679 2011-05-06  Bruno Haible  <bruno@clisp.org>
30681         fflush: Move AC_LIBOBJ invocations to module description.
30682         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
30683         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
30684         invocations from here...
30685         * modules/fflush (configure.ac): ... to here.
30687 2011-05-06  Bruno Haible  <bruno@clisp.org>
30689         fdopendir: Move AC_LIBOBJ invocations to module description.
30690         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
30691         here...
30692         * modules/fdopendir (configure.ac): ... to here.
30693         (Depends-on): Improve conditions.
30695 2011-05-06  Bruno Haible  <bruno@clisp.org>
30697         _Exit: Move AC_LIBOBJ invocations to module description.
30698         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
30699         invocations from here...
30700         * modules/_Exit (configure.ac): ... to here.
30702 2011-05-21  Bruno Haible  <bruno@clisp.org>
30704         euidaccess: Respect rules for use of AC_LIBOBJ.
30705         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
30706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
30707         from here...
30708         * modules/euidaccess (configure.ac): ... to here.
30710 2011-05-06  Bruno Haible  <bruno@clisp.org>
30712         error: Move AC_LIBOBJ invocations to module description.
30713         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
30714         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
30715         invocations from here...
30716         * modules/error (configure.ac): ... to here.
30718 2011-05-06  Bruno Haible  <bruno@clisp.org>
30720         duplocale: Move AC_LIBOBJ invocations to module description.
30721         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
30722         gl_PREREQ_DUPLOCALE invocations from here...
30723         * modules/duplocale (configure.ac): ... to here.
30725 2011-05-05  Bruno Haible  <bruno@clisp.org>
30727         dirfd: Move AC_LIBOBJ invocations to module description.
30728         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
30729         gl_FUNC_DIRFD.
30730         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
30731         here...
30732         * modules/dirfd (configure.ac): ... to here.
30733         (Depends-on): Fix condition.
30735 2011-05-05  Bruno Haible  <bruno@clisp.org>
30737         chown: Respect rules for use of AC_LIBOBJ.
30738         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
30739         * modules/chown (configure.ac): ... to here.
30741 2011-05-05  Bruno Haible  <bruno@clisp.org>
30743         chdir-long: Move AC_LIBOBJ invocations to module description.
30744         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
30745         gl_PREREQ_CHDIR_LONG invocations from here...
30746         * modules/chdir-long (configure.ac): ... to here.
30748 2011-05-05  Bruno Haible  <bruno@clisp.org>
30750         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
30751         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
30752         from here...
30753         * modules/canonicalize-lgpl (configure.ac): ... to here.
30755 2011-05-05  Bruno Haible  <bruno@clisp.org>
30757         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
30758         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
30759         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
30760         REPLACE_CALLOC.
30761         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
30762         * modules/calloc-gnu (configure.ac): Likewise.
30764 2011-05-05  Bruno Haible  <bruno@clisp.org>
30766         btowc: Move AC_LIBOBJ invocations to module description.
30767         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
30768         invocations from here...
30769         * modules/btowc (configure.ac): ... to here.
30771 2011-05-21  Bruno Haible  <bruno@clisp.org>
30773         atexit: Move AC_LIBOBJ invocations to module description.
30774         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
30775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
30776         here...
30777         * modules/atexit (configure.ac): ... to here.
30779 2011-05-05  Bruno Haible  <bruno@clisp.org>
30781         atoll: Move AC_LIBOBJ invocations to module description.
30782         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
30783         invocations from here...
30784         * modules/atoll (configure.ac): ... to here.
30786 2011-05-05  Bruno Haible  <bruno@clisp.org>
30788         argz: Move AC_LIBOBJ invocations to module description.
30789         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
30790         * modules/argz (configure.ac): ... to here.
30792 2011-05-05  Bruno Haible  <bruno@clisp.org>
30794         alphasort: Move AC_LIBOBJ invocations to module description.
30795         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
30796         gl_PREREQ_ALPHASORT invocations from here...
30797         * modules/alphasort (configure.ac): ... to here.
30799 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30801         verify: new macro verify_expr; verify_true deprecated
30802         * NEWS: Mention this.
30803         * doc/verify.texi (Compile-time Assertions): Document this.
30804         * lib/verify.h (verify_true): Deprecate.
30805         (verify_expr): New macro.
30806         * tests/test-verify.c (function): Test verify_expr.
30808 2011-06-14  Jim Meyering  <meyering@redhat.com>
30810         init.sh: give more portable redirection-related advice in a comment
30811         * tests/init.sh (stderr_fileno_): Update the advice in comments.
30812         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
30813         for lots of discussion.  Stefano Lattarini suggested the solution
30814         of putting "9>&2" after the command.  Reported by Bruno Haible.
30816 2011-06-13  Bruno Haible  <bruno@clisp.org>
30818         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
30819         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
30820         'none'.
30822 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
30824         ftoastr: use strtof only if HAVE_STRTOF
30825         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
30826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
30827         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
30828         * modules/ftoastr (configure.ac): Check for strtof.
30830 2011-06-13  Bruno Haible  <bruno@clisp.org>
30832         gnulib-tool: Addendum to 2011-06-08 commit.
30833         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
30834         and --witness-c-macro have been given, augment AM_CPPFLAGS.
30836 2011-06-13  Bruno Haible  <bruno@clisp.org>
30838         fseeko: Provide a non-inline replacement of fseek().
30839         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
30840         * modules/fseeko (Depends-on): Add fseek.
30841         * modules/fseek (License): Change to LGPLv2+.
30843 2011-06-13  Bruno Haible  <bruno@clisp.org>
30845         ftello: Provide a non-inline replacement of ftell().
30846         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
30847         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
30848         not have ftello() (such as on mingw).
30849         * modules/ftello (Depends-on): Add ftell.
30850         * modules/ftell (License): Change to LGPLv2+.
30852 2011-05-07  Bruno Haible  <bruno@clisp.org>
30854         ftell: Move AC_LIBOBJ invocations to module description.
30855         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
30856         * modules/ftell (configure.ac): ... to here.
30858 2011-05-07  Bruno Haible  <bruno@clisp.org>
30860         ftello: Respect rules for use of AC_LIBOBJ.
30861         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
30862         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
30863         here...
30864         * modules/ftello (configure.ac): ... to here.
30866 2011-05-07  Bruno Haible  <bruno@clisp.org>
30868         fseeko: Simplify.
30869         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
30870         (gl_FUNC_FSEEKO): Inline it here.
30872 2011-05-07  Bruno Haible  <bruno@clisp.org>
30874         fseek: Move AC_LIBOBJ invocations to module description.
30875         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
30876         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
30877         * modules/fseek (configure.ac): ... to here.
30879 2011-05-07  Bruno Haible  <bruno@clisp.org>
30881         fseek: Respect rules for use of AC_LIBOBJ.
30882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
30883         here...
30884         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
30886 2011-05-07  Bruno Haible  <bruno@clisp.org>
30888         fseeko: Respect rules for use of AC_LIBOBJ.
30889         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
30890         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
30891         here...
30892         * modules/fseeko (configure.ac): ... to here.
30894 2011-06-13  Bruno Haible  <bruno@clisp.org>
30896         gnulib-tool: Allow comments in the 'Depends-on' section.
30897         * doc/gnulib.texi (Module description): Mention comment syntax in the
30898         Depends-on section.
30899         * gnulib-tool (func_get_dependencies): Filter out comment lines.
30901 2011-06-13  Bruno Haible  <bruno@clisp.org>
30903         file-set.h: guard __attibute__ use, now that it's not always defined
30904         * lib/file-set.h (record_file): Use __attribute__ only with compiler
30905         versions that support it.  This fixes a coreutils build failure with
30906         the vendor cc on HP-UX 11.31.
30908 2011-06-12  Bruno Haible  <bruno@clisp.org>
30910         acl: Add support for HP-UX >= 11.11 JFS ACLs.
30911         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
30912         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
30913         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
30914         (acl, aclsort): New declarations.
30915         (aclv_nontrivial): New declaration.
30916         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
30917         (file_has_acl): Read also the second kind of HP-UX ACLs.
30918         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
30919         kind of HP-UX ACLs if the first kind fails.
30920         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
30921         second kind of HP-UX ACLs.
30922         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
30923         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
30924         agree.
30925         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
30926         hpuxjfs.
30927         Handle hpuxjfs.
30928         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
30929         hpuxjfs.
30930         Handle hpuxjfs.
30931         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
30932         (func_test_same_acls): Use both lsacl and getacl.
30933         Handle hpuxjfs.
30934         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
30935         (func_test_same_acls): Use both lsacl and getacl.
30936         Handle hpuxjfs.
30938 2011-06-12  Bruno Haible  <bruno@clisp.org>
30940         acl: Complete the 2010-08-10 fix.
30941         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
30942         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
30943         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
30944         explicitly.
30945         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
30946         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
30948 2011-06-12  Bruno Haible  <bruno@clisp.org>
30950         spawn-pipe tests: Comments.
30951         * tests/test-spawn-pipe-child.c (main): Update comment.
30952         Reported by James Youngman <jay@gnu.org>.
30954 2011-06-11  James Youngman  <jay@gnu.org>
30956         New module 'stat-size'.
30957         * modules/stat-size: New module.  Provides macros for accessing
30958         file size information in instances of struct stat.  Depends on the
30959         fileblocks module because it calls st_blocks.
30960         * lib/stat-size.h: New file, adapted from coreutils' system.h.
30961         * doc/gnulib.texi: Include stat-size.texi.
30962         * doc/stat-size.texi: Documentation for this module.
30963         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
30964         * m4/fileblocks.m4: Mention that stat-size depends on the call to
30965         AC_STRUCT_ST_BLOCKS.
30967 2011-06-09  Bruno Haible  <bruno@clisp.org>
30969         thread: Support pthreads-win32.
30970         * lib/glthread/thread.h (gl_thread_self): Define differently on
30971         pthreads-win32.
30972         (gl_null_thread): New declaration.
30973         (gl_thread_self_pointer): New macro.
30974         * lib/glthread/thread.c (gl_null_thread): New constant.
30975         * tests/test-lock.c: Use gl_thread_self_pointer instead of
30976         gl_thread_self.
30977         * tests/test-tls.c: Likewise.
30978         Suggested by Paul Eggert. Reported by Eric Blake.
30980 2011-06-09  Bruno Haible  <bruno@clisp.org>
30982         thread: Fix confusion between NULL and 0.
30983         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
30984         Reported by Paul Eggert.
30986 2011-06-09  Bruno Haible  <bruno@clisp.org>
30988         spawn-pipe tests: Avoid test failure on HP-UX 11.
30989         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
30990         is closed.
30992 2011-06-09  Bruno Haible  <bruno@clisp.org>
30994         acl tests: Fix compilation error on HP-UX 11.
30995         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
30997 2011-06-09  Bruno Haible  <bruno@clisp.org>
30999         rmdir: Avoid test failure on HP-UX 10.20.
31000         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
31001         EEXIST.
31003 2011-06-08  Eric Blake  <eblake@redhat.com>
31005         perror: fix test on mingw
31006         * modules/perror-tests (Depends-on): Add dup2.
31008         strerror_r-posix: fix on MacOS
31009         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
31010         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
31011         logic bug.
31012         * lib/strerror_r.c (strerror_r): Fix the bug.
31013         * lib/strerror.c (strerror): Likewise.
31014         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
31015         problem.
31016         * doc/posix-functions/strerror.texi (strerror): Likewise.
31017         * doc/posix-functions/perror.texi (perror): Likewise.
31018         * tests/test-strerror.c (main): Enhance test.
31019         * tests/test-strerror_r.c (main): Likewise.
31021 2011-06-08  Bruno Haible  <bruno@clisp.org>
31023         gnulib-tool: Better isolation between different gnulib-tool invocations.
31024         * gnulib-tool: New option --witness-c-macro.
31025         (witness_c_macro): New variable.
31026         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
31027         AM_CPPFLAGS define it as a C macro.
31028         (func_emit_tests_Makefile_am): Likewise.
31029         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
31030         read it from there.
31031         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
31032         m4_define, not AC_DEFUN.
31033         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
31034         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
31035         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
31036         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
31037         s|...|...|, to substitute the values of the GNULIB_* module indicator
31038         variables.
31039         * modules/dirent (Makefile.am): Likewise.
31040         * modules/fcntl-h (Makefile.am): Likewise.
31041         * modules/iconv-h (Makefile.am): Likewise.
31042         * modules/langinfo (Makefile.am): Likewise.
31043         * modules/locale (Makefile.am): Likewise.
31044         * modules/math (Makefile.am): Likewise.
31045         * modules/netdb (Makefile.am): Likewise.
31046         * modules/poll-h (Makefile.am): Likewise.
31047         * modules/pty (Makefile.am): Likewise.
31048         * modules/search (Makefile.am): Likewise.
31049         * modules/signal (Makefile.am): Likewise.
31050         * modules/spawn (Makefile.am): Likewise.
31051         * modules/stdio (Makefile.am): Likewise.
31052         * modules/stdlib (Makefile.am): Likewise.
31053         * modules/string (Makefile.am): Likewise.
31054         * modules/sys_ioctl (Makefile.am): Likewise.
31055         * modules/sys_select (Makefile.am): Likewise.
31056         * modules/sys_socket (Makefile.am): Likewise.
31057         * modules/sys_stat (Makefile.am): Likewise.
31058         * modules/sys_times (Makefile.am): Likewise.
31059         * modules/sys_utsname (Makefile.am): Likewise.
31060         * modules/sys_wait (Makefile.am): Likewise.
31061         * modules/termios (Makefile.am): Likewise.
31062         * modules/time (Makefile.am): Likewise.
31063         * modules/unistd (Makefile.am): Likewise.
31064         * modules/wchar (Makefile.am): Likewise.
31066 2011-06-08  Eric Blake  <eblake@redhat.com>
31068         strerror: simplify replacement
31069         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
31070         * modules/strerror (configure.ac): No prereqs needed here...
31071         * modules/strerror-override (configure.ac): ...but this needs it.
31072         (Files): Add file for needed prereq macro.
31074 2011-06-08  Bruno Haible  <bruno@clisp.org>
31076         strerror_r-posix: Tweaks.
31077         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
31078         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
31079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
31080         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
31081         (gl_FUNC_STRERROR_R): ... to here.
31082         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
31084 2011-06-07  Eric Blake  <eblake@redhat.com>
31086         perror: document fixed bugs
31087         * doc/posix-functions/perror.texi (perror): Document recent
31088         patches.
31090 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
31092         stat-time: get_stat_birthtime failure is better-defined
31093         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
31094         return a timestamp whose tv_sec and tv_nsec values are both -1.
31095         Previously, the spec said only that the tv_nsec value was negative.
31096         This upward-compatible change simplifies GNU tar a bit.
31098 2011-06-07  Eric Blake  <eblake@redhat.com>
31100         strerror_r-posix: work around cygwin 1.7.9
31101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
31102         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
31103         bug without replacing strerror_r.
31104         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
31105         strerror_r is buggy, but without requiring strerror_r compilation.
31106         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
31108         test-perror: relax test to ignore cygwin bug
31109         * tests/test-perror2.c (main): Relax test on requiring detection
31110         of stream errors, and use unbuffered stream.
31111         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
31112         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
31113         * doc/posix-functions/fputc.texi (fputc): Likewise.
31114         * doc/posix-functions/fputs.texi (fputs): Likewise.
31115         * doc/posix-functions/fputws.texi (fputws): Likewise.
31116         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
31117         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
31118         * doc/posix-functions/getopt.texi (getopt): Likewise.
31119         * doc/posix-functions/perror.texi (perror): Likewise.
31120         * doc/posix-functions/printf.texi (printf): Likewise.
31121         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
31122         * doc/posix-functions/psignal.texi (psignal): Likewise.
31123         * doc/posix-functions/putc.texi (putc): Likewise.
31124         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
31125         Likewise.
31126         * doc/posix-functions/putchar.texi (putchar): Likewise.
31127         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
31128         Likewise.
31129         * doc/posix-functions/puts.texi (puts): Likewise.
31130         * doc/posix-functions/putwc.texi (putwc): Likewise.
31131         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31132         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31133         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31134         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
31135         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31136         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31137         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31138         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
31140 2011-05-22  Bruno Haible  <bruno@clisp.org>
31142         strerror: Move AC_LIBOBJ invocations to module description.
31143         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
31144         gl_PREREQ_STRERROR invocations from here...
31145         * modules/strerror (configure.ac): ... to here.
31147 2011-05-21  Bruno Haible  <bruno@clisp.org>
31149         perror: Use common idiom.
31150         * modules/perror (configure.ac): Reorder statements.
31152 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
31154         tests: fix usage message in 'mktempd_'
31155         * tests/init.sh (mktempd_): In the usage message, use literal
31156         'mktempd_', not '$ME' (which is even undefined), as the name of
31157         the subroutine.
31159 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
31161         tests init: new function 'fatal_', for hard errors
31162         Before this patch, the only way offered by tests/init.sh to
31163         properly signal a hard error was the `framework_failure_'
31164         function.  But the error message issued by that function,
31165         as its name would suggest, refers to a set-up failure in the
31166         testsuite, while hard errors can obviously also be due to
31167         other reasons.  The best way to fix this inconsistency is to
31168         introduce a new function with a more general error message.
31169         * tests/init.sh (fatal_): New function.
31171 2011-06-06  Eric Blake  <eblake@redhat.com>
31173         canonicalize-lgpl: use common idiom
31174         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
31175         over newer POSIX -Rf.
31176         Reported by Bruno Haible.
31178         canonicalize-lgpl: work around AIX realpath bug
31179         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
31180         * doc/posix-functions/realpath.texi (realpath): Document it.
31181         Reported by Bruno Haible.
31183         strerror: work around FreeBSD bug
31184         * lib/strerror.c (strerror): Special case 0.
31185         Reported by Bruno Haible.
31187         strerror-override: avoid bloating errno module
31188         * modules/errno (Files, configure.ac): Move replacement strings...
31189         * modules/strerror-override: ...to new module.
31190         * modules/strerror (Depends-on): Add strerror-override.
31191         * modules/strerror_r-posix (Depends-on): Likewise.
31192         * MODULES.html.sh: Document new module.
31193         Reported by Bruno Haible.
31195 2011-06-06  Bruno Haible  <bruno@clisp.org>
31197         spawn-pipe tests: Rename program.
31198         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
31199         * tests/test-spawn-pipe-child.c: Update comment.
31200         * tests/test-spawn-pipe.sh: Update.
31201         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
31203         spawn-pipe tests: Link the child program only against libc.
31204         * tests/test-spawn-pipe-child.c: New file, extracted from
31205         tests/test-spawn-pipe.c.
31206         (main): Expect only one argument.
31207         (is_open): New function, copied from tests/test-pipe.c.
31208         * tests/test-spawn-pipe.c: Don't include <errno.h>.
31209         (child_main): Remove function.
31210         (test_pipe): Pass only one argument to the child program.
31211         (main): Remove child process code. Expect the child program's name as
31212         first argument.
31213         * tests/test-spawn-pipe.sh: Pass the child program's name as first
31214         argument.
31215         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
31216         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
31217         test-spawn-pipe-child against no libraries.
31219 2011-06-06  Bruno Haible  <bruno@clisp.org>
31221         careadlinkat: Avoid mismatch between ssize_t and int.
31222         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
31223         * lib/careadlinkat.c (careadlinkatcwd): Define always.
31225 2011-06-06  Jim Meyering  <meyering@redhat.com>
31227         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
31228         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
31229         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
31231 2011-06-05  Bruno Haible  <bruno@clisp.org>
31233         ansi-c++-opt: Interoperability with libtool.
31234         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
31235         set the variable to "no", not to ":".
31236         * NEWS: Mention the change.
31238 2011-06-05  Bruno Haible  <bruno@clisp.org>
31240         acl: Fix test failure on AIX 7.
31241         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
31242         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
31244 2011-06-05  Bruno Haible  <bruno@clisp.org>
31246         pipe-filter-ii: Fix test failure on AIX and IRIX.
31247         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
31248         with EAGAIN, retry with a smaller buffer size.
31250 2011-06-05  Bruno Haible  <bruno@clisp.org>
31252         localename: Fix link dependencies.
31253         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
31254         * modules/localename-tests (Makefile.am): Link test-localename with
31255         $(LIBTHREAD).
31257 2011-06-05  Bruno Haible  <bruno@clisp.org>
31259         error: Avoid gcc warning.
31260         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
31262 2011-06-05  Bruno Haible  <bruno@clisp.org>
31264         unsetenv: Avoid gcc warning.
31265         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
31267 2011-06-05  Bruno Haible  <bruno@clisp.org>
31269         setenv: Avoid gcc warning.
31270         * lib/setenv.c (setenv): Provide declaration if system lacks it.
31272 2011-06-05  Bruno Haible  <bruno@clisp.org>
31274         sys_select: Ensure memset is declared also on AIX 7.
31275         * lib/sys_select.in.h: Include <string.h> also on AIX.
31276         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
31277         self-contained also on AIX 7.1.
31279 2011-06-04  Jim Meyering  <meyering@redhat.com>
31281         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
31282         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
31283         function name, "error".
31284         (_gl_translatable_diag_func_re): New configurable variable.
31286 2011-06-04  Bruno Haible  <bruno@clisp.org>
31288         getopt: Avoid gcc warning.
31289         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
31291 2011-06-04  Bruno Haible  <bruno@clisp.org>
31293         strerror_r: Fix comments.
31294         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
31295         commit.
31297 2011-06-04  Bruno Haible  <bruno@clisp.org>
31299         perror: Fix compilation error.
31300         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
31301         Undefine fprintf, not sprintf.
31302         * modules/perror (Depends-on): Remove intprops, verify.
31304 2011-06-04  Bruno Haible  <bruno@clisp.org>
31306         setlocale: Enable replacement on Cygwin 1.5.
31307         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
31308         Cygwin 1.5.x.
31309         * doc/posix-functions/setlocale.texi: Mention that the problem with the
31310         LC_CTYPE category also exists on Cygwin 1.5.x.
31312 2011-06-04  Bruno Haible  <bruno@clisp.org>
31314         strerror-override: Don't disable symbol renamings.
31315         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
31316         * lib/strerror-override.c: Include config.h.
31317         (strerror_override): Don't undefine.
31319 2011-06-03  Bruno Haible  <bruno@clisp.org>
31321         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
31322         * lib/localename.h: Update copyright header.
31323         * lib/localename.c: Likewise.
31324         * lib/relocatable.h: Likewise.
31325         * lib/relocatable.c: Likewise.
31327 2011-06-02  Bruno Haible  <bruno@clisp.org>
31329         doc: Fix a module name.
31330         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
31332 2011-06-02  Bruno Haible  <bruno@clisp.org>
31334         pipe2: Remove dependency on 'nonblocking' module.
31335         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
31336         O_NONBLOCK is defined by gnulib.
31337         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
31338         is zero.
31339         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
31340         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
31341         defined by gnulib.
31342         (get_nonblocking_flag): New function.
31343         (main): Test O_NONBLOCK flag only if it is nonzero.
31344         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
31346 2011-06-03  Jim Meyering  <meyering@redhat.com>
31348         maint: three new prohibit-header-without-use rules
31349         Prohibit use of cloexec.h, posixver.h, same.h without use.
31350         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
31351         (sc_prohibit_posixver_without_use): Likewise.
31352         (sc_prohibit_same_without_use): Likewise.
31354 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31356         allocator: 'die' routine is now given requested size
31357         * lib/allocator.h (struct allocator.die): New size arg.
31358         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
31359         If the actual problem is an ssize_t limitation, not a size_t or
31360         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
31362 2011-06-01  Eric Blake  <eblake@redhat.com>
31364         strerror: drop strerror_r dependency
31365         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
31366         * lib/strerror-override.c (strerror_override): ...to new file.
31367         * lib/strerror-override.h: Add prototype.
31368         * lib/strerror-impl.h: Delete.
31369         * lib/strerror.c (strerror): New implementation.
31370         * modules/errno (Files): Add new files.
31371         (configure.ac): Compile new file as appropriate.
31372         * modules/strerror (Files): Drop unused file.
31373         (Depends-on): Drop strerror_r-posix.
31374         * MODULES.html.sh: Document strerror_r-posix.
31375         Requested by Sam Steingold.
31377         perror: call strerror_r directly
31378         * modules/perror (Files): Drop strerror-impl.h.
31379         * lib/perror.c (perror): Use our own stack buffer, rather than
31380         calling a wrapper that uses static storage.
31381         * doc/posix-functions/perror.texi (perror): Document a limitation
31382         of our replacement.
31384         strerror_r: fix includes for FreeBSD
31385         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
31386         since we use abort on some platforms.
31387         Reported by Matthias Bolte.
31389 2011-05-31  Bruno Haible  <bruno@clisp.org>
31391         Fix link errors in tests: openat-die uses gettext-h.
31392         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
31393         against $(LIBINTL).
31394         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
31395         against $(LIBINTL).
31396         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
31397         $(LIBINTL).
31398         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
31399         against $(LIBINTL).
31400         * modules/linkat-tests (Makefile.am): Link test-linkat against
31401         $(LIBINTL).
31402         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
31403         $(LIBINTL).
31404         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
31405         against $(LIBINTL).
31406         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
31407         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
31408         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
31409         $(LIBINTL).
31410         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
31411         $(LIBINTL).
31412         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
31413         $(LIBINTL).
31414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31416 2011-05-31  Bruno Haible  <bruno@clisp.org>
31418         Fix link errors in tests: wait-process uses gettext-h.
31419         * modules/nonblocking-pipe-tests (Makefile.am): Set
31420         test_nonblocking_pipe_main_LDADD.
31421         * modules/nonblocking-socket-tests (Makefile.am): Link
31422         test-nonblocking-socket-main against $(LIBINTL).
31423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31425 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31427         assert-h: work around 'verify' incompatibility
31428         * lib/verify.h: Use @...@ directives, not ifdef.
31429         * modules/assert-h (assert.h): Implement the directives.
31430         (assert.h): Substitute the symbol-prefix more consistently.
31432 2011-05-29  Jim Meyering  <meyering@redhat.com>
31434         trim: remove three superfluous assignments
31435         * lib/trim.c (trim2): Remove three superfluous assignments
31436         and correct brace positioning.
31438 2011-05-29  Bruno Haible  <bruno@clisp.org>
31440         wctype-h: Avoid namespace pollution on Solaris 2.6.
31441         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
31442         identifiers.
31443         * doc/posix-headers/wctype.texi: Mention the problem.
31444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31446 2011-05-28  Jim Meyering  <meyering@redhat.com>
31448         parse-datetime.y: accommodate -Wstrict-overflow
31449         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
31450         placate -Wstrict-overflow.
31452         trim: avoid a warning from -O2 -Wstrict-overflow
31453         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
31455 2011-05-29  Bruno Haible  <bruno@clisp.org>
31457         gnulib-tool: Fix bug in yesterday's commit.
31458         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
31459         twice.
31461 2011-05-29  Bruno Haible  <bruno@clisp.org>
31463         Allow multiple gnulib generated include files to be combined.
31464         * gnulib-tool (func_compute_include_guard_prefix): New function.
31465         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
31466         ${gl_include_guard_prefix} references.
31467         (func_import, func_create_testdir): Invoke
31468         func_compute_include_guard_prefix.
31469         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
31470         * lib/ctype.in.h: Likewise.
31471         * lib/dirent.in.h: Likewise.
31472         * lib/errno.in.h: Likewise.
31473         * lib/fcntl.in.h: Likewise.
31474         * lib/float.in.h: Likewise.
31475         * lib/getopt.in.h: Likewise.
31476         * lib/iconv.in.h: Likewise.
31477         * lib/langinfo.in.h: Likewise.
31478         * lib/locale.in.h: Likewise.
31479         * lib/math.in.h: Likewise.
31480         * lib/netdb.in.h: Likewise.
31481         * lib/netinet_in.in.h: Likewise.
31482         * lib/poll.in.h: Likewise.
31483         * lib/pthread.in.h: Likewise.
31484         * lib/pty.in.h: Likewise.
31485         * lib/sched.in.h: Likewise.
31486         * lib/se-selinux.in.h: Likewise.
31487         * lib/search.in.h: Likewise.
31488         * lib/signal.in.h: Likewise.
31489         * lib/spawn.in.h: Likewise.
31490         * lib/stdarg.in.h: Likewise.
31491         * lib/stddef.in.h: Likewise.
31492         * lib/stdint.in.h: Likewise.
31493         * lib/stdio.in.h: Likewise.
31494         * lib/stdlib.in.h: Likewise.
31495         * lib/string.in.h: Likewise.
31496         * lib/strings.in.h: Likewise.
31497         * lib/sys_file.in.h: Likewise.
31498         * lib/sys_ioctl.in.h: Likewise.
31499         * lib/sys_select.in.h: Likewise.
31500         * lib/sys_socket.in.h: Likewise.
31501         * lib/sys_stat.in.h: Likewise.
31502         * lib/sys_time.in.h: Likewise.
31503         * lib/sys_times.in.h: Likewise.
31504         * lib/sys_uio.in.h: Likewise.
31505         * lib/sys_utsname.in.h: Likewise.
31506         * lib/sys_wait.in.h: Likewise.
31507         * lib/sysexits.in.h: Likewise.
31508         * lib/termios.in.h: Likewise.
31509         * lib/time.in.h: Likewise.
31510         * lib/unistd.in.h: Likewise.
31511         * lib/wchar.in.h: Likewise.
31512         * lib/wctype.in.h: Likewise.
31513         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
31514         * modules/ctype (Makefile.am): Likewise.
31515         * modules/dirent (Makefile.am): Likewise.
31516         * modules/errno (Makefile.am): Likewise.
31517         * modules/fcntl-h (Makefile.am): Likewise.
31518         * modules/float (Makefile.am): Likewise.
31519         * modules/getopt-posix (Makefile.am): Likewise.
31520         * modules/iconv-h (Makefile.am): Likewise.
31521         * modules/langinfo (Makefile.am): Likewise.
31522         * modules/locale (Makefile.am): Likewise.
31523         * modules/math (Makefile.am): Likewise.
31524         * modules/netdb (Makefile.am): Likewise.
31525         * modules/netinet_in (Makefile.am): Likewise.
31526         * modules/poll-h (Makefile.am): Likewise.
31527         * modules/pthread (Makefile.am): Likewise.
31528         * modules/pty (Makefile.am): Likewise.
31529         * modules/sched (Makefile.am): Likewise.
31530         * modules/search (Makefile.am): Likewise.
31531         * modules/selinux-h (Makefile.am): Likewise.
31532         * modules/signal (Makefile.am): Likewise.
31533         * modules/spawn (Makefile.am): Likewise.
31534         * modules/stdarg (Makefile.am): Likewise.
31535         * modules/stddef (Makefile.am): Likewise.
31536         * modules/stdint (Makefile.am): Likewise.
31537         * modules/stdio (Makefile.am): Likewise.
31538         * modules/stdlib (Makefile.am): Likewise.
31539         * modules/string (Makefile.am): Likewise.
31540         * modules/strings (Makefile.am): Likewise.
31541         * modules/sys_file (Makefile.am): Likewise.
31542         * modules/sys_ioctl (Makefile.am): Likewise.
31543         * modules/sys_select (Makefile.am): Likewise.
31544         * modules/sys_socket (Makefile.am): Likewise.
31545         * modules/sys_stat (Makefile.am): Likewise.
31546         * modules/sys_time (Makefile.am): Likewise.
31547         * modules/sys_times (Makefile.am): Likewise.
31548         * modules/sys_uio (Makefile.am): Likewise.
31549         * modules/sys_utsname (Makefile.am): Likewise.
31550         * modules/sys_wait (Makefile.am): Likewise.
31551         * modules/sysexits (Makefile.am): Likewise.
31552         * modules/termios (Makefile.am): Likewise.
31553         * modules/time (Makefile.am): Likewise.
31554         * modules/unistd (Makefile.am): Likewise.
31555         * modules/wchar (Makefile.am): Likewise.
31556         * modules/wctype-h (Makefile.am): Likewise.
31557         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
31559 2011-05-29  Bruno Haible  <bruno@clisp.org>
31561         assert-h: Allow multiple gnulib generated replacements to coexist.
31562         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
31564 2011-05-29  Bruno Haible  <bruno@clisp.org>
31566         argp: Allow coexistence with strerror_r-posix module.
31567         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
31568         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
31569         by gnulib's <string.h> replacement), assume it has the POSIX signature,
31570         not the glibc signature.
31572 2011-05-28  Bruno Haible  <bruno@clisp.org>
31574         gnulib-tool: Alternative structure of testdirs, similar to --import.
31575         * gnulib-tool: New option --single-configure.
31576         (func_usage): Document it.
31577         (single_configure): New variable.
31578         (func_modules_transitive_closure_separately,
31579         func_modules_transitive_closure_separately,
31580         func_determine_use_libtests, func_modules_add_dummy_separately,
31581         func_modules_to_filelist_separately): New functions, extracted from
31582         func_import.
31583         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
31584         (func_import): Use the new functions.
31585         (func_create_testdir): Set final_modules. Handle $single_configure =
31586         true case.
31588 2011-05-28  Bruno Haible  <bruno@clisp.org>
31590         getloadavg: Remove an unreliable safety check.
31591         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
31592         getloadavg.c is in place.
31593         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
31594         Reported by Sam Steingold <sds@gnu.org>.
31596 2011-05-28  Bruno Haible  <bruno@clisp.org>
31598         doc: Cleanup yet another file produced by texinfo.tex.
31599         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
31601 2011-05-28  Bruno Haible  <bruno@clisp.org>
31603         Finish the conditional dependencies mechanism.
31604         * gnulib-tool: New option --no-conditional-dependencies.
31605         (func_usage): Document it. Don't mark --conditional-dependencies as
31606         experimental.
31607         (cond_dependencies): The possible values can now be true, false, empty.
31608         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
31609         (func_import): Store setting in gnulib-cache.m4 and read it from there.
31610         * doc/gnulib-tool.texi (Conditional dependencies): New section.
31612 2011-05-28  Bruno Haible  <bruno@clisp.org>
31614         doc: Use a recent texinfo.tex.
31615         * doc/Makefile (tex_opts): New variable.
31616         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
31618 2011-05-28  Jim Meyering  <meyering@redhat.com>
31620         intprops.h: adjust comment to match code change
31621         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
31622         only once, it *may* have side effects.  Also fix an unrelated typo.
31623         (_GL_INT_SIGNED): Likewise.
31625 2011-05-26  Simon Josefsson  <simon@josefsson.org>
31627         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
31629 2011-05-26  Bruno Haible  <bruno@clisp.org>
31631         mbsrchr: Avoid collision with system function on Interix.
31632         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
31633         Reported by Markus Duft <mduft@gentoo.org>.
31635 2011-05-15  James Youngman  <jay@gnu.org>
31637         getopt: for ambiguous options, enumerate the possibilities.
31638         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
31639         the ambiguous options when an ambiguous prefix is given. This was
31640         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
31641         glibc change was
31642         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
31644 2011-05-25  Eric Blake  <eblake@redhat.com>
31646         getcwd: work around mingw bug
31647         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
31648         * doc/posix-functions/getcwd.texi (getcwd): Document it.
31649         Reported by Matthias Bolte.
31651 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
31653         test-intprops: disable -Wtype-limits diagnostics
31654         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
31655         diagnostics.  Otherwise, the integer overflow macros generate many
31656         diagnostics.  Reported by Jim Meyering in
31657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
31659         intprops: shorten, to pacify gcc -Woverlength-strings
31660         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
31661         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
31662         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
31663         likely to run afoul of C compiler limits for string constant lengths.
31664         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
31666 2011-05-24  Eric Blake  <eblake@redhat.com>
31668         docs: document recently fixed glibc printf bug
31669         * doc/posix-functions/fprintf.texi (fprintf): Document it.
31670         * doc/posix-functions/printf.texi (printf): Likewise.
31671         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31672         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31674         closein-tests: convert to init.sh
31675         * modules/closein-tests (Files): Add init.sh
31676         * tests/test-closein.sh Use it.
31678         yesno-tests: convert to init.sh
31679         * modules/yesno-tests (Files): Add init.sh.
31680         * tests/test-yesno.sh: Use it.
31682         atexit-tests: ensure reliable exit status
31683         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
31684         Reported by Bruno Haible.
31686 2011-05-24  Bruno Haible  <bruno@clisp.org>
31688         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
31689         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
31690         gl_PREREQ_STRERROR_R invocations from here...
31691         * modules/strerror_r-posix (configure.ac): ... to here.
31693 2011-05-24  Eric Blake  <eblake@redhat.com>
31695         strerror_r: fix missing header
31696         * lib/strerror_r.c: Avoid compiler warning about snprintf.
31698         strerror_r: fix AIX test failures
31699         * lib/strerror_r.c (strerror_r): Convert silent truncation to
31700         ERANGE failure.
31702         strerror_r: fix Solaris test failures
31703         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
31704         failures.
31705         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
31707         strerror_r: enforce POSIX recommendations
31708         * lib/strerror_r.c (safe_copy): New helper method.
31709         (strerror_r): Guarantee a non-empty string.
31710         * tests/test-strerror_r.c (main): Enhance tests to incorporate
31711         recent POSIX rulings and to match our strerror guarantees.
31712         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
31714 2011-05-24  Jim Meyering  <meyering@redhat.com>
31716         test-perror2.c: avoid warning about unused variable
31717         * tests/test-perror2.c (main): Remove declaration of unused "fp".
31719 2011-05-24  Eric Blake  <eblake@redhat.com>
31721         perror: avoid spurious test failure on HP-UX
31722         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
31724         tests: fix logic bug in init.sh
31725         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
31726         shell.
31728 2011-05-24  Jim Meyering  <meyering@redhat.com>
31730         utimensat: do not reference an out-of-scope buffer
31731         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
31732         declared in an inner scope, yet "times" would be dereferenced outside
31733         the scope in which "ts" was valid.
31734         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
31735         of ts[2] "out/up", so that the use of aliased "times" (via
31736         "times = ts;") does not end up referencing an out-of-scope "ts"
31738         opendir-safer.c: don't clobber errno; don't close negative FD
31739         * lib/opendir-safer.c (opendir_safer):
31740         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
31741         file descriptor, and more importantly, don't clobber the
31742         offending errno value with EINVAL.  Before, upon failure
31743         of dup_safer, we would pass the negative file descriptor to
31744         fdopendir, which would clobber errno.
31746 2011-05-23  Bruno Haible  <bruno@clisp.org>
31748         idcache: Fix module description.
31749         * modules/idcache (Include): Set to "idcache.h".
31751 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31753         gnulib-tool: fix portability problem with MacOS sed
31754         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
31755         before the "}".  Problem reported by Leo in
31756         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
31757         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
31758         sed_extract_condition1, sed_extract_condition2.
31760 2011-05-23  Bruno Haible  <bruno@clisp.org>
31762         hash: Simplify autoconf macro.
31763         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
31765 2011-05-23  Bruno Haible  <bruno@clisp.org>
31767         getugroups: Fix module description.
31768         * modules/getugroups (Include): Set to "getugroups.h".
31770 2011-05-23  Bruno Haible  <bruno@clisp.org>
31772         linkat: Simplify autoconf macro.
31773         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
31775 2011-05-23  Bruno Haible  <bruno@clisp.org>
31776             Eric Blake  <eblake@redhat.com>
31778         linkat, renameat: Update dependencies.
31779         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
31780         * modules/linkat (Depends-on): Likewise. Remove also readlink,
31781         symlinkat.
31783 2011-05-23  Jim Meyering  <meyering@redhat.com>
31785         maint.mk: more tight_scope improvements
31786         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
31787         (_gl_TS_headers): Define only in if-0'd block.
31788         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
31789         sometimes we must *not* use it.  Adjust uses accordingly.
31790         (sc_tight_scope): Use much simpler grep-based test to determine
31791         whether we skip this rule.
31793         maint.mk: generalize/improve the tight-scope rule
31794         * top/maint.mk: Emit a warning when the test is skipped.
31795         (_gl_TS_dir): Add $(srcdir)/ prefix.
31796         (_gl_TS_function_match): Simplify, rather than trying
31797         to enumerate common types.  Otherwise, it would fail to match an
31798         "extern unsigned char const *" declaration in idutils.
31799         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
31800         a way to support use of that type of macro.
31801         (_gl_TS_var_match): Simplify regexp.
31802         (_gl_TS_obj_files): New configurable variable.
31803         (_gl_TS_headers): Likewise.
31805 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31807         verify: fix bug when gnulib <assert.h> is also included
31808         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
31809         is defined, not if _GL_STATIC_ASSERT_H is not defined.
31810         Perhaps there's a better way, but this fixes the immediate problem.
31811         Problem reported by Bruno Haible in
31812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
31814 2011-05-22  Bruno Haible  <bruno@clisp.org>
31816         xgetcwd: Simplify autoconf macro.
31817         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
31819 2011-05-22  Bruno Haible  <bruno@clisp.org>
31821         New module 'mktime-internal'.
31822         * modules/mktime-internal: New file.
31823         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
31824         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
31825         mktime_internal as a C macro if libc has __mktime_internal.
31826         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
31827         conditions.
31828         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
31830 2011-05-22  Bruno Haible  <bruno@clisp.org>
31832         timegm: Correct mktime replacement statements.
31833         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
31834         defining mktime as a C macro. This completes a 2009-07-28 commit.
31836 2011-05-22  Bruno Haible  <bruno@clisp.org>
31838         timegm: Simplify autoconf macro.
31839         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
31841 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
31843         clock-time: change to LGPLv2+.
31844         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
31845         BSD-like but we have no mark for that; this is good enough for now.
31847 2011-05-21  Bruno Haible  <bruno@clisp.org>
31849         strerror_r: Fix comments.
31850         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
31852 2011-05-21  Bruno Haible  <bruno@clisp.org>
31854         relocatable-prog-wrapper: Fix possible link error.
31855         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
31856         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
31857         (gl_FUNC_SETENV): ... to here.
31858         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
31859         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
31861 2011-05-21  Bruno Haible  <bruno@clisp.org>
31863         relocatable-prog-wrapper: Assume strerror() exists.
31864         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
31865         m4/strerror.m4.
31866         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
31867         * lib/relocwrapper.c: Remove mention of strerror module.
31868         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
31869         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
31870         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
31871         C macro.
31873 2011-05-21  Bruno Haible  <bruno@clisp.org>
31875         select: Simplify replacement idiom.
31876         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
31877         Win32 platforms.
31878         * lib/sys_select.in.h (select): Simplify accordingly.
31879         * modules/select (Depends-on): Likewise.
31881 2011-05-21  Bruno Haible  <bruno@clisp.org>
31883         mkdir-p: Simplify autoconf macro.
31884         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
31885         gl_FUNC_LCHOWN.
31887 2011-05-21  Eric Blake  <eblake@redhat.com>
31889         strerror_r: avoid clobbering strerror on cygwin
31890         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
31891         fall back instead to sys_errlist.
31892         * modules/strerror (configure.ac): Add witness.
31893         * tests/test-strerror_r.c (main): Enhance test.
31894         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31895         * tests/test-perror2.c (main): Free memory before exit.
31897 2011-05-21  Bruno Haible  <bruno@clisp.org>
31899         mkdtemp: Use gnulib naming conventions.
31900         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
31901         * modules/mkdtemp (configure.ac): Update.
31903 2011-05-20  Eric Blake  <eblake@redhat.com>
31905         strerror_r: avoid corrupting errno on Solaris
31906         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
31907         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31909         strerror_r: avoid compiler warning
31910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
31912         strerror_r: simplify AIX code
31913         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
31915         test-perror: avoid spurious failure on FreeBSD
31916         * modules/perror-tests (Depends-on): Add strerror, now that
31917         strerror_r no longer pulls it in.
31919 2011-05-20  Bruno Haible  <bruno@clisp.org>
31921         strerror_r-posix: Remove unused dependencies.
31922         * modules/strerror_r-posix (Depends-on): Remove strerror.
31923         Reported by Eric Blake.
31925 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31927         intprops: remove assumption about A|B representation
31928         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
31929         is a valid integer if both A and B are.  Although this is true for
31930         all known practical hosts, the C standard doesn't guarantee it,
31931         and the code need not assume it.  Also, this change may work around
31932         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
31933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
31935 2011-05-20  Eric Blake  <eblake@redhat.com>
31937         perror: work around FreeBSD bug
31938         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
31939         is broken.  Move AC_LIBOBJ...
31940         * modules/perror (configure.ac): Here.
31941         * doc/posix-functions/perror.texi (perror): Document this.
31942         * tests/test-perror2.c (main): Enhance test.
31944         test-perror: check for strerror interactions
31945         * tests/macros.h (STREQ): Add macro.
31946         * modules/perror-tests (Files): Add second test.
31947         * tests/test-perror2.c (main): New file.
31948         * doc/posix-functions/perror.texi (perror): Document glibc bug.
31950         test-perror: rewrite to use init script
31951         * modules/perror-tests (Files): Add init.sh.
31952         * tests/test-perror.sh: Use temporary directory.
31954 2011-05-20  Jim Meyering  <meyering@redhat.com>
31956         maint: replace misused "a" with "an"
31957         * doc/intprops.texi: "a integer"
31958         * doc/regex.texi: "a explanation"
31959         * lib/alignof.h: "a object"
31960         * lib/argmatch.h: "a explanation"
31961         * lib/argp-help.c: "a option" and "a OPTION_DOC"
31962         * lib/stdint.in.h: "a integer"
31963         * lib/userspec.c: "a owner"
31964         * doc/gnulib.texi: Fix "a idea", and reword.
31966 2011-05-19  Jim Meyering  <meyering@redhat.com>
31968         maint: correct misuse of "a" and "an"
31969         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
31970         * lib/argp-help.c: "an docum...": s/an/a/
31971         * lib/argp-parse.c: "An vector": s/An/A/
31972         * lib/execute.c: "an native": s/an/a/
31973         * lib/spawn-pipe.c: Likewise.
31974         * lib/gc.h: "an Gc_rc": s/an/a/
31975         * lib/unigbrk.in.h: "an grapheme": s/an/a/
31976         * lib/fts.c: "an stat.st_dev": s/an/a/
31978 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31980         intprops-tests: work around HP-UX 11.23 cc bug with constants
31981         * tests/test-intprops.c (VERIFY): New macro.
31982         (main): Use it, instead of verify, to work around the compiler bug; see
31983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
31985         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
31986         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
31987         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
31988         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
31989         (_GL_REMAINDER_OVERFLOW): Use it.
31991         intprops-tests: revert unsigned part of previous change
31992         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
31993         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
31994         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
31995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
31997 2011-05-19  Bruno Haible  <bruno@clisp.org>
31999         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
32000         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
32001         strerror_r() returned without filling the buffer.
32002         Reported by Eric Blake.
32004 2011-05-19  Eric Blake  <eblake@redhat.com>
32006         strerror_r: guarantee unchanged errno
32007         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
32008         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
32009         failure.
32010         * tests/test-strerror_r.c (main): Enhance test.
32012 2011-05-19  Bruno Haible  <bruno@clisp.org>
32014         strerror_r: Reorder #if blocks.
32015         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
32016         for consistency with the previous commit.
32018 2011-05-19  Bruno Haible  <bruno@clisp.org>
32020         perror: Avoid clobbering the strerror buffer when possible.
32021         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
32022         * lib/strerror.c: Include it.
32023         * modules/strerror (Files): Add lib/strerror-impl.h.
32024         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
32025         (my_strerror): New function, defined through lib/strerror-impl.h.
32026         (perror): Use it instead of strerror.
32027         * modules/perror (Files): Add lib/strerror-impl.h.
32028         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
32030 2011-05-19  Eric Blake  <eblake@redhat.com>
32032         strerror_r: fix on newer cygwin
32033         * lib/strerror_r.c (strerror_r): Cygwin now has
32034         __xpg_strerror_r, use it.
32036 2011-05-19  Bruno Haible  <bruno@clisp.org>
32038         strerror_r: Avoid clobbering the strerror buffer when possible.
32039         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
32040         (sys_nerr, sys_errlist): New declarations.
32041         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
32042         HP-UX, native Win32, IRIX, and 32-bit Solaris.
32043         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
32045 2011-05-19  Bruno Haible  <bruno@clisp.org>
32047         strerror_r: Fix test failure on mingw.
32048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
32049         EXTEND_STRERROR_R.
32050         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
32051         macros from errno.in.h instead.
32053 2011-05-19  Eric Blake  <eblake@redhat.com>
32055         strerror: relax test for Solaris
32056         * tests/test-strerror.c (main): Permit Solaris behavior.
32057         * tests/test-strerror_r.c (main): Likewise.
32059         strerror: enforce POSIX ruling on strerror(0)
32060         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
32061         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
32062         * lib/strerror_r.c (rpl_strerror_r): Work around it.
32063         * doc/posix-functions/strerror.texi (strerror): Document it.
32064         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
32065         * tests/test-strerror.c (main): Strengthen test.
32066         * tests/test-strerror_r.c (main): Likewise.
32068 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32070         intprop-tests: port to older and more-pedantic compilers
32071         * modules/intprops-tests (Files): Add tests/macros.h.
32072         * tests/test-intprops.c: Include macros.h.
32073         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
32074         it's no longer documented to expand to an integer constant expression.
32075         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
32076         argument is floating point, as it's no longer documented to expand
32077         to an integer constant expression in that case.
32078         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
32079         compiler bugs reported by Bruno Haible.  See
32080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
32081         (U0, U1): New constants, to work around the same bugs.  Also,
32082         in tests, use e.g., "(unsigned int) 39" rather than "39u".
32084         intprops: work around C compiler bugs
32085         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
32086         bug in Sun C 5.11 2010/08/13 and other compilers; see
32087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
32089         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
32090         * doc/intprops.texi (Integer Type Determination): Fix
32091         documentation for TYPE_IS_INTEGER: it returns an constant
32092         expression, not an integer constant expression.  Fix doc for
32093         TYPE_SIGNED: it returns an integer constant expression only if its
32094         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
32095         hardly worth documented that way....)
32097 2011-05-18  Bruno Haible  <bruno@clisp.org>
32099         strerror_r: Avoid clobbering the strerror buffer when possible.
32100         * lib/strerror_r.c (strerror_r): Merge the three implementations.
32101         Handle gnulib defined errno values here. When strerror() returns NULL
32102         or an empty string, return EINVAL.
32103         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
32104         gnulib defined errno values here.
32105         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
32107 2011-05-18  Eric Blake  <eblake@redhat.com>
32109         fnmatch: avoid compiler warning
32110         * lib/fnmatch_loop.c (FCT): Use correct type.
32111         Reported by Matthias Bolte.
32113 2011-05-13  Jim Meyering  <meyering@redhat.com>
32115         maint.mk: three new prohibit_<HDR>_without_use rules
32116         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
32117         (sc_prohibit_stdio-safer_without_use): Likewise.
32118         (sc_prohibit_xfreopen_without_use): Likewise.
32120 2011-05-17  Jim Meyering  <meyering@redhat.com>
32122         announce-gen: fail if the NEWS delta is empty
32123         If there's nothing noteworthy in NEWS, then either you forgot
32124         or you shouldn't be releasing.
32125         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
32127 2011-05-17  Pádraig Brady <P@draigBrady.com>
32129         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
32130         reserved symbols starting with double underscore from the check.
32132 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32134         intprops: add doc
32135         * doc/intprops.texi: New file, documenting intprops.
32136         * doc/gnulib.texi (Particular Modules): Include it.
32138         verify: add doc to gnulib manual and fix example
32139         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
32140         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
32141         (Compile-time Assertions): Fix example so it can't overflow.
32143 2011-05-17  Jim Meyering  <meyering@redhat.com>
32145         warnings.m4: don't usurp save_CPPFLAGS variable name
32146         * m4/warnings.m4: Prefix local temporary variable name with gl_.
32148         doc: fix typo
32149         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
32151 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32152             Bruno Haible  <bruno@clisp.org>
32154         doc: Tweak recent change.
32155         * README (Portability guidelines): Tweak new text.
32156         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
32157         Interix 6.1.
32159 2011-05-16  Eric Blake  <eblake@redhat.com>
32161         inttypes: avoid autoconf warning
32162         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
32163         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32165 2011-05-16  Sam Steingold <sds@gnu.org>
32166         and Eric Blake  <eblake@redhat.com>
32168         vc-list-files: accept multiple directory operands
32169         * build-aux/vc-list-files: Iterate over all remaining operands.
32171 2011-05-16  Bruno Haible  <bruno@clisp.org>
32173         Fix confusion regarding deprecated modules.
32174         * modules/calloc (Status, Notice): Mark module as deprecated, not
32175         obsolete.
32176         * modules/fnmatch-posix (Status, Notice): Likewise.
32177         * modules/getdate (Status, Notice): Likewise.
32178         * modules/getopt (Status, Notice): Likewise.
32179         * modules/malloc (Status, Notice): Likewise.
32180         * modules/pipe (Status, Notice): Likewise.
32181         * modules/realloc (Status, Notice): Likewise.
32182         * modules/rename-dest-slash (Status, Notice): Likewise.
32183         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
32184         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
32185         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
32186         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
32187         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
32189 2011-05-16  Bruno Haible  <bruno@clisp.org>
32191         doc: List the target platforms.
32192         * doc/gnulib-intro.texi (Target Platforms): New section.
32193         * doc/gnulib.texi (Introduction): Update menu.
32194         * README (Portability guidelines): Refer to the new section. Update
32195         statement about oldest supported environment. Remove rationale why
32196         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
32197         unportable C89 function.
32198         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
32199         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
32201 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32203         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
32205 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32207         intprops-tests: new module
32208         * modules/intprops-tests, tests/test-intprops.c: New files.
32210         intprops: add safe, portable integer overflow checking
32211         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
32212         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
32213         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
32214         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
32215         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
32216         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
32217         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
32218         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
32219         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
32220         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
32221         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
32223 2011-05-12  James Youngman  <jay@gnu.org>
32225         Add a test for glibc's Bugzilla bug #12378.
32226         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
32227         doesn't allow the literal matching of a lone "[" (which is
32228         required by POSIX).
32229         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
32231 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
32233         Sync glibc change fixing Bugzilla bug #12378.
32234         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
32235         beginning and fall back to matching as normal character if the
32236         string ends before the matching ']' is found.  This is what POSIX
32237         requires.
32239 2011-05-13  Eric Blake  <eblake@redhat.com>
32241         getcwd-lgpl: relax test for FreeBSD
32242         * doc/posix-functions/getcwd.texi (getcwd): Document portability
32243         issue.
32244         * tests/test-getcwd-lgpl.c (main): Relax test.
32245         Reported by Matthias Bolte.
32247 2011-05-11  Eric Blake  <eblake@redhat.com>
32249         test-fflush: silence compiler warning
32250         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
32252 2011-05-11  Bruno Haible  <bruno@clisp.org>
32254         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
32255         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
32256         * modules/canonicalize (Depends-on): Add 'nocrash'.
32257         * modules/canonicalize-lgpl (Depends-on): Likewise.
32258         * doc/posix-functions/realpath.texi: Update platforms list.
32259         Reported by Ryan Schmidt <ryandesign@macports.org>.
32261 2011-05-11  Bruno Haible  <bruno@clisp.org>
32263         group-member: Declare function in <unistd.h>.
32264         * lib/unistd.in.h (group_member): New declaration.
32265         * lib/group-member.h: Remove file.
32266         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
32267         * tests/test-unistd-c++.cc: Check signature of group_member.
32268         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
32269         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
32270         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
32271         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
32272         HAVE_GROUP_MEMBER.
32273         * modules/group-member (Files): Remove lib/group-member.h.
32274         (Depends-on): Add unistd. Specify conditions.
32275         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32276         (Include): Change to <unistd.h>.
32277         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
32278         HAVE_GROUP_MEMBER.
32279         * NEWS: Mention the change.
32280         * lib/euidaccess.c: Don't include group-member.h.
32282 2011-05-11  Bruno Haible  <bruno@clisp.org>
32284         group-member: Document module.
32285         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
32286         module.
32288 2011-05-11  Bruno Haible  <bruno@clisp.org>
32290         fclose: Fix mistake earlier today.
32291         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
32293 2011-05-11  Eric Blake  <eblake@redhat.com>
32295         fclose: preserve fflush errors
32296         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
32297         Reported by Jim Meyering.
32299         bootstrap: support a prereq of 'rpcgen -' on RHEL5
32300         * build-aux/bootstrap (check_versions): When no specific version
32301         is required, merely check that the app produces an exit status
32302         that indicates its existence.
32304         maint.mk: drop redundant check
32305         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
32306         the same but better.
32308 2011-05-11  Bruno Haible  <bruno@clisp.org>
32310         fclose: Fix possible link error.
32311         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
32312         unregister_shadow_fd. Improve comments.
32313         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
32314         Eric Blake.
32316 2011-05-11  Jim Meyering  <meyering@redhat.com>
32318         maint.mk: improve "can not" detection and generalize rule name
32319         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
32320         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
32321         Use the same technique as in sc_prohibit_doubled_word, so that
32322         we recognize "can not" also when the words are separated by a newline.
32323         Suggested by Eric Blake.
32324         (perl_filename_lineno_text_): Define.  Factored out of...
32325         (prohibit_doubled_word_): ...here.  Use the new definition.
32326         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
32327         (prohibit_undesirable_word_seq_RE_): New overridable variable.
32328         (ignore_undesirable_word_sequence_RE_): New overridable variable.
32330 2011-05-10  Eric Blake  <eblake@redhat.com>
32332         fclose: avoid double close race when possible
32333         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
32334         all but WINDOWS_SOCKETS.
32336 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
32338         openat: correct new comment
32339         * lib/openat-proc.c (openat_proc_name): Correct the comment.
32341 2011-05-10  Jim Meyering  <meyering@redhat.com>
32343         openat: add comments
32344         * lib/openat-proc.c (openat_proc_name): Add comments,
32345         mostly from Eric Blake.
32347 2011-05-09  Eric Blake  <eblake@redhat.com>
32349         openat: reduce syscalls in first probe of /proc
32350         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
32351         be a directory.  Simplify the probe for .. bugs.
32352         * modules/openat (Depends-on): Drop same-inode.
32353         Reported by Bastien ROUCARIES.
32355 2011-05-09  Jim Meyering  <meyering@redhat.com>
32357         maint.mk: change semantics/name of tight_scope variables
32358         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
32359         Rename variables to align with semantics that make them more useful.
32361         maint.mk: tweak new rule's name not to impinge
32362         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
32363         (sc_tight_scope): Use new rule name rather than $@-0.
32365         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
32366         * top/maint.mk (sc_tight_scope): New rule.
32367         (sc_tight_scope-0): New rule, ifdef'd out.
32368         (_gl_TS_dir): Default.
32369         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
32370         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
32372 2011-05-09  Simon Josefsson  <simon@josefsson.org>
32374         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
32375         Haible <bruno@clisp.org>.
32377 2011-05-08  Bruno Haible  <bruno@clisp.org>
32379         Comments.
32380         * m4/isnanf.m4: Add comment.
32381         * m4/isnanl.m4: Likewise.
32383 2011-05-08  Bruno Haible  <bruno@clisp.org>
32385         glob: Remove obsolete macro.
32386         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
32388 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
32390         intprops: Sun C 5.11 supports __typeof__
32391         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
32392         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
32393         which is new.
32394         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
32396         intprops: switch to usual gnulib indenting and naming
32397         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
32398         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
32400         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
32402 2011-05-08  Jim Meyering  <meyering@redhat.com>
32404         maint.mk: suppress "Entering/Leaving directory" diag in announcement
32405         * top/maint.mk (release-prep): Use make's --no-print-directory
32406         option when generating the announcement.  This eliminates the
32407         pesky "make[2]: Entering/Leaving directory" diagnostics in the
32408         generated announcement template.
32410 2011-05-08  Bruno Haible  <bruno@clisp.org>
32412         tzset: Fix gettimeofday wrapper on Solaris 2.6.
32413         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
32414         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
32416 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
32418         ignore-value, verify: Omit include files from lib_SOURCES.
32419         * modules/ignore-value, modules/verify (Makefile.am):
32420         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
32421         that leads Automake to duplicate use of am__objects_... variables
32422         in Makefile.in.  See
32423         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
32425 2011-05-07  Bruno Haible  <bruno@clisp.org>
32427         fclose: Simplify autoconf macro.
32428         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
32429         defined.
32431 2011-05-07  Bruno Haible  <bruno@clisp.org>
32433         canonicalize-lgpl: Fix autoconf macro ordering bug.
32434         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
32435         gl_STDLIB_H_DEFAULTS.
32437 2011-05-06  Eric Blake  <eblake@redhat.com>
32439         maintainer-makefile: make sc_po_check easier to tune
32440         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
32441         to probe for strings, such as an alternate location for gnulib.
32443         fclose: guarantee behavior on seekable stdin
32444         * modules/fclose (Depends-on): Add fflush.
32445         * doc/posix-functions/fclose.texi (fclose): Document this.
32446         * tests/test-fclose.c (main): Make test for this unconditional.
32448 2011-05-06  Bruno Haible  <bruno@clisp.org>
32450         fflush, fpurge: Relicense under LGPLv2+.
32451         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
32452         * modules/fpurge (License): Likewise.
32453         With permission from Eric Blake and Jim Meyering.
32454         Suggested by Eric Blake.
32456 2011-05-06  Karl Berry  <karl@gnu.org>
32458         * MODULES.html.sh (func_all_modules): remove exit.
32460 2011-05-06  Jim Meyering  <meyering@redhat.com>
32462         maint.mk: use info-gnu@ as the default only for a stable release
32463         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
32464         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
32465         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
32466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
32468 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32470         assert-h: new module, which supports C1X-style static_assert
32471         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
32472         * lib/verify.h: Revamp so that this can be copied into assert.h,
32473         while retaining the ability to use it standalone as before.
32474         Rename private identifiers so as not to encroach on the
32475         standard C namespace, since this is now used by assert.h.
32476         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
32477         the old verify_true.
32478         (_GL_VERIFY_TRUE): New macro, with much of the contents of
32479         the old verify_true.  Use _GL_VERIFY_TYPE.
32480         (_GL_VERIFY): New macro, with much of the contents of the old verify.
32481         (static_assert): New macro, if _GL_STATIC_ASSERT_H
32482         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
32483         defined when this file is copied into the replacement assert.h.
32484         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
32485         and _Static_assert is not built in.
32486         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
32487         defined, and use the new macros mentioned above.
32488         * doc/posix-headers/assert.texi: Document this.
32490 2011-05-05  Bruno Haible  <bruno@clisp.org>
32492         fclose, fflush: Respect rules for use of AC_LIBOBJ.
32493         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
32494         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
32495         gl_REPLACE_FCLOSE here.
32496         * modules/fflush (Depends-on): Remove fclose.
32497         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
32498         combination with module 'fclose'.
32500 2011-05-05  Bruno Haible  <bruno@clisp.org>
32502         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
32503         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
32504         gl_FUNC_FFLUSH.
32505         (gl_FUNC_FFLUSH): Use it.
32506         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
32507         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
32508         gl_REPLACE_FSEEKO here.
32510 2011-05-05  Bruno Haible  <bruno@clisp.org>
32512         tzset: Relicense under LGPL.
32513         * modules/tzset (License): Change to LGPL.
32514         No agreement needed; it's a no-op.
32516         strtoimax, strtoumax: Relicense under LGPL.
32517         * modules/strtoimax (License): Change to LGPL.
32518         * modules/strtoumax (License): Likewise.
32519         With permission from Jim Meyering, Paul Eggert:
32520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
32521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
32523         getgroups: Relicense under LGPL.
32524         * modules/getgroups (License): Change to LGPL.
32525         With permission from Jim Meyering, Paul Eggert, Eric Blake:
32526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
32527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
32528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
32530         nanosleep: Relicense under LGPL.
32531         * modules/nanosleep (License): Change to LGPL.
32532         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
32533         Haible:
32534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
32535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
32536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
32537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
32539         futimens: Relicense under LGPL.
32540         * modules/futimens (License): Change to LGPL.
32541         With permission from Eric Blake:
32542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
32544         fflush: Relicense under LGPL.
32545         * modules/fflush (License): Change to LGPL.
32546         With permission from Eric Blake, Bruno Haible, Jim Meyering:
32547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
32548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
32549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
32551         tmpfile: Relicense under LGPL.
32552         * modules/tmpfile (License): Change to LGPL.
32553         With permission from Ben Pfaff:
32554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
32556         isfinite: Relicense under LGPL.
32557         * modules/isfinite (License): Change to LGPL.
32558         With permission from Ben Pfaff, Bruno Haible:
32559         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
32560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
32562         acosl..tanl: Relicense under LGPL.
32563         * modules/acosl (License): Change to LGPL.
32564         * modules/asinl (License): Likewise.
32565         * modules/atanl (License): Likewise.
32566         * modules/cosl (License): Likewise.
32567         * modules/expl (License): Likewise.
32568         * modules/logl (License): Likewise.
32569         * modules/sinl (License): Likewise.
32570         * modules/sqrtl (License): Likewise.
32571         * modules/tanl (License): Likewise.
32572         Source code originally from glibc and Paolo Bonzini. Agreements:
32573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
32574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
32576 2011-05-05  Bruno Haible  <bruno@clisp.org>
32578         signal: Define sighandler_t.
32579         * lib/signal.in.h (sighandler_t): New type.
32580         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
32581         whether sighandler_t is defined.
32582         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
32583         * modules/signal (Depends-on): Add extensions.
32584         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
32585         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
32586         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
32588 2011-05-05  Eric Blake  <eblake@redhat.com>
32590         maint: remove useless REPLACE_*_H macros
32591         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
32592         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32593         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32594         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
32595         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32596         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32597         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
32598         * m4/btowc.m4: Update callers.
32599         * m4/dirfd.m4: Likewise.
32600         * m4/duplocale.m4: Likewise.
32601         * m4/fchdir.m4: Likewise.
32602         * m4/fdopendir.m4: Likewise.
32603         * m4/inet_ntop.m4: Likewise.
32604         * m4/inet_pton.m4: Likewise.
32605         * m4/ioctl.m4: Likewise.
32606         * m4/mbrlen.m4: Likewise.
32607         * m4/mbrtowc.m4: Likewise.
32608         * m4/mbsinit.m4: Likewise.
32609         * m4/mbsnrtowcs.m4: Likewise.
32610         * m4/mbsrtowcs.m4: Likewise.
32611         * m4/poll.m4: Likewise.
32612         * m4/setlocale.m4: Likewise.
32613         * m4/wcrtomb.m4: Likewise.
32614         * m4/wcsnrtombs.m4: Likewise.
32615         * m4/wcsrtombs.m4: Likewise.
32616         * m4/wctob.m4: Likewise.
32617         * m4/wcwidth.m4: Likewise.
32618         * modules/posix_spawn: Likewise.
32619         * modules/posix_spawn_file_actions_addclose: Likewise.
32620         * modules/posix_spawn_file_actions_adddup2: Likewise.
32621         * modules/posix_spawn_file_actions_addopen: Likewise.
32622         * modules/posix_spawn_file_actions_destroy: Likewise.
32623         * modules/posix_spawn_file_actions_init: Likewise.
32624         * modules/posix_spawnattr_destroy: Likewise.
32625         * modules/posix_spawnattr_getflags: Likewise.
32626         * modules/posix_spawnattr_getpgroup: Likewise.
32627         * modules/posix_spawnattr_getschedparam: Likewise.
32628         * modules/posix_spawnattr_getschedpolicy: Likewise.
32629         * modules/posix_spawnattr_getsigdefault: Likewise.
32630         * modules/posix_spawnattr_getsigmask: Likewise.
32631         * modules/posix_spawnattr_init: Likewise.
32632         * modules/posix_spawnattr_setflags: Likewise.
32633         * modules/posix_spawnattr_setpgroup: Likewise.
32634         * modules/posix_spawnattr_setschedparam: Likewise.
32635         * modules/posix_spawnattr_setschedpolicy: Likewise.
32636         * modules/posix_spawnattr_setsigdefault: Likewise.
32637         * modules/posix_spawnattr_setsigmask: Likewise.
32638         * modules/posix_spawnp: Likewise.
32640 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
32642         Add option to do-release-commit-and-tag to specify branch.
32643         * build-aux/do-release-commit-and-tag: Add --branch.
32645 2011-05-03  Bruno Haible  <bruno@clisp.org>
32647         Avoid unnecessary compilation units, through conditional dependencies.
32648         * modules/accept (Depends-on): Add conditions to the dependencies.
32649         * modules/acosl (Depends-on): Likewise.
32650         * modules/argz (Depends-on): Likewise.
32651         * modules/asinl (Depends-on): Likewise.
32652         * modules/atanl (Depends-on): Likewise.
32653         * modules/atoll (Depends-on): Likewise.
32654         * modules/bind (Depends-on): Likewise.
32655         * modules/btowc (Depends-on): Likewise.
32656         * modules/canonicalize-lgpl (Depends-on): Likewise.
32657         * modules/ceil (Depends-on): Likewise.
32658         * modules/ceilf (Depends-on): Likewise.
32659         * modules/ceill (Depends-on): Likewise.
32660         * modules/chdir-long (Depends-on): Likewise.
32661         * modules/chown (Depends-on): Likewise.
32662         * modules/close (Depends-on): Likewise.
32663         * modules/connect (Depends-on): Likewise.
32664         * modules/cosl (Depends-on): Likewise.
32665         * modules/dirfd (Depends-on): Likewise.
32666         * modules/dprintf (Depends-on): Likewise.
32667         * modules/dprintf-posix (Depends-on): Likewise.
32668         * modules/error (Depends-on): Likewise.
32669         * modules/euidaccess (Depends-on): Likewise.
32670         * modules/expl (Depends-on): Likewise.
32671         * modules/faccessat (Depends-on): Likewise.
32672         * modules/fchdir (Depends-on): Likewise.
32673         * modules/fclose (Depends-on): Likewise.
32674         * modules/fcntl (Depends-on): Likewise.
32675         * modules/fdopendir (Depends-on): Likewise.
32676         * modules/fflush (Depends-on): Likewise.
32677         * modules/floor (Depends-on): Likewise.
32678         * modules/floorf (Depends-on): Likewise.
32679         * modules/floorl (Depends-on): Likewise.
32680         * modules/fnmatch (Depends-on): Likewise.
32681         * modules/fopen (Depends-on): Likewise.
32682         * modules/fprintf-posix (Depends-on): Likewise.
32683         * modules/frexp (Depends-on): Likewise.
32684         * modules/frexp-nolibm (Depends-on): Likewise.
32685         * modules/frexpl (Depends-on): Likewise.
32686         * modules/frexpl-nolibm (Depends-on): Likewise.
32687         * modules/fseek (Depends-on): Likewise.
32688         * modules/fsusage (Depends-on): Likewise.
32689         * modules/ftell (Depends-on): Likewise.
32690         * modules/ftello (Depends-on): Likewise.
32691         * modules/futimens (Depends-on): Likewise.
32692         * modules/getcwd (Depends-on): Likewise.
32693         * modules/getcwd-lgpl (Depends-on): Likewise.
32694         * modules/getdelim (Depends-on): Likewise.
32695         * modules/getdomainname (Depends-on): Likewise.
32696         * modules/getgroups (Depends-on): Likewise.
32697         * modules/gethostname (Depends-on): Likewise.
32698         * modules/getline (Depends-on): Likewise.
32699         * modules/getlogin_r (Depends-on): Likewise.
32700         * modules/getopt-posix (Depends-on): Likewise.
32701         * modules/getpeername (Depends-on): Likewise.
32702         * modules/getsockname (Depends-on): Likewise.
32703         * modules/getsockopt (Depends-on): Likewise.
32704         * modules/getsubopt (Depends-on): Likewise.
32705         * modules/getusershell (Depends-on): Likewise.
32706         * modules/glob (Depends-on): Likewise.
32707         * modules/grantpt (Depends-on): Likewise.
32708         * modules/iconv_open (Depends-on): Likewise.
32709         * modules/iconv_open-utf (Depends-on): Likewise.
32710         * modules/inet_ntop (Depends-on): Likewise.
32711         * modules/inet_pton (Depends-on): Likewise.
32712         * modules/ioctl (Depends-on): Likewise.
32713         * modules/isapipe (Depends-on): Likewise.
32714         * modules/isfinite (Depends-on): Likewise.
32715         * modules/isinf (Depends-on): Likewise.
32716         * modules/lchown (Depends-on): Likewise.
32717         * modules/ldexpl (Depends-on): Likewise.
32718         * modules/link (Depends-on): Likewise.
32719         * modules/linkat (Depends-on): Likewise.
32720         * modules/listen (Depends-on): Likewise.
32721         * modules/logl (Depends-on): Likewise.
32722         * modules/lstat (Depends-on): Likewise.
32723         * modules/mbrlen (Depends-on): Likewise.
32724         * modules/mbrtowc (Depends-on): Likewise.
32725         * modules/mbsinit (Depends-on): Likewise.
32726         * modules/mbsnrtowcs (Depends-on): Likewise.
32727         * modules/mbsrtowcs (Depends-on): Likewise.
32728         * modules/mbtowc (Depends-on): Likewise.
32729         * modules/memcmp (Depends-on): Likewise.
32730         * modules/mkdir (Depends-on): Likewise.
32731         * modules/mkdtemp (Depends-on): Likewise.
32732         * modules/mkfifo (Depends-on): Likewise.
32733         * modules/mkfifoat (Depends-on): Likewise.
32734         * modules/mknod (Depends-on): Likewise.
32735         * modules/mkostemp (Depends-on): Likewise.
32736         * modules/mkostemps (Depends-on): Likewise.
32737         * modules/mkstemp (Depends-on): Likewise.
32738         * modules/mkstemps (Depends-on): Likewise.
32739         * modules/mktime (Depends-on): Likewise.
32740         * modules/nanosleep (Depends-on): Likewise.
32741         * modules/open (Depends-on): Likewise.
32742         * modules/openat (Depends-on): Likewise.
32743         * modules/perror (Depends-on): Likewise.
32744         * modules/poll (Depends-on): Likewise.
32745         * modules/popen (Depends-on): Likewise.
32746         * modules/posix_spawn (Depends-on): Likewise.
32747         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
32748         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32749         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32750         * modules/posix_spawnp (Depends-on): Likewise.
32751         * modules/pread (Depends-on): Likewise.
32752         * modules/printf-posix (Depends-on): Likewise.
32753         * modules/ptsname (Depends-on): Likewise.
32754         * modules/putenv (Depends-on): Likewise.
32755         * modules/pwrite (Depends-on): Likewise.
32756         * modules/readline (Depends-on): Likewise.
32757         * modules/readlink (Depends-on): Likewise.
32758         * modules/readlinkat (Depends-on): Likewise.
32759         * modules/recv (Depends-on): Likewise.
32760         * modules/recvfrom (Depends-on): Likewise.
32761         * modules/regex (Depends-on): Likewise.
32762         * modules/remove (Depends-on): Likewise.
32763         * modules/rename (Depends-on): Likewise.
32764         * modules/renameat (Depends-on): Likewise.
32765         * modules/rmdir (Depends-on): Likewise.
32766         * modules/round (Depends-on): Likewise.
32767         * modules/roundf (Depends-on): Likewise.
32768         * modules/roundl (Depends-on): Likewise.
32769         * modules/rpmatch (Depends-on): Likewise.
32770         * modules/select (Depends-on): Likewise.
32771         * modules/send (Depends-on): Likewise.
32772         * modules/sendto (Depends-on): Likewise.
32773         * modules/setenv (Depends-on): Likewise.
32774         * modules/setlocale (Depends-on): Likewise.
32775         * modules/setsockopt (Depends-on): Likewise.
32776         * modules/shutdown (Depends-on): Likewise.
32777         * modules/sigaction (Depends-on): Likewise.
32778         * modules/signbit (Depends-on): Likewise.
32779         * modules/sigprocmask (Depends-on): Likewise.
32780         * modules/sinl (Depends-on): Likewise.
32781         * modules/sleep (Depends-on): Likewise.
32782         * modules/snprintf (Depends-on): Likewise.
32783         * modules/snprintf-posix (Depends-on): Likewise.
32784         * modules/socket (Depends-on): Likewise.
32785         * modules/sprintf-posix (Depends-on): Likewise.
32786         * modules/sqrtl (Depends-on): Likewise.
32787         * modules/stat (Depends-on): Likewise.
32788         * modules/strchrnul (Depends-on): Likewise.
32789         * modules/strdup-posix (Depends-on): Likewise.
32790         * modules/strerror (Depends-on): Likewise.
32791         * modules/strerror_r-posix (Depends-on): Likewise.
32792         * modules/strndup (Depends-on): Likewise.
32793         * modules/strnlen (Depends-on): Likewise.
32794         * modules/strptime (Depends-on): Likewise.
32795         * modules/strsep (Depends-on): Likewise.
32796         * modules/strsignal (Depends-on): Likewise.
32797         * modules/strstr-simple (Depends-on): Likewise.
32798         * modules/strtod (Depends-on): Likewise.
32799         * modules/strtoimax (Depends-on): Likewise.
32800         * modules/strtok_r (Depends-on): Likewise.
32801         * modules/strtoumax (Depends-on): Likewise.
32802         * modules/symlink (Depends-on): Likewise.
32803         * modules/symlinkat (Depends-on): Likewise.
32804         * modules/tanl (Depends-on): Likewise.
32805         * modules/tcgetsid (Depends-on): Likewise.
32806         * modules/tmpfile (Depends-on): Likewise.
32807         * modules/trunc (Depends-on): Likewise.
32808         * modules/truncf (Depends-on): Likewise.
32809         * modules/truncl (Depends-on): Likewise.
32810         * modules/uname (Depends-on): Likewise.
32811         * modules/unlink (Depends-on): Likewise.
32812         * modules/unlockpt (Depends-on): Likewise.
32813         * modules/unsetenv (Depends-on): Likewise.
32814         * modules/usleep (Depends-on): Likewise.
32815         * modules/utimensat (Depends-on): Likewise.
32816         * modules/vasprintf (Depends-on): Likewise.
32817         * modules/vdprintf (Depends-on): Likewise.
32818         * modules/vdprintf-posix (Depends-on): Likewise.
32819         * modules/vfprintf-posix (Depends-on): Likewise.
32820         * modules/vprintf-posix (Depends-on): Likewise.
32821         * modules/vsnprintf (Depends-on): Likewise.
32822         * modules/vsnprintf-posix (Depends-on): Likewise.
32823         * modules/vsprintf-posix (Depends-on): Likewise.
32824         * modules/wcrtomb (Depends-on): Likewise.
32825         * modules/wcscasecmp (Depends-on): Likewise.
32826         * modules/wcscspn (Depends-on): Likewise.
32827         * modules/wcsdup (Depends-on): Likewise.
32828         * modules/wcsncasecmp (Depends-on): Likewise.
32829         * modules/wcsnrtombs (Depends-on): Likewise.
32830         * modules/wcspbrk (Depends-on): Likewise.
32831         * modules/wcsrtombs (Depends-on): Likewise.
32832         * modules/wcsspn (Depends-on): Likewise.
32833         * modules/wcsstr (Depends-on): Likewise.
32834         * modules/wcstok (Depends-on): Likewise.
32835         * modules/wcswidth (Depends-on): Likewise.
32836         * modules/wctob (Depends-on): Likewise.
32837         * modules/wctomb (Depends-on): Likewise.
32838         * modules/wctype (Depends-on): Likewise.
32839         * modules/wcwidth (Depends-on): Likewise.
32840         * modules/write (Depends-on): Likewise.
32842 2011-05-03  Bruno Haible  <bruno@clisp.org>
32844         Support for conditional dependencies.
32845         * doc/gnulib.texi (Module description): Document the syntax of
32846         conditional dependencies.
32847         * gnulib-tool: New option --conditional-dependencies.
32848         (func_usage): Document it.
32849         (cond_dependencies): New variable.
32850         (func_get_automake_snippet_conditional,
32851         func_get_automake_snippet_unconditional): New functions, extracted from
32852         func_get_automake_snippet.
32853         (func_get_automake_snippet): Use them.
32854         (sed_first_32_chars): New variable.
32855         (func_module_shellfunc_name): New function.
32856         (func_module_shellvar_name): New function.
32857         (func_module_conditional_name): New function.
32858         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
32859         func_cond_module_condition): New functions.
32860         (func_modules_transitive_closure): Add support for conditional
32861         dependencies.
32862         (func_emit_lib_Makefile_am): For a conditional module, enclose the
32863         conditional automake snippet in an automake conditional.
32864         (func_emit_autoconf_snippets): Emit shell functions that contain the
32865         code for conditional modules.
32866         (func_import, func_create_testdir): Update specification.
32868 2011-05-03  Eric Blake  <eblake@redhat.com>
32870         test-getaddrinfo: report error information
32871         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
32873 2011-05-03  Jim Meyering  <meyering@redhat.com>
32875         bootstrap: avoid build failure when $GZIP is set
32876         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
32877         program name.  If defined at all, it is supposed to list gzip options.
32878         Reported by Alan Curry in http://debbugs.gnu.org/8609
32880 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
32882         readme-release: new module with release instructions
32883         * modules/readme-release: New module.
32884         * top/README-release: New file, from coreutils, grep, diffutils.
32885         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32887 2011-05-02  Eric Blake  <eblake@redhat.com>
32889         fflush: also replace fclose when fixing fflush
32890         * modules/fflush (Depends-on): Add fclose.
32891         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
32892         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
32893         memstreams with no backing fd.
32894         * doc/posix-functions/fclose.texi (fclose): Document the use of
32895         fflush module to fix the bug.
32896         * tests/test-fclose.c (main): Relax test when fclose is used in
32897         isolation.
32899         fclose: add some tests
32900         * modules/fclose-tests: New test module.
32901         * tests/test-fclose.c: New file.
32902         * doc/posix-functions/fclose.texi (fclose): Document the bug.
32904         fclose: reduced dependencies
32905         * modules/fclose (Depends-on): Switch from fflush/fseeko to
32906         simpler lseek.
32907         * lib/fclose.c (rpl_fclose): Likewise.
32908         Reported by Simon Josefsson.
32910         exit: drop remaining clients
32911         * modules/argmatch (Depends-on): Replace exit with stdlib.
32912         * modules/copy-file (Depends-on): Likewise.
32913         * modules/execute (Depends-on): Likewise.
32914         * modules/exitfail (Depends-on): Likewise.
32915         * modules/obstack (Depends-on): Likewise.
32916         * modules/pagealign_alloc (Depends-on): Likewise.
32917         * modules/pipe-filter-gi (Depends-on): Likewise.
32918         * modules/pipe-filter-ii (Depends-on): Likewise.
32919         * modules/savewd (Depends-on): Likewise.
32920         * modules/spawn-pipe (Depends-on): Likewise.
32921         * modules/wait-process (Depends-on): Likewise.
32922         * modules/xsetenv (Depends-on): Likewise.
32923         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
32924         * modules/git-merge-changelog (Depends-on): Likewise.
32925         * modules/long-options (Depends-on): Likewise.
32926         * modules/pt_chown (Depends-on): Likewise.
32927         * modules/sysexits (Depends-on): Likewise.
32929         freading: relax license from LGPLv3+ to LGPLv2+
32930         * modules/freading (License): Relax LGPL version.
32932 2011-05-02  Bruno Haible  <bruno@clisp.org>
32934         fchdir: Remove unused dependencies.
32935         * modules/fchdir (Depends-on): Remove include_next.
32937 2011-05-02  Bruno Haible  <bruno@clisp.org>
32939         gnulib-tool: Refactor.
32940         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
32941         from func_emit_autoconf_snippets.
32942         (func_emit_autoconf_snippets): Use it.
32944 2011-05-02  Simon Josefsson  <simon@josefsson.org>
32946         * NEWS: Document removal of 'exit'.
32947         * modules/exit: Remove file.
32949 2011-05-01  Bruno Haible  <bruno@clisp.org>
32951         Update DEPENDENCIES.
32952         * DEPENDENCIES (gettext): Recommend the newest release.
32953         Reported by Simon Josefsson.
32955 2011-05-01  Bruno Haible  <bruno@clisp.org>
32957         gnulib-tool: Reduce code duplication.
32958         * gnulib-tool (func_emit_autoconf_snippets): New function.
32959         (func_import, func_create_testdir): Use it.
32961 2011-04-30  Eric Blake  <eblake@redhat.com>
32963         fclose: don't fail on non-seekable input stream
32964         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
32965         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
32966         since fflush is allowed to fail in that case.
32968 2011-04-30  Bruno Haible  <bruno@clisp.org>
32970         dup3: cleanup
32971         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
32973 2011-04-30  Bruno Haible  <bruno@clisp.org>
32975         netdb: Make it work in C++ mode.
32976         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
32977         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
32978         module.
32979         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
32980         gl_MODULE_INDICATOR_FOR_TESTS.
32981         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
32982         * modules/netdb-c++-tests: New file.
32983         * tests/test-netdb-c++.cc: New file.
32985 2011-04-30  Bruno Haible  <bruno@clisp.org>
32987         New modules 'vfscanf', 'vscanf'.
32988         * modules/vfscanf: New file.
32989         * modules/vscanf: New file.
32990         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
32991         here.
32992         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
32993         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
32995 2011-04-30  Bruno Haible  <bruno@clisp.org>
32997         passfd: Add comments.
32998         * lib/passfd.c: Add comments about platforms.
33000 2011-04-30  Bruno Haible  <bruno@clisp.org>
33002         sys_uio: Make <sys/uio.h> self-contained.
33003         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
33004         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
33006 2011-04-30  Bruno Haible  <bruno@clisp.org>
33008         sys_socket: Ensure 'struct iovec' definition.
33009         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
33010         <sys/socket.h>.
33011         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
33013 2011-04-30  Bruno Haible  <bruno@clisp.org>
33015         sys_uio: Protect definition of 'struct iovec'.
33016         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
33017         it as a C struct.
33019 2011-04-30  Bruno Haible  <bruno@clisp.org>
33021         manywarnings: fix indentation
33022         * m4/manywarnings.m4: Indent by 2 spaces consistently.
33024 2011-04-30  Pádraig Brady <P@draigBrady.com>
33026         manywarnings: add -Wno-missing-field-initializers if needed.
33027         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
33028         option if it's needed to allow initialization with { 0, }
33030 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
33032         announce-gen: cosmetic improvement
33033         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
33035 2011-04-29  Jim Meyering  <meyering@redhat.com>
33037         vc-list-files: indent with spaces, not TABs
33038         * build-aux/vc-list-files: Convert leading TABs to spaces,
33039         to match the style of most other files in gnulib.
33041         announce-gen: indent with spaces, not TABs
33042         * build-aux/announce-gen: Convert all TABs to spaces, to match
33043         the style of most other files in gnulib.
33045 2011-04-29  Eric Blake  <eblake@redhat.com>
33047         quotearg: avoid uninitialized variable use
33048         * lib/quotearg.c (quoting_options_from_style): Initialize
33049         remaining fields, and ensure that custom styles are only used via
33050         quoting_options rather than quoting_style.
33052 2011-04-29  Jim Meyering  <meyering@redhat.com>
33054         maint.mk: remove unused VC-tag variable
33055         * top/maint.mk (VC-tag): Remove unused variable.
33057 2011-04-29  Bruno Haible  <bruno@clisp.org>
33059         netdb: fix gai_strerror replacements
33060         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
33061         * modules/netdb: Substitute it.
33063 2011-04-29  Jim Meyering  <meyering@redhat.com>
33065         test-getcwd.c: avoid new set-but-not-used warning
33066         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
33067         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
33068         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
33069         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
33071         test-hash.c: avoid a new shadowing warning
33072         * tests/test-hash.c (main): Don't shadow "dup".
33074 2011-04-28  Eric Blake  <eblake@redhat.com>
33076         getaddrinfo: fix gai_strerror signature
33077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
33078         and work around mingw with UNICODE defined.
33079         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
33080         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
33081         * modules/netdb (Makefile.am): Substitute it.
33082         * lib/netdb.in.h (gai_strerror): Declare replacement.
33083         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
33084         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
33085         the fix.
33087         getsockopt: avoid compiler warning
33088         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
33089         Reported by Matthias Bolte.
33091         tests: drop unused link dependency
33092         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
33093         * modules/dirent-safer-tests (Makefile.am): Likewise.
33094         * modules/fdopendir-tests (Makefile.am): Likewise.
33095         * modules/mkfifoat-tests (Makefile.am): Likewise.
33096         * modules/openat-safer-tests (Makefile.am): Likewise.
33097         * modules/openat-tests (Makefile.am): Likewise.
33098         * modules/readlinkat-tests (Makefile.am): Likewise.
33099         * modules/symlinkat-tests (Makefile.am): Likewise.
33100         * modules/linkat-tests (Makefile.am): Likewise.
33101         (Depends-on): Switch to filenamecat-lgpl.
33102         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
33103         LIBINTL.
33104         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
33105         * tests/test-linkat.c (main): Don't require xalloc.
33107         hash, mgetgroups: drop xalloc dependency
33108         * lib/hash.c (includes): Adjust includes.
33109         * lib/mgetgroups.c (includes): Likewise.
33110         (xgetgroups): Move...
33111         * lib/xgetgroups.c: ...to new file.
33112         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
33113         * modules/xgetgroups: New file, split from...
33114         * modules/mgetgroups: ...here.
33115         (Depends-on): Add xalloc-oversized.
33116         * modules/hash (Depends-on): Likewise.
33117         * modules/hash-tests (Depends-on): Drop xalloc.
33118         (test_hash_LDADD): Drop unused library.
33119         * tests/test-hash.c (main): Break xalloc dependency.
33120         (includes): Drop unused include.
33122         xalloc-oversized: new module
33123         * modules/xalloc-oversized: New module.
33124         * modules/xalloc (Depends-on): Add it.
33125         * lib/xalloc.h (xalloc_oversized): Move...
33126         * lib/xalloc-oversized.h: ...into new file.
33128         utimecmp: drop dependency on xmalloc
33129         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
33130         due to memory pressure.
33131         * modules/utimecmp (Depends-on): Drop xalloc.
33133 2011-04-27  Eric Blake  <eblake@redhat.com>
33135         getcwd: fix mingw bugs
33136         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
33137         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
33138         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
33140 2011-04-27  Bruno Haible  <bruno@clisp.org>
33142         mkstemps: Ensure declaration on MacOS X 10.5.
33143         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
33144         * doc/glibc-functions/mkstemps.texi: Document header file problem on
33145         MacOS X.
33147 2011-04-27  Bruno Haible  <bruno@clisp.org>
33149         mkstemp: More documentation.
33150         * doc/posix-functions/mkstemp.texi: Document header file problem on
33151         MacOS X.
33153 2011-04-27  Bruno Haible  <bruno@clisp.org>
33155         mkstemp: Tweak configure message when cross-compiling.
33156         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
33157         result as a guess.
33159 2011-04-27  Bruno Haible  <bruno@clisp.org>
33161         clean-temp: Clarify what it does.
33162         * lib/clean-temp.h: Add more comments.
33163         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
33164         module.
33165         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
33166         * doc/glibc-functions/mkstemps.texi: Likewise.
33167         * doc/glibc-functions/mkostemps.texi: Likewise.
33169 2011-04-27  Eric Blake  <eblake@redhat.com>
33171         fchdir: avoid extra chdir and fix test
33172         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
33173         getcwd-lgpl.
33174         * lib/fchdir.c (get_name): Any absolute name will do; it does not
33175         have to be canonical.
33176         (canonicalize_file_name): Drop unused macro.
33177         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
33179         filenamecat-lgpl: fix licence
33180         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
33181         when it was first created.
33183         linkat, renameat: add missing dependency
33184         * modules/linkat (Depends-on): Require getcwd-lgpl.
33185         * modules/renameat (Depends-on): Likewise.
33187         tests: reduce dependencies
33188         * tests/test-linkat.c (main): Use lighter-weight getcwd.
33189         * tests/test-renameat.c (main): Likewise.
33190         * modules/linkat-tests (Depends-on): Relax dependency.
33191         * modules/renameat-tests (Depends-on): Likewise.
33192         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
33193         dependency explicit.
33195         save-cwd: reduce default dependency
33196         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
33197         * lib/save-cwd.c: Update comments.
33198         * NEWS: Document the semantic change.
33200         getcwd: enhance tests
33201         * tests/test-getcwd-lgpl.c: New file, taken from...
33202         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
33203         repeat long path stress tests from m4 probe.
33204         * modules/getcwd-lgpl-tests: New module.
33205         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
33206         * m4/getcwd-abort-bug.m4: Update comment.
33207         * m4/getcwd-path-max.m4: Likewise.
33209         getcwd-lgpl: new module
33210         * modules/getcwd-lgpl: New module.
33211         * lib/getcwd-lgpl.c: New file.
33212         * doc/posix-functions/getcwd.texi (getcwd): Document it.
33213         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33214         * modules/getcwd (configure.ac): Set C witness.
33215         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
33217         getcwd: tweak comments
33218         * m4/getcwd-abort-bug.m4: Fix comments.
33219         * m4/getcwd-path-max.m4: Likewise.
33220         * m4/getcwd.m4: Likewise.
33222 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
33223         and Eric Blake  <eblake@redhat.com>
33225         mkstemp: replace if system version uses wrong permissions
33226         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
33227         read/write mode bits set in file created by mkstemp.
33228         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
33230 2011-04-27  Eric Blake  <eblake@redhat.com>
33232         passfd: avoid compiler warning
33233         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
33234         Reported by Laine Stump.
33236 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
33238         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
33239         required by the NetBSD (and perhaps other 4.4BSD derived) join.
33241 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
33242         and Eric Blake  <eblake@redhat.com>
33244         mkstemp: mention clean-temp module
33245         * lib/mkstemp.c: Add comment.
33246         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
33248 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
33250         inttypes: also provide default values for 32-bit tests
33251         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
33252         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
33254 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
33256         strtoumax: remove dependency on strtoimax
33257         This is like the strtoull change of yesterday.
33258         * modules/strtoumax (Files): Add lib/strtoimax.c.
33259         (Depends-on): Remove strtoimax and add verify.
33261         inttypes-incomplete: new module
33262         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
33263         all but the PRI* and SCN* parts of gl_INTTYPES_H.
33264         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
33265         of gl_INTTYPES_H.
33266         (gl_INTTYPES_H): Rewrite in terms of these new macros.
33267         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
33268         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
33269         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
33270         * modules/strtoumax, modules/xstrtol (Depends-on):
33271         Depend on inttypes-incomplete, not inttypes.
33272         * modules/inttypes-incomplete: New module, containing the contents
33273         of the old modules/inttypes module, except that the Files: section
33274         omits m4/inttypes-pri.m4, and the configure.ac section invokes
33275         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
33276         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
33277         (Depends-on): Depend only on inttypes-incomplete.
33278         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
33280         inttypes: omit now-redundant strtoimax and strtoumax work
33281         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
33282         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
33284         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
33285         This supports apps that need pointers to strtoimax and strtoumax,
33286         and ports to HP-UX 11.00 64.bit, which has macros that expand to
33287         nonexistent functions.  See
33288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
33289         et seq.
33290         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
33291         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
33292         a macro.
33293         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33295 2011-04-25  Simon Josefsson  <simon@josefsson.org>
33297         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
33299 2011-04-25  Bruno Haible  <bruno@clisp.org>
33301         strtol, strtoul: Mark modules as obsolete.
33302         * modules/strtol (Status, Notice): New sections.
33303         * modules/strtoul (Status, Notice): New sections.
33305 2011-04-25  Bruno Haible  <bruno@clisp.org>
33307         strtod: Remove check for strtod, unless supporting old platforms.
33308         * modules/strtod-obsolete: New file.
33309         * m4/strtod-obsolete.m4: New file.
33310         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
33311         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
33312         * modules/strtod (Depends-on): Add strtod-obsolete.
33313         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
33315 2011-04-25  Bruno Haible  <bruno@clisp.org>
33317         strcase: Make module obsolete.
33318         * modules/strcase (Status, Notice): New sections.
33320 2011-04-25  Bruno Haible  <bruno@clisp.org>
33322         dup2: Remove check for dup2, unless supporting old obsolete platforms.
33323         * modules/dup2-obsolete: New file.
33324         * m4/dup2-obsolete.m4: New file.
33325         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
33326         gl_FUNC_DUP2_OBSOLETE is not also defined.
33327         * modules/dup2 (Depends-on): Add dup2-obsolete.
33328         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
33330 2011-04-25  Bruno Haible  <bruno@clisp.org>
33332         strnlen: Avoid memchr related link error on old obsolete platforms.
33333         * modules/memchr-obsolete: New file.
33334         * m4/memchr-obsolete.m4: New file.
33335         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
33336         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
33337         * modules/memchr (Depends-on): Add memchr-obsolete.
33338         * modules/strnlen (Depends-on): Likewise.
33339         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
33341 2011-04-25  Jim Meyering  <meyering@redhat.com>
33343         maint.mk: makefile_at_at_check extend and clean up
33344         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
33345         in addition to */Makefile.am.
33346         Exempt legitimate uses of @VAR@ notation, e.g.,
33347         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
33348         Remove obsolete coreutils-specific comment.
33349         Prompted by discussion here:
33350         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
33352 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33354         strtoul: remove dependency on strtol
33355         This is so that 'configure' need not check for strtol merely because
33356         the application needs strtoul.
33357         * modules/strtoul (Files): Add lib/strtol.c.
33358         (Depends-on): Remove strtol.
33360         strtoull: remove dependency on strtoul
33361         This is like the strtoll change.
33362         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
33363         (Depends-on): Remove strtoul.
33365         strtoll: remove dependency on strtol
33366         This is so that 'configure' need not check for strtol merely because
33367         the application needs strtoll.
33368         * modules/strtoll (Files): Add lib/strtol.c.
33369         (Depends-on): Remove strtol.
33371 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33373         inttypes: Move some configure check to module 'imaxdiv'.
33374         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
33375         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
33376         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
33378 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33380         inttypes: Move some configure check to module 'imaxabs'.
33381         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
33382         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
33383         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
33385 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33387         inttypes: Remove configure tests that are not needed since 2009-12-31.
33388         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
33389         gl_cv_header_working_inttypes_h.
33391 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33393         * modules/strnlen (Depends-on): Remove memchr.
33394         The strnlen implementation doesn't need the memchr module's fixes; see
33395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
33397         strtol: remove dependency on wchar
33398         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
33399         * modules/strtol (Depends-on): Remove wchar.
33401 2011-04-21  Eric Blake  <eblake@redhat.com>
33403         passfd: fix test regression on Linux
33404         * modules/passfd-tests (configure.ac): Correct socketpair check.
33406         passfd: speed up configure and drop unused code
33407         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
33408         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
33409         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
33410         Instead of probing at configure for unix_scm_rights_bsd44_way,
33411         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
33412         check to a struct member probe.
33413         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
33414         (sendfd, recvfd): Update preprocessor checks.
33415         * modules/passfd (Files): Reflect rename, and drop unused file.
33416         (Depends-on): Drop unused dependency.
33418         passfd: allow compilation on mingw
33419         * modules/sys_socket (Depends-on): Add sys_uio.
33420         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
33421         iovec and a minimal struct msghdr.
33422         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
33423         * tests/test-sys_socket.c (main): Enhance test.
33424         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
33425         guaranteed to provide what we need.
33426         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
33427         * modules/passfd-tests (Depends-on): Add sys_wait.
33428         * tests/test-passfd.c (main): Skip test on mingw, for now.
33429         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
33430         partial 'struct msghdr' implementation.
33432         sys_uio: new module
33433         * modules/sys_uio: New module.
33434         * modules/sys_uio-tests: Likewise.
33435         * lib/sys_uio.in.h: New file.
33436         * m4/sys_uio_h.m4: Likewise.
33437         * tests/test-sys_uio.c: Likewise.
33438         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
33439         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
33441 2011-04-20  Jim Meyering  <meyering@redhat.com>
33443         useless-if-before-free: avoid false-positive
33444         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
33445         disjunct so that it too requires a terminating ";".  Without that,
33446         this script would identify as useless one statement from gcc that
33447         was not:
33448           if (aligned_ptr)
33449             free (((void **) aligned_ptr) [-1]);
33451 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
33453         doc: update users.txt.
33454         * users.txt: Add barcode.
33456 2011-04-19  Bruno Haible  <bruno@clisp.org>
33458         ioctl: Remove link dependency on native Windows.
33459         * lib/fd-hook.h: Renamed from lib/close-hook.h.
33460         (gl_close_fn, gl_ioctl_fn): New types.
33461         (struct fd_hook): Renamed from struct close_hook. Change type of
33462         private_close_fn field. Add private_ioctl_fn field.
33463         (close_hook_fn): Add parameter for primary close method.
33464         (execute_close_hooks, execute_all_close_hooks): Likewise.
33465         (ioctl_hook_fn): New type.
33466         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
33467         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
33468         argument.
33469         (unregister_fd_hook): Renamed from unregister_close_hook.
33470         * lib/fd-hook.c: Renamed from lib/close-hook.c.
33471         Don't include <unistd.h>.
33472         (close): Remove undef.
33473         (anchor): Update.
33474         (execute_close_hooks): Add argument for primary close method.
33475         (execute_all_close_hooks): Likewise.
33476         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
33477         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
33478         argument. Allow each argument to be NULL.
33479         (unregister_fd_hook): Renamed from unregister_close_hook.
33480         * lib/close.c (rpl_close): Pass 'close' function pointer to
33481         execute_all_close_hooks.
33482         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
33483         (primary_ioctl): New function.
33484         (ioctl): Don't call ioctlsocket here. Instead, call
33485         execute_all_ioctl_hooks.
33486         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
33487         close method.
33488         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
33489         (fd_sockets_hook): Renamed from close_sockets_hook.
33490         (gl_sockets_startup, gl_sockets_cleanup): Update.
33491         * modules/fd-hook: Renamed from modules/close-hook. Update.
33492         * modules/close (Depends-on): Add fd-hook, remove close-hook.
33493         * modules/sockets (Depends-on): Likewise.
33494         * modules/ioctl (Depends-on): Add fd-hook.
33495         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
33496         GNULIB_SOCKET.
33498 2011-04-19  Bruno Haible  <bruno@clisp.org>
33500         Move the support of O_NONBLOCK in open() to the 'open' module.
33501         * modules/nonblocking (Depends-on): Remove 'open'.
33502         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
33503         gl_cv_have_open_O_NONBLOCK.
33504         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
33505         O_NONBLOCK support.
33506         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
33508 2011-04-17  Bruno Haible  <bruno@clisp.org>
33510         pipe2: Simplify code.
33511         * lib/pipe2.c (pipe2): Reduce code duplication.
33513 2011-04-17  Bruno Haible  <bruno@clisp.org>
33515         nonblocking: Add comment.
33516         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
33518 2011-04-17  Bruno Haible  <bruno@clisp.org>
33520         nonblocking: Add tests for sockets.
33521         * tests/test-nonblocking-socket.sh: New file.
33522         * tests/test-nonblocking-socket-main.c: New file.
33523         * tests/test-nonblocking-socket-child.c: New file.
33524         * tests/test-nonblocking-socket.h: New file.
33525         * tests/socket-server.h: New file.
33526         * tests/socket-client.h: New file.
33527         * modules/nonblocking-socket-tests: New file.
33528         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
33530 2011-04-17  Bruno Haible  <bruno@clisp.org>
33532         nonblocking: Add tests for pipes.
33533         * tests/test-nonblocking-pipe.sh: New file.
33534         * tests/test-nonblocking-pipe-main.c: New file.
33535         * tests/test-nonblocking-pipe-child.c: New file.
33536         * tests/test-nonblocking-pipe.h: New file.
33537         * tests/test-nonblocking-writer.h: New file.
33538         * tests/test-nonblocking-reader.h: New file.
33539         * tests/test-nonblocking-misc.h: New file.
33540         * modules/nonblocking-pipe-tests: New file.
33541         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
33543 2011-04-16  Bruno Haible  <bruno@clisp.org>
33545         gettext: Clarify the needed programmer actions.
33546         * modules/gettext (Notice): New field.
33547         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33549 2011-04-16  Bruno Haible  <bruno@clisp.org>
33551         strchrnul: Tweak last commit.
33552         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
33553         bug.
33554         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
33555         as in _GL_FUNCDECL_SYS.
33556         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
33557         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
33559 2011-04-15  Eric Blake  <eblake@redhat.com>
33561         strchrnul: work around cygwin bug
33562         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
33563         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
33564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
33565         * modules/string (Makefile.am): Substitute it.
33566         * lib/string.in.h (strchrnul): Use it.
33568 2011-04-15  Bruno Haible  <bruno@clisp.org>
33570         Don't require lib/stdio-write.c when only module 'stdio' is used.
33571         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
33572         invocation.
33573         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
33575 2011-04-14  Bruno Haible  <bruno@clisp.org>
33577         Support non-blocking pipe I/O in read() on native Windows.
33578         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
33579         (read): New declaration.
33580         * lib/read.c: New file.
33581         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
33582         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
33583         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
33584         vscanf): New declarations.
33585         * lib/stdio-read.c: New file.
33586         * m4/read.m4: New file.
33587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
33588         REPLACE_READ.
33589         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
33590         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
33591         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
33592         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
33593         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
33594         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
33595         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
33596         * modules/read: New file.
33597         * modules/nonblocking (Files): Add lib/stdio-read.c.
33598         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
33599         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
33600         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
33601         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
33602         * modules/pread (Depends-on): Add read.
33603         * modules/safe-read (Depends-on): Likewise.
33604         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
33605         gets, scanf, vfscanf, vscanf): Verify signatures.
33606         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
33607         problem with non-blocking pipes.
33608         * doc/posix-functions/fgetc.texi: Likewise.
33609         * doc/posix-functions/fgets.texi: Likewise.
33610         * doc/posix-functions/fread.texi: Likewise.
33611         * doc/posix-functions/fscanf.texi: Likewise.
33612         * doc/posix-functions/getc.texi: Likewise.
33613         * doc/posix-functions/getchar.texi: Likewise.
33614         * doc/posix-functions/gets.texi: Likewise.
33615         * doc/posix-functions/scanf.texi: Likewise.
33616         * doc/posix-functions/vfscanf.texi: Likewise.
33617         * doc/posix-functions/vscanf.texi: Likewise.
33619 2011-04-14  Bruno Haible  <bruno@clisp.org>
33621         Support non-blocking pipe I/O in write() on native Windows.
33622         * lib/write.c (rpl_write): Split a write request that failed merely
33623         because the byte count was larger than the pipe buffer's size.
33624         * doc/posix-functions/write.texi: Mention the problem with large byte
33625         counts.
33627 2011-04-14  Bruno Haible  <bruno@clisp.org>
33629         wchar: Ensure that wchar_t gets defined on uClibc.
33630         * lib/wchar.in.h: On uClibc, include <stddef.h>.
33631         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
33633 2011-04-13  Bruno Haible  <bruno@clisp.org>
33635         safe-write, full-read: Avoid unnecessary compilation units.
33636         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
33637         (Depends-on): Remove safe-read. Add ssize_t.
33638         * modules/full-read (Files): Add lib/full-write.c.
33639         (Depends-on): Add full-write.
33641 2011-04-13  Bruno Haible  <bruno@clisp.org>
33643         Support non-blocking pipe I/O and SIGPIPE in pwrite().
33644         * modules/pwrite (Depends-on): Add 'write'.
33646 2011-04-13  Bruno Haible  <bruno@clisp.org>
33648         Support non-blocking pipe I/O in write() on native Windows.
33649         * lib/unistd.in.h (write): Enable replacement also if
33650         GNULIB_UNISTD_H_NONBLOCKING is 1.
33651         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
33652         (rpl_write): When failing to write on a non-blocking pipe, change
33653         errno from ENOSPC to EAGAIN.
33654         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
33655         putchar, puts, vfprintf, vprintf): Enable replacement also if
33656         GNULIB_STDIO_H_NONBLOCKING is 1.
33657         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
33658         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
33659         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
33660         CALL_WITH_SIGPIPE_EMULATION.
33661         (CALL_WITH_SIGPIPE_EMULATION): Use them.
33662         * m4/nonblocking.m4: New file.
33663         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
33664         for non-blocking I/O support.
33665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33666         GNULIB_UNISTD_H_NONBLOCKING.
33667         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
33668         required for non-blocking I/O support.
33669         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
33670         * modules/nonblocking (Files): Add m4/nonblocking.m4,
33671         lib/stdio-write.c, m4/asm-underscore.m4.
33672         (Depends-on): Add stdio, unistd.
33673         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
33674         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
33675         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
33676         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
33677         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
33678         problem with non-blocking pipes.
33679         * doc/posix-functions/fputc.texi: Likewise.
33680         * doc/posix-functions/fputs.texi: Likewise.
33681         * doc/posix-functions/fwrite.texi: Likewise.
33682         * doc/posix-functions/printf.texi: Likewise.
33683         * doc/posix-functions/putc.texi: Likewise.
33684         * doc/posix-functions/putchar.texi: Likewise.
33685         * doc/posix-functions/puts.texi: Likewise.
33686         * doc/posix-functions/vfprintf.texi: Likewise.
33687         * doc/posix-functions/vprintf.texi: Likewise.
33688         * doc/posix-functions/write.texi: Likewise.
33690 2011-04-10  Jim Meyering  <meyering@redhat.com>
33692         maint.mk: prohibit doubled words
33693         Detect them also when they're separated by a newline.
33694         There are 3 ways to customize it:
33695           - disable the test on a per file basis, as usual with rules using
33696             $(VC_LIST_EXCEPT)
33697           - replace the default doubled-word-selecting regexp (affects all files)
33698           - ignore a particular file-vs-doubled-word match
33699         I nearly used that last one to ignore the "is is" match in
33700         coreutils' NEWS file, since the text was "ls -is is ..."
33701         To do that, I would have added this line to cfg.mk:
33702           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
33703         but it would have ignored any "is is" match in NEWS.
33704         Low probability, but still...
33705         Instead, I changed the text, slightly:
33706           -  ls -is is now consistent with ls -lis in ignoring values returned
33707           +  "ls -is" is now consistent with ls -lis in ignoring values returned
33708         * top/maint.mk (prohibit_double_word_RE_): Provide default.
33709         (prohibit_doubled_word_): Define.
33710         (sc_prohibit_doubled_word): New rule.
33711         (sc_prohibit_the_the): Remove.  Subsumed by the above.
33713 2011-04-10  Jim Meyering  <meyering@redhat.com>
33715         maint: fix doubled-word typo in comment
33716         * m4/gethostname.m4: s/is is/it is/
33717         * m4/getdomainname.m4: Likewise.
33719 2011-04-10  Jim Meyering  <meyering@redhat.com>
33721         maint: remove doubled word: s/it it/it/
33722         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
33724 2011-04-10  Jim Meyering  <meyering@redhat.com>
33726         maint.mk: remove useless semicolon and backslash
33727         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
33728         semicolon and backslash.
33730 2011-04-10  Bruno Haible  <bruno@clisp.org>
33732         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
33733         * modules/stdint-tests (Depends-on): Add wchar.
33735 2011-04-10  Jim Meyering  <meyering@redhat.com>
33737         maint: remove doubled words in comments, e.g., s/a a/a/
33738         * lib/strptime.c (day_of_the_week): s/the the/the/
33739         * tests/test-chown.h (test_chown): s/a a/a/
33741         test-chown.h: correct a cast
33742         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
33743         when the destination is a stat.st_gid.
33745 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
33747         getaddrinfo: Fix test for sa_len member.
33748         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
33749         include <sys/types.h> before <sys/socket.h>.
33751 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33753         maint: change "can not" to "cannot"
33754         * doc/posix-functions/iconv.texi (iconv): This one crossed line
33755         boundaries.
33757 2011-04-09  Jim Meyering  <meyering@redhat.com>
33759         maint: change "a a" to "a"
33760         * tests/test-lchown.h (test_lchown): s/a a/a/
33762         maint.mk: prohibit \<the the\>
33763         * top/maint.mk (sc_prohibit_the_the): New rule.
33765         maint: fix "the the" in comment
33766         * lib/count-one-bits.h: s/the the/the/
33768         maint: change "can not" to "cannot"
33769         But do not change the occurrences in maintain.texi or in
33770         build-aux/po/Makefile.in.in, which I presume comes from gettext.
33771         * doc/gnulib-tool.texi: s/can not/cannot/
33772         * doc/posix-functions/accept.texi (accept): Likewise.
33773         * doc/posix-functions/socket.texi (socket): Likewise.
33774         * lib/mbrtowc.c: Likewise.
33776         maint.mk: prohibit use of "can not"
33777         * top/maint.mk (sc_prohibit_can_not): New rule.
33778         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
33780 2011-04-09  Bruno Haible  <bruno@clisp.org>
33782         careadlinkat: Guard against misuse of careadlinkatcwd.
33783         * lib/careadlinkat.c: Include <stdlib.h>.
33784         (careadlinkatcwd): Check that the fd argument is as expected.
33786 2011-04-09  Bruno Haible  <bruno@clisp.org>
33788         careadlinkat: Use common coding style.
33789         * lib/careadlinkat.c: Move gnulib includes after system includes.
33791 2011-04-09  Bruno Haible  <bruno@clisp.org>
33793         careadlinkat: Clarify specification.
33794         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
33795         (careadlinkatcwd): Add comment.
33796         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
33798 2011-04-09  Bruno Haible  <bruno@clisp.org>
33800         areadlinkat: Avoid link error on many platforms.
33801         * modules/areadlinkat (Depends-on): Add areadlink.
33803 2011-04-09  Bruno Haible  <bruno@clisp.org>
33805         allocator, careadlinkat: Fix double-inclusion guard.
33806         * lib/allocator.h: Fix double-inclusion guard.
33807         * lib/careadlinkat.h: Likewise.
33809 2011-04-09  Bruno Haible  <bruno@clisp.org>
33811         relocatable-prog-wrapper: Update after module 'areadlink' changed.
33812         * lib/relocwrapper.c: Update dependencies hierarchy.
33813         * build-aux/install-reloc: Update list of files to be compiled.
33814         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
33815         lib/allocator.[hc].
33817 2011-04-08  Eric Blake  <eblake@redhat.com>
33819         strftime: silence gnulib-tool warning
33820         * modules/strftime-tests (Depends-on): Drop automatic dependency.
33822 2011-04-08  Bruno Haible  <bruno@clisp.org>
33824         verify: Fix syntax error with GCC 4.6 in C++ mode.
33825         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
33826         (HAVE_STATIC_ASSERT): New macro.
33827         (verify_true, verify): Use 'static_assert' if it is supported and
33828         '_Static_assert' is not supported.
33830 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
33832         allocator: New module.
33833         * modules/allocator, lib/allocator.c: New files.
33834         * lib/allocator.h (stdlib_allocator): New decl.
33835         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
33836         Remove.  Do not include <stdlib.h>.
33837         (careadlinkat): Use stdlib_allocator instead of rolling our own.
33838         * modules/careadlinkat (Files): Remove lib/allocator.h.
33839         (Depends-on): Add allocator.
33841         stdlib: let modules use system malloc, realloc
33842         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
33843         if !_GL_USE_STDLIB_ALLOC.
33844         (malloc, realloc): Limit this change to a smaller scope.
33846         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
33847         (malloc, realloc): Don't #undef; no longer needed.
33848         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33849         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33850         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
33851         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33852         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33853         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33854         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33855         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
33857         careadlinkat: rename members to avoid problem
33858         * lib/allocator.h (struct allocator): Rename members from
33859         malloc/realloc to allocate/reallocate, to avoid problems if malloc
33860         and realloc are #define'd.  Reported by Eric Blake in
33861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
33862         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
33864 2011-04-08  Eric Blake  <eblake@redhat.com>
33866         nonblocking: reduce dependency
33867         * tests/test-nonblocking.c: Only test sockets when in use.
33868         * modules/nonblocking-tests (Depends-on): Drop socket.
33869         (Makefile.am): Link even if sockets are not present.
33870         * modules/pipe2-tests (Makefile.am): Likewise.
33871         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
33873         pipe2: fix O_NONBLOCK support on mingw
33874         * modules/pipe2 (Depends-on): Add nonblocking.
33875         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
33876         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
33877         * tests/test-nonblocking.c (main): Likewise.
33878         * modules/pipe2-tests (Makefile.am): Avoid link failure.
33880         fcntl-h: fix O_ACCMODE on cygwin
33881         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
33882         * lib/fcntl.in.h (O_ACCMODE): Fix it.
33884         pipe-filter: drop O_NONBLOCK workarounds
33885         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
33886         * modules/pipe-filter-ii (Depends-on): Likewise.
33887         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
33889         nonblocking: provide O_NONBLOCK for mingw
33890         * modules/nonblocking (Depends-on): Add open.
33891         (configure.ac): Set new witness macro.
33892         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
33893         * modules/fcntl-h (Makefile.am): Substitute it.
33894         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
33895         nonblocking module is in use.
33896         * lib/nonblocking.c: Adjust portability test.
33897         * lib/open.c (open): Don't let native open see gnulib flag.
33898         * tests/test-fcntl-h.c (main): Enhance test.
33899         * tests/test-open.h (test_open): Likewise.
33900         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
33902         careadlinkat: fix compilation error on mingw
33903         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
33904         within struct allocator.
33906 2011-04-06  Eric Blake  <eblake@redhat.com>
33908         binary-io: relicense under LGPLv2+
33909         * modules/binary-io (License): Relax to LGPLv2+.
33910         Requested for libvirt, and required by pipe2.
33912 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
33914         verify: use _Static_assert if available
33915         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
33916         (verify_true, verify): Use it if available.  This generates better
33917         diagnostics with GCC 4.6.0 and later.
33919 2011-04-05  Bruno Haible  <bruno@clisp.org>
33921         Remove leftover generated .h files after config.status changed.
33923         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
33924         GL_GENERATE_ALLOCA_H.
33925         * modules/alloca-opt (Makefile.am): Remove alloca.h if
33926         GL_GENERATE_ALLOCA_H evaluates to false.
33928         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
33929         GL_GENERATE_ARGZ_H.
33930         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
33931         evaluates to false.
33933         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
33934         GL_GENERATE_BYTESWAP_H.
33935         * modules/byteswap (Makefile.am): Remove byteswap.h if
33936         GL_GENERATE_BYTESWAP_H evaluates to false.
33938         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
33939         GL_GENERATE_ERRNO_H.
33940         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
33941         evaluates to false.
33943         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
33944         GL_GENERATE_FLOAT_H.
33945         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
33946         evaluates to false.
33948         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
33949         GL_GENERATE_FNMATCH_H.
33950         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
33951         GL_GENERATE_FNMATCH_H evaluates to false.
33953         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
33954         GL_GENERATE_GLOB_H.
33955         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
33956         evaluates to false.
33958         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
33959         automake conditional GL_GENERATE_ICONV_H.
33960         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
33961         evaluates to false.
33963         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
33964         GL_GENERATE_NETINET_IN_H.
33965         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
33966         GL_GENERATE_NETINET_IN_H evaluates to false.
33968         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
33969         conditional GL_GENERATE_PTHREAD_H.
33970         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
33971         * modules/pthread (Makefile.am): Remove pthread.h if
33972         GL_GENERATE_PTHREAD_H evaluates to false.
33974         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
33975         GL_GENERATE_SCHED_H.
33976         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
33977         evaluates to false.
33979         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
33980         conditional GL_GENERATE_SELINUX_CONTEXT_H.
33981         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
33982         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
33984         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
33985         GL_GENERATE_STDARG_H.
33986         * modules/stdarg (Makefile.am): Remove stdarg.h if
33987         GL_GENERATE_STDARG_H evaluates to false.
33989         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
33990         GL_GENERATE_STDBOOL_H.
33991         * modules/stdbool (Makefile.am): Remove stdbool.h if
33992         GL_GENERATE_STDBOOL_H evaluates to false.
33994         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
33995         conditional GL_GENERATE_STDDEF_H.
33996         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
33997         * modules/stddef (Makefile.am): Remove stddef.h if
33998         GL_GENERATE_STDDEF_H evaluates to false.
34000         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
34001         GL_GENERATE_STDINT_H.
34002         * modules/stdint (Makefile.am): Remove stdint.h if
34003         GL_GENERATE_STDINT_H evaluates to false.
34005         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
34006         GL_GENERATE_SYSEXITS_H.
34007         * modules/sysexits (Makefile.am): Remove sysexits.h if
34008         GL_GENERATE_SYSEXITS_H evaluates to false.
34010         Reported by Karl Berry and Ralf Wildenhues.
34012 2011-04-05  Bruno Haible  <bruno@clisp.org>
34014         Ensure to rebuild generated .h files when config.status has changed.
34015         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
34016         config.status.
34017         * modules/ctype (Makefile.am): Likewise.
34018         * modules/dirent (Makefile.am): Likewise.
34019         * modules/errno (Makefile.am): Likewise.
34020         * modules/fcntl-h (Makefile.am): Likewise.
34021         * modules/float (Makefile.am): Likewise.
34022         * modules/getopt-posix (Makefile.am): Likewise.
34023         * modules/glob (Makefile.am): Likewise.
34024         * modules/iconv-h (Makefile.am): Likewise.
34025         * modules/inttypes (Makefile.am): Likewise.
34026         * modules/langinfo (Makefile.am): Likewise.
34027         * modules/locale (Makefile.am): Likewise.
34028         * modules/math (Makefile.am): Likewise.
34029         * modules/netdb (Makefile.am): Likewise.
34030         * modules/netinet_in (Makefile.am): Likewise.
34031         * modules/poll-h (Makefile.am): Likewise.
34032         * modules/pthread (Makefile.am): Likewise.
34033         * modules/pty (Makefile.am): Likewise.
34034         * modules/sched (Makefile.am): Likewise.
34035         * modules/search (Makefile.am): Likewise.
34036         * modules/selinux-h (Makefile.am): Likewise.
34037         * modules/signal (Makefile.am): Likewise.
34038         * modules/spawn (Makefile.am): Likewise.
34039         * modules/stdarg (Makefile.am): Likewise.
34040         * modules/stdbool (Makefile.am): Likewise.
34041         * modules/stddef (Makefile.am): Likewise.
34042         * modules/stdint (Makefile.am): Likewise.
34043         * modules/stdio (Makefile.am): Likewise.
34044         * modules/stdlib (Makefile.am): Likewise.
34045         * modules/string (Makefile.am): Likewise.
34046         * modules/strings (Makefile.am): Likewise.
34047         * modules/sys_file (Makefile.am): Likewise.
34048         * modules/sys_ioctl (Makefile.am): Likewise.
34049         * modules/sys_select (Makefile.am): Likewise.
34050         * modules/sys_socket (Makefile.am): Likewise.
34051         * modules/sys_stat (Makefile.am): Likewise.
34052         * modules/sys_time (Makefile.am): Likewise.
34053         * modules/sys_times (Makefile.am): Likewise.
34054         * modules/sys_utsname (Makefile.am): Likewise.
34055         * modules/sys_wait (Makefile.am): Likewise.
34056         * modules/sysexits (Makefile.am): Likewise.
34057         * modules/termios (Makefile.am): Likewise.
34058         * modules/time (Makefile.am): Likewise.
34059         * modules/unistd (Makefile.am): Likewise.
34060         * modules/wchar (Makefile.am): Likewise.
34061         * modules/wctype-h (Makefile.am): Likewise.
34062         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
34064 2011-04-05  Bruno Haible  <bruno@clisp.org>
34066         pipe2: Relicense under LGPLv2+.
34067         * modules/pipe2 (License): Change to LGPLv2+.
34068         Requested by Eric Blake, for libvirt.
34070 2011-04-05  Bruce Korb  <bkorb@gnu.org>
34072         bootstrap: compute gnulib_extra_files after updating build_aux
34073         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
34074         change build_aux or also supply gnulib_extra_files.  Handle correctly.
34076 2011-04-05  Eric Blake  <eblake@redhat.com>
34078         bootstrap: preserve git whitelist item sorting
34079         * build-aux/bootstrap (sort_patterns): New function.
34080         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
34082 2011-04-05  Simon Josefsson  <simon@josefsson.org>
34084         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
34085         sc_space_tab check.
34087 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
34089         areadlink, areadlinkat: rewrite in terms of careadlinkat
34090         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
34091         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
34092         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
34093         (malloc, realloc): Remove #undefs.
34094         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
34095         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
34096         readlink, ssize_t, stdint, unistd.
34097         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
34098         areadlink, stdint.
34100         careadlinkat: new module
34101         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
34102         * modules/careadlinkat: New files, written by me with
34103         a review and feedback from Ben Pfaff in
34104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
34106 2011-04-01  Bruno Haible  <bruno@clisp.org>
34108         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
34109         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
34110         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
34111         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
34112         Reported by Bruce Korb <bruce.korb@gmail.com>.
34114 2011-04-01  Bruno Haible  <bruno@clisp.org>
34116         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
34117         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
34118         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
34119         * modules/wcpcpy (Depends-on): Add extensions.
34120         * modules/wcpncpy (Depends-on): Likewise.
34121         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
34122         systems.
34123         * doc/posix-functions/wcpncpy.texi: Likewise.
34124         * doc/posix-functions/wcwidth.texi: Likewise.
34126 2011-03-31  Eric Blake  <eblake@redhat.com>
34128         nonblocking: fix mingw test failures
34129         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
34130         non-blocking flag on regular file.
34131         (get_nonblocking_flag): Set errno on invalid fd.
34132         * tests/test-nonblocking.c (main): Avoid test failure on
34133         directories if fchdir is not active.
34134         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
34136 2011-03-31  Bruno Haible  <bruno@clisp.org>
34138         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
34139         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
34140         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
34141         Reported by Simon Josefsson <simon@josefsson.org>.
34143 2011-03-31  Bruno Haible  <bruno@clisp.org>
34144         and Eric Blake  <eblake@redhat.com>
34146         nonblocking: new module
34147         * modules/nonblocking: New module.
34148         * modules/nonblocking-tests: Likewise.
34149         * lib/nonblocking.h: New file.
34150         * lib/nonblocking.c: Likewise.
34151         * tests/test-nonblocking.c: New test.
34152         * lib/ioctl.c (ioctl) [mingw]: Update comment.
34154 2011-03-30  Bruno Haible  <bruno@clisp.org>
34156         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
34157         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
34158         instead of 'printf' format for GCC >= 4.4.
34159         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
34160         (fprintf, printf, vfprintf, vprintf): Declare with
34161         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
34162         the system's vfprintf() function.
34163         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
34165 2011-03-30  Eric Blake  <eblake@redhat.com>
34167         passfd: fix scoping bug
34168         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
34169         before sendmsg/recvmsg.
34171         passfd: standardize coding conventions
34172         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
34173         can be learned at compile time.
34174         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
34175         ifdefs.
34176         (sendfd, recvfd): Follow gnulib code conventions.
34178         passfd: fix incorrect sendmsg arguments
34179         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
34180         incorrect msg_controllen value.
34181         * modules/passfd-tests (Depends-on): Check for alarm.
34182         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
34183         Reported by Bastien ROUCARIES.
34185 2011-03-30  Bruno Haible  <bruno@clisp.org>
34187         c-strcasestr: Relicense under LGPLv2+.
34188         * modules/c-strcasestr (License): Change to LGPLv2+.
34189         Requested by Eric Blake, for libvirt.
34191 2011-03-30  Simon Josefsson  <simon@josefsson.org>
34193         * users.txt: Add libidn2.  Fix libtasn1 link.
34195 2011-03-30  Jim Meyering  <meyering@redhat.com>
34197         tests: readlink* ("",... fails with EINVAL on newer kernels
34198         readlink and readlinkat have typically failed with ENOENT for
34199         the invalid, empty file name,  "".  However, with the advent
34200         of linux-2.6.39, they fail with EINVAL.
34201         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
34202         when operating on the empty file name.
34203         * tests/test-readlink.h (test_readlink): Likewise.
34205 2011-03-29  Bruno Haible  <bruno@clisp.org>
34207         Relicense some modules under LGPLv2+, for libidn2.
34208         * modules/array-mergesort (License): Change to LGPLv2+.
34209         * modules/c-strcaseeq (License): Likewise.
34210         * modules/striconveh (License): Likewise.
34211         * modules/striconveha (License): Likewise.
34212         * modules/uniconv/base (License): Likewise.
34213         * modules/uniconv/u8-conv-from-enc (License): Likewise.
34214         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
34215         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
34216         * modules/unictype/base (License): Likewise.
34217         * modules/unictype/bidiclass-of (License): Likewise.
34218         * modules/unictype/category-M (License): Likewise.
34219         * modules/unictype/category-none (License): Likewise.
34220         * modules/unictype/category-of (License): Likewise.
34221         * modules/unictype/category-test (License): Likewise.
34222         * modules/unictype/category-test-withtable (License): Likewise.
34223         * modules/unictype/combining-class (License): Likewise.
34224         * modules/unictype/joiningtype-of (License): Likewise.
34225         * modules/unictype/scripts (License): Likewise.
34226         * modules/uninorm/base (License): Likewise.
34227         * modules/uninorm/canonical-decomposition (License): Likewise.
34228         * modules/uninorm/composition (License): Likewise.
34229         * modules/uninorm/decompose-internal (License): Likewise.
34230         * modules/uninorm/decomposition-table (License): Likewise.
34231         * modules/uninorm/nfc (License): Likewise.
34232         * modules/uninorm/nfd (License): Likewise.
34233         * modules/uninorm/u32-normalize (License): Likewise.
34234         * modules/unistr/base (License): Likewise.
34235         * modules/unistr/u32-cpy (License): Likewise.
34236         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
34237         * modules/unistr/u32-to-u8 (License): Likewise.
34238         * modules/unistr/u32-uctomb (License): Likewise.
34239         * modules/unistr/u8-check (License): Likewise.
34240         * modules/unistr/u8-mblen (License): Likewise.
34241         * modules/unistr/u8-mbtouc (License): Likewise.
34242         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
34243         * modules/unistr/u8-mbtoucr (License): Likewise.
34244         * modules/unistr/u8-prev (License): Likewise.
34245         * modules/unistr/u8-strlen (License): Likewise.
34246         * modules/unistr/u8-to-u32 (License): Likewise.
34247         * modules/unistr/u8-uctomb (License): Likewise.
34248         * modules/unitypes (License): Likewise.
34249         Requested by Simon Josefsson.
34251 2011-03-29  Simon Josefsson  <simon@josefsson.org>
34253         lib-symbol-visibility: Add a notice.
34254         * modules/lib-symbol-visibility (Notice): New field.
34256 2011-03-29  Bruno Haible  <bruno@clisp.org>
34258         getaddrinfo: Doc fix.
34259         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
34260         section "fixed in Gnulib".
34262 2011-03-28  Simon Josefsson  <simon@josefsson.org>
34264         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
34265         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
34267 2011-03-26  Bruno Haible  <bruno@clisp.org>
34269         unictype/property-byname: Reduce the number of load-time relocations.
34270         * lib/unictype/pr_byname.c: Include <stdlib.h>.
34271         (UC_PROPERTY_INDEX_*): New enumeration values.
34272         (uc_property_byname): Convert an index from the lookup table to an
34273         uc_property_t.
34274         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
34275         values.
34277 2011-03-26  Bruno Haible  <bruno@clisp.org>
34279         unictype/property-byname: Allow omitted word separators and aliases.
34280         * lib/unictype/pr_byname.gperf: Add property names without word
34281         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
34282         for 'space'.
34284 2011-03-26  Bruno Haible  <bruno@clisp.org>
34286         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
34287         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
34288         also hyphens to space.
34289         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
34290         without spaces.
34291         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
34293 2011-03-26  Bruno Haible  <bruno@clisp.org>
34295         unictype/joiningtype-byname: Recognize long names as well.
34296         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
34297         a long name.
34298         * lib/unictype/joiningtype_byname.c: Include <string.h>,
34299         unictype/joiningtype_byname.h.
34300         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
34301         * lib/unictype/joiningtype_byname.gperf: New file.
34302         * modules/unictype/joiningtype-byname (Files): Add
34303         lib/unictype/joiningtype_byname.gperf.
34304         (Depends-on): Add gperf.
34305         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
34306         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
34307         long names.
34309         Tests for module 'unictype/joiningtype-longname'.
34310         * modules/unictype/joiningtype-longname-tests: New file.
34311         * tests/unictype/test-joiningtype_longname.c: New file.
34313         New module 'unictype/joiningtype-longname'.
34314         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
34315         * lib/unictype/joiningtype_longname.c: New file.
34316         * modules/unictype/joiningtype-longname: New file.
34317         * modules/unictype/joiningtype-all (Depends-on): Add
34318         unictype/joiningtype-longname.
34320 2011-03-26  Bruno Haible  <bruno@clisp.org>
34322         unictype/bidiclass-byname: Recognize long names as well.
34323         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
34324         name.
34325         * lib/unictype/bidi_byname.c: Include <string.h>,
34326         unictype/bidi_byname.h.
34327         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
34328         * lib/unictype/bidi_byname.gperf: New file.
34329         * modules/unictype/bidiclass-byname (Files): Add
34330         lib/unictype/bidi_byname.gperf.
34331         (Depends-on): Add gperf.
34332         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
34333         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
34334         long names.
34336         Tests for module 'unictype/bidiclass-longname'.
34337         * modules/unictype/bidiclass-longname-tests: New file.
34338         * tests/unictype/test-bidi_longname.c: New file.
34340         New module 'unictype/bidiclass-longname'.
34341         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
34342         * lib/unictype/bidi_longname.c: New file.
34343         * modules/unictype/bidiclass-longname: New file.
34344         * modules/unictype/bidiclass-all (Depends-on): Add
34345         unictype/bidiclass-longname.
34347 2011-03-26  Bruno Haible  <bruno@clisp.org>
34349         unictype/bidi*: Rename modules.
34350         * modules/unictype/bidiclass-all: Renamed from
34351         modules/unictype/bidicategory-all.
34352         * modules/unictype/bidiclass-name: Renamed from
34353         modules/unictype/bidiclass-name.
34354         (Description): Update.
34355         * modules/unictype/bidiclass-name-tests: Renamed from
34356         modules/unictype/bidicategory-name-tests.
34357         * modules/unictype/bidiclass-byname: Renamed from
34358         modules/unictype/bidicategory-byname.
34359         (Description): Update.
34360         * modules/unictype/bidiclass-byname-tests: Renamed from
34361         modules/unictype/bidicategory-byname-tests.
34362         * modules/unictype/bidiclass-of: Renamed from
34363         modules/unictype/bidicategory-of.
34364         (Description): Update.
34365         * modules/unictype/bidiclass-of-tests: Renamed from
34366         modules/unictype/bidicategory-of-tests.
34367         * modules/unictype/bidiclass-test: Renamed from
34368         modules/unictype/bidicategory-test.
34369         (Description): Update.
34370         * modules/unictype/bidiclass-test-tests: Renamed from
34371         modules/unictype/bidicategory-test-tests.
34372         * modules/unictype/bidicategory-all: New file, a simple redirection.
34373         * modules/unictype/bidicategory-name: Likewise.
34374         * modules/unictype/bidicategory-byname: Likewise.
34375         * modules/unictype/bidicategory-of: Likewise.
34376         * modules/unictype/bidicategory-test: Likewise.
34377         * modules/unictype/property-bidi-* (Dependencies): Update.
34378         * lib/unictype/bidi_*.c: Update comment.
34380 2011-03-26  Bruno Haible  <bruno@clisp.org>
34382         unictype/bidi*: Rename functions, part 2.
34383         * modules/unictype/bidicategory-name (configure.ac): Update required
34384         libunistring version.
34385         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
34387 2011-03-25  Bruno Haible  <bruno@clisp.org>
34389         New module 'unictype/combining-class-all'.
34390         * modules/unictype/combining-class-all: New file.
34392         Tests for module 'unictype/combining-class-byname'.
34393         * modules/unictype/combining-class-byname-tests: New file.
34394         * tests/unictype/test-combiningclass_byname.c: New file.
34396         New module 'unictype/combining-class-byname'.
34397         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
34398         * lib/unictype/combiningclass_byname.c: New file.
34399         * lib/unictype/combiningclass_byname.gperf: New file.
34400         * modules/unictype/combining-class-byname: New file.
34402         Tests for module 'unictype/combining-class-longname'.
34403         * modules/unictype/combining-class-longname-tests: New file.
34404         * tests/unictype/test-combiningclass_longname.c: New file.
34406         New module 'unictype/combining-class-longname'.
34407         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
34408         * lib/unictype/combiningclass_longname.c: New file.
34409         * modules/unictype/combining-class-longname: New file.
34411         Tests for module 'unictype/combining-class-name'.
34412         * modules/unictype/combining-class-name-tests: New file.
34413         * tests/unictype/test-combiningclass_name.c: New file.
34415         New module 'unictype/combining-class-name'.
34416         * lib/unictype.in.h (uc_combining_class_name): New declaration.
34417         * lib/unictype/combiningclass_name.c: New file.
34418         * modules/unictype/combining-class-name: New file.
34420 2011-03-25  Bruno Haible  <bruno@clisp.org>
34422         unictype/combining-class: Rename source files.
34423         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
34424         of unictype/combining.h.
34425         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
34426         Update.
34427         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
34428         * modules/unictype/combining-class (Description): Fix.
34429         (Files, Makefile.am): Update.
34430         * tests/unictype/test-combiningclass.c: Renamed from
34431         tests/unictype/test-combining.c.
34432         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
34434 2011-03-25  Bruno Haible  <bruno@clisp.org>
34436         unictype: Update list of canonical combining classes.
34437         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
34439 2011-03-25  Bruno Haible  <bruno@clisp.org>
34441         unictype/category-byname: Recognize long names as well.
34442         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
34443         a long name.
34444         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
34445         unictype/categ_byname.h.
34446         (UC_CATEGORY_INDEX_*): New enumeration values.
34447         (uc_general_category_byname): Use uc_general_category_lookup and
34448         convert from index to value.
34449         * lib/unictype/categ_byname.gperf: New file.
34450         * modules/unictype/category-byname (Files): Add
34451         lib/unictype/categ_byname.gperf.
34452         (Depends-on): Add gperf.
34453         (Makefile.am): Add rule for generating unictype/categ_byname.h.
34454         * tests/unictype/test-categ_byname.c (main): Test the recognition of
34455         long names.
34457         Tests for module 'unictype/category-longname'.
34458         * modules/unictype/category-longname-tests: New file.
34459         * tests/unictype/test-categ_longname.c: New file.
34461         New module 'unictype/category-longname'.
34462         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
34463         * lib/unictype/categ_longname.c: New file.
34464         * modules/unictype/category-longname: New file.
34465         * modules/unictype/category-all (Depends-on): Add it.
34467 2011-03-25  Bruno Haible  <bruno@clisp.org>
34469         Tests for module 'unictype/category-LC'.
34470         * modules/unictype/category-LC-tests: New file.
34471         * tests/unictype/test-categ_LC.c: New file, automatically generated.
34473         New module 'unictype/category-LC'.
34474         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
34475         (UC_CATEGORY_LC): New declaration.
34476         (UC_CASED_LETTER): New macro.
34477         * lib/gen-uni-tables.c (is_category_LC): New function.
34478         (output_categories): Also handle category LC.
34479         (UC_CATEGORY_MASK_LC): New enumeration value.
34480         (general_category_byname): Also handle category LC.
34481         * lib/unictype/categ_LC.c: New file.
34482         * lib/unictype/categ_LC.h: New file, automatically generated.
34483         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
34484         category LC.
34485         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
34486         * modules/unictype/category-LC: New file.
34487         * modules/unictype/category-byname (Depends-on): Add
34488         unictype/category-LC.
34489         * modules/unictype/category-all (Depends-on): Likewise.
34491 2011-03-25  Eric Blake  <eblake@redhat.com>
34493         xmalloc: revert yesterday's regression
34494         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
34495         realloc's underlying behavior (allowing allocation of zero-size
34496         objects, especially if malloc-gnu is also in use).
34498 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
34500         maint.mk: add missing version to VC-tag
34501         * top/maint.mk: git tag was missing actual tag name; add it.
34503         valgrind: do leak checking, and exit with code 1 on error (not 0)
34504         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
34505         to VALGRIND.
34507 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
34509         posix-modules: say what it does.
34510         * posix-modules: Add a line to the --help output saying what it does.
34512 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
34514         xmalloc: Do not leak if underlying realloc is C99 compatible.
34515         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
34516         This avoids a leak on C99-based systems.  See
34517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
34519 2011-03-24  Eric Blake  <eblake@redhat.com>
34521         realloc: document portability problem
34522         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
34523         passing 0 size to realloc.
34525 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
34527         doc: update users.txt
34528         * users.txt: Add cvsps, tmpwatch
34530 2011-03-23  Matt Rice  <ratmice@gmail.com>
34532         doc: update users.txt
34533         * users.txt: Add gdb.
34535 2011-03-23  Jim Meyering  <meyering@redhat.com>
34537         doc: update users.txt
34538         Looking through matches up to the following URL (there are still
34539         several more pages), I found several projects that use gnulib:
34540         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
34541         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
34542         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
34544 2011-03-22  Bruno Haible  <bruno@clisp.org>
34546         unictype/bidi*: Rename functions.
34547         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
34548         uc_bidi_class, uc_is_bidi_class): New declarations.
34549         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
34550         uc_bidi_category_byname.
34551         (uc_bidi_category_byname): New function.
34552         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
34553         u_bidi_category_name.
34554         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
34555         (uc_bidi_category_name): New function.
34556         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
34557         uc_bidi_category.
34558         (uc_bidi_category): New function.
34559         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
34560         uc_is_bidi_category. Invoke uc_bidi_class.
34561         (uc_is_bidi_category): New function.
34562         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
34563         instead of uc_bidi_category_byname.
34564         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
34565         instead of uc_bidi_category_name.
34566         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
34567         uc_bidi_category.
34568         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
34569         instead of uc_is_bidi_category.
34571 2011-03-21  Bruno Haible  <bruno@clisp.org>
34573         New module 'unictype/joininggroup-all'.
34574         * modules/unictype/joininggroup-all: New file.
34576         Tests for module 'unictype/joininggroup-of'.
34577         * modules/unictype/joininggroup-of-tests: New file.
34578         * tests/unictype/test-joininggroup_of.c: New file.
34579         * tests/unictype/test-joininggroup_of.h: New file, automatically
34580         generated by gen-uni-tables.
34582         New module 'unictype/joininggroup-of'.
34583         * modules/unictype/joininggroup-of: New file.
34584         * lib/unictype/joininggroup_of.c: New file.
34585         * lib/unictype/joininggroup_of.h: New file, automatically generated by
34586         gen-uni-tables.
34588         Tests for module 'unictype/joininggroup-byname'.
34589         * modules/unictype/joininggroup-byname-tests: New file.
34590         * tests/unictype/test-joininggroup_byname.c: New file.
34592         New module 'unictype/joininggroup-byname'.
34593         * modules/unictype/joininggroup-byname: New file.
34594         * lib/unictype/joininggroup_byname.c: New file.
34595         * lib/unictype/joininggroup_byname.gperf: New file.
34597         Tests for module 'unictype/joininggroup-name'.
34598         * modules/unictype/joininggroup-name-tests: New file.
34599         * tests/unictype/test-joininggroup_name.c: New file.
34601         New module 'unictype/joininggroup-name'.
34602         * modules/unictype/joininggroup-name: New file.
34603         * lib/unictype/joininggroup_name.c: New file.
34604         * lib/unictype/joininggroup_name.h: New file.
34606         New module 'unictype/joiningtype-all'.
34607         * modules/unictype/joiningtype-all: New file.
34609         Tests for module 'unictype/joiningtype-of'.
34610         * modules/unictype/joiningtype-of-tests: New file.
34611         * tests/unictype/test-joiningtype_of.c: New file.
34612         * tests/unictype/test-joiningtype_of.h: New file, automatically
34613         generated by gen-uni-tables.
34615         New module 'unictype/joiningtype-of'.
34616         * modules/unictype/joiningtype-of: New file.
34617         * lib/unictype/joiningtype_of.c: New file.
34618         * lib/unictype/joiningtype_of.h: New file, automatically generated by
34619         gen-uni-tables.
34621         Tests for module 'unictype/joiningtype-byname'.
34622         * modules/unictype/joiningtype-byname-tests: New file.
34623         * tests/unictype/test-joiningtype_byname.c: New file.
34625         New module 'unictype/joiningtype-byname'.
34626         * modules/unictype/joiningtype-byname: New file.
34627         * lib/unictype/joiningtype_byname.c: New file.
34629         Tests for module 'unictype/joiningtype-name'.
34630         * modules/unictype/joiningtype-name-tests: New file.
34631         * tests/unictype/test-joiningtype_name.c: New file.
34633         New module 'unictype/joiningtype-name'.
34634         * modules/unictype/joiningtype-name: New file.
34635         * lib/unictype/joiningtype_name.c: New file.
34637         unictype: Add support for Arabic shaping properties.
34638         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
34639         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
34640         declarations.
34641         (UC_JOINING_GROUP_*): New enumeration values.
34642         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
34643         declarations.
34644         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
34645         (unicode_joining_type): New variable.
34646         (UC_JOINING_GROUP_*): New enumeration values.
34647         (unicode_joining_group): New variable.
34648         (fill_arabicshaping, joining_type_as_c_identifier,
34649         output_joining_type_test, output_joining_type,
34650         joining_group_as_c_identifier, output_joining_group_test,
34651         output_joining_group): New functions.
34652         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
34653         fill_arabicshaping and output_joining_type_test, output_joining_type,
34654         output_joining_group_test, output_joining_group.
34655         Reported by Simon Josefsson.
34657 2011-03-21  Jim Meyering  <meyering@redhat.com>
34659         strftime: fix a bug in yesterday's change
34660         * lib/strftime.c (add): Accommodate width's initial value of -1.
34661         Otherwise, nstrftime would copy uninitialized data into
34662         the result buffer.
34664 2011-03-21  Jim Meyering  <meyering@redhat.com>
34666         tests: add strftime-tests module
34667         * tests/test-strftime.c: New file.
34668         * modules/strftime-tests: New module.
34670 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
34672         strftime: don't assume a byte count fits in 'int'
34673         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
34674         found this problem by static analysis, using gcc -Wstrict-overflow
34675         (GCC 4.5.2, x86-64).  This reported an optimization that depended
34676         on an integer overflow having undefined behavior, but it turns out
34677         that the argument is a size, which might not fit in 'int' anyway,
34679 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
34681         stdio: don't require ignore_value around fwrite
34683         This patch works around libc bug 11959
34684         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
34685         Without this patch, applications must often write
34686         ignore_value (fwrite (...)) even though the ignore_value is
34687         not helpful here.  It's common to write many objects, using
34688         fwrite/printf/etc., and then use ferror to detect output error.
34690         I considered making this patch optional, but decided against it,
34691         because libc is obviously being inconsistent here: there is no
34692         reason libc should insist that user code must inspect fwrite
34693         return's value without also insisting that it inspect printf's,
34694         putchar's, etc.  If user code wants to have a strict style where
34695         all these functions' values are checked (so that ferror need not
34696         be checked), we could add support for that style in a new gnulib
34697         module, but in the meantime it's better to be consistent and to
34698         support common usage.
34700         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
34701         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
34702         that we are compiling in checking mode, and if not C++, and
34703         if not already wrapping fwrite for some other reason.
34704         (fwrite): #define to rpl_fwrite if the latter is defined.
34706 2011-03-20  Bruno Haible  <bruno@clisp.org>
34708         verror: Fix compilation error introduced on 2011-02-13.
34709         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
34710         instead of __attribute__.
34711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34713 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
34714             Bruno Haible  <bruno@clisp.org>
34716         socklen: do not depend on sys_socket
34717         While trying to modify Emacs to use gnulib's socklen module,
34718         I discovered a circular dependency: socklen depends on sys_socket
34719         and vice versa.  Emacs can use socklen, but it does not need
34720         sys_socket because it has its own substitute for sys/socket.h.
34721         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
34722         gl_TYPE_SOCKLEN_T.
34723         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
34724         gl_PREREQ_SYS_H_SOCKET.
34725         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
34726         gl_PREREQ_SYS_H_SOCKET.
34727         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
34728         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
34729         * modules/socklen (Depends-on): Do not depend on sys_socket.
34730         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
34732 2011-03-20  Jim Meyering  <meyering@redhat.com>
34734         maint.mk: sort file names *after* new transformation
34735         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
34736         prefix would have led to an unwarranted failure in GNU parted.
34737         Sort after that transformation.
34739 2011-03-19  Jim Meyering  <meyering@redhat.com>
34741         maint.mk: fix po-file syntax-check rule
34742         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
34743         Patch by Bruno Haible.
34745 2011-03-19  Bruno Haible  <bruno@clisp.org>
34747         socklen: Update comment.
34748         * m4/socklen.m4: Update comment about platforms.
34750 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34751             Bruno Haible  <bruno@clisp.org>
34753         inet_ntop, inet_pton: Simplify.
34754         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
34755         documented to provide socklen_t and we already depend on sys_socket.
34756         * modules/inet_pton (Depends-on): Likewise.
34757         * lib/arpa_inet.in.h: Adjust comment.
34759 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34760             Bruno Haible  <bruno@clisp.org>
34762         netdb: Simplify.
34763         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
34764         documented to provide socklen_t and we already depend on sys_socket.
34765         * lib/netdb.in.h: Adjust comment.
34767 2011-03-19  Bruno Haible  <bruno@clisp.org>
34769         sys_socket, netdb: Document problem with socklen_t.
34770         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
34771         platforms.
34772         * doc/posix-headers/netdb.texi: Likewise.
34774 2011-03-18  Eric Blake  <eblake@redhat.com>
34776         maint.mk: let po check work in VPATH build
34777         * top/maint.mk (po_file): Allow cfg.mk override.
34778         (sc_po_check): Allow VPATH use.
34779         Reported by Jiri Denemark.
34781 2011-03-16  Jim Meyering  <meyering@redhat.com>
34783         maint.mk: allow fine-grained syntax-check exclusion via Make variables
34784         Before, you would have had to create one .x-sc_ file per rule in order
34785         to exempt offending files.  Now, you may instead use a Make variable --
34786         usually defined in cfg.mk -- whose name identifies the affected rule.
34787         * top/maint.mk (_sc_excl): Define.
34788         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
34789         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
34791 2011-03-13  Bruno Haible  <bruno@clisp.org>
34793         ignore-value tests: Avoid warnings.
34794         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
34795         empty for gcc < 3.4.
34797 2011-03-13  Bruno Haible  <bruno@clisp.org>
34799         passfd: Fix link error on Solaris.
34800         * modules/passfd (Description): Correct.
34801         (Depends-on): Add socketlib.
34802         (Link): New section.
34803         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
34805 2011-03-13  Bruno Haible  <bruno@clisp.org>
34807         passfd: Fix link error on AIX 5.2.
34808         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
34810 2011-03-13  Bruno Haible  <bruno@clisp.org>
34812         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
34813         * lib/sys_socket.in.h: Include <stddef.h>.
34814         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
34815         CMSG_FIRSTHDR. Remove unused variable.
34817 2011-03-13  Bruno Haible  <bruno@clisp.org>
34819         passfd: Fix compilation error on OpenBSD.
34820         * lib/passfd.c: Include <sys/uio.h>.
34822 2011-03-13  Bruno Haible  <bruno@clisp.org>
34824         passfd test: Fix warnings.
34825         * tests/test-passfd.c: Include <sys/wait.h>.
34826         (main): Fix typo.
34828 2011-03-13  Bruno Haible  <bruno@clisp.org>
34830         passfd module, part 4, tweaks.
34831         * tests/test-passfd.c: Reorder includes.
34832         (main): Fix perror and printf calls.
34834 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
34836         passfd module, part 4.
34837         * modules/passfd-tests: New file.
34838         * tests/test-passfd.c: New file.
34840 2011-03-13  Jim Meyering  <meyering@redhat.com>
34842         Makefile: rely on GNU make; derive syntax-check rule names
34843         Rather than requiring that each sc_ rule be listed as a dependent
34844         of "check", use features of GNU make to derive the list.
34845         * Makefile (syntax-check-rules): Define.
34846         (check): Depend on the new variable, not the hard-coded list.
34848 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
34849             Bruno Haible  <bruno@clisp.org>
34851         passfd module, part 3.
34852         * lib/passfd.h (recvfd): Add a flags argument.
34853         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
34854         (recvfd): Add a flags argument.
34855         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
34856         exists.
34857         * modules/passfd (Depends-on): Add cloexec.
34858         Suggested by Eric Blake.
34860 2011-03-13  Bruno Haible  <bruno@clisp.org>
34862         passfd module, part 2, tweaks.
34863         * modules/passfd (Files): Reorder.
34864         (Depends-on): Remove errno.
34865         (Include): Remove <sys/socket.h>, <sys/un.h>.
34866         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
34867         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
34868         specification header. Include <sys/socket.h> always. Don't include
34869         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
34870         (sendfd): Clarify that it sets errno when it fails.
34871         (recvfd): Fix specification.
34873 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
34875         passfd module, part 2.
34876         * modules/passfd: New file.
34877         * lib/passfd.h: New file.
34878         * lib/passfd.c: New file.
34880 2011-03-12  Bruno Haible  <bruno@clisp.org>
34882         wcswidth, mbswidth: Avoid integer overflow.
34883         * lib/wcswidth.c: Include <limits.h>.
34884         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
34885         * lib/mbswidth.c: Include <limits.h>.
34886         (mbsnwidth): Avoid 'int' overflow.
34887         Reported by Jim Meyering.
34889 2011-03-12  Bruno Haible  <bruno@clisp.org>
34891         futimens, utimensat: Avoid endless recursion on Solaris 10.
34892         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
34893         Solaris.
34894         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
34895         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
34897 2011-03-11  Jim Meyering  <meyering@redhat.com>
34899         maint.mk: relax a regexp to accommodate other formatting styles
34900         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
34901         between "ngettext" and the following "(".
34903 2011-03-11  Pádraig Brady <P@draigBrady.com>
34905         maint.mk: suppress a false positive warning
34906         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
34907         diagnostics are marked with ngettext.
34909 2011-03-10  Eric Blake  <eblake@redhat.com>
34911         wchar: add explicit dependencies, for Tru64
34912         * modules/mbmemcasecoll (Depends-on): Add wchar.
34913         * modules/mbtowc (Depends-on): Likewise.
34914         * modules/vasnprintf (Depends-on): Likewise.
34915         * modules/unistdio/u-printf-args (Depends-on): Likewise.
34916         * modules/wctomb (Depends-on): Likewise.
34917         Reported by Peter O'Gorman.
34919 2011-03-08  Bruno Haible  <bruno@clisp.org>
34921         passfd module, part 1, tweaks.
34922         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
34923         Improve indentation. Improve AC_MSG_CHECKING messages.
34924         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
34925         gl_SOCKET_FAMILIES.
34927 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
34929         passfd module, part 1.
34930         * m4/afunix.m4: New file.
34931         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
34932         sockets.
34934 2011-03-08  Bruno Haible  <bruno@clisp.org>
34936         regex-quote: New API.
34937         * lib/regex-quote.h: Include <stdbool.h>.
34938         (struct regex_quote_spec): New type.
34939         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
34940         New declarations.
34941         (regex_quote_length, regex_quote_copy, regex_quote): Take a
34942         'const struct regex_quote_spec *' argument.
34943         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
34944         (pcre_special): New constant.
34945         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
34946         New functions.
34947         (regex_quote_length, regex_quote_copy, regex_quote): Take a
34948         'const struct regex_quote_spec *' argument.
34949         * modules/regex-quote (Depends-on): Add stdbool.
34950         * tests/test-regex-quote.c (check): Update for new API. Add test for
34951         anchored results.
34952         * NEWS: Mention the API change.
34953         Reported by Reuben Thomas and Eric Blake.
34955 2011-03-06  Bruno Haible  <bruno@clisp.org>
34957         regex-quote: Fix creation of POSIX extended regular expressions.
34958         * lib/regex-quote.c (ere_special): Add grouping and alternation
34959         operators.
34961 2011-03-05  Bruno Haible  <bruno@clisp.org>
34963         doc: Improve doc regarding autopoint vs. gnulib.
34964         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
34965         disable autopoint while running autoreconf.
34966         Suggested by Ralf Wildenhues.
34968 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34970         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
34971         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
34973 2011-03-03  Bruce Korb  <bkorb@gnu.org>
34975         parse-duration: remove xalloc.h dependency
34976         * lib/parse-duration.c (parse_period): handle NULL return from
34977         strdup instead of calling xstrdup().
34978         * modules/parse-duration: remove "xalloc" dependency
34980 2011-03-03  Matthew Booth  <mbooth@redhat.com>
34982         bootstrap: honor m4_base when running aclocal
34983         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
34985 2011-03-02  Jim Meyering  <meyering@redhat.com>
34987         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
34988         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
34989         on request from Matt Booth.
34991 2011-03-01  Eric Blake  <eblake@redhat.com>
34993         test-link: work on Hurd
34994         * tests/test-link.h (test_link): Hurd rejects linking directories
34995         with EISDIR instead of the POSIX-mandated EPERM.
34997 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
34999         stdio: simplify by moving files to printf-posix, sigpipe
35000         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
35001         since this symbol is needed only if printf is replaced.
35002         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
35003         Require gl_ASM_SYMBOL_PREFIX.
35004         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
35005         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
35006         (Depends-on): Add 'raise'.
35007         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
35008         * modules/stdio (Files): Remove lib/stdio-write.c,
35009         m4/asm-underscore.m4.
35010         (Depends-on): Remove 'raise'.
35012         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
35013         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
35014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
35015         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
35017 2011-02-28  Bruno Haible  <bruno@clisp.org>
35019         localcharset: Assume ANSI C behaviour of free().
35020         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
35021         calling free().
35022         Suggested by Simon Josefsson <simon@josefsson.org>.
35024 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
35025             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
35026             Bruno Haible  <bruno@clisp.org>  (tiny change)
35028         On Cygwin, use /proc file system instead of win32 API.
35029         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
35030         Win32 file names.
35031         (DllMain): Simplify by removing Cygwin specific code.
35032         (find_shared_library_fullname): Use Linux specific implementation also
35033         for Cygwin.
35034         (get_shared_library_fullname): Update accordingly.
35035         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
35036         Win32 file names.
35037         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
35038         Cygwin specific code.
35040 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
35041             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
35043         Fix OpenMP flag detection for various Fortran compilers.
35044         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
35045         OpenMP-conditional compilation construct, to force compile
35046         failure with missing OpenMP flag.
35047         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
35049 2011-02-25  Eric Blake  <eblake@redhat.com>
35051         strstr: expand test coverage
35052         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
35053         compilation.
35054         * tests/test-memmem.c (main): Duplicate tests.
35055         * tests/test-strcasestr.c (main): Likewise.
35056         * tests/test-c-strcasestr.c (main): Likewise.
35058 2011-02-25  Jim Meyering  <meyering@redhat.com>
35060         maint.mk: detect missing-NL-at-EOF, too
35061         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
35062         it also detects when a file lacks a newline at EOF.
35063         (require_exactly_one_NL_at_EOF_): Renamed from
35064         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
35065         since people may well have .x-sc_... file names tied to the
35066         existing name.  Suggested by Eric Blake.
35068 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35070         dirname: move m4/dos.m4 functionality into lib/dosname.h
35072         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
35073         extracts symbols from it, puts them into config.h; but it's much
35074         easier to use the symbols directly.  filename.h already does this,
35075         but it disagrees with dos.m4 in some respects.  This patch
35076         introduces a different include file dosname.h that packages up
35077         dos.m4, and then later we can work on merging filename.h and
35078         dosname.h.  Applications that need only the easy-to-configure
35079         symbols should consider including dosname.h rather than dirname.h.
35080         * NEWS: Mention incompatible changes.
35081         * m4/dos.m4: Remove.
35082         * lib/dosname.h, modules/dosname: New files.
35083         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
35084         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
35085         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
35086         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
35087         Include dosname.h, not dirname.h.
35088         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
35089         Include dosname.h, for definitions of symbols like ISSLASH
35090         that used to be in config.h.
35091         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
35092         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
35093         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35094         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35095         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
35096         * modules/rmdir (Files): Likewise.
35097         * modules/stat (Files): Likewise.
35098         * modules/unlink (Files): Likewise.
35099         * modules/dirname-lgpl (Depends-on): Add dosname.
35100         * modules/lstat (Depends-on): Likewise.
35101         * modules/openat (Depends-on): Likewise.
35102         * modules/rmdir (Depends-on): Likewise.
35103         * modules/savewd (Depends-on): Likewise.
35104         * modules/stat (Depends-on): Likewise.
35105         * modules/unlink (Depends-on): Likewise.
35106         * modules/openat (Depends-on): Remove dirname-lgpl.
35107         * modules/savewd (Depends-on): Likewise.
35108         * tests/test-dirname.c: Do not use removed symbols like
35109         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
35110         the remaining symbols, e.g., ISSLASH ('\\').
35112 2011-02-25  Eric Blake  <eblake@redhat.com>
35114         strstr: revert patches that introduced bug and pessimization
35115         * lib/str-two-way.h: Add another reference.
35116         (two_way_short_needle, two_way_long_needle): Revert changes from
35117         2011-02-24; they pessimize search speed.
35118         (critical_factorization): Partially revert changes from
35119         2010-06-22; they violate the requirement that the left half of the
35120         needle be smaller than the period of the needle.
35122 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35124         filenamecat: remove unnecessary dependency on dirname-lgpl
35125         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
35126         is no direct dependency, just an indirect one via filenamecat-lgpl.
35128         remove: remove unnecessary use of m4/dos.m4
35129         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
35130         * modules/remove (FILES): Remove m4/dos.m4.
35132         * lib/openat-proc.c: Don't include dirname.h; not needed.
35134         backupfile: remove unnecessary use of m4/dos.m4
35135         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
35136         of its symbols are used by the backupfile code.  backupfile.c does
35137         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
35138         for the rare case of programs that want all their backup file
35139         names to live within 8+3 limits, and dos.m4 doesn't address that.
35140         * modules/backupfile (Files): Remove m4/dos.m4.
35142 2011-02-24  Jim Meyering  <meyering@redhat.com>
35144         strstr: fix a bug whereby strstr would mistakenly return NULL
35145         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
35146         in period calculation.
35147         (two_way_long_needle): Likewise.
35148         The original problem was reported by Mike Stump in
35149         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
35150         Ralf Wildenhues provided the short needle and haystack.
35151         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
35152         Add a more involved test to trigger the bug in two_way_long_needle.
35154 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35156         gnulib-tool: remove use of bold display in help screen
35157         * gnulib-tool (func_usage): Do not use bold display anymore in the
35158         help screen.  That was just meant to be a temporary emphasis for a
35159         backward-incompatible change.
35161 2011-02-23  Bruno Haible  <bruno@clisp.org>
35163         Fix misindentation of preprocessor directives.
35164         * lib/argp-namefrob.h: Reindent preprocessor directives.
35165         * lib/getopt_int.h (struct _getopt_data): Likewise.
35166         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
35167         * lib/vasnprintf.c (decode_long_double): Likewise.
35168         * tests/test-argmatch.c: Insert blank lines, for clarity.
35169         * tests/test-exclude.c: Likewise.
35171 2011-02-22  Bruno Haible  <bruno@clisp.org>
35173         ioctl: Fix for MacOS X in 64-bit mode.
35174         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
35175         value.
35176         Suggested by Eric Blake.
35177         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
35179 2011-02-22  Jim Meyering  <meyering@redhat.com>
35181         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
35182         * Makefile (sc_cpp_indent_check): Don't limit the check to files
35183         in lib/.
35185 2011-02-22  Eric Blake  <eblake@redhat.com>
35187         maint: avoid any CDPATH issue
35188         * Makefile (sc_cpp_indent_check): Anchor cd argument.
35190         maint: adjust cpp indentation for my modules, as well
35191         * Makefile (sc_cpp_indent_check): Add my name.
35192         * lib/fbufmode.c: Filter through cppi.
35193         * lib/fpurge.c: Likewise.
35194         * lib/freadable.c: Likewise.
35195         * lib/freading.c: Likewise.
35196         * lib/fwritable.c: Likewise.
35197         * lib/fwriting.c: Likewise.
35198         * lib/sigaction.c: Likewise.
35200 2011-02-22  Jim Meyering  <meyering@redhat.com>
35202         maint: adjust cpp indentation to reflect nesting depth
35203         I.e., in a block of code that begins with an unnested "#if",
35204         put one space between the "#" in column 1 and following token.
35205         For example,
35206         -#include <sys/vfs.h>
35207         +# include <sys/vfs.h>
35208         Do this only in .c files that are part of a module I maintain.
35209         * lib/linkat.c: Filter through cppi.
35210         * lib/nanosleep.c: Likewise.
35211         * lib/openat.c: Likewise.
35212         * lib/openat-die.c: Likewise.
35213         * lib/dup3.c: Likewise.
35214         * lib/fchownat.c: Likewise.
35215         * lib/flock.c: Likewise.
35216         * lib/fsync.c: Likewise.
35217         * lib/fts.c: Likewise.
35218         * lib/getpass.c: Likewise.
35219         * lib/gettimeofday.c: Likewise.
35220         * lib/userspec.c: Likewise.
35221         * Makefile (sc_cpp_indent_check): New rule, to check this.
35223 2011-02-22  Bruno Haible  <bruno@clisp.org>
35225         New module 'wctomb'.
35226         * lib/stdlib.in.h (wctomb): New declaration.
35227         * lib/wctomb.c: New file.
35228         * lib/wctomb-impl.h: New file.
35229         * m4/wctomb.m4: New file.
35230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
35231         REPLACE_WCTOMB.
35232         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
35233         REPLACE_WCTOMB.
35234         * modules/wctomb: New file.
35235         * tests/test-stdlib-c++.cc: Test signature of wctomb.
35236         * doc/posix-functions/wctomb.texi: Mention the new module.
35237         * modules/wctob (Depends-on): Add wctomb.
35239 2011-02-22  Bruno Haible  <bruno@clisp.org>
35241         New module 'mbtowc'.
35242         * lib/stdlib.in.h (mbtowc): New declaration.
35243         * lib/mbtowc.c: New file.
35244         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
35245         * m4/mbtowc.m4: New file.
35246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
35247         REPLACE_MBTOWC.
35248         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
35249         REPLACE_MBTOWC.
35250         * modules/mbtowc: New file.
35251         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
35252         * doc/posix-functions/mbtowc.texi: Mention the new module.
35253         * modules/btowc (Depends-on): Add mbtowc.
35255 2011-02-22  Bruno Haible  <bruno@clisp.org>
35257         wcrtomb: Add more tests for native Windows platforms.
35258         * tests/test-wcrtomb-w32-1.sh: New file.
35259         * tests/test-wcrtomb-w32-2.sh: New file.
35260         * tests/test-wcrtomb-w32-3.sh: New file.
35261         * tests/test-wcrtomb-w32-4.sh: New file.
35262         * tests/test-wcrtomb-w32-5.sh: New file.
35263         * tests/test-wcrtomb-w32.c: New file.
35264         * modules/wcrtomb-tests (Files): Add them.
35265         (Makefile.am): Arrange to run these tests.
35266         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
35267         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
35269 2011-02-20  Bruno Haible  <bruno@clisp.org>
35271         wcrtomb: Enhance test.
35272         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
35274 2011-02-20  Bruno Haible  <bruno@clisp.org>
35276         mbrtowc: Tiny optimization.
35277         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
35279 2011-02-20  Jim Meyering  <meyering@redhat.com>
35281         test-exclude.c: remove unmatched #endif
35282         * tests/test-exclude.c: Remove stray #endif, left over from
35283         the change of a week ago.
35285 2011-02-19  Jim Meyering  <meyering@redhat.com>
35287         git-version-gen: skip "-dirty" check when appropriate
35288         * build-aux/git-version-gen: Don't run any git commands when the
35289         version string comes from .tarball-version.  Prior to this, we
35290         would run git update-index --refresh even from a just-unpacked
35291         tarball directory, and that could affect a .git/ directory in a
35292         parent of the build directory.  Reported by Mike Frysinger.
35294 2011-02-19  Bruno Haible  <bruno@clisp.org>
35296         unictype/property-byname: Reduce the size of the 'data' segment.
35297         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
35299 2011-02-19  Bruno Haible  <bruno@clisp.org>
35301         unictype/scripts: Reduce the size of the 'data' segment.
35302         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
35303         '%pic'.
35304         * lib/unictype/scripts_byname.gperf: Regenerated.
35306 2011-02-19  Bruno Haible  <bruno@clisp.org>
35308         stdint: Update documentation.
35309         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
35311 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35313         stdint: omit redundant check for wchar.h
35314         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
35315         always tests whether wchar.h exists, so remove the now-redundant test.
35317 2011-02-18  Bruno Haible  <bruno@clisp.org>
35319         stdint: Cut dependency to module 'wchar'.
35320         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
35321         include the necessary prerequisites.
35322         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
35323         * modules/stdint (Depends-on): Remove wchar.
35324         (Makefile.am): Substitute HAVE_WCHAR_H.
35325         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
35327 2011-02-18  Eric Blake  <eblake@redhat.com>
35329         longlong: skip, rather than fail, on cross-compilation
35330         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
35331         when cross-compiling; regression from 2011-02-16.
35333 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
35335         * NEWS: Mention 2011-02-08 change to stdlib.
35337 2011-02-17  Bruno Haible  <bruno@clisp.org>
35339         getloadavg: Add comments about platforms.
35340         * m4/getloadavg.m4: Add comment.
35341         * lib/getloadavg.c: Likewise.
35343 2011-02-17  Bruno Haible  <bruno@clisp.org>
35345         getloadavg: Fix link error on Solaris 2.6.
35346         * modules/getloadavg (Link): New section.
35347         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
35348         linking test-getloadavg.
35349         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
35350         getloadavg.
35352 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
35354         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
35355         It was 'int', but this doesn't match the IRIX 6.5 manual.
35356         Suggested by Bruno Haible in
35357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
35359 2011-02-17  Bruno Haible  <bruno@clisp.org>
35361         havelib: Fix comments.
35362         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
35363         change.
35365 2011-02-17  Bruno Haible  <bruno@clisp.org>
35367         havelib: Update config.rpath.
35368         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
35370 2011-02-17  Bruno Haible  <bruno@clisp.org>
35372         getloadavg test: Add some plausibility checks.
35373         * tests/test-getloadavg.c (check_avg): Print a warning when the value
35374         is improbable.
35376 2011-02-16  Eric Blake  <eblake@redhat.com>
35378         maintainer-makefile: make syntax-check a no-op from tarballs
35379         * top/maint.mk (no-vc-detected): New rule.
35380         (local-checks-available): Use it to avoid hanging if someone tries
35381         'make syntax-check' from a tarball.  Also append to any non-syntax
35382         checks already defined in cfg.mk.
35384 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
35386         longlong: tune, particularly for common case of c99
35388         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
35389         or running anything if c99, or if unsigned long long int does not
35390         work.  In either case, we know the answer without further tests.
35391         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
35392         it at most once, and use its results for both long long int and
35393         unsigned long long int.  This is more likely to be efficient in
35394         the common case where the program wants to check for both long
35395         long int and unsigned long long int.
35396         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
35397         since the answer is already known.
35399 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
35401         getloadavg: set errno
35402         * lib/getloadavg.c: Set errno when returning -1.  If no other
35403         error number looks appropriate, set it to ENOSYS if the getloadavg
35404         looks like it can't possibly ever work, ENOTSUP otherwise.
35405         Suggested by Bruno Haible in
35406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
35408         getloadavg: trim unused parts and speed up 'configure'
35409         * NEWS: Document this.
35410         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
35411         always compiled if getloadavg is absent.
35412         Move test code to ...
35413         * tests/test-getloadavg.c: New file, containing previous
35414         contents of test from lib/getloadavg.c.  It also contains
35415         suggestions by Bruno Haible in
35416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
35417         * modules/getloadavg-tests: New file.
35418         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
35419         Do tests in the same order as they're needed for getloadavg.c.
35420         Omit setgid-related tests that generate symbols KMEM_GROUP,
35421         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
35422         Do only the tests that are needed to see whether the system has
35423         getloadavg, moving the other tests into ...
35424         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
35425         NLIST_NAME_UNION; nobody should be using it.  Do not define
35426         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
35427         relevant, as the user of this module shouldn't care how getloadavg
35428         is implemented.
35430         getloadavg: omit unused var
35431         * lib/getloadavg.c (getloadavg): Omit unused local variable.
35433 2011-02-15  Jim Meyering  <meyering@redhat.com>
35435         doc: update users.txt
35436         * users.txt: Update iwhd's URL.
35438 2011-02-13  Bruno Haible  <bruno@clisp.org>
35440         Consistent macro naming for macros that use GCC __attribute__.
35441         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
35442         _ATTRIBUTE_NONNULL_.
35443         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
35444         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
35445         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
35446         ATTRIBUTE_DEPRECATED.
35447         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
35448         ATTRIBUTE_NORETURN.
35449         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
35450         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
35451         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
35452         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
35453         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
35454         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
35455         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
35456         ATTRIBUTE_SENTINEL.
35457         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
35458         ATTRIBUTE_RETURN_CHECK.
35459         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
35460         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
35461         ATTRIBUTE_NORETURN.
35462         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
35463         Reported by Paul Eggert.
35465 2011-02-13  Bruno Haible  <bruno@clisp.org>
35467         Don't interfere with a program's definition of __attribute__.
35468         * lib/argp.h (__attribute__): Remove definition.
35469         (_GL_ATTRIBUTE_FORMAT): New macro.
35470         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
35471         * lib/argp-fmtstream.h (__attribute__): Remove definition.
35472         (_GL_ATTRIBUTE_FORMAT): New macro.
35473         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
35474         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
35475         GCC 3 or newer.
35476         * lib/error.h (__attribute__): Remove definition.
35477         (_GL_ATTRIBUTE_FORMAT): New macro.
35478         (error, error_at_line): Use it.
35479         * lib/hash.h (__attribute__): Remove definition.
35480         (ATTRIBUTE_WUR): Update definition. Define always.
35481         * lib/openat.h (__attribute__): Remove definition.
35482         (ATTRIBUTE_NORETURN): Update definition. Define always.
35483         * lib/sigpipe-die.h (__attribute__): Remove definition.
35484         (ATTRIBUTE_NORETURN): Update definition. Define always.
35485         * lib/vasnprintf.h (__attribute__): Remove definition.
35486         (_GL_ATTRIBUTE_FORMAT): New macro.
35487         (asnprintf, vasnprintf): Use it.
35488         * lib/xalloc.h (__attribute__): Remove definition.
35489         (ATTRIBUTE_NORETURN): Update definition. Define always.
35490         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
35491         * lib/xmemdup0.h (__attribute__): Remove definition.
35492         (ATTRIBUTE_NORETURN): Update definition. Define always.
35493         * lib/xprintf.h (__attribute__): Remove definition.
35494         (_GL_ATTRIBUTE_FORMAT): New macro.
35495         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
35496         * lib/xstrtol.h (__attribute__): Remove definition.
35497         (ATTRIBUTE_NORETURN): Update definition. Define always.
35498         * lib/xvasprintf.h (__attribute__): Remove definition.
35499         (_GL_ATTRIBUTE_FORMAT): New macro.
35500         (xasprintf, xvasprintf): Use it.
35501         * tests/test-argmatch.c (__attribute__): Remove definition.
35502         (ATTRIBUTE_NORETURN): Update definition. Define always.
35503         * tests/test-exclude.c (__attribute__): Remove definition.
35504         (ATTRIBUTE_NORETURN): Update definition. Define always.
35505         Reported by Paul Eggert.
35507 2011-02-13  Bruno Haible  <bruno@clisp.org>
35509         mbrtowc: Add more tests for native Windows platforms.
35510         * tests/test-mbrtowc-w32-1.sh: New file.
35511         * tests/test-mbrtowc-w32-2.sh: New file.
35512         * tests/test-mbrtowc-w32-3.sh: New file.
35513         * tests/test-mbrtowc-w32-4.sh: New file.
35514         * tests/test-mbrtowc-w32-5.sh: New file.
35515         * tests/test-mbrtowc-w32.c: New file.
35516         * modules/mbrtowc-tests (Files): Add them.
35517         (Makefile.am): Arrange to run these tests.
35518         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
35519         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
35521 2011-02-13  Bruno Haible  <bruno@clisp.org>
35523         mbrtowc: Work around native Windows bug.
35524         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
35525         guess when no suitable locale for testing was found.
35526         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
35528 2011-02-13  Bruno Haible  <bruno@clisp.org>
35530         mbsinit: Work around mingw bug.
35531         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
35532         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
35533         Windows.
35534         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
35536 2011-02-13  Bruno Haible  <bruno@clisp.org>
35538         mbsinit: Don't crash for a NULL argument.
35539         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
35540         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
35542 2011-02-13  Bruno Haible  <bruno@clisp.org>
35544         Don't interfere with a program's definition of __attribute__.
35545         * lib/stdio.in.h (__attribute__): Remove definition.
35546         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
35547         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
35548         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
35549         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
35550         * lib/string.in.h (__attribute__): Remove definition.
35551         Reported by Paul Eggert.
35553 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
35555         stdlib: don't get in the way of non-GCC __attribute__
35556         See thread starting at
35557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
35558         Revert previous stdlib change, installing the following instead:
35559         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
35560         to get in the way of a non-GCC compiler that supports __attribute__.
35561         (_GL_ATTRIBUTE_RETURN): New macro.
35562         (_Exit): Use it instead of __attribute__.
35564 2011-02-12  Bruno Haible  <bruno@clisp.org>
35566         quotearg test: Avoid test failure on mingw.
35567         * tests/test-quotearg.sh: Convert the locale identifier from native
35568         Windows syntax to Unix syntax.
35570 2011-02-12  Bruno Haible  <bruno@clisp.org>
35572         setlocale: Prefer gnulib's override over libintl's override.
35573         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
35574         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
35575         GNULIB_defined_setlocale is set.
35577 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
35579         stdlib: support non-GCC __attribute__
35581         Fix a serious and tricky problem encountered when attempting to
35582         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
35583         5.5, but it crashed due to memory corruption on Solaris 10 with
35584         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
35585         bits that are otherwise zero.  This tagging is optional inside
35586         Emacs but is preferred and is used when __attribute__ ((__aligned
35587         (8))) works, as it does with both recent-enough GCC and with Sun C
35588         5.11.  However, Sun C 5.11 is not GCC and does not #define
35589         __GNUC__ and __GNUC_MINOR__.
35591         When I added the getloadavg module to Emacs, it brought in
35592         stdlib.in.h, which contained this fragment:
35594            #ifndef __attribute__
35595            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
35596            #  define __attribute__(Spec)   /* empty */
35597            # endif
35598            #endif
35600         When files that include <stdlib.h> were compiled with Sun C 5.11,
35601         the above code disabled __attribute__ ((__aligned (8))), which
35602         caused variables to not be properly aligned, which eventually led
35603         to the pointer corruption mentioned above.  (This was a bit hard
35604         to diagnose, unfortunately.)
35606         Several "#define __attribute__(X) /* empty */" code snippets need
35607         to be eradicated from Gnulib to work with non-GCC compilers that
35608         support __attribute__.  The Autoconf way to do this is to test for
35609         each kind of attribute that we want support for, and selectively
35610         enable that in source code.
35612         Fix this problem just for stdlib.h, by adding a test for the
35613         __noreturn__ attribute, and change stdlib.in.h to use that test
35614         when needed.  This technique can be easily generalized to the
35615         other *.in.h files and attributes, and a similar technique can be
35616         used for *.h and *.c files.  This patch is enough to solve the
35617         problem for Emacs + getloadavg, and I thought I'd publish it for
35618         feedback before undertaking further, similar fixes in other
35619         modules.
35621         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
35622         because it's not needed for stdlib.h.  It merely substitutes the
35623         value directly into stdlib.h.  We may well need to #define it, or
35624         similar symbols, for other modules, but it's nice to also have an
35625         option to not #define it for applications like Emacs that do not
35626         need it.
35628         * lib/stdlib.in.h (__attribute__): Do not #define.
35629         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
35630         be defined only if the _Exit module is also used.
35631         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
35632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
35633         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
35634         platforms.
35635         * modules/_Exit (Files): Add m4/attribute.m4.
35636         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
35637         * m4/attribute.m4: New file.
35639 2011-02-12  Bruno Haible  <bruno@clisp.org>
35641         wcsrtombs: Work around bug on native Windows.
35642         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
35643         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
35644         instead of len.
35645         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
35647 2011-02-12  Bruno Haible  <bruno@clisp.org>
35649         mbsrtowcs: Work around bug on native Windows.
35650         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
35651         against mingw bug.
35652         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
35654 2011-02-12  Bruno Haible  <bruno@clisp.org>
35656         Avoid setlocale bugs in tests.
35657         * modules/btowc (Dependencies): Add setlocale.
35658         * modules/c-strcase (Dependencies): Likewise.
35659         * modules/mbmemcasecmp (Dependencies): Likewise.
35660         * modules/mbmemcasecoll (Dependencies): Likewise.
35661         * modules/mbrtowc (Dependencies): Likewise.
35662         * modules/mbscasecmp (Dependencies): Likewise.
35663         * modules/mbscasestr (Dependencies): Likewise.
35664         * modules/mbschr (Dependencies): Likewise.
35665         * modules/mbscspn (Dependencies): Likewise.
35666         * modules/mbsinit (Dependencies): Likewise.
35667         * modules/mbsncasecmp (Dependencies): Likewise.
35668         * modules/mbsnrtowcs (Dependencies): Likewise.
35669         * modules/mbspbrk (Dependencies): Likewise.
35670         * modules/mbspcasecmp (Dependencies): Likewise.
35671         * modules/mbsrchr (Dependencies): Likewise.
35672         * modules/mbsrtowcs (Dependencies): Likewise.
35673         * modules/mbsspn (Dependencies): Likewise.
35674         * modules/mbsstr (Dependencies): Likewise.
35675         * modules/nl_langinfo (Dependencies): Likewise.
35676         * modules/quotearg (Dependencies): Likewise.
35677         * modules/unicase/locale-language (Dependencies): Likewise.
35678         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
35679         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
35680         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
35681         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
35682         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
35683         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
35684         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
35685         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
35686         * modules/vasnprintf-posix (Dependencies): Likewise.
35687         * modules/wcrtomb (Dependencies): Likewise.
35688         * modules/wcsnrtombs (Dependencies): Likewise.
35689         * modules/wcsrtombs (Dependencies): Likewise.
35691 2011-02-12  Bruno Haible  <bruno@clisp.org>
35693         setlocale: Workaround native Windows bug.
35694         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
35695         succeeds but sets LC_CTYPE to "C", report a failure.
35696         * tests/test-setlocale2.sh: New file.
35697         * tests/test-setlocale2.c: New file.
35698         * modules/setlocale-tests (Files): Add the new files.
35699         (Makefile.am): Enable test-setlocale2.sh test.
35700         * doc/posix-functions/setlocale.texi: Mention workaround.
35702 2011-02-11  Bruno Haible  <bruno@clisp.org>
35704         Tests for module 'setlocale'.
35705         * modules/setlocale-tests: New file.
35706         * tests/test-setlocale1.sh: New file.
35707         * tests/test-setlocale1.c: New file.
35709         New module 'setlocale'.
35710         * lib/locale.in.h (setlocale): New declaration.
35711         * lib/setlocale.c: New file, based on
35712         gettext/gettext-runtime/intl/setlocale.c.
35713         * m4/setlocale.m4: New file.
35714         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
35715         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
35716         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
35717         REPLACE_SETLOCALE.
35718         * modules/setlocale: New file.
35719         * tests/test-locale-c++.cc: Test the declaration of setlocale.
35720         * doc/posix-functions/setlocale.texi: Mention the new module.
35722 2011-02-11  Bruno Haible  <bruno@clisp.org>
35724         Prepare for locale dependent tests on mingw.
35725         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
35726         because it has the wrong locale encoding.
35727         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
35728         French_France.1252 instead of "fr".
35729         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
35730         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
35731         because it has the wrong locale encoding.
35732         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
35733         native Windows, try Turkish_Turkey.65001.
35734         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
35735         Chinese_China.54936.
35737         Prepare for locale dependent tests on mingw.
35738         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
35739         differently.
35740         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
35741         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
35742         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35743         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35745 2011-02-11  Eric Blake  <eblake@redhat.com>
35747         strptime: avoid compiler warnings
35748         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
35749         compiler warnings about dead code.
35750         Reported by Daniel P. Berrange.
35752 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
35754         doc: update users.txt
35755         * users.txt: Add rcs.
35757 2011-02-10  John W. Eaton  <jwe@gnu.org>
35759         doc: update users.txt
35760         * users.txt: Add octave.
35762 2011-02-10  Jim Meyering  <meyering@redhat.com>
35764         doc: update users.txt
35765         * users.txt: Add iwhd.
35767 2011-02-09  Bruno Haible  <bruno@clisp.org>
35769         gnulib-tool: Make copyright notice adjustment more robust.
35770         * gnulib-tool (func_import): In sed_transform_main_lib_file,
35771         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
35772         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
35773         License".
35774         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
35776 2011-02-06  Bruno Haible  <bruno@clisp.org>
35778         New module 'towctrans'.
35779         * modules/towctrans: New file.
35780         * lib/wctype.in.h (towctrans): New declaration.
35781         * lib/towctrans.c: New file.
35782         * lib/towctrans-impl.h: New file.
35783         * m4/towctrans.m4: New file.
35784         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
35785         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
35786         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
35787         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
35788         * doc/posix-functions/towctrans.texi: Mention the new module.
35790 2011-02-06  Bruno Haible  <bruno@clisp.org>
35792         New module 'wctrans'.
35793         * modules/wctrans: New file.
35794         * lib/wctype.in.h (wctrans): New declaration.
35795         * lib/wctrans.c: New file.
35796         * lib/wctrans-impl.h: New file.
35797         * m4/wctrans.m4: New file.
35798         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
35799         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
35800         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
35801         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
35802         * doc/posix-functions/wctrans.texi: Mention the new module.
35804 2011-02-06  Bruno Haible  <bruno@clisp.org>
35806         New module 'iswctype'.
35807         * modules/iswctype: New file.
35808         * lib/wctype.in.h (iswctype): New declaration.
35809         * lib/iswctype.c: New file.
35810         * lib/iswctype-impl.h: New file.
35811         * m4/iswctype.m4: New file.
35812         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
35813         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
35814         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
35815         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
35816         * doc/posix-functions/iswctype.texi: Mention the new module and the
35817         HP-UX 11.00 problem.
35819 2011-02-06  Bruno Haible  <bruno@clisp.org>
35821         New module 'wctype'.
35822         * modules/wctype: Change to represent the wctype() substitute.
35823         * lib/wctype.in.h (wctype): New declaration.
35824         * lib/wctype.c: New file.
35825         * lib/wctype-impl.h: New file.
35826         * m4/wctype.m4: New file.
35827         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
35828         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
35829         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
35830         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
35831         * doc/posix-functions/wctype.texi: Mention the new module and the
35832         HP-UX 11.00 problem.
35834 2011-02-06  Bruno Haible  <bruno@clisp.org>
35836         wctype-h: Ensure wctype_t and wctrans_t are defined.
35837         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
35838         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
35839         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
35840         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
35841         HAVE_WCTRANS_T.
35842         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
35844 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35846         flock: fix license typo
35848         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
35849         omitted.
35851 2011-02-08  Bruno Haible  <bruno@clisp.org>
35853         Split large sed scripts, for HP-UX sed.
35854         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
35855         to avoid HP-UX limit of 99 commands, in the near future.
35856         * modules/stdlib (Makefile.am): Likewise.
35857         * modules/unistd (Makefile.am): Likewise.
35858         * modules/wchar (Makefile.am): Likewise.
35859         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35860         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
35861         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
35863 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35864             Bruno Haible  <bruno@clisp.org>
35866         stdlib: improve random_r modularization
35867         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
35868         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
35869         you also need the random_r module to get this material right.
35870         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
35871         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
35872         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
35874 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35876         stdlib: don't depend on stdint
35877         * lib/stdlib.in.h: Don't include <stdint.h> merely because
35878         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
35879         be independent of whether stdint.h is needed.
35880         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
35881         here, instead of ...
35882         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
35883         struct random_data should be using the random_r module, not just
35884         the stdlib module (which wouldn't make sense: what package needs
35885         just struct random_data without also needing random_r?).
35886         * modules/stdlib (Depends-on): Remove stdint.
35888         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
35889         See the thread rooted at
35890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
35891         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
35892         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
35893         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
35894         __VMS)); previously it was always included (via fcntl--.h).
35895         (getloadavg): Do not use c_strtod.  Instead, approximate it by
35896         hand; this is good enough for load averages.  Also, do not use
35897         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
35898         flags directly if available and don't bother otherwise.  (Packages
35899         that need the extra reliability should use the modules that define
35900         these flags on older platforms that lack them.)
35901         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
35902         fcntl-safer.
35904 2011-02-08  Jim Meyering  <meyering@redhat.com>
35906         di-set.h, ino-map.h: add multiple-inclusion guard
35907         Technically, the guard is required only for ino-map.h, due to its
35908         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
35909         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
35910         * lib/ino-map.h: Likewise.
35912 2011-02-06  Bruno Haible  <bruno@clisp.org>
35914         iswblank: Ensure declaration on glibc systems.
35915         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
35916         * modules/iswblank (Dependencies): Add 'extensions'.
35917         * doc/posix-functions/iswblank.texi: Document the glibc problem.
35919 2011-02-06  Bruno Haible  <bruno@clisp.org>
35921         New module 'iswblank'.
35922         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
35923         * modules/iswblank: New file.
35924         * modules/wctype-h (Files): Remove lib/iswblank.c.
35925         (Makefile.am): Substitute GNULIB_ISWBLANK.
35926         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
35927         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
35928         (gl_WCTYPE_H_DEFAULTS): New macro.
35929         (gl_WCTYPE_H): Require it. Remove iswblank related code.
35930         * modules/iswblank-tests: New file.
35931         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
35932         * tests/test-wctype-h.c (main): Remove iswblank tests.
35933         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
35934         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
35935         of 'wctype-h'.
35936         * NEWS: Mention the change.
35937         * modules/mbchar (Depends-on): Add iswblank.
35939 2011-02-08  Bruno Haible  <bruno@clisp.org>
35941         di-set tests: Refactor.
35942         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
35943         unnecessary includes.
35944         (ASSERT): Remove macro.
35945         (main): Make C90 compliant by avoiding variable declaration after
35946         statement.
35947         * modules/di-set-tests (Files): Add tests/macros.h.
35949 2011-02-08  Bruno Haible  <bruno@clisp.org>
35951         ino-map tests: Refactor.
35952         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
35953         unnecessary includes.
35954         (ASSERT): Remove macro.
35955         (main): Make C90 compliant by avoiding variable declaration after
35956         statement.
35957         * modules/ino-map-tests (Files): Add tests/macros.h.
35959 2011-02-08  Jim Meyering  <meyering@redhat.com>
35961         di-set: add "const" to a cast
35962         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
35963         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
35965 2011-02-06  Bruno Haible  <bruno@clisp.org>
35967         Rename module 'wctype' to 'wctype-h'.
35968         * modules/wctype-h: Renamed from modules/wctype.
35969         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
35970         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
35971         (Files, Depends-on, Makefile.am): Update.
35972         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
35973         (Files, Makefile.am): Update.
35974         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
35975         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
35976         * doc/posix-headers/wctype.texi: Update.
35977         * doc/posix-functions/iswalnum.texi: Update.
35978         * doc/posix-functions/iswalpha.texi: Update.
35979         * doc/posix-functions/iswblank.texi: Update.
35980         * doc/posix-functions/iswcntrl.texi: Update.
35981         * doc/posix-functions/iswdigit.texi: Update.
35982         * doc/posix-functions/iswgraph.texi: Update.
35983         * doc/posix-functions/iswlower.texi: Update.
35984         * doc/posix-functions/iswprint.texi: Update.
35985         * doc/posix-functions/iswpunct.texi: Update.
35986         * doc/posix-functions/iswspace.texi: Update.
35987         * doc/posix-functions/iswupper.texi: Update.
35988         * doc/posix-functions/iswxdigit.texi: Update.
35989         * doc/posix-functions/towlower.texi: Update.
35990         * doc/posix-functions/towupper.texi: Update.
35991         * NEWS: Mention the change.
35992         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
35993         * modules/mbchar (Dependencies): Likewise.
35994         * modules/mbswidth (Dependencies): Likewise.
35995         * modules/quotearg (Dependencies): Likewise.
35996         * modules/regex (Dependencies): Likewise.
35997         * modules/wcscasecmp (Dependencies): Likewise.
35998         * modules/wcsncasecmp (Dependencies): Likewise.
35999         * modules/wcwidth (Dependencies): Likewise.
36001 2011-02-06  Bruno Haible  <bruno@clisp.org>
36003         New module 'wcswidth'.
36004         * modules/wcswidth: New file.
36005         * lib/wchar.in.h (wcswidth): New declaration.
36006         * lib/wcswidth.c: New file.
36007         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
36008         * m4/wcswidth.m4: New file.
36009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
36010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
36011         REPLACE_WCSWIDTH.
36012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
36013         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
36014         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
36015         * doc/posix-functions/wcswidth.texi: Mention the new module.
36017 2011-02-06  Bruno Haible  <bruno@clisp.org>
36019         New module 'wcstok'.
36020         * modules/wcstok: New file.
36021         * lib/wchar.in.h (wcstok): New declaration.
36022         * lib/wcstok.c: New file.
36023         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
36024         * m4/wcstok.m4: New file.
36025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
36026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
36027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
36028         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
36029         * doc/posix-functions/wcstok.texi: Mention the new module.
36031 2011-02-06  Bruno Haible  <bruno@clisp.org>
36033         New module 'wcsstr'.
36034         * modules/wcsstr: New file.
36035         * lib/wchar.in.h (wcsstr): New declaration.
36036         * lib/wcsstr.c: New file.
36037         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
36038         * m4/wcsstr.m4: New file.
36039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
36040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
36041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
36042         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
36043         * doc/posix-functions/wcsstr.texi: Mention the new module.
36045 2011-02-06  Bruno Haible  <bruno@clisp.org>
36047         New module 'wcspbrk'.
36048         * modules/wcspbrk: New file.
36049         * lib/wchar.in.h (wcspbrk): New declaration.
36050         * lib/wcspbrk.c: New file.
36051         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
36052         * m4/wcspbrk.m4: New file.
36053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
36054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
36055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
36056         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
36057         * doc/posix-functions/wcspbrk.texi: Mention the new module.
36059 2011-02-06  Bruno Haible  <bruno@clisp.org>
36061         New module 'wcsspn'.
36062         * modules/wcsspn: New file.
36063         * lib/wchar.in.h (wcsspn): New declaration.
36064         * lib/wcsspn.c: New file.
36065         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
36066         * m4/wcsspn.m4: New file.
36067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
36068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
36069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
36070         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
36071         * doc/posix-functions/wcsspn.texi: Mention the new module.
36073 2011-02-06  Bruno Haible  <bruno@clisp.org>
36075         New module 'wcscspn'.
36076         * modules/wcscspn: New file.
36077         * lib/wchar.in.h (wcscspn): New declaration.
36078         * lib/wcscspn.c: New file.
36079         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
36080         * m4/wcscspn.m4: New file.
36081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
36082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
36083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
36084         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
36085         * doc/posix-functions/wcscspn.texi: Mention the new module.
36087 2011-02-06  Bruno Haible  <bruno@clisp.org>
36089         New module 'wcsrchr'.
36090         * modules/wcsrchr: New file.
36091         * lib/wchar.in.h (wcsrchr): New declaration.
36092         * lib/wcsrchr.c: New file.
36093         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
36094         * m4/wcsrchr.m4: New file.
36095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
36096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
36097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
36098         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
36099         * doc/posix-functions/wcsrchr.texi: Mention the new module.
36101 2011-02-06  Bruno Haible  <bruno@clisp.org>
36103         New module 'wcschr'.
36104         * modules/wcschr: New file.
36105         * lib/wchar.in.h (wcschr): New declaration.
36106         * lib/wcschr.c: New file.
36107         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
36108         * m4/wcschr.m4: New file.
36109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
36110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
36111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
36112         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
36113         * doc/posix-functions/wcschr.texi: Mention the new module.
36115 2011-02-06  Bruno Haible  <bruno@clisp.org>
36117         New module 'wcsdup'.
36118         * modules/wcsdup: New file.
36119         * lib/wchar.in.h (wcsdup): New declaration.
36120         * lib/wcsdup.c: New file.
36121         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
36122         * m4/wcsdup.m4: New file.
36123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
36124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
36125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
36126         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
36127         * doc/posix-functions/wcsdup.texi: Mention the new module.
36129 2011-02-06  Bruno Haible  <bruno@clisp.org>
36131         New module 'wcsxfrm'.
36132         * modules/wcsxfrm: New file.
36133         * lib/wchar.in.h (wcsxfrm): New declaration.
36134         * lib/wcsxfrm.c: New file.
36135         * lib/wcsxfrm-impl.h: New file.
36136         * m4/wcsxfrm.m4: New file.
36137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
36138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
36139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
36140         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
36141         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
36143 2011-02-06  Bruno Haible  <bruno@clisp.org>
36145         New module 'wcscoll'.
36146         * modules/wcscoll: New file.
36147         * lib/wchar.in.h (wcscoll): New declaration.
36148         * lib/wcscoll.c: New file.
36149         * lib/wcscoll-impl.h: New file.
36150         * m4/wcscoll.m4: New file.
36151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
36152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
36153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
36154         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
36155         * doc/posix-functions/wcscoll.texi: Mention the new module.
36157 2011-02-06  Bruno Haible  <bruno@clisp.org>
36159         New module 'wcsncasecmp'.
36160         * modules/wcsncasecmp: New file.
36161         * lib/wchar.in.h (wcsncasecmp): New declaration.
36162         * lib/wcsncasecmp.c: New file.
36163         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
36164         * m4/wcsncasecmp.m4: New file.
36165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
36166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
36167         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
36168         HAVE_WCSNCASECMP.
36169         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
36170         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
36172 2011-02-06  Bruno Haible  <bruno@clisp.org>
36174         New module 'wcscasecmp'.
36175         * modules/wcscasecmp: New file.
36176         * lib/wchar.in.h (wcscasecmp): New declaration.
36177         * lib/wcscasecmp.c: New file.
36178         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
36179         * m4/wcscasecmp.m4: New file.
36180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
36181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
36182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
36183         HAVE_WCSCASECMP.
36184         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
36185         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
36187 2011-02-05  Bruno Haible  <bruno@clisp.org>
36189         New module 'wcsncmp'.
36190         * modules/wcsncmp: New file.
36191         * lib/wchar.in.h (wcsncmp): New declaration.
36192         * lib/wcsncmp.c: New file.
36193         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
36194         * m4/wcsncmp.m4: New file.
36195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
36196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
36197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
36198         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
36199         * doc/posix-functions/wcsncmp.texi: Mention the new module.
36201 2011-02-05  Bruno Haible  <bruno@clisp.org>
36203         New module 'wcscmp'.
36204         * modules/wcscmp: New file.
36205         * lib/wchar.in.h (wcscmp): New declaration.
36206         * lib/wcscmp.c: New file.
36207         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
36208         * m4/wcscmp.m4: New file.
36209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
36210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
36211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
36212         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
36213         * doc/posix-functions/wcscmp.texi: Mention the new module.
36215 2011-02-05  Bruno Haible  <bruno@clisp.org>
36217         New module 'wcsncat'.
36218         * modules/wcsncat: New file.
36219         * lib/wchar.in.h (wcsncat): New declaration.
36220         * lib/wcsncat.c: New file.
36221         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
36222         * m4/wcsncat.m4: New file.
36223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
36224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
36225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
36226         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
36227         * doc/posix-functions/wcsncat.texi: Mention the new module.
36229 2011-02-05  Bruno Haible  <bruno@clisp.org>
36231         New module 'wcscat'.
36232         * modules/wcscat: New file.
36233         * lib/wchar.in.h (wcscat): New declaration.
36234         * lib/wcscat.c: New file.
36235         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
36236         * m4/wcscat.m4: New file.
36237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
36238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
36239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
36240         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
36241         * doc/posix-functions/wcscat.texi: Mention the new module.
36243 2011-02-05  Bruno Haible  <bruno@clisp.org>
36245         New module 'wcpncpy'.
36246         * modules/wcpncpy: New file.
36247         * lib/wchar.in.h (wcpncpy): New declaration.
36248         * lib/wcpncpy.c: New file.
36249         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
36250         * m4/wcpncpy.m4: New file.
36251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
36252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
36253         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
36254         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
36255         * doc/posix-functions/wcpncpy.texi: Mention the new module.
36257 2011-02-05  Bruno Haible  <bruno@clisp.org>
36259         New module 'wcsncpy'.
36260         * modules/wcsncpy: New file.
36261         * lib/wchar.in.h (wcsncpy): New declaration.
36262         * lib/wcsncpy.c: New file.
36263         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
36264         * m4/wcsncpy.m4: New file.
36265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
36266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
36267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
36268         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
36269         * doc/posix-functions/wcsncpy.texi: Mention the new module.
36271 2011-02-05  Bruno Haible  <bruno@clisp.org>
36273         New module 'wcpcpy'.
36274         * modules/wcpcpy: New file.
36275         * lib/wchar.in.h (wcpcpy): New declaration.
36276         * lib/wcpcpy.c: New file.
36277         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
36278         * m4/wcpcpy.m4: New file.
36279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
36280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
36281         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
36282         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
36283         * doc/posix-functions/wcpcpy.texi: Mention the new module.
36285 2011-02-05  Bruno Haible  <bruno@clisp.org>
36287         New module 'wcscpy'.
36288         * modules/wcscpy: New file.
36289         * lib/wchar.in.h (wcscpy): New declaration.
36290         * lib/wcscpy.c: New file.
36291         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
36292         * m4/wcscpy.m4: New file.
36293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
36294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
36295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
36296         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
36297         * doc/posix-functions/wcscpy.texi: Mention the new module.
36299 2011-02-05  Bruno Haible  <bruno@clisp.org>
36301         New module 'wcsnlen'.
36302         * modules/wcsnlen: New file.
36303         * lib/wchar.in.h (wcsnlen): New declaration.
36304         * lib/wcsnlen.c: New file.
36305         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
36306         * m4/wcsnlen.m4: New file.
36307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
36308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
36309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
36310         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
36311         * doc/posix-functions/wcsnlen.texi: Mention the new module.
36313 2011-02-05  Bruno Haible  <bruno@clisp.org>
36315         New module 'wcslen'.
36316         * modules/wcslen: New file.
36317         * lib/wchar.in.h (wcslen): New declaration.
36318         * lib/wcslen.c: New file.
36319         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
36320         * m4/wcslen.m4: New file.
36321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
36322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
36323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
36324         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
36325         * doc/posix-functions/wcslen.texi: Mention the new module.
36327 2011-02-05  Bruno Haible  <bruno@clisp.org>
36329         New module 'wmemset'.
36330         * modules/wmemset: New file.
36331         * lib/wchar.in.h (wmemset): New declaration.
36332         * lib/wmemset.c: New file.
36333         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
36334         * m4/wmemset.m4: New file.
36335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
36336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
36337         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
36338         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
36339         * doc/posix-functions/wmemset.texi: Mention the new module.
36341 2011-02-05  Bruno Haible  <bruno@clisp.org>
36343         New module 'wmemmove'.
36344         * modules/wmemmove: New file.
36345         * lib/wchar.in.h (wmemmove): New declaration.
36346         * lib/wmemmove.c: New file.
36347         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
36348         * m4/wmemmove.m4: New file.
36349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
36350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
36351         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
36352         HAVE_WMEMMOVE.
36353         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
36354         * doc/posix-functions/wmemmove.texi: Mention the new module.
36356 2011-02-05  Bruno Haible  <bruno@clisp.org>
36358         New module 'wmemcpy'.
36359         * modules/wmemcpy: New file.
36360         * lib/wchar.in.h (wmemcpy): New declaration.
36361         * lib/wmemcpy.c: New file.
36362         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
36363         * m4/wmemcpy.m4: New file.
36364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
36365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
36366         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
36367         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
36368         * doc/posix-functions/wmemcpy.texi: Mention the new module.
36370 2011-02-05  Bruno Haible  <bruno@clisp.org>
36372         New module 'wmemcmp'.
36373         * modules/wmemcmp: New file.
36374         * lib/wchar.in.h (wmemcmp): New declaration.
36375         * lib/wmemcmp.c: New file.
36376         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
36377         * m4/wmemcmp.m4: New file.
36378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
36379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
36380         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
36381         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
36382         * doc/posix-functions/wmemcmp.texi: Mention the new module.
36384 2011-02-07  Jim Meyering  <meyering@redhat.com>
36386         di-set, ino-map: new modules, from coreutils
36387         * lib/di-set.c: New file.
36388         * lib/di-set.h: Likewise.
36389         * lib/ino-map.c: Likewise.
36390         * lib/ino-map.h: Likewise.
36391         * modules/di-set: Likewise.
36392         * modules/di-set-tests: Likewise.
36393         * modules/ino-map: Likewise.
36394         * modules/ino-map-tests: Likewise.
36395         * tests/test-di-set.c: Likewise.
36396         * tests/test-ino-map.c: Likewise.
36398 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36400         getloadavg: merge minor changes from Emacs
36402         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
36403         (getloadavg): Use memset, not bzero.
36405         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
36406         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
36407         clash (bug#86).
36409 2010-11-14  Bruno Haible  <bruno@clisp.org>
36411         Allow multiple gnulib generated replacements to coexist.
36412         * lib/getopt.in.h (struct option): Avoid identical redefinition.
36413         * lib/inttypes.in.h (imaxdiv_t): Likewise.
36414         * lib/langinfo.in.h (nl_item): Likewise.
36415         * lib/math.in.h (_NaN, NAN): Likewise.
36416         * lib/netdb.in.h (struct addrinfo): Likewise.
36417         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
36418         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
36419         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
36420         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
36421         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
36422         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
36423         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
36424         pthread_mutexattr_init, pthread_mutexattr_settype,
36425         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
36426         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
36427         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
36428         pthread_spin_trylock, pthread_spin_unlock): Likewise.
36429         * lib/sched.in.h (struct sched_param): Likewise.
36430         * lib/se-selinux.in.h (security_class_t, security_context_t,
36431         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
36432         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
36433         lsetfilecon, fsetfilecon, security_check_context,
36434         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
36435         Likewise.
36436         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
36437         Likewise.
36438         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
36439         _gl_function_taking_int_returning_void_t, union sigval,
36440         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
36441         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
36442         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
36443         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
36444         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
36445         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
36446         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
36447         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
36448         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
36449         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
36450         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
36451         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
36452         socklen_t, rpl_fd_isset): Likewise.
36453         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
36454         * lib/sys_time.in.h (struct timeval): Likewise.
36455         * lib/sys_times.in.h (struct tms): Likewise.
36456         * lib/sys_utsname.in.h (struct utsname):
36457         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
36458         * lib/unistd.in.h (getpagesize): Likewise.
36459         * lib/wchar.in.h (mbstate_t): Likewise.
36460         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36461         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
36462         towlower, towupper): Likewise.
36463         Reported by Sam Steingold <sds@gnu.org>.
36465 2011-02-05  Eric Blake  <eblake@redhat.com>
36467         unsetenv: work around Haiku issues
36468         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
36469         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
36471 2010-12-30  Bruce Korb  <bkorb@gnu.org>
36473         libposix: avoid calling error() within libposix
36474         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
36475         is defined.
36477 2011-02-05  Eric Blake  <eblake@redhat.com>
36479         strerror_r-posix: port to cygwin
36480         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
36481         implementation.
36482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
36483         * tests/test-strerror_r.c (main): Fix test.
36484         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
36485         issue.
36487 2011-02-05  Bruno Haible  <bruno@clisp.org>
36489         New module 'wmemchr'.
36490         * modules/wmemchr: New file.
36491         * lib/wchar.in.h (wmemchr): New declaration.
36492         * lib/wmemchr.c: New file.
36493         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
36494         * m4/wmemchr.m4: New file.
36495         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
36496         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
36497         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
36498         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
36499         * doc/posix-functions/wmemchr.texi: Mention the new module.
36501 2011-02-04  Eric Blake  <eblake@redhat.com>
36503         fdopendir: detect FreeBSD bug
36504         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
36505         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
36507 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36509         stdbool: do not define HAVE_STDBOOL_H
36510         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
36511         AC_HEADER_STDBOOL.  All uses changed.  Do not define
36512         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
36513         imported from the latest Autoconf git.  It was motivated by Emacs,
36514         which uses gnulib but does not need HAVE_STDBOOL_H.
36516 2011-02-04  Bruno Haible  <bruno@clisp.org>
36518         wcsnrtombs: Prepare for new module wwcsnrtombs.
36519         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
36520         * lib/wcsnrtombs.c: Include it.
36521         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
36523         wcsrtombs: Prepare for new module wwcsrtombs.
36524         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
36525         * lib/wcsrtombs.c: Include it.
36526         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
36528         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
36529         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
36530         * lib/mbsnrtowcs.c: Include it.
36531         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
36533         mbsrtowcs: Prepare for new module mbsrtowwcs.
36534         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
36535         * lib/mbsrtowcs.c: Include it.
36536         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
36538 2011-02-04  Bruno Haible  <bruno@clisp.org>
36540         vasnprintf: Reduce use of malloc for small format strings.
36541         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
36542         (arguments): Add room for the first 7 arguments.
36543         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
36544         (char_directives, u8_directives, u16_directives, u32_directives): Add
36545         room for the first 7 directives.
36546         * lib/printf-parse.c: Include <string.h>.
36547         (PRINTF_PARSE): Change memory handling code so that it uses the first
36548         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
36549         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
36550         Reported by Pádraig Brady <P@draigbrady.com>.
36552 2011-01-31  Eric Blake  <eblake@redhat.com>
36554         dup2: work around Haiku bug
36555         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
36556         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
36557         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36558         * tests/test-dup2.c (main): Enhance test.
36560 2011-01-31  Simon Josefsson  <simon@josefsson.org>
36562         doc: off_t is not available in eglibc 2.11.2 stdio.h.
36563         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
36564         declared by eglibc 2.11.2.
36565         * lib/stdio.in.h: Likewise.
36567 2011-01-31  Eric Blake  <eblake@redhat.com>
36569         ignore-value: add missing test dependency
36570         * tests/test-ignore-value.c: Revert previous change; stdio.h
36571         provides off_t.
36572         * modules/ignore-value-tests (Depends-on): Add missing dependency.
36574 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36576         mktime: clarify long_int width checking
36577         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
36578         the top level, to make it clearer that the assumption about
36579         long_int width is being checked.  See
36580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
36582 2011-01-30  Simon Josefsson  <simon@josefsson.org>
36584         ignore-value: Fix self-test.
36585         * tests/test-ignore-value.c: Include sys/types.h for off_t.
36587 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36589         TYPE_MAXIMUM: avoid theoretically undefined behavior
36590         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
36591         negative number, which the C Standard says has undefined behavior.
36592         In practice this is not a problem, but might as well do it by the book.
36593         Reported by Rich Felker and Eric Blake; see
36594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
36595         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
36596         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36598         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
36599         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36600         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
36602         mktime: #undef mktime before #defining it
36603         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
36605         mktime: systematically normalize tm_isdst comparisons
36606         * lib/mktime.c (isdst_differ): New function.
36607         (__mktime_internal): Use it systematically for all isdst comparisons.
36608         This completes the fix for libc BZ #6723, and removes the need for
36609         normalizing tm_isdst.  See
36610         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
36611         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
36613         mktime: fix some integer overflow issues and sidestep the rest
36615         This was prompted by a bug report by Benjamin Lindner for MinGW
36616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
36617         His bug is due to signed integer overflow (0 - INT_MIN), and I
36618         I scanned through mktime.c looking for other integer overflow
36619         problems, fixing all the bugs I found.
36621         Although the C Standard says the resulting code is still not safe
36622         in the presence of integer overflow, in practice it should be good
36623         enough for all real-world two's-complement implementations, except
36624         for debugging environments that deliberately trap on integer
36625         overflow (e.g., gcc -ftrapv).
36627         * lib/mktime.c (WRAPV): New macro.
36628         (SHR): Also check that long_int and time_t shift right in the
36629         usual way, before using the fast-but-unportable method.
36630         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
36631         used.  The code already assumed two's complement, so there's
36632         no need to test for alternatives.  All uses removed.
36633         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
36634         the C standard.  Problem reported by Rich Felker in
36635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
36636         (twos_complement_arithmetic): Also check long_int and time_t.
36637         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
36638         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
36639         (__mktime_internal): Avoid integer overflow with unary subtraction
36640         in two instances where -1 - X is an adequate replacement for -X,
36641         since the calculations are approximate.
36643 2011-01-29  Eric Blake  <eblake@redhat.com>
36645         mktime: avoid infinite loop
36646         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
36647         type; behavior is still undefined but portable to all known targets.
36648         Reported by Rich Felker.
36650 2011-01-29  Simon Josefsson  <simon@josefsson.org>
36652         rename, unlink, same-inode: Relicense.
36653         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
36654         * modules/unlink (License): Likewise.
36655         * modules/same-inode (License): Likewise.
36657 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
36659         mktime: avoid problems on NetBSD 5 / i386
36660         * lib/mktime.c (long_int): New type.  This works around a problem
36661         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
36662         but time_t is 64 bits, and where I expect the existing code is
36663         wrong in some cases.
36664         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
36665         (ydhms_diff): Bring back the compile-time check for wide-enough
36666         year and yday.
36668         mktime: fix misspelling in comment
36669         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
36670         This merges all recent glibc changes of importance.
36672 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36674         move-if-change: cope with concurrent mv of identical file.
36675         * build-aux/move-if-change (CMPPROG): Accept environment
36676         variable as an override for `cmp'.
36677         (usage): Document CMPPROG.
36678         Adjust comparison to drop stdout.  Cope with failure of mv if
36679         the target file exists and is identical to the source, for
36680         parallel builds.
36681         Report from H.J. Lu against binutils in PR binutils/12283.
36683 2011-01-28  Bruce Korb  <bkorb@gnu.org>
36685         * users.txt: Mention sharutils.
36687 2011-01-28  Simon Josefsson  <simon@josefsson.org>
36689         * users.txt: Mention OATH Toolkit.
36691 2011-01-27  Bruno Haible  <bruno@clisp.org>
36693         Prepare for supporting FreeBSD 10.
36694         * build-aux/config.libpath: Remove handling of freebsd1*.
36696 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
36698         Prepare for supporting FreeBSD 10.
36699         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
36700         match FreeBSD 10.0.
36702 2011-01-27  Bruno Haible  <bruno@clisp.org>
36704         vma-iter, get-rusage-as: Add OpenBSD support.
36705         * modules/vma-iter (configure.ac): Test for mquery.
36706         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
36707         * lib/vma-iter.c: Include <sys/mman.h>.
36708         (vma_iterate): Add an implementation based on mquery().
36709         * lib/resource-ext.h (get_rusage_as): Update comments.
36710         * lib/get-rusage-as.c: Likewise.
36711         * lib/get-rusage-data.c: Likewise.
36713 2011-01-26  Karl Berry  <karl@gnu.org>
36715         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
36716         variables to make it easier to override the makeinfo program used.
36718 2011-01-26  Eric Blake  <eblake@redhat.com>
36720         fcntl: work around Haiku F_DUPFD bugs
36721         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
36722         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
36723         cloexec bit on duplication.
36724         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
36726 2011-01-26  Bruno Haible  <bruno@clisp.org>
36728         Enable memory leak tests on AIX.
36729         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
36730         * tests/test-fprintf-posix3.c (main): Likewise.
36732 2011-01-26  Bruno Haible  <bruno@clisp.org>
36734         Tests for module 'get-rusage-data'.
36735         * modules/get-rusage-data-tests: New file.
36736         * tests/test-get-rusage-data.c: New file.
36738         New module 'get-rusage-data'.
36739         * lib/resource-ext.h (get_rusage_data): New declaration.
36740         * lib/get-rusage-data.c: New file.
36741         * modules/get-rusage-data: New file.
36743 2011-01-25  Bruno Haible  <bruno@clisp.org>
36745         get-rusage-as: Allow for easier testing.
36746         * lib/resource-ext.h (get_rusage_as): Add comment.
36747         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
36748         (main): New function for interactive testing.
36750 2011-01-25  Bruno Haible  <bruno@clisp.org>
36752         vma-iter: Treat Haiku like BeOS.
36753         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
36754         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
36756 2011-01-25  Eric Blake  <eblake@redhat.com>
36758         c-stack: fix regression on cygwin when libsigsegv is present
36759         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
36761 2011-01-24  Bruno Haible  <bruno@clisp.org>
36763         vma-iter: Avoid empty intervals.
36764         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
36765         on an empty interval.
36767 2011-01-24  Jim Meyering  <meyering@redhat.com>
36769         u64: remove unnecessary #include
36770         * lib/u64.h: Don't include <stddef.h>.  It was not used.
36772 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36774         Allow the user to avoid the HAVE_RAW_DECL_* macros.
36775         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
36777 2011-01-23  Bruno Haible  <bruno@clisp.org>
36779         New module 'vma-iter'.
36780         * lib/vma-iter.h: New file.
36781         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
36782         * modules/vma-iter: New file.
36783         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
36784         for get_rusage_as_via_iterator.
36785         (vma_iterate_callback): New function.
36786         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
36787         * modules/get-rusage-as (Depends-on): Add vma-iter.
36789 2011-01-23  Bruno Haible  <bruno@clisp.org>
36791         uninorm: Tweak includes.
36792         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
36793         Reported by Jim Meyering.
36795 2011-01-23  Bruno Haible  <bruno@clisp.org>
36797         get-rusage-as: Improve on NetBSD.
36798         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
36799         /proc, like on FreeBSD.
36801 2011-01-23  Jim Meyering  <meyering@redhat.com>
36803         xreadlink.h: remove unnecessary #include
36804         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
36806         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
36807         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
36809 2011-01-23  Bruno Haible  <bruno@clisp.org>
36811         get-rusage-as: Fix bug.
36812         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
36813         original limit when aborting the first loop.
36815 2011-01-23  Bruno Haible  <bruno@clisp.org>
36817         wctype: Ensure valid C syntax.
36818         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
36819         unconditionally, instead of gl_NEXT_HEADERS conditionally.
36821 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36823         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
36824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
36825         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
36826         as they are needed only for configure's test case.
36827         This removes two unnecessary symbols from config.h.
36829         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
36830         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
36831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
36832         AC_CHECK_HEADERS_ONCE on a header that we also invoke
36833         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
36834         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
36835         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
36836         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
36837         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36838         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36839         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36840         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36841         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36842         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36843         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
36844         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36845         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
36846         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
36848 2011-01-21  Eric Blake  <eblake@redhat.com>
36850         maintainer-makefile: work with older git for submodule check
36851         * top/maint.mk (public-submodule-commit): Rewrite to avoid
36852         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
36853         Reported by Matthias Bolte.
36855         bootstrap: minor portability fixes
36856         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
36857         (usage): Omit leading capital and trailing . on help phrases, per
36858         GNU Coding Standards.
36859         (check_versions, top level): Prefix messages with script name.
36861 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
36863         bootstrap: support --no-git option
36864         * build-aux/bootstrap: Add --no-git option, to be used when
36865         --gnulib-srcdir points to the exact desired checkout.
36867 2011-01-21  Eric Blake  <eblake@redhat.com>
36869         strerror_r-posix: work with glibc 2.13
36870         * lib/strerror_r.c (strerror_r): Fix return type.
36872 2011-01-21  Pádraig Brady  <P@draigBrady.com>
36873             Bruno Haible  <bruno@clisp.org>
36875         uN_strstr: New unit tests.
36876         * modules/unistr/u8-strstr-tests: New file.
36877         * modules/unistr/u16-strstr-tests: New file.
36878         * modules/unistr/u32-strstr-tests: New file.
36879         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
36880         * tests/unistr/test-u8-strstr.c: New file.
36881         * tests/unistr/test-u16-strstr.c: New file.
36882         * tests/unistr/test-u32-strstr.c: New file.
36884 2011-01-21  Pádraig Brady  <P@draigBrady.com>
36885             Bruno Haible  <bruno@clisp.org>
36887         Make uN_strstr functions O(n) worst-case.
36888         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
36889         16-bit and 32-bit unit cases, use the unibyte algorithm from
36890         lib/mbsstr.c.
36891         * lib/unistr/u8-strstr.c: Include <string.h>.
36892         (UNIT_IS_UINT8_T): New macro.
36893         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
36894         (U_STRLEN, U_STRNLEN): New macros.
36895         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
36896         (U_STRLEN, U_STRNLEN): New macros.
36897         * modules/unistr/u8-strstr (Depends-on): Add strstr.
36898         (configure.ac): Update required libunistring version.
36899         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
36900         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
36901         malloca.
36902         (configure.ac): Update required libunistring version.
36903         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
36904         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
36905         malloca.
36906         (configure.ac): Update required libunistring version.
36908 2011-01-21  Pádraig Brady  <P@draigBrady.com>
36909             Bruno Haible  <bruno@clisp.org>
36911         Prepare for faster uN_strstr functions.
36912         * lib/str-kmp.h: Support definable UNITs.
36913         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
36914         needle_len argument.
36915         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
36916         * lib/mbscasestr.c (mbscasestr): Likewise.
36918 2011-01-21  Pádraig Brady <P@draigBrady.com>
36920         malloca-tests: make faster by unsetting MALLOC_PERTURB_
36921         * tests/test-malloca.c (main): Unset the environment variable
36922         to greatly speed up the test.
36923         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
36924         * modules/malloca-tests: Depend on unsetenv.
36926 2011-01-21  Pádraig Brady <P@draigBrady.com>
36928         ignore-value: remove stdint dependency
36929         * lib/ignore-value.h: Remove <stdint.h>
36930         * modules/ignore-value: Remove stdint dependency.
36932 2011-01-21  Jim Meyering  <meyering@redhat.com>
36934         maint.mk: adjust variable name to be consistent with other gl_ vars
36935         * top/maint.mk (gl_public_submodule_commit): Rename the variable
36936         to be lower case.
36938 2011-01-20  Jim Meyering  <meyering@redhat.com>
36940         maint.mk: make "check" depend on public-submodule-commit by default
36941         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
36943 2011-01-20  Bruno Haible  <bruno@clisp.org>
36945         mbfile, mbiter: Complete change from 2008-12-21.
36946         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
36947         * m4/mbiter.m4 (gl_MBITER): Likewise.
36949 2011-01-20  Jim Meyering  <meyering@redhat.com>
36951         init.sh: insert space between each function name and "()"
36952         * tests/init.sh: Make it a little easier to see that a function's
36953         name is "warn_", and not "warn" when looking at the first part of
36954         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
36956 2011-01-20  Jim Meyering  <meyering@redhat.com>
36958         mountlist: clean up code formatting
36959         * lib/mountlist.c (read_file_system_list): Split a long line,
36960         correct bracing style, use NULL in place of "(struct statfs *)0",
36961         don't parenthesize return value, add spaces around "=" and after
36962         ";-in-for-stmt".
36964 2011-01-14  Markus Duft <mduft@gentoo.org>
36966         mountlist: add support for Interix
36967         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
36968         Apply statvfs to all entries of /dev/fs.
36969         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
36970         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
36972 2011-01-20  Jim Meyering  <meyering@redhat.com>
36974         maint.mk: improve the public-submodule-commit rule
36975         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
36976         to suppress printing of its commands... unless V=1.
36977         Add git submodule's --quiet option to suppress printing of e.g.,
36978         "Entering gnulib" output.
36979         "cd" into $(srcdir) before running git submodule.
36981 2011-01-20  Bruno Haible  <bruno@clisp.org>
36983         include_next: Fix bug introduced on 2011-01-18.
36984         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
36985         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
36986         ac_cv_header_... variable if the second argument is not 'check'.
36987         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
36988         gl_NEXT_HEADERS_INTERNAL.
36990 2011-01-20  Bruno Haible  <bruno@clisp.org>
36992         Allow the user to avoid the GNULIB_TEST_* macros.
36993         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
36994         Suggested by Paul Eggert.
36996 2011-01-14  Jim Meyering  <meyering@redhat.com>
36998         bootstrap: avoid failure when there is no .gitmodules file
36999         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
37000         has been assigned to, even when its value is the empty string.
37001         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
37002         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
37003         Reported by John W. Eaton <jwe@gnu.org>.
37005 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37007         assume <ctype.h>, ..., <time.h> exist
37008         For years gnulib has been assuming the existence of the headers
37009         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
37010         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
37011         them, since they don't appear to be needed.
37012         * README (Portability guidelines): Document this.
37013         * lib/flock.c: Assume <fcntl.h> exists.
37014         * lib/regex_internal.h: Assume <locale.h> exists.
37015         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
37016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
37017         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
37018         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
37019         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
37020         * m4/regex.m4 (gl_REGEX): Likewise.
37021         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
37022         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
37023         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
37024         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
37025         * tests/test-argp.c: Likewise.
37026         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
37028         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
37029         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
37030         AA_APPLE_UNIVERSAL_BUILD.  See
37031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
37032         * NEWS: Document this.
37034 2011-01-19  Eric Blake  <eblake@redhat.com>
37036         c-stack: assume stack overflow if SA_SIGINFO unsupported
37037         * lib/c-stack.c (SIGACTION_WORKS): Rename...
37038         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
37039         sigaction will work.
37040         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
37041         behavior match Linux.
37042         * tests/test-c-stack.c (main): Prefer NULL for pointers.
37044         stdbool-tests: accommodate Haiku
37045         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
37047         binary-io: fix O_TEXT on Haiku
37048         * modules/binary-io (Depends-on): Add fcntl-h.
37049         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
37050         than blindly undefining O_TEXT.
37051         Reported by Scott McCreary.
37053 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37055         include_next: do not check for standard headers like stddef.h
37057         I found this problem when modifying Emacs to use gnulib.
37058         I noticed that it added HAVE_STDDEF_H to config.h, even though
37059         gnulib always assumes <stddef.h> exists as per README and this
37060         symbol is unnecessary.
37061         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
37062         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
37063         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
37064         faster for headers like stddef.h that are known to exist.
37065         (gl_CHECK_NEXT_HEADERS): Use it.
37066         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
37067         rather than gl_CHECK_NEXT_HEADERS.
37068         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
37069         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
37071 2011-01-18  Eric Blake  <eblake@redhat.com>
37073         ansi-c++-opt: skip C++ dependency style if C++ is unused
37074         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
37075         tests when we know C++ compilation is not desired.
37076         Reported by Scott McCreary.
37078 2011-01-18  Bruno Haible  <bruno@clisp.org>
37080         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
37081         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
37082         (main): Perform test also when getrlimit and setrlimit don't exist or
37083         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
37084         limiting the address space size using setrlimit, compare the address
37085         space size before and after the the test.
37086         * tests/test-dprintf-posix2.c: Likewise.
37087         * tests/test-fprintf-posix3.sh: Update skip messages.
37088         * tests/test-dprintf-posix2.sh: Likewise.
37089         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
37090         * modules/dprintf-posix-tests (Depends-on): Likewise.
37091         Reported by Bruce Korb <bkorb@gnu.org> and
37092         Gary V. Vaughan <gary@gnu.org>.
37094 2011-01-18  Bruno Haible  <bruno@clisp.org>
37096         get-rusage-as: Improvement for Cygwin.
37097         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
37098         areas that are merely reserved.
37100 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37102         strftime: remove dependencies on multibyte modules
37104         strftime depended on mbrlen, mbsinit, and wchar, but these modules
37105         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
37106         only if __osf__ is defined, and I suspect OSF doesn't need these
37107         other modules.  If my guess is wrong, we'll need to come up with a
37108         variant of strftime that doesn't need the multibyte modules.
37110         I discovered this problem when attempting modify Emacs to use the
37111         strftime module.  With the previous gnulib, this caused Emacs to
37112         need 31 new files, ranging from lib/config.charset to
37113         m4/wint_t.m4.  This was overkill and I expect would be offputting
37114         to the Emacs maintainers.  After this change, only 6 new files are
37115         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
37116         stdbool.m4, and tm_gmtoff.m4.
37118         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
37119         Suggested by Bruno Haible in
37120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
37121         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
37122         and do not check for wchar.h.
37123         * modules/strftime (Files): Remove m4/mbstate_t.m4.
37124         (Depends-on): Remove mbrlen, mbsinit, wchar.
37126 2011-01-18  Bruno Haible  <bruno@clisp.org>
37128         Tests for module 'get-rusage-as'.
37129         * modules/get-rusage-as-tests: New file.
37130         * tests/test-get-rusage-as.c: New file.
37132         New module 'get-rusage-as'.
37133         * modules/get-rusage-as: New file.
37134         * lib/resource-ext.h: New file.
37135         * lib/get-rusage-as.c: New file.
37137 2011-01-17  Eric Blake  <eblake@redhat.com>
37139         sigaction: relax license from LGPLv3+ to LGPLv2+
37140         * modules/sigaction (License): Relax to LGPLv2+.
37142 2011-01-14  Bruno Haible  <bruno@clisp.org>
37144         filemode: Make function declarations usable in C++ mode.
37145         * lib/filemode.h: Enclose function declarations in extern "C" block.
37146         Reported by John W. Eaton <jwe@gnu.org>.
37148 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
37150         save-cwd: no longer include "xgetcwd.h"
37151         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
37152         This avoids a compilation failure in projects that use save-cwd
37153         without also using the xgetcwd module.
37155 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37157         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
37158         This is so that a program like Emacs, which needs only dtoastr,
37159         does not have to bother with distributing and compiling ftoastr
37160         and ldtoastr.
37161         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
37162         * modules/dtoastr, modules/ldtoastr: New files.
37163         * modules/ftoastr: Now works just for 'float'.
37164         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
37165         (Makefile.am): Remove ftoastr.h (not needed and no effect),
37166         dtoastr.c, ldtoastr.c.
37168 2011-01-11  Jim Meyering  <meyering@redhat.com>
37170         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
37171         There is no need to work around the lack of the fchdir function,
37172         since gnulib can now provide a replacement when required.
37173         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
37174         * modules/save-cwd (Depends-on): Add fchdir.
37176 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37178         openat, save-cwd: avoid xmalloc
37180         This removes a direct (but undocumented) dependency of openat on
37181         xalloc, along with an indirect dependency via save-cwd.  It also
37182         removes a dependency of save-cwd on xgetcwd, and thereby
37183         indirectly on xalloc.  This change causes the openat substitute
37184         to fall back on save_cwd when memory is tight, and for save_cwd to
37185         fail instead of dying when memory is tight, but that's good enough.
37186         Problem and initial idea for fix reported by Bastien Roucaries in
37187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
37189         * lib/openat-proc.c: Include stdlib.h (for malloc), not
37190         xalloc.h (for xmalloc).
37191         (openat_proc_name): Use malloc, not xmalloc.
37192         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
37193         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
37195         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
37196         This avoids heap allocation for file names whose lengths are in
37197         the range 512..1023, with the upper bound increasing to at most
37198         4031 depending on the platform's PATH_MAX.  (We do not want
37199         pathmax.h here as it might supply a non-constant PATH_MAX.)
37200         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
37201         Perhaps they should be moved to malloca.h?
37202         (OPENAT_BUFFER_SIZE): Use them.
37204 2011-01-10  Bruno Haible  <bruno@clisp.org>
37206         doc: Update users.txt.
37207         * users.txt: Add recutils.
37209 2011-01-09  Karl Berry  <karl@gnu.org>
37211         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
37213         * doc/configmake.texi: New file.
37214         * doc/gnulib.texi: Include it.
37215         * modules/configmake: Move documentation from here.
37217 2011-01-09  Bruno Haible  <bruno@clisp.org>
37219         Update to Unicode 6.0.0.
37220         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
37221         (get_lbp): Update for Unicode 6.0.0.
37222         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
37223         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
37224         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
37225         U+11001, U+11038..U+11046. Remove U+06DE.
37226         (uc_width): Fix bounds of planes.
37227         * tests/uniwidth/test-uc_width2.sh: Same updates as in
37228         lib/uniwidth/width.c.
37229         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
37230         trailing whitespace removed.
37231         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
37232         without comments, but with the original copyright notice.
37233         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
37234         * lib/unicase/ignorable.h: Likewise.
37235         * lib/unicase/tocasefold.h: Likewise.
37236         * lib/unicase/tolower.h: Likewise.
37237         * lib/unicase/totitle.h: Likewise.
37238         * lib/unicase/toupper.h: Likewise.
37239         * lib/unictype/bidi_of.h: Likewise.
37240         * lib/unictype/blocks.h: Likewise.
37241         * lib/unictype/categ_C.h: Likewise.
37242         * lib/unictype/categ_Cn.h: Likewise.
37243         * lib/unictype/categ_L.h: Likewise.
37244         * lib/unictype/categ_Ll.h: Likewise.
37245         * lib/unictype/categ_Lm.h: Likewise.
37246         * lib/unictype/categ_Lo.h: Likewise.
37247         * lib/unictype/categ_Lu.h: Likewise.
37248         * lib/unictype/categ_M.h: Likewise.
37249         * lib/unictype/categ_Mc.h: Likewise.
37250         * lib/unictype/categ_Me.h: Likewise.
37251         * lib/unictype/categ_Mn.h: Likewise.
37252         * lib/unictype/categ_N.h: Likewise.
37253         * lib/unictype/categ_Nd.h: Likewise.
37254         * lib/unictype/categ_No.h: Likewise.
37255         * lib/unictype/categ_P.h: Likewise.
37256         * lib/unictype/categ_Po.h: Likewise.
37257         * lib/unictype/categ_S.h: Likewise.
37258         * lib/unictype/categ_Sc.h: Likewise.
37259         * lib/unictype/categ_Sk.h: Likewise.
37260         * lib/unictype/categ_Sm.h: Likewise.
37261         * lib/unictype/categ_So.h: Likewise.
37262         * lib/unictype/categ_of.h: Likewise.
37263         * lib/unictype/combining.h: Likewise.
37264         * lib/unictype/ctype_alnum.h: Likewise.
37265         * lib/unictype/ctype_alpha.h: Likewise.
37266         * lib/unictype/ctype_graph.h: Likewise.
37267         * lib/unictype/ctype_lower.h: Likewise.
37268         * lib/unictype/ctype_print.h: Likewise.
37269         * lib/unictype/ctype_punct.h: Likewise.
37270         * lib/unictype/ctype_upper.h: Likewise.
37271         * lib/unictype/decdigit.h: Likewise.
37272         * lib/unictype/digit.h: Likewise.
37273         * lib/unictype/numeric.h: Likewise.
37274         * lib/unictype/pr_alphabetic.h: Likewise.
37275         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37276         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37277         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37278         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37279         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37280         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37281         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37282         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37283         * lib/unictype/pr_case_ignorable.h: Likewise.
37284         * lib/unictype/pr_cased.h: Likewise.
37285         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
37286         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
37287         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
37288         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
37289         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
37290         * lib/unictype/pr_combining.h: Likewise.
37291         * lib/unictype/pr_composite.h: Likewise.
37292         * lib/unictype/pr_currency_symbol.h: Likewise.
37293         * lib/unictype/pr_decimal_digit.h: Likewise.
37294         * lib/unictype/pr_deprecated.h: Likewise.
37295         * lib/unictype/pr_format_control.h: Likewise.
37296         * lib/unictype/pr_grapheme_base.h: Likewise.
37297         * lib/unictype/pr_grapheme_extend.h: Likewise.
37298         * lib/unictype/pr_grapheme_link.h: Likewise.
37299         * lib/unictype/pr_id_continue.h: Likewise.
37300         * lib/unictype/pr_id_start.h: Likewise.
37301         * lib/unictype/pr_ideographic.h: Likewise.
37302         * lib/unictype/pr_lowercase.h: Likewise.
37303         * lib/unictype/pr_math.h: Likewise.
37304         * lib/unictype/pr_numeric.h: Likewise.
37305         * lib/unictype/pr_other_alphabetic.h: Likewise.
37306         * lib/unictype/pr_other_id_continue.h: Likewise.
37307         * lib/unictype/pr_other_math.h: Likewise.
37308         * lib/unictype/pr_punctuation.h: Likewise.
37309         * lib/unictype/pr_sentence_terminal.h: Likewise.
37310         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37311         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37312         * lib/unictype/pr_unified_ideograph.h: Likewise.
37313         * lib/unictype/pr_uppercase.h: Likewise.
37314         * lib/unictype/pr_xid_continue.h: Likewise.
37315         * lib/unictype/pr_xid_start.h: Likewise.
37316         * lib/unictype/scripts.h: Likewise.
37317         * lib/unictype/scripts_byname.gperf: Likewise.
37318         * lib/unictype/sy_java_ident.h: Likewise.
37319         * lib/unigbrk/gbrkprop.h: Likewise.
37320         * lib/unilbrk/lbrkprop1.h: Likewise.
37321         * lib/unilbrk/lbrkprop2.h: Likewise.
37322         * lib/uninorm/decomposition-table2.h: Likewise.
37323         * lib/uniwbrk/wbrkprop.h: Likewise.
37324         * tests/unicase/test-cased.c: Likewise.
37325         * tests/unicase/test-ignorable.c: Likewise.
37326         * tests/unicase/test-uc_tolower.c: Likewise.
37327         * tests/unicase/test-uc_totitle.c: Likewise.
37328         * tests/unicase/test-uc_toupper.c: Likewise.
37329         * tests/unictype/test-categ_C.c: Likewise.
37330         * tests/unictype/test-categ_Cn.c: Likewise.
37331         * tests/unictype/test-categ_L.c: Likewise.
37332         * tests/unictype/test-categ_Ll.c: Likewise.
37333         * tests/unictype/test-categ_Lm.c: Likewise.
37334         * tests/unictype/test-categ_Lo.c: Likewise.
37335         * tests/unictype/test-categ_Lu.c: Likewise.
37336         * tests/unictype/test-categ_M.c: Likewise.
37337         * tests/unictype/test-categ_Mc.c: Likewise.
37338         * tests/unictype/test-categ_Me.c: Likewise.
37339         * tests/unictype/test-categ_Mn.c: Likewise.
37340         * tests/unictype/test-categ_N.c: Likewise.
37341         * tests/unictype/test-categ_Nd.c: Likewise.
37342         * tests/unictype/test-categ_No.c: Likewise.
37343         * tests/unictype/test-categ_P.c: Likewise.
37344         * tests/unictype/test-categ_Po.c: Likewise.
37345         * tests/unictype/test-categ_S.c: Likewise.
37346         * tests/unictype/test-categ_Sc.c: Likewise.
37347         * tests/unictype/test-categ_Sk.c: Likewise.
37348         * tests/unictype/test-categ_Sm.c: Likewise.
37349         * tests/unictype/test-categ_So.c: Likewise.
37350         * tests/unictype/test-ctype_alnum.c: Likewise.
37351         * tests/unictype/test-ctype_alpha.c: Likewise.
37352         * tests/unictype/test-ctype_graph.c: Likewise.
37353         * tests/unictype/test-ctype_lower.c: Likewise.
37354         * tests/unictype/test-ctype_print.c: Likewise.
37355         * tests/unictype/test-ctype_punct.c: Likewise.
37356         * tests/unictype/test-ctype_upper.c: Likewise.
37357         * tests/unictype/test-decdigit.h: Likewise.
37358         * tests/unictype/test-digit.h: Likewise.
37359         * tests/unictype/test-numeric.h: Likewise.
37360         * tests/unictype/test-pr_alphabetic.c: Likewise.
37361         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37362         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
37363         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
37364         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37365         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37366         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37367         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37368         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37369         * tests/unictype/test-pr_case_ignorable.c: Likewise.
37370         * tests/unictype/test-pr_cased.c: Likewise.
37371         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
37372         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
37373         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
37374         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
37375         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
37376         * tests/unictype/test-pr_combining.c: Likewise.
37377         * tests/unictype/test-pr_composite.c: Likewise.
37378         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37379         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37380         * tests/unictype/test-pr_deprecated.c: Likewise.
37381         * tests/unictype/test-pr_format_control.c: Likewise.
37382         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37383         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37384         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37385         * tests/unictype/test-pr_id_continue.c: Likewise.
37386         * tests/unictype/test-pr_id_start.c: Likewise.
37387         * tests/unictype/test-pr_ideographic.c: Likewise.
37388         * tests/unictype/test-pr_lowercase.c: Likewise.
37389         * tests/unictype/test-pr_math.c: Likewise.
37390         * tests/unictype/test-pr_numeric.c: Likewise.
37391         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37392         * tests/unictype/test-pr_other_id_continue.c: Likewise.
37393         * tests/unictype/test-pr_other_math.c: Likewise.
37394         * tests/unictype/test-pr_punctuation.c: Likewise.
37395         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37396         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37397         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37398         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37399         * tests/unictype/test-pr_uppercase.c: Likewise.
37400         * tests/unictype/test-pr_xid_continue.c: Likewise.
37401         * tests/unictype/test-pr_xid_start.c: Likewise.
37402         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
37403         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
37404         changes.
37405         * lib/unictype/categ_Cc.h: Likewise.
37406         * lib/unictype/categ_Cf.h: Likewise.
37407         * lib/unictype/categ_Co.h: Likewise.
37408         * lib/unictype/categ_Cs.h: Likewise.
37409         * lib/unictype/categ_Lt.h: Likewise.
37410         * lib/unictype/categ_Nl.h: Likewise.
37411         * lib/unictype/categ_Pc.h: Likewise.
37412         * lib/unictype/categ_Pd.h: Likewise.
37413         * lib/unictype/categ_Pe.h: Likewise.
37414         * lib/unictype/categ_Pf.h: Likewise.
37415         * lib/unictype/categ_Pi.h: Likewise.
37416         * lib/unictype/categ_Ps.h: Likewise.
37417         * lib/unictype/categ_Z.h: Likewise.
37418         * lib/unictype/categ_Zl.h: Likewise.
37419         * lib/unictype/categ_Zp.h: Likewise.
37420         * lib/unictype/categ_Zs.h: Likewise.
37421         * lib/unictype/ctype_blank.h: Likewise.
37422         * lib/unictype/ctype_cntrl.h: Likewise.
37423         * lib/unictype/ctype_digit.h: Likewise.
37424         * lib/unictype/ctype_space.h: Likewise.
37425         * lib/unictype/ctype_xdigit.h: Likewise.
37426         * lib/unictype/mirror.h: Likewise.
37427         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37428         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37429         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37430         * lib/unictype/pr_bidi_control.h: Likewise.
37431         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37432         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37433         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37434         * lib/unictype/pr_bidi_pdf.h: Likewise.
37435         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37436         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37437         * lib/unictype/pr_dash.h: Likewise.
37438         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37439         * lib/unictype/pr_diacritic.h: Likewise.
37440         * lib/unictype/pr_extender.h: Likewise.
37441         * lib/unictype/pr_hex_digit.h: Likewise.
37442         * lib/unictype/pr_hyphen.h: Likewise.
37443         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37444         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37445         * lib/unictype/pr_ignorable_control.h: Likewise.
37446         * lib/unictype/pr_iso_control.h: Likewise.
37447         * lib/unictype/pr_join_control.h: Likewise.
37448         * lib/unictype/pr_left_of_pair.h: Likewise.
37449         * lib/unictype/pr_line_separator.h: Likewise.
37450         * lib/unictype/pr_logical_order_exception.h: Likewise.
37451         * lib/unictype/pr_non_break.h: Likewise.
37452         * lib/unictype/pr_not_a_character.h: Likewise.
37453         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37454         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37455         * lib/unictype/pr_other_id_start.h: Likewise.
37456         * lib/unictype/pr_other_lowercase.h: Likewise.
37457         * lib/unictype/pr_other_uppercase.h: Likewise.
37458         * lib/unictype/pr_paired_punctuation.h: Likewise.
37459         * lib/unictype/pr_paragraph_separator.h: Likewise.
37460         * lib/unictype/pr_pattern_syntax.h: Likewise.
37461         * lib/unictype/pr_pattern_white_space.h: Likewise.
37462         * lib/unictype/pr_private_use.h: Likewise.
37463         * lib/unictype/pr_quotation_mark.h: Likewise.
37464         * lib/unictype/pr_radical.h: Likewise.
37465         * lib/unictype/pr_soft_dotted.h: Likewise.
37466         * lib/unictype/pr_space.h: Likewise.
37467         * lib/unictype/pr_titlecase.h: Likewise.
37468         * lib/unictype/pr_variation_selector.h: Likewise.
37469         * lib/unictype/pr_white_space.h: Likewise.
37470         * lib/unictype/pr_zero_width.h: Likewise.
37471         * lib/unictype/sy_c_ident.h: Likewise.
37472         * lib/unictype/sy_c_whitespace.h: Likewise.
37473         * lib/unictype/sy_java_whitespace.h: Likewise.
37474         * lib/uninorm/composition-table.gperf: Likewise.
37475         * lib/uninorm/decomposition-table1.h: Likewise.
37476         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
37477         LB8.
37478         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37479         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37480         * modules/unictype/*: Bump version number of expected libunistring
37481         version.
37483 2011-01-09  Bruno Haible  <bruno@clisp.org>
37485         Update to Unicode 5.2.0.
37486         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
37487         trailing whitespace removed.
37489 2011-01-09  Bruno Haible  <bruno@clisp.org>
37491         New Unicode character properties, from Unicode 5.2.0.
37492         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
37493         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
37494         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
37495         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
37496         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
37497         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
37498         uc_is_property_cased, uc_is_property_case_ignorable,
37499         uc_is_property_changes_when_lowercased,
37500         uc_is_property_changes_when_uppercased,
37501         uc_is_property_changes_when_titlecased,
37502         uc_is_property_changes_when_casefolded,
37503         uc_is_property_changes_when_casemapped): New declarations.
37504         * lib/unictype/pr_byname.gperf: Add the new properties.
37505         * modules/unictype/property-byname (Depends-on): Depend on the new
37506         properties modules.
37507         * modules/unictype/property-all (Depends-on): Likewise.
37508         * MODULES.html.sh (Unicode string functions): Add
37509         unictype/property-case-ignorable, unictype/property-cased,
37510         unictype/property-changes-when-casefolded,
37511         unictype/property-changes-when-casemapped,
37512         unictype/property-changes-when-lowercased,
37513         unictype/property-changes-when-titlecased,
37514         unictype/property-changes-when-uppercased.
37516         New module 'unictype/property-changes-when-casemapped'.
37517         * modules/unictype/property-changes-when-casemapped: New file.
37518         * lib/unictype/pr_changes_when_casemapped.c: New file.
37519         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
37520         generated by gen-uni-tables.
37521         * modules/unictype/property-changes-when-casemapped-tests: New file.
37522         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
37523         automatically generated by gen-uni-tables.
37525         New module 'unictype/property-changes-when-casefolded'.
37526         * modules/unictype/property-changes-when-casefolded: New file.
37527         * lib/unictype/pr_changes_when_casefolded.c: New file.
37528         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
37529         generated by gen-uni-tables.
37530         * modules/unictype/property-changes-when-casefolded-tests: New file.
37531         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
37532         automatically generated by gen-uni-tables.
37534         New module 'unictype/property-changes-when-titlecased'.
37535         * modules/unictype/property-changes-when-titlecased: New file.
37536         * lib/unictype/pr_changes_when_titlecased.c: New file.
37537         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
37538         generated by gen-uni-tables.
37539         * modules/unictype/property-changes-when-titlecased-tests: New file.
37540         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
37541         automatically generated by gen-uni-tables.
37543         New module 'unictype/property-changes-when-uppercased'.
37544         * modules/unictype/property-changes-when-uppercased: New file.
37545         * lib/unictype/pr_changes_when_uppercased.c: New file.
37546         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
37547         generated by gen-uni-tables.
37548         * modules/unictype/property-changes-when-uppercased-tests: New file.
37549         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
37550         automatically generated by gen-uni-tables.
37552         New module 'unictype/property-changes-when-lowercased'.
37553         * modules/unictype/property-changes-when-lowercased: New file.
37554         * lib/unictype/pr_changes_when_lowercased.c: New file.
37555         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
37556         generated by gen-uni-tables.
37557         * modules/unictype/property-changes-when-lowercased-tests: New file.
37558         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
37559         automatically generated by gen-uni-tables.
37561         New module 'unictype/property-case-ignorable'.
37562         * modules/unictype/property-case-ignorable: New file.
37563         * lib/unictype/pr_case_ignorable.c: New file.
37564         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
37565         by gen-uni-tables.
37566         * modules/unictype/property-case-ignorable-tests: New file.
37567         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
37568         generated by gen-uni-tables.
37570         New module 'unictype/property-cased'.
37571         * modules/unictype/property-cased: New file.
37572         * lib/unictype/pr_cased.c: New file.
37573         * lib/unictype/pr_cased.h: New file, automatically generated by
37574         gen-uni-tables.
37575         * modules/unictype/property-cased-tests: New file.
37576         * tests/unictype/test-pr_cased.c: New file, automatically generated by
37577         gen-uni-tables.
37579 2011-01-09  Bruno Haible  <bruno@clisp.org>
37581         Update to Unicode 5.2.0.
37582         * lib/gen-uni-tables.c (output_predicate, output_category,
37583         output_combclass, output_bidi_category, output_decimal_digit_test,
37584         output_decimal_digit, output_digit_test, output_digit,
37585         output_numeric_test, output_numeric, output_mirror, output_scripts,
37586         output_scripts_byname, output_blocks, output_ident_category): Fix
37587         comment header.
37588         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
37589         get_wbp.
37590         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
37591         items.
37592         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
37593         Changes_When_Lowercased, Changes_When_Uppercased,
37594         Changes_When_Titlecased, Changes_When_Casefolded,
37595         Changes_When_Casemapped.
37596         (is_property_alphabetic, is_property_default_ignorable_code_point):
37597         Update for Unicode 5.2.0.
37598         (is_property_cased, is_property_case_ignorable,
37599         is_property_changes_when_lowercased,
37600         is_property_changes_when_uppercased,
37601         is_property_changes_when_titlecased,
37602         is_property_changes_when_casefolded,
37603         is_property_changes_when_casemapped): New functions.
37604         (output_properties): Output also the properties cased, case_ignorable,
37605         changes_when_lowercased, changes_when_uppercased,
37606         changes_when_titlecased, changes_when_casefolded,
37607         changes_when_casemapped.
37608         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
37609         Unicode TR#11 revision 17 -> 19.
37610         (LBP_CP): New enumeration value.
37611         (LBP_*): Adjust values accordingly.
37612         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
37613         TR#14 revision 22 -> 24.
37614         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
37615         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
37616         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
37617         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
37618         is_WBP_MIDLETTER.
37619         (output_composition_tables): Allow for 24 bits instead of 16 bits in
37620         the code1 and code2 of each composition rule.
37621         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
37622         * lib/unicase/ignorable.h: Likewise.
37623         * lib/unicase/tocasefold.h: Likewise.
37624         * lib/unicase/tolower.h: Likewise.
37625         * lib/unicase/totitle.h: Likewise.
37626         * lib/unicase/toupper.h: Likewise.
37627         * lib/unictype/bidi_of.h: Likewise.
37628         * lib/unictype/blocks.h: Likewise.
37629         * lib/unictype/categ_C.h: Likewise.
37630         * lib/unictype/categ_Cf.h: Likewise.
37631         * lib/unictype/categ_Cn.h: Likewise.
37632         * lib/unictype/categ_L.h: Likewise.
37633         * lib/unictype/categ_Ll.h: Likewise.
37634         * lib/unictype/categ_Lm.h: Likewise.
37635         * lib/unictype/categ_Lo.h: Likewise.
37636         * lib/unictype/categ_Lu.h: Likewise.
37637         * lib/unictype/categ_M.h: Likewise.
37638         * lib/unictype/categ_Mc.h: Likewise.
37639         * lib/unictype/categ_Mn.h: Likewise.
37640         * lib/unictype/categ_N.h: Likewise.
37641         * lib/unictype/categ_Nd.h: Likewise.
37642         * lib/unictype/categ_Nl.h: Likewise.
37643         * lib/unictype/categ_No.h: Likewise.
37644         * lib/unictype/categ_P.h: Likewise.
37645         * lib/unictype/categ_Pd.h: Likewise.
37646         * lib/unictype/categ_Po.h: Likewise.
37647         * lib/unictype/categ_S.h: Likewise.
37648         * lib/unictype/categ_Sc.h: Likewise.
37649         * lib/unictype/categ_So.h: Likewise.
37650         * lib/unictype/categ_of.h: Likewise.
37651         * lib/unictype/combining.h: Likewise.
37652         * lib/unictype/ctype_alnum.h: Likewise.
37653         * lib/unictype/ctype_alpha.h: Likewise.
37654         * lib/unictype/ctype_graph.h: Likewise.
37655         * lib/unictype/ctype_lower.h: Likewise.
37656         * lib/unictype/ctype_print.h: Likewise.
37657         * lib/unictype/ctype_punct.h: Likewise.
37658         * lib/unictype/ctype_upper.h: Likewise.
37659         * lib/unictype/decdigit.h: Likewise.
37660         * lib/unictype/digit.h: Likewise.
37661         * lib/unictype/numeric.h: Likewise.
37662         * lib/unictype/pr_alphabetic.h: Likewise.
37663         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37664         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37665         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37666         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37667         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37668         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37669         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37670         * lib/unictype/pr_combining.h: Likewise.
37671         * lib/unictype/pr_composite.h: Likewise.
37672         * lib/unictype/pr_currency_symbol.h: Likewise.
37673         * lib/unictype/pr_dash.h: Likewise.
37674         * lib/unictype/pr_decimal_digit.h: Likewise.
37675         * lib/unictype/pr_deprecated.h: Likewise.
37676         * lib/unictype/pr_diacritic.h: Likewise.
37677         * lib/unictype/pr_extender.h: Likewise.
37678         * lib/unictype/pr_grapheme_base.h: Likewise.
37679         * lib/unictype/pr_grapheme_extend.h: Likewise.
37680         * lib/unictype/pr_grapheme_link.h: Likewise.
37681         * lib/unictype/pr_id_continue.h: Likewise.
37682         * lib/unictype/pr_id_start.h: Likewise.
37683         * lib/unictype/pr_ideographic.h: Likewise.
37684         * lib/unictype/pr_ignorable_control.h: Likewise.
37685         * lib/unictype/pr_logical_order_exception.h: Likewise.
37686         * lib/unictype/pr_lowercase.h: Likewise.
37687         * lib/unictype/pr_numeric.h: Likewise.
37688         * lib/unictype/pr_other_alphabetic.h: Likewise.
37689         * lib/unictype/pr_punctuation.h: Likewise.
37690         * lib/unictype/pr_sentence_terminal.h: Likewise.
37691         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37692         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37693         * lib/unictype/pr_unified_ideograph.h: Likewise.
37694         * lib/unictype/pr_uppercase.h: Likewise.
37695         * lib/unictype/pr_xid_continue.h: Likewise.
37696         * lib/unictype/pr_xid_start.h: Likewise.
37697         * lib/unictype/pr_zero_width.h: Likewise.
37698         * lib/unictype/scripts.h: Likewise.
37699         * lib/unictype/scripts_byname.gperf: Likewise.
37700         * lib/unictype/sy_java_ident.h: Likewise.
37701         * lib/unigbrk/gbrkprop.h: Likewise.
37702         * lib/unilbrk/lbrkprop1.h: Likewise.
37703         * lib/unilbrk/lbrkprop2.h: Likewise.
37704         * lib/unilbrk/lbrktables.h: Likewise.
37705         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
37706         LBP_CP. Implement rule LB30.
37707         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
37708         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
37709         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
37710         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
37711         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
37712         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
37713         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
37714         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
37715         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
37716         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
37717         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
37718         bits instead of 16 bits in the code1 and code2 of each composition
37719         rule.
37720         (uc_composition): Update for Unicode 5.2.0.
37721         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
37722         * lib/uninorm/decomposition-table2.h: Likewise.
37723         * lib/uniwbrk/wbrkprop.h: Likewise.
37724         * tests/unicase/test-cased.c: Likewise.
37725         * tests/unicase/test-ignorable.c: Likewise.
37726         * tests/unicase/test-uc_tolower.c: Likewise.
37727         * tests/unicase/test-uc_totitle.c: Likewise.
37728         * tests/unicase/test-uc_toupper.c: Likewise.
37729         * tests/unictype/test-categ_C.c: Likewise.
37730         * tests/unictype/test-categ_Cf.c: Likewise.
37731         * tests/unictype/test-categ_Cn.c: Likewise.
37732         * tests/unictype/test-categ_L.c: Likewise.
37733         * tests/unictype/test-categ_Ll.c: Likewise.
37734         * tests/unictype/test-categ_Lm.c: Likewise.
37735         * tests/unictype/test-categ_Lo.c: Likewise.
37736         * tests/unictype/test-categ_Lu.c: Likewise.
37737         * tests/unictype/test-categ_M.c: Likewise.
37738         * tests/unictype/test-categ_Mc.c: Likewise.
37739         * tests/unictype/test-categ_Mn.c: Likewise.
37740         * tests/unictype/test-categ_N.c: Likewise.
37741         * tests/unictype/test-categ_Nd.c: Likewise.
37742         * tests/unictype/test-categ_Nl.c: Likewise.
37743         * tests/unictype/test-categ_No.c: Likewise.
37744         * tests/unictype/test-categ_P.c: Likewise.
37745         * tests/unictype/test-categ_Pd.c: Likewise.
37746         * tests/unictype/test-categ_Po.c: Likewise.
37747         * tests/unictype/test-categ_S.c: Likewise.
37748         * tests/unictype/test-categ_Sc.c: Likewise.
37749         * tests/unictype/test-categ_So.c: Likewise.
37750         * tests/unictype/test-ctype_alnum.c: Likewise.
37751         * tests/unictype/test-ctype_alpha.c: Likewise.
37752         * tests/unictype/test-ctype_graph.c: Likewise.
37753         * tests/unictype/test-ctype_lower.c: Likewise.
37754         * tests/unictype/test-ctype_print.c: Likewise.
37755         * tests/unictype/test-ctype_punct.c: Likewise.
37756         * tests/unictype/test-ctype_upper.c: Likewise.
37757         * tests/unictype/test-decdigit.h: Likewise.
37758         * tests/unictype/test-digit.h: Likewise.
37759         * tests/unictype/test-numeric.h: Likewise.
37760         * tests/unictype/test-pr_alphabetic.c: Likewise.
37761         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37762         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37763         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
37764         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37765         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37766         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37767         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37768         * tests/unictype/test-pr_combining.c: Likewise.
37769         * tests/unictype/test-pr_composite.c: Likewise.
37770         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37771         * tests/unictype/test-pr_dash.c: Likewise.
37772         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37773         * tests/unictype/test-pr_deprecated.c: Likewise.
37774         * tests/unictype/test-pr_diacritic.c: Likewise.
37775         * tests/unictype/test-pr_extender.c: Likewise.
37776         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37777         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37778         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37779         * tests/unictype/test-pr_id_continue.c: Likewise.
37780         * tests/unictype/test-pr_id_start.c: Likewise.
37781         * tests/unictype/test-pr_ideographic.c: Likewise.
37782         * tests/unictype/test-pr_ignorable_control.c: Likewise.
37783         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
37784         * tests/unictype/test-pr_lowercase.c: Likewise.
37785         * tests/unictype/test-pr_numeric.c: Likewise.
37786         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37787         * tests/unictype/test-pr_punctuation.c: Likewise.
37788         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37789         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37790         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37791         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37792         * tests/unictype/test-pr_uppercase.c: Likewise.
37793         * tests/unictype/test-pr_xid_continue.c: Likewise.
37794         * tests/unictype/test-pr_xid_start.c: Likewise.
37795         * tests/unictype/test-pr_zero_width.c: Likewise.
37796         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
37797         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
37798         changed behaviour: line breaking is now disallowed between a letter
37799         or '=' and '('.
37800         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37801         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37802         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37803         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
37804         * tests/uniwidth/test-uc_width2.sh: Same updates as in
37805         lib/uniwidth/width.c.
37806         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
37807         without comments, but with the original copyright notice.
37808         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
37809         changes.
37810         * lib/unictype/categ_Cc.h: Likewise.
37811         * lib/unictype/categ_Co.h: Likewise.
37812         * lib/unictype/categ_Cs.h: Likewise.
37813         * lib/unictype/categ_Lt.h: Likewise.
37814         * lib/unictype/categ_Me.h: Likewise.
37815         * lib/unictype/categ_Pc.h: Likewise.
37816         * lib/unictype/categ_Pe.h: Likewise.
37817         * lib/unictype/categ_Pf.h: Likewise.
37818         * lib/unictype/categ_Pi.h: Likewise.
37819         * lib/unictype/categ_Ps.h: Likewise.
37820         * lib/unictype/categ_Sk.h: Likewise.
37821         * lib/unictype/categ_Sm.h: Likewise.
37822         * lib/unictype/categ_Z.h: Likewise.
37823         * lib/unictype/categ_Zl.h: Likewise.
37824         * lib/unictype/categ_Zp.h: Likewise.
37825         * lib/unictype/categ_Zs.h: Likewise.
37826         * lib/unictype/ctype_blank.h: Likewise.
37827         * lib/unictype/ctype_cntrl.h: Likewise.
37828         * lib/unictype/ctype_digit.h: Likewise.
37829         * lib/unictype/ctype_space.h: Likewise.
37830         * lib/unictype/ctype_xdigit.h: Likewise.
37831         * lib/unictype/mirror.h: Likewise.
37832         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37833         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37834         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37835         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37836         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37837         * lib/unictype/pr_bidi_control.h: Likewise.
37838         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37839         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37840         * lib/unictype/pr_bidi_pdf.h: Likewise.
37841         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37842         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37843         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37844         * lib/unictype/pr_format_control.h: Likewise.
37845         * lib/unictype/pr_hex_digit.h: Likewise.
37846         * lib/unictype/pr_hyphen.h: Likewise.
37847         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37848         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37849         * lib/unictype/pr_iso_control.h: Likewise.
37850         * lib/unictype/pr_join_control.h: Likewise.
37851         * lib/unictype/pr_left_of_pair.h: Likewise.
37852         * lib/unictype/pr_line_separator.h: Likewise.
37853         * lib/unictype/pr_math.h: Likewise.
37854         * lib/unictype/pr_non_break.h: Likewise.
37855         * lib/unictype/pr_not_a_character.h: Likewise.
37856         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37857         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37858         * lib/unictype/pr_other_id_continue.h: Likewise.
37859         * lib/unictype/pr_other_id_start.h: Likewise.
37860         * lib/unictype/pr_other_lowercase.h: Likewise.
37861         * lib/unictype/pr_other_math.h: Likewise.
37862         * lib/unictype/pr_other_uppercase.h: Likewise.
37863         * lib/unictype/pr_paired_punctuation.h: Likewise.
37864         * lib/unictype/pr_paragraph_separator.h: Likewise.
37865         * lib/unictype/pr_pattern_syntax.h: Likewise.
37866         * lib/unictype/pr_pattern_white_space.h: Likewise.
37867         * lib/unictype/pr_private_use.h: Likewise.
37868         * lib/unictype/pr_quotation_mark.h: Likewise.
37869         * lib/unictype/pr_radical.h: Likewise.
37870         * lib/unictype/pr_soft_dotted.h: Likewise.
37871         * lib/unictype/pr_space.h: Likewise.
37872         * lib/unictype/pr_titlecase.h: Likewise.
37873         * lib/unictype/pr_variation_selector.h: Likewise.
37874         * lib/unictype/pr_white_space.h: Likewise.
37875         * lib/unictype/sy_c_ident.h: Likewise.
37876         * lib/unictype/sy_c_whitespace.h: Likewise.
37877         * lib/unictype/sy_java_whitespace.h: Likewise.
37878         * modules/uni*/*: Bump version number of expected libunistring version.
37879         Reported by Simon Josefsson.
37881 2011-01-09  Karl Heuer  <kwzh@gnu.org>
37883         useless-if-before-free: fix typo in --help and make the internal,
37884         automatic version date update process work once again.
37885         --help output contained a NUL character instead of the
37886         backslash-zero that was intended.  Also, the "must lie within
37887         the first 8 lines" line is on line 9, and hence not getting
37888         automatically updated.
37889         * build-aux/useless-if-before-free: Fix the former by adding a
37890         backslash, and the latter by condensing the three lines of what-it-does
37891         to a single line, leaving one line of slack for the future.
37893 2011-01-09  Bruno Haible  <bruno@clisp.org>
37895         uniwidth/width: Fix width of U+1D173..U+1D17A.
37896         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
37897         symbolic_width, output_width_property_test): New functions.
37898         (main): Invoke output_nonspacing_property, output_width_property_test.
37899         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
37900         U+1D173..U+1D17A.
37901         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
37902         1.
37903         * modules/uniwidth/*: Bump version number of expected libunistring
37904         version.
37905         * modules/unilbrk/*: Likewise.
37907 2011-01-08  Bruno Haible  <bruno@clisp.org>
37909         uninorm tests: Preserve copyright of Unicode data file.
37910         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
37911         Mention modifications.
37913 2011-01-08  Bruno Haible  <bruno@clisp.org>
37915         gen-uni-tables: Prepare for Unicode 5.2.0.
37916         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
37917         (debug_output_lbp, output_lbp): Update.
37919 2011-01-08  Bruno Haible  <bruno@clisp.org>
37921         unilbrk: Clarify gen-uni-tables.c code.
37922         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
37923         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
37924         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
37926 2011-01-07  Bruno Haible  <bruno@clisp.org>
37928         strtod: Restore errno when successfully parsing Infinity or NaN.
37929         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
37930         restore the original errno.
37932 2011-01-07  Bruno Haible  <bruno@clisp.org>
37934         remove test: Avoid failure on HP-UX 11.
37935         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
37937 2011-01-07  Bruno Haible  <bruno@clisp.org>
37939         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
37940         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
37941         error code.
37943 2011-01-07  Pádraig Brady <P@draigBrady.com>
37945         ignore-value: fixup comments, and add Eric Blake
37946         as an author since he rewrote the macros.
37947         * lib/ignore-value.h (ignore_value):  State that
37948         we now support aggregates.  Also specify exactly
37949         when the GCC warn_unused_result feature was added.
37951 2011-01-06  Eric Blake  <eblake@redhat.com>
37953         ignore-value: support aggregate types
37954         * lib/ignore-value.h (ignore_value): Provide separate gcc
37955         definition.
37956         * modules/ignore-value-tests: New test module.
37957         * tests/test-ignore-value.c: New test.
37959         maint.mk: improve sc_prohibit_strcmp regex
37960         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
37961         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
37962         definition of STRNEQ.
37964         signal: work around Haiku issue with SIGBUS
37965         * lib/siglist.h: Add comment.
37966         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
37967         strsignal's favoring of SIGSEGV.
37968         * tests/test-signal.c (main): Avoid test failure.
37969         * doc/posix-headers/signal.texi (signal.h): Document the issue.
37970         Reported by Scott McCreary.
37972         maint.mk: add pre-release check to ensure submodule commits are public
37973         * top/maint.mk (public-submodule-commit): New rule.
37974         (submodule-checks): New variable.
37975         (alpha beta stable): Depend on the variable.
37977 2011-01-05  Pádraig Brady <P@draigBrady.com>
37978         and Jim Meyering  <meyering@redhat.com>
37980         ignore-value: make ignore_value more generic; deprecate ignore_ptr
37981         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
37982         (ATTRIBUTE_DEPRECATED): Define.
37983         (_ignore_case): New function.
37984         (ignore_value): New macro, to replace the old function.
37985         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
37986         * modules/ignore-value (Depends-on): Add stdint.
37988 2011-01-04  Eric Blake  <eblake@redhat.com>
37990         doc: regenerate INSTALL
37991         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
37992         @firstparagraphindent support, now that autoconf dropped it.
37993         (INSTALL_PRELUDE): Reinstate old macro.
37994         * doc/install.texi: Resync from autoconf.
37995         * doc/INSTALL: Reflect recent autoconf update.
37996         * doc/INSTALL.ISO: Likewise.
37997         * doc/INSTALL.UTF-8: Likewise.
37998         Reported by Karl Berry.
38000 2011-01-04  Bruce Korb  <address@hidden>
38002         git-version-gen: avoid a sub-shell
38003         * build-aux/git-version-gen: Redirect stderr in `...` via
38004         "exec 2>...", rather than via an added sub-shell.
38006 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
38008         git-version-gen: use (...) rather than sh -c '...'
38009         * build-aux/git-version-gen: Rather than hard-coding a shell's name
38010         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
38012 2011-01-03  Jim Meyering  <meyering@redhat.com>
38014         git-version-gen: convert leading TABs to spaces
38015         * build-aux/git-version-gen: Expand leading TABs.
38017         git-version-gen: handle failed "git rev-list"
38018         * build-aux/git-version-gen: Rather than leaking a "fatal" error
38019         from git and proceeding as if it had succeeded but printed no SHA1
38020         checksums, suppress the diagnostic and handle the failure.
38021         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
38023         git-version-gen: include command name in one more diagnostic
38024         * build-aux/git-version-gen: When the required .tarball-version file
38025         was missing or unreadable, you might see the diagnostic from "cat",
38026         but no trace of the name of the invoking script.  Now, you still see
38027         the diagnostic from cat, but also get one from "git-version-gen: ".
38028         Inspired by a patch from Bruce Korb.
38030         update-copyright: adjust test to match changed code
38031         * tests/test-update-copyright.sh: Change test's expected output
38032         to match new actual output.
38034 2011-01-02  Bruno Haible  <bruno@clisp.org>
38036         getlogin_r: Avoid test failure on HP-UX 11.
38037         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
38038         ERANGE when the second argument is zero.
38039         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
38040         portability problem.
38042 2011-01-02  Bruce Korb  <bkorb@gnu.org>
38044         * build-aux/update-copyright: doc Simon's changes
38046 2011-01-02  Simon Josefsson  <simon@josefsson.org>
38048         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
38049         environment variable.
38051 2011-01-02  Bruno Haible  <bruno@clisp.org>
38053         unigbrk: Avoid gcc warnings.
38054         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
38055         unused variable.
38056         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
38057         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
38058         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
38059         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
38060         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
38061         Change type of first argument to 'const char *'.
38062         (main): Remove unused variable.
38063         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
38064         type of first argument to 'const char *'.
38065         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
38066         Likewise.
38067         (main): Change type of variable 's'.
38068         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
38069         to 'int'.
38071 2011-01-02  Bruno Haible  <bruno@clisp.org>
38073         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
38074         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
38075         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
38076         bug.
38077         * lib/pwrite.c: Undo 2010-12-31 patch.
38078         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
38080 2011-01-02  Bruno Haible  <bruno@clisp.org>
38082         pread: Fix test whether it works.
38083         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
38085 2011-01-02  Bruno Haible  <bruno@clisp.org>
38087         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
38088         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
38089         ends in "6". Don't require a specific month name. Try also the locale
38090         names found on HP-UX 11 and Solaris 7.
38092 2011-01-02  Bruno Haible  <bruno@clisp.org>
38094         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
38095         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
38096         C linkage.
38097         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
38099 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
38101         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
38102         for consistency, since the "cluster" term is not used elsewhere.
38103         * lib/unigbrk.in.h: Update name.
38104         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
38105         * lib/unigbrk/u16-grapheme-next.c: Update name.
38106         * lib/unigbrk/u16-grapheme-prev.c: Update name.
38107         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
38108         * lib/unigbrk/u32-grapheme-next.c: Update name.
38109         * lib/unigbrk/u32-grapheme-prev.c: Update name.
38110         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
38111         * lib/unigbrk/u8-grapheme-next.c: Update name.
38112         * lib/unigbrk/u8-grapheme-prev.c: Update name.
38113         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
38114         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
38115         Suggested by Bruno Haible.
38117 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
38119         Remove module 'u8-grapheme-len' as too redundant with
38120         'u8-grapheme-next'.
38121         * modules/unigbrk/u8-grapheme-len: Delete file.
38122         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
38123         * lib/unigbrk.in.h: Remove prototype for deleted function.
38124         * lib/unigbrk/u8-grapheme-len.c: Delete file.
38125         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
38127         Remove module 'u16-grapheme-len' as too redundant with
38128         'u16-grapheme-next'.
38129         * modules/unigbrk/u16-grapheme-len: Delete file.
38130         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
38131         * lib/unigbrk.in.h: Remove prototype for deleted function.
38132         * lib/unigbrk/u16-grapheme-len.c: Delete file.
38133         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
38135         Remove module 'u32-grapheme-len' as too redundant with
38136         'u32-grapheme-next'.
38137         * modules/unigbrk/u32-grapheme-len: Delete file.
38138         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
38139         * lib/unigbrk.in.h: Remove prototype for deleted function.
38140         * lib/unigbrk/u32-grapheme-len.c: Delete file.
38141         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
38143         Suggested by Bruno Haible.
38145 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
38147         * unigbrk.in.h: Fix typo: "ben" => "been".
38148         Reported by Bruno Haible.
38150 2011-01-01  Jim Meyering  <meyering@redhat.com>
38152         maint: update almost all copyright ranges to include 2011
38153         Run the new "make update-copyright" rule.
38155 2011-01-01  Jim Meyering  <meyering@redhat.com>
38157         maint: update-copyright: exempt doc/INSTALL*
38158         * Makefile (update-copyright): Also exclude doc/INSTALL*,
38159         since they are generated.  Suggested by Bruno Haible.
38161 2011-01-01  Jim Meyering  <meyering@redhat.com>
38163         maint: refine the update-copyright rule
38164         * Makefile (update-copyright): Also exclude any file that includes
38165         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
38166         code that merely generates the comment.
38168 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
38170         New module 'u8-grapheme-len'.
38171         * modules/unigbrk/u8-grapheme-len: New file.
38172         * modules/unigbrk/u8-grapheme-len-tests: New file.
38173         * lib/unigbrk.in.h: Add prototype for new function.
38174         * lib/unigbrk/u8-grapheme-len.c: New file.
38175         * tests/unigbrk/test-u8-grapheme-len.c: New file.
38177         New module 'u16-grapheme-len'.
38178         * modules/unigbrk/u16-grapheme-len: New file.
38179         * modules/unigbrk/u16-grapheme-len-tests: New file.
38180         * lib/unigbrk.in.h: Add prototype for new function.
38181         * lib/unigbrk/u16-grapheme-len.c: New file.
38182         * tests/unigbrk/test-u16-grapheme-len.c: New file.
38184         New module 'u32-grapheme-len'.
38185         * modules/unigbrk/u32-grapheme-len: New file.
38186         * modules/unigbrk/u32-grapheme-len-tests: New file.
38187         * lib/unigbrk.in.h: Add prototype for new function.
38188         * lib/unigbrk/u32-grapheme-len.c: New file.
38189         * tests/unigbrk/test-u32-grapheme-len.c: New file.
38191         New module 'u8-grapheme-next'.
38192         * modules/unigbrk/u8-grapheme-next: New file.
38193         * modules/unigbrk/u8-grapheme-next-tests: New file.
38194         * lib/unigbrk.in.h: Add prototype for new function.
38195         * lib/unigbrk/u8-grapheme-next.c: New file.
38196         * tests/unigbrk/test-u8-grapheme-next.c: New file.
38198         New module 'u16-grapheme-next'.
38199         * modules/unigbrk/u16-grapheme-next: New file.
38200         * modules/unigbrk/u16-grapheme-next-tests: New file.
38201         * lib/unigbrk.in.h: Add prototype for new function.
38202         * lib/unigbrk/u16-grapheme-next.c: New file.
38203         * tests/unigbrk/test-u16-grapheme-next.c: New file.
38205         New module 'u32-grapheme-next'.
38206         * modules/unigbrk/u32-grapheme-next: New file.
38207         * modules/unigbrk/u32-grapheme-next-tests: New file.
38208         * lib/unigbrk.in.h: Add prototype for new function.
38209         * lib/unigbrk/u32-grapheme-next.c: New file.
38210         * tests/unigbrk/test-u32-grapheme-next.c: New file.
38212         New module 'u8-grapheme-prev'.
38213         * modules/unigbrk/u8-grapheme-prev: New file.
38214         * modules/unigbrk/u8-grapheme-prev-tests: New file.
38215         * lib/unigbrk.in.h: Add prototype for new function.
38216         * lib/unigbrk/u8-grapheme-prev.c: New file.
38217         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
38219         New module 'u16-grapheme-prev'.
38220         * modules/unigbrk/u16-grapheme-prev: New file.
38221         * modules/unigbrk/u16-grapheme-prev-tests: New file.
38222         * lib/unigbrk.in.h: Add prototype for new function.
38223         * lib/unigbrk/u16-grapheme-prev.c: New file.
38224         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
38226         New module 'u32-grapheme-prev'.
38227         * modules/unigbrk/u32-grapheme-prev: New file.
38228         * modules/unigbrk/u32-grapheme-prev-tests: New file.
38229         * lib/unigbrk.in.h: Add prototype for new function.
38230         * lib/unigbrk/u32-grapheme-prev.c: New file.
38231         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
38233         New module 'u8-grapheme-breaks'.
38234         * modules/unigbrk/u8-grapheme-breaks: New file.
38235         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
38236         * lib/unigbrk.in.h: Add prototype for new function.
38237         * lib/unigbrk/u8-grapheme-breaks.c: New file.
38238         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
38240         New module 'u16-grapheme-breaks'.
38241         * modules/unigbrk/u16-grapheme-breaks: New file.
38242         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
38243         * lib/unigbrk.in.h: Add prototype for new function.
38244         * lib/unigbrk/u16-grapheme-breaks.c: New file.
38245         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
38247         New module 'u32-grapheme-breaks'.
38248         * modules/unigbrk/u32-grapheme-breaks: New file.
38249         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
38250         * lib/unigbrk.in.h: Add prototype for new function.
38251         * lib/unigbrk/u32-grapheme-breaks.c: New file.
38252         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
38254         New module 'ulc-grapheme-breaks'.
38255         * modules/unigbrk/ulc-grapheme-breaks: New file.
38256         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
38257         * m4/locale-ar.m4: New file.
38258         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
38259         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
38260         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
38262 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
38264         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
38265         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
38266         modified how this file was generated before I initially submitted
38267         the module, but failed to regenerate it.  This meant that several
38268         of the level2 entries were wrong.
38269         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
38270         Remove the division-by-2 that is folded into the table now that
38271         gbrkprop.h has been regenerated properly.  Now -1 entries are
38272         handled correctly.
38274         New module 'unigbrk/uc-gbrk-prop-tests'.
38275         * modules/unigbrk/uc-gbrk-prop-tests: New file.
38276         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
38277         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
38278         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
38280 2011-01-01  Bruno Haible  <bruno@clisp.org>
38282         Avoid use of hexadecimal escapes.
38283         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
38284         instead of hexadecimal escapes.
38286 2011-01-01  Jim Meyering  <meyering@redhat.com>
38288         maint: new rule to update copyright year ranges
38289         * Makefile (update-copyright): New rule.
38291         maint: indent with TABs in Makefile
38292         * Makefile: Expand leading sequences of spaces to TABs
38294         version-etc: update the copyright year it reports
38295         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
38297 2010-12-31  Bruno Haible  <bruno@clisp.org>
38299         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
38300         * lib/isfinite.c (zerof, zerod, zerol): New variables.
38301         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
38302         zero.
38304 2010-12-31  Bruno Haible  <bruno@clisp.org>
38306         pwrite: Work around HP-UX 11.11 bug.
38307         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
38308         works and set REPLACE_PWRITE if not.
38309         * lib/pwrite.c (pwrite): Add an implementation that uses the system
38310         function.
38311         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
38313 2010-12-31  Bruno Haible  <bruno@clisp.org>
38315         pread: Work around HP-UX 11 bugs.
38316         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
38317         and set REPLACE_PREAD if not.
38318         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
38320 2010-12-31  Eric Blake  <eblake@redhat.com>
38322         nl_langinfo: fix YESEXPR on Irix 6.5
38323         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
38324         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
38325         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
38326         it.
38328 2010-12-31  Bruno Haible  <bruno@clisp.org>
38330         iconv: Document HP-UX 11 bug.
38331         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
38333 2010-12-31  Bruno Haible  <bruno@clisp.org>
38335         ldexpl: Fix link error on HP-UX 11.
38336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
38337         LDEXPL_LIBM, using $ISNANL_LIBM.
38339 2010-12-31  Eric Blake  <eblake@redhat.com>
38341         ftello: avoid compilation failure with SunStudio c89
38342         * lib/ftello.c (ftello): Use lseek, not llseek.
38344         tests: avoid failing coreutils tests on cygwin
38345         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
38346         (create_exe_shims_): Return 0 when skipping.
38348 2010-12-31  Bruno Haible  <bruno@clisp.org>
38350         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
38351         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
38353 2010-12-31  Bruno Haible  <bruno@clisp.org>
38355         waitpid: Fix link error in C++ mode.
38356         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
38358 2010-12-31  Bruno Haible  <bruno@clisp.org>
38360         isnan: Use GCC built-ins when possible.
38361         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
38362         __builtin_isnan.
38363         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
38364         (isnan): Define using GCC built-ins for GCC >= 4.0.
38366 2010-12-31  Bruno Haible  <bruno@clisp.org>
38368         isnand: Fix mistake.
38369         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
38370         __builtin_isnand.
38372 2010-12-31  Bruno Haible  <bruno@clisp.org>
38374         open: Avoid C++ error on HP-UX 11.
38375         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
38377 2010-12-31  Bruno Haible  <bruno@clisp.org>
38379         time_r: Add missing declarations on HP-UX 11.
38380         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
38381         instead of HAVE_LOCALTIME_R.
38382         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
38383         HAVE_LOCALTIME_R always.
38384         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
38385         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
38386         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
38387         HAVE_LOCALTIME_R.
38388         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
38389         * doc/posix-functions/localtime_r.texi: Likewise.
38391 2010-12-29  Eric Blake  <eblake@redhat.com>
38393         mountlist: tweak previous commit
38394         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
38395         Reported by Paul Eggert.
38397         mountlist: fix local drive detection on cygwin
38398         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
38399         that works for cygwin.
38401 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38403         ftoastr, snprintf: ftoastr + snprintf module
38404         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
38405         since the snprintf module now should be good enough here.
38406         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
38407         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
38408         and gl_MODULE_INDICATOR([snprintf]), but the former enables
38409         GNULIB_SNPRINTF only for the test directory, and the latter
38410         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
38411         seems to suffice by itself.
38413 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38415         alloca: one step towards thread-safety
38416         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
38417         need for a static variable.  All callers changed.  This does not
38418         make the alloca replacement thread-safe, but it's one step.
38420         tests: minor indenting change
38421         * tests/init.sh: Sync from coreutils housekeeping patch
38422         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
38423         to keep lines within 80 columns.
38425 2010-12-28  Jim Meyering  <meyering@redhat.com>
38427         regex: don't infloop on persistent failing calloc
38428         * lib/regexec.c (build_trtable): Return failure indication upon
38429         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
38430         In glibc, this was fixed for version 2.13:
38431         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
38433 2010-12-28  Bruno Haible  <bruno@clisp.org>
38434             Paul Eggert <eggert@cs.ucla.edu>
38436         linkat: Make implementation robust against system behaviour variations.
38437         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
38438         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
38439         way, and to -2 if it needs a generic runtime test.
38440         * lib/linkat.c (solaris_optimized_link_immediate,
38441         solaris_optimized_link_follow): New functions.
38442         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
38443         (check_same_link): Use it.
38445 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
38447         New module 'unigbrk/base'.
38448         * modules/unigbrk/base: New file.
38449         * lib/unigbrk.in.h: New file.
38451         New module 'unigbrk/uc-gbrk-prop'.
38452         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
38453         * modules/unigbrk/uc-gbrk-prop: New file.
38454         * lib/unigbrk/gbrkprop.h: New file.
38455         * lib/unigbrk/uc-gbrk-prop.c: New file.
38457         New module 'unigbrk/uc-is-grapheme-break'.
38458         * modules/unigbrk/uc-is-grapheme-break: New file.
38459         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
38460         * lib/unigbrk/uc-is-grapheme-break.c: New file.
38461         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
38462         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
38463         * tests/unigbrk/GraphemeBreakTest.txt: New file.
38465         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
38467 2010-12-27  Bruno Haible  <bruno@clisp.org>
38469         linkat test: Avoid failure on Solaris 11 2010-11.
38470         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
38472 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38474         utimens: work around glibc rounding bug on more platforms
38475         * lib/utimens.c (fdutimens): Work around rounding bug even if
38476         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
38477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
38479 2010-12-27  Bruno Haible  <bruno@clisp.org>
38481         select tests: Improve comments.
38482         * tests/test-select.c (do_select): Add comments.
38484 2010-12-27  Bruno Haible  <bruno@clisp.org>
38486         select tests: Safer way of handling timeout.
38487         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
38488         at every invocation.
38490 2010-12-27  Bruno Haible  <bruno@clisp.org>
38492         select tests: Use 'bool' where appropriate.
38493         * tests/test-select.c (connect_to_socket): Change argument type to
38494         'bool'.
38496 2010-12-27  Bruno Haible  <bruno@clisp.org>
38498         select tests: Use existing modules.
38499         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
38500         (configure.ac): Don't test for unistd.h.
38501         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
38502         declared in <unistd.h>.
38504 2010-12-27  Bruno Haible  <bruno@clisp.org>
38506         mbrtowc: Work around a Solaris 7 bug.
38507         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
38508         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
38509         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
38510         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
38511         MBRTOWC_NULL_ARG1_BUG.
38512         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
38513         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
38514         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
38515         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
38517 2010-12-27  Jim Meyering  <meyering@redhat.com>
38519         read-file.c: tweak syntax
38520         * lib/read-file.c (fread_file): Remove space after "*" in function
38521         definitions.
38523 2010-12-27  Bruno Haible  <bruno@clisp.org>
38525         times test: Avoid gcc warnings on OSF/1.
38526         * tests/test-times.c (main): Cast printf arguments from clock_t to
38527         'long int'.
38529 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38531         utimens: work around glibc rounding bug on older Linux kernels
38532         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
38533         on Linux with a glibc whose utimes might not work, then work
38534         around a longstanding glibc bug involving rounding rather than
38535         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
38536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
38538 2010-12-26  Bruno Haible  <bruno@clisp.org>
38540         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
38541         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
38542         _GL_CXXALIAS_SYS.
38543         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38545 2010-12-26  Bruno Haible  <bruno@clisp.org>
38547         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
38548         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
38549         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
38550         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
38551         looking for the declaration.
38552         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
38553         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
38554         problem.
38555         * doc/posix-functions/inet_pton.texi: Likewise.
38557 2010-12-26  Bruno Haible  <bruno@clisp.org>
38559         arpa_inet: Use the common idioms with C++ support.
38560         * lib/arpa_inet.in.h: Include c++defs.h.
38561         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
38562         support.
38563         * modules/arpa_inet (Depends-on): Add c++defs.
38564         (Makefile.am): Substitute the contents of c++defs.h.
38565         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
38566         * modules/arpa_inet-c++-tests: New file.
38567         * tests/test-arpa_inet-c++.cc: New file.
38569 2010-12-25  Bruno Haible  <bruno@clisp.org>
38571         Fix more C++ link errors on Solaris 8.
38572         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
38573         $(LIB_EACCESS).
38574         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
38575         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
38576         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
38577         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
38578         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
38580 2010-12-25  Bruno Haible  <bruno@clisp.org>
38582         printf-posix: Fix link error when a non-GCC compiler is used.
38583         * lib/stdio.in.h (printf): When not using GCC, override printf
38584         correctly.
38585         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38587 2010-12-25  Bruno Haible  <bruno@clisp.org>
38589         strerror_r-posix: Update doc.
38590         * doc/posix-functions/strerror_r.texi: Update doc about the return
38591         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
38593 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38595         utimens: simplify the logic of the previous change
38596         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
38597         This should not affect whether the test succeeds or fails.
38599         utimens: configure better on hosts with NFS clock skew
38600         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
38601         uses the clock of the local host.  It might use the clock of the
38602         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
38603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
38605 2010-12-25  Bruno Haible  <bruno@clisp.org>
38607         ptsname test: Avoid failure on Solaris.
38608         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
38609         open a pseudo-terminal; don't use BSD-style ptys.
38610         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
38612 2010-12-25  Bruno Haible  <bruno@clisp.org>
38614         ptsname: Avoid ERANGE failure on some systems.
38615         * lib/ptsname.c (buffer): Increase size.
38617 2010-12-25  Bruno Haible  <bruno@clisp.org>
38619         rename, renameat: Avoid test failures at NFS mounted locations.
38620         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
38621         so that subsequent mkdir calls succeed.
38623 2010-12-25  Bruno Haible  <bruno@clisp.org>
38625         iswblank: Fix C++ link error on Solaris 8.
38626         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
38627         _GL_FUNCDECL_SYS.
38629 2010-12-25  Bruno Haible  <bruno@clisp.org>
38631         unistd: Fix C++ link error on Solaris 8.
38632         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
38634 2010-12-25  Bruno Haible  <bruno@clisp.org>
38636         readlink doc: Mention an old glibc bug.
38637         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
38639 2010-12-25  Bruno Haible  <bruno@clisp.org>
38641         fcntl-h: Fix for use of C++ on glibc systems.
38642         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
38643         also on glibc systems in C++ mode.
38644         Reported by Gary V. Vaughan <gary@gnu.org>.
38646 2010-12-25  Bruno Haible  <bruno@clisp.org>
38648         roundl-ieee: Make it work on OSF/1 5.1 with cc.
38649         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
38651 2010-12-25  Bruno Haible  <bruno@clisp.org>
38653         truncl-ieee: Make it work on OSF/1 5.1 with cc.
38654         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
38655         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
38656         test whether truncl works according to ISO C 99 with IEC 60559.
38657         * m4/truncl-ieee.m4: New file.
38658         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
38659         m4/signbit.m4.
38660         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
38662 2010-12-25  Bruno Haible  <bruno@clisp.org>
38664         ceill-ieee: Make it work on OSF/1 5.1 with cc.
38665         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
38666         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
38667         test whether ceill works according to ISO C 99 with IEC 60559.
38668         * m4/ceill-ieee.m4: New file.
38669         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
38670         m4/signbit.m4.
38671         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
38673 2010-12-25  Bruno Haible  <bruno@clisp.org>
38675         Ensure all prerequisites of <wchar.h> are included.
38676         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
38677         before <wchar.h>.
38678         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
38679         gl_MBRLEN_NUL_RETVAL): Likewise.
38680         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38681         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
38682         AC_FUNC_MBRTOWC): Likewise.
38683         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38684         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38685         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
38686         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38687         Likewise.
38688         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38689         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
38690         (gl_WCHAR_H): Improve comments.
38691         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
38693 2010-12-25  Bruno Haible  <bruno@clisp.org>
38695         strtok_r: Fix C syntax error in autoconf macro.
38696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
38697         characters in test program.
38699 2010-12-24  Bruno Haible  <bruno@clisp.org>
38701         ceil, trunc, round: Fix gcc warnings.
38702         * lib/ceil.c (MIN): Undefine before redefining.
38703         * lib/trunc.c (MIN): Likewise.
38704         * lib/round.c (MIN): Likewise.
38705         Include <math.h> first.
38707 2010-12-24  Bruno Haible  <bruno@clisp.org>
38709         select tests: Avoid failures on OSF/1 5.1.
38710         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
38711         failure of closing the last socket; it may fail with ECONNRESET.
38713 2010-12-24  Eric Blake  <eblake@redhat.com>
38715         stdint: avoid HP-UX 10.20 preprocessor bug
38716         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
38717         than #if.
38718         * tests/test-floor2.c (main): Likewise.
38719         Reported by Peter O'Gorman.
38721         pipe: make obsoletion transition easier
38722         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
38723         * modules/pipe (Files): Include revived file.
38724         (Include): Drop reference, to mirror getdate's behavior.
38726 2010-12-24  Bruno Haible  <bruno@clisp.org>
38728         sys_socket: Hide mismatch of declarations on NonStop Kernel.
38729         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
38730         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
38731         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38733 2010-12-24  Bruno Haible  <bruno@clisp.org>
38735         gethostname: Ensure declaration on NonStop Kernel.
38736         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
38737         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38739 2010-12-24  Bruno Haible  <bruno@clisp.org>
38741         sys_select: Ensure all necessary types on NonStop Kernel.
38742         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
38743         include <sys/time.h>.
38744         * doc/posix-headers/sys_select.texi: Mention that it's missing on
38745         NonStop Kernel.
38746         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38748 2010-12-24  Bruno Haible  <bruno@clisp.org>
38750         sys_select: Remove unneeded include.
38751         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
38752         have <sys/select.h>.
38754 2010-12-24  Bruno Haible  <bruno@clisp.org>
38756         gethostname: Provide a fallback for HOST_NAME_MAX.
38757         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
38758         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
38759         instead.
38760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38762 2010-12-24  Bruno Haible  <bruno@clisp.org>
38764         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
38765         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
38766         (SA_RESTART): Likewise.
38767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38769 2010-12-24  Bruno Haible  <bruno@clisp.org>
38771         signal: Define NSIG.
38772         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
38773         * tests/test-signal.c (nsig): New variable.
38774         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38776 2010-12-24  Bruno Haible  <bruno@clisp.org>
38778         rename, renameat: Avoid test failures on OSF/1 5.1.
38779         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
38780         alternative error codes.
38781         * tests/test-renameat.c (main): Likewise.
38783 2010-12-24  Bruno Haible  <bruno@clisp.org>
38785         *printf: Detect large precisions bug on Solaris 10/SPARC.
38786         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
38787         by Paul Eggert.
38788         * tests/test-snprintf-posix.h (test_function): Add this test code here
38789         too.
38790         * tests/test-sprintf-posix.h (test_function): Likewise.
38791         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38792         * tests/test-vasprintf-posix.c (test_function): Likewise.
38793         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
38794         around by gnulib.
38795         * doc/posix-functions/printf.texi: Likewise.
38796         * doc/posix-functions/snprintf.texi: Likewise.
38797         * doc/posix-functions/sprintf.texi: Likewise.
38798         * doc/posix-functions/vfprintf.texi: Likewise.
38799         * doc/posix-functions/vprintf.texi: Likewise.
38800         * doc/posix-functions/vsnprintf.texi: Likewise.
38801         * doc/posix-functions/vsprintf.texi: Likewise.
38802         * doc/posix-functions/dprintf.texi: Undo last commit.
38803         * doc/posix-functions/vdprintf.texi: Likewise.
38805 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38807         tests: port test-fdutimensat.c to Solaris 8
38808         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
38809         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
38810         On Solaris 8, it fails with errno == ENOSYS, because there is no
38811         futimens (so it can't use the fd), and there is no lutimens (so it
38812         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
38814         vsnprintf: make more consistent with snprintf; doc fixes
38816         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
38817         the byte count return problem was promoted from the snprintf-posix
38818         to the snprintf module.
38819         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38820         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
38821         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
38822         * tests/test-snprintf.c (main): Check the byte count returned.
38823         * tests/test-vsnprintf.c (main): Likewise.
38825 2010-12-23  Eric Blake  <eblake@redhat.com>
38827         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
38828         * modules/sigpipe (License): Relax license.
38830 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38832         doc: document Solaris printf bug with large float precisions
38833         * doc/posix-functions/dprintf.texi (dprintf):
38834         * doc/posix-functions/fprintf.texi (fprintf):
38835         * doc/posix-functions/printf.texi (printf):
38836         * doc/posix-functions/snprintf.texi (snprintf):
38837         * doc/posix-functions/sprintf.texi (sprintf):
38838         * doc/posix-functions/vdprintf.texi (vdprintf):
38839         * doc/posix-functions/vfprintf.texi (vfprintf):
38840         * doc/posix-functions/vprintf.texi (vprintf):
38841         * doc/posix-functions/vsnprintf.texi (vsnprintf):
38842         * doc/posix-functions/vsprintf.texi (vsprintf):
38843         Mention that these functions mishandle large floating point
38844         precisions on Solaris 10.  The same bug is also present in Solaris
38845         8, and I assume earlier.  This causes "cd gnulib-tests; make
38846         check" to fail on Solaris 8 (and I assume, later) when building
38847         the latest coreutils, in test-vasprintf-posix's call to
38848         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
38849         the wide flavors (e.g., wprintf) so this patch just updates the
38850         documentation for the narrow ones.
38852         test-posixtm.c: add two tests
38853         * tests/test-posixtm.c: Add two tests, to highlight the
38854         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
38855         around this bug; this is merely to document it.
38857 2010-12-22  Bruno Haible  <bruno@clisp.org>
38859         getlogin_r: Work around portability problem on OSF/1.
38860         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
38861         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
38862         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
38863         test for a truncated result.
38864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
38865         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
38866         * modules/getlogin_r (Depends-on): Add memchr.
38867         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
38869 2010-12-22  Bruno Haible  <bruno@clisp.org>
38871         ptsname: Avoid test failure on OSF/1 5.1.
38872         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
38873         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
38874         (same_slave): New function.
38875         (main): Use it to compare ptsname's result with the expected file name.
38877 2010-12-22  Bruno Haible  <bruno@clisp.org>
38879         Port extended stdio modules to HP NonStop Kernel.
38880         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
38881         macros.
38882         * lib/fbufmode.c: Update comments.
38883         * lib/fflush.c: Likewise.
38884         * lib/fpurge.c: Likewise.
38885         * lib/freadable.c: Likewise.
38886         * lib/freadahead.c: Likewise.
38887         * lib/freading.c: Likewise.
38888         * lib/freadptr.c: Likewise.
38889         * lib/freadseek.c: Likewise.
38890         * lib/fseeko.c: Likewise.
38891         * lib/fseterr.c: Likewise.
38892         * lib/fwritable.c: Likewise.
38893         * lib/fwriting.c: Likewise.
38894         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38896 2010-12-22  Bruno Haible  <bruno@clisp.org>
38898         ttyname_r: Work around bug on OSF/1 5.1.
38899         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
38900         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
38901         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
38902         present.
38903         * lib/ttyname_r.c (ttyname_r): Update comments.
38905 2010-12-22  Bruno Haible  <bruno@clisp.org>
38907         round: Implement result sign according to IEEE 754.
38908         * lib/round.c (MIN, MINUS_ZERO): New macros.
38909         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
38910         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
38911         * tests/test-round-ieee.c (main): Likewise.
38912         * tests/test-roundl-ieee.c (main): Likewise.
38914         trunc: Implement result sign according to IEEE 754.
38915         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
38916         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
38917         * tests/test-trunc2.c: Include minus-zero.h.
38918         (MINUS_ZERO): New macro.
38919         (trunc_reference): Keep in sync with lib/trunc.c.
38920         * tests/test-truncf2.c: Include minus-zero.h.
38921         (MINUS_ZERO): New macro.
38922         (truncf_reference): Keep in sync with lib/trunc.c.
38923         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
38924         * tests/test-trunc-ieee.c (main): Likewise.
38925         * tests/test-truncl-ieee.c (main): Likewise.
38927         ceil: Implement result sign according to IEEE 754.
38928         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
38929         (FUNC): Return -0.0 for -1 < x < 0.
38930         * tests/test-ceil2.c: Include minus-zero.h.
38931         (MINUS_ZERO): New macro.
38932         (ceil_reference): Keep in sync with lib/ceil.c.
38933         * tests/test-ceilf2.c: Include minus-zero.h.
38934         (MINUS_ZERO): New macro.
38935         (ceilf_reference): Keep in sync with lib/ceil.c.
38936         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
38937         * tests/test-ceil-ieee.c (main): Likewise.
38938         * tests/test-ceill-ieee.c (main): Likewise.
38940         floor: Implement result sign according to IEEE 754.
38941         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
38942         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
38943         * tests/test-floorf2.c (floorf_reference): Likewise.
38944         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
38945         * tests/test-floor-ieee.c (main): Likewise.
38946         * tests/test-floorl-ieee.c (main): Likewise.
38948 2010-12-22  Bruno Haible  <bruno@clisp.org>
38950         getaddrinfo: Update doc.
38951         * doc/posix-functions/gai_strerror.texi: Return type is also different
38952         on AIX and HP-UX.
38954 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38956         getaddrinfo, inet_ntop: Update doc for Solaris.
38957         * doc/posix-functions/gai_strerror.texi: Return type is also an
38958         issue on Solaris 9 and earlier.
38959         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
38960         on Solaris 10 and earlier.
38962 2010-12-21  Bruno Haible  <bruno@clisp.org>
38964         New module 'roundl-ieee'.
38965         * modules/roundl-ieee: New file.
38966         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
38967         test whether roundl works according to ISO C 99 with IEC 60559.
38968         * m4/roundl-ieee.m4: New file.
38969         * modules/roundl-ieee-tests: New file.
38970         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
38971         * tests/test-roundl.c (main): Remove signbit tests.
38972         * modules/roundl-tests (Depends-on): Remove signbit.
38973         * doc/posix-functions/roundl.texi: Mention the new module.
38975 2010-12-21  Bruno Haible  <bruno@clisp.org>
38977         New module 'truncl-ieee'.
38978         * modules/truncl-ieee: New file.
38979         * modules/truncl-ieee-tests: New file.
38980         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
38981         * tests/test-truncl.c (main): Remove signbit tests.
38982         * modules/truncl-tests (Depends-on): Remove signbit.
38983         * doc/posix-functions/truncl.texi: Mention the new module.
38985 2010-12-21  Bruno Haible  <bruno@clisp.org>
38987         New module 'ceill-ieee'.
38988         * modules/ceill-ieee: New file.
38989         * modules/ceill-ieee-tests: New file.
38990         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
38991         * tests/test-ceill.c (main): Remove signbit tests.
38992         * modules/ceill-tests (Depends-on): Remove signbit.
38993         * doc/posix-functions/ceill.texi: Mention the new module.
38995 2010-12-21  Bruno Haible  <bruno@clisp.org>
38997         New module 'floorl-ieee'.
38998         * modules/floorl-ieee: New file.
38999         * modules/floorl-ieee-tests: New file.
39000         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
39001         * tests/test-floorl.c (main): Remove signbit tests.
39002         * modules/floorl-tests (Depends-on): Remove signbit.
39003         * doc/posix-functions/floorl.texi: Mention the new module.
39005 2010-12-21  Bruno Haible  <bruno@clisp.org>
39007         New module 'round-ieee'.
39008         * modules/round-ieee: New file.
39009         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
39010         whether round works according to ISO C 99 with IEC 60559.
39011         * m4/round-ieee.m4: New file.
39012         * modules/round-ieee-tests: New file.
39013         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
39014         * tests/test-round1.c (main): Remove signbit tests.
39015         * modules/round-tests (Depends-on): Remove 'signbit'.
39016         * doc/posix-functions/round.texi: Mention the new module.
39018 2010-12-21  Bruno Haible  <bruno@clisp.org>
39020         New module 'trunc-ieee'.
39021         * modules/trunc-ieee: New file.
39022         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
39023         whether trunc works according to ISO C 99 with IEC 60559.
39024         * m4/trunc-ieee.m4: New file.
39025         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
39026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
39027         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
39028         * modules/trunc-ieee-tests: New file.
39029         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
39030         * tests/test-trunc1.c (main): Remove signbit tests.
39031         * modules/trunc-tests (Depends-on): Remove 'signbit'.
39032         * doc/posix-functions/trunc.texi: Mention the new module.
39034 2010-12-21  Bruno Haible  <bruno@clisp.org>
39036         New module 'ceil-ieee'.
39037         * modules/ceil-ieee: New file.
39038         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
39039         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
39040         ISO C 99 with IEC 60559.
39041         * m4/ceil-ieee.m4: New file.
39042         * modules/ceil (Files): Add lib/ceil.c.
39043         (Depends-on): Add 'float'.
39044         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39045         * lib/math.in.h (ceil): New declaration.
39046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
39047         REPLACE_CEIL.
39048         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
39049         * modules/ceil-ieee-tests: New file.
39050         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
39051         * tests/test-math-c++.cc: Check the signature of 'ceil'.
39052         * doc/posix-functions/ceil.texi: Mention the new module.
39054 2010-12-21  Bruno Haible  <bruno@clisp.org>
39056         New module 'floor-ieee'.
39057         * modules/floor-ieee: New file.
39058         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
39059         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
39060         ISO C 99 with IEC 60559.
39061         * m4/floor-ieee.m4: New file.
39062         * modules/floor (Files): Add lib/floor.c.
39063         (Depends-on): Add 'float'.
39064         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39065         * lib/math.in.h (floor): New declaration.
39066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
39067         REPLACE_FLOOR.
39068         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
39069         * modules/floor-ieee-tests: New file.
39070         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
39071         * tests/test-math-c++.cc: Check the signature of 'floor'.
39072         * doc/posix-functions/floor.texi: Mention the new module.
39074 2010-12-21  Bruno Haible  <bruno@clisp.org>
39076         New module 'roundf-ieee'.
39077         * modules/roundf-ieee: New file.
39078         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
39079         test whether roundf works according to ISO C 99 with IEC 60559.
39080         * m4/roundf-ieee.m4: New file.
39081         * modules/roundf-ieee-tests: New file.
39082         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
39083         * tests/test-roundf1.c (main): Remove signbit tests.
39084         * modules/roundf-tests (Depends-on): Remove 'signbit'.
39085         * doc/posix-functions/roundf.texi: Mention the new module.
39087 2010-12-21  Bruno Haible  <bruno@clisp.org>
39089         New module 'truncf-ieee'.
39090         * modules/truncf-ieee: New file.
39091         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
39092         test whether truncf works according to ISO C 99 with IEC 60559.
39093         * m4/truncf-ieee.m4: New file.
39094         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
39095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
39096         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
39097         * modules/truncf-ieee-tests: New file.
39098         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
39099         * tests/test-truncf1.c (main): Remove signbit tests.
39100         * modules/truncf-tests (Depends-on): Remove 'signbit'.
39101         * doc/posix-functions/truncf.texi: Mention the new module.
39103 2010-12-21  Bruno Haible  <bruno@clisp.org>
39105         New module 'ceilf-ieee'.
39106         * modules/ceilf-ieee: New file.
39107         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
39108         test whether ceilf works according to ISO C 99 with IEC 60559.
39109         * m4/ceilf-ieee.m4: New file.
39110         * modules/ceilf-ieee-tests: New file.
39111         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
39112         * tests/test-ceilf1.c (main): Remove signbit tests.
39113         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
39114         * doc/posix-functions/ceilf.texi: Mention the new module.
39116 2010-12-21  Bruno Haible  <bruno@clisp.org>
39118         New module 'floorf-ieee'.
39119         * modules/floorf-ieee: New file.
39120         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
39121         test whether floorf works according to ISO C 99 with IEC 60559.
39122         * m4/floorf-ieee.m4: New file.
39123         * modules/floorf-ieee-tests: New file.
39124         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
39125         * tests/test-floorf1.c (main): Remove signbit tests.
39126         * modules/floorf-tests (Depends-on): Remove 'signbit'.
39127         * doc/posix-functions/floorf.texi: Mention the new module.
39129 2010-12-21  Bruno Haible  <bruno@clisp.org>
39131         Support for minus zero in autoconf macros.
39132         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
39133         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
39134         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
39135         * tests/minus-zero.h: Update comments.
39137 2010-12-21  Bruno Haible  <bruno@clisp.org>
39139         Tests for module 'ceil'.
39140         * modules/ceil-tests: New file.
39141         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
39142         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
39144 2010-12-21  Bruno Haible  <bruno@clisp.org>
39146         Tests for module 'floor'.
39147         * modules/floor-tests: New file.
39148         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
39149         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
39151 2010-12-21  Bruno Haible  <bruno@clisp.org>
39153         math: Fix indentation.
39154         * lib/math.in.h (floorf): Fix indentation.
39156 2010-12-21  Bruno Haible  <bruno@clisp.org>
39158         Fix cross-compilation guesses on Solaris.
39159         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
39160         not match "solaris2.10".
39161         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
39162         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
39163         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
39165 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39167         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
39168         This fixes a problem observed with the latest coreutils snapshot
39169         that caused a test to fail on Solaris 8.  src/csplit.c's call
39170         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
39171         earlier, instead of returning the number of bytes that would have
39172         been generated; this causes csplit to incorrectly report memory
39173         exhaustion.
39174         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
39175         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
39176         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
39177         comments to match.
39178         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
39179         Fix typo in matching older versions of Solaris: "solaris2.10"
39180         is matched by the shell pattern "solaris2.[0-9]*".  This matters
39181         only for guessing while cross-compiling.
39182         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
39184 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
39186         ftoastr: fix comment again
39187         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
39188         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
39189         Also, simplify example a bit by using flags = 0.
39191 2010-12-20  Bruno Haible  <bruno@clisp.org>
39193         round*, trunc*: Update documentation regarding glibc.
39194         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
39195         * doc/posix-functions/round.texi: Likewise.
39196         * doc/posix-functions/roundl.texi: Likewise.
39197         * doc/posix-functions/truncf.texi: Likewise.
39198         * doc/posix-functions/trunc.texi: Likewise.
39199         * doc/posix-functions/truncl.texi: Likewise.
39201 2010-12-20  Bruno Haible  <bruno@clisp.org>
39203         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
39204         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
39205         * doc/posix-functions/round.texi: Likewise.
39206         * doc/posix-functions/roundl.texi: Likewise.
39208 2010-12-20  Bruno Haible  <bruno@clisp.org>
39210         ttyname_r: Add missing declaration on HP-UX 11.
39211         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
39212         HAVE_TTYNAME_R.
39213         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
39214         declared. Set HAVE_TTYNAME_R always.
39215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39216         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
39217         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
39218         HAVE_TTYNAME_R.
39219         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
39221 2010-12-20  Bruno Haible  <bruno@clisp.org>
39223         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
39224         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
39225         * doc/posix-functions/getlogin_r.texi: Likewise.
39226         * tests/test-getlogin.c: Include <errno.h>.
39227         (main): Avoid test failure on HP-UX 11.11.
39228         * tests/test-getlogin_r.c (main): Likewise.
39230 2010-12-20  Bruno Haible  <bruno@clisp.org>
39232         getlogin_r: Add missing declaration on HP-UX 11.
39233         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
39234         declared also when it exists as a function.
39235         * doc/posix-functions/getlogin_r.texi: Document this workaround.
39237 2010-12-20  Bruno Haible  <bruno@clisp.org>
39239         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
39240         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
39241         through wcrtomb.
39243 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39245         ftoastr: fix comment
39246         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
39247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
39249 2010-12-19  Bruno Haible  <bruno@clisp.org>
39251         isnan: Ensure it is a macro.
39252         * lib/math.in.h (isnan): Define as a macro if not already a macro.
39253         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
39254         Solaris.
39256 2010-12-19  Bruno Haible  <bruno@clisp.org>
39258         ldexpl test: Fix link error on OSF/1 5.1.
39259         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
39261 2010-12-19  Bruno Haible  <bruno@clisp.org>
39263         wctype: Make it work in C++ mode on OSF/1 5.1.
39264         * lib/wctype.in.h (iswblank): Declare but not define here.
39265         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
39266         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
39267         * modules/wctype (Files): Add lib/iswblank.c.
39269 2010-12-19  Bruno Haible  <bruno@clisp.org>
39271         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
39272         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
39273         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
39275 2010-12-19  Bruno Haible  <bruno@clisp.org>
39277         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
39278         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
39279         _POSIX_PII_SOCKET.
39280         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
39281         * doc/posix-functions/recvfrom.texi: Likewise.
39282         * doc/posix-functions/send.texi: Likewise.
39283         * doc/posix-functions/sendto.texi: Likewise.
39285 2010-12-19  Bruno Haible  <bruno@clisp.org>
39287         tcgetsid: Add missing declaration on OSF/1 5.1.
39288         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
39289         HAVE_TCGETSID.
39290         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
39291         Don't set HAVE_TCGETSID.
39292         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
39293         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
39294         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
39295         HAVE_TCGETSID.
39296         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
39298 2010-12-19  Bruno Haible  <bruno@clisp.org>
39300         stdio: Fix problem with popen() declaration on OSF/1 5.1.
39301         * lib/stdio.in.h: During the include_next statement, let recursive
39302         includes of this file include only the system header file.
39304 2010-12-19  Bruno Haible  <bruno@clisp.org>
39306         iconv_open: Fix regression from 2010-12-04.
39307         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
39308         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
39310 2010-12-19  Bruno Haible  <bruno@clisp.org>
39312         stdbool test: Avoid a gcc warning.
39313         * tests/test-stdbool.c (main): Fail if e1 is false.
39314         Reported by Jim Meyering.
39316 2010-12-19  Jim Meyering  <meyering@redhat.com>
39318         setenv: restore to working order
39319         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
39320         mistakenly removed.
39321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
39322         HAVE_SETENV.
39323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
39324         HAVE_SETENV.
39326 2010-12-19  Bruno Haible  <bruno@clisp.org>
39328         Document some different function declarations on OSF/1 5.1.
39329         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
39330         * doc/posix-functions/inet_ntop.texi: Likewise.
39331         * doc/posix-functions/gethostname.texi: Likewise.
39332         * lib/unistd.in.h (gethostname): Update comment.
39334 2010-12-19  Bruno Haible  <bruno@clisp.org>
39336         doc: Mention vasprintf-posix module.
39337         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
39338         the 'vasprintf-posix' module.
39339         * doc/glibc-functions/vasprintf.texi: Likewise.
39341 2010-12-19  Bruno Haible  <bruno@clisp.org>
39343         unsetenv: Add missing declaration on OSF/1 5.1.
39344         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
39345         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
39346         Don't set HAVE_UNSETENV. In the test program, set _BSD.
39347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
39348         not HAVE_UNSETENV.
39349         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
39350         HAVE_UNSETENV.
39351         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
39353 2010-12-19  Bruno Haible  <bruno@clisp.org>
39355         setenv: Add missing declaration on OSF/1 5.1.
39356         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
39357         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
39358         declared. Don't set HAVE_SETENV.
39359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
39360         not HAVE_SETENV.
39361         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
39362         HAVE_SETENV.
39363         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
39365 2010-12-19  Bruno Haible  <bruno@clisp.org>
39367         nl_langinfo tests: Avoid gcc warning.
39368         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
39370 2010-12-19  Bruno Haible  <bruno@clisp.org>
39372         mknod: Avoid error in C++ mode on OSF/1 with GCC.
39373         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
39374         _GL_CXXALIAS_SYS.
39376 2010-12-19  Bruno Haible  <bruno@clisp.org>
39378         stdbool: Relax test.
39379         * tests/test-stdbool.c (e): Don't require that casts from a variable's
39380         address to 'bool' work in static initializer, for compilers other than
39381         GCC.
39383 2010-12-19  Bruno Haible  <bruno@clisp.org>
39385         ftello: Add missing declaration on OSF/1 5.1.
39386         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
39387         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
39388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
39389         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
39390         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
39392 2010-12-19  Bruno Haible  <bruno@clisp.org>
39394         fseeko: Add missing declaration on OSF/1 5.1.
39395         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
39396         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
39397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
39398         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
39399         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
39401 2010-12-19  Bruno Haible  <bruno@clisp.org>
39403         fchdir: Add missing declaration on OSF/1 5.1.
39404         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
39405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
39406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
39407         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
39408         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
39410 2010-12-19  Bruno Haible  <bruno@clisp.org>
39412         relocatable-prog-wrapper: Separate from relocatable-prog.
39413         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
39414         uninstall-relocwrapper rule here.
39415         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
39416         Reported by Ian Beckwith <ianb@erislabs.net>.
39418 2010-12-19  Bruno Haible  <bruno@clisp.org>
39420         unistr/u8-mbsnlen: Add missing dependency.
39421         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
39422         Reported by Ian Beckwith <ianb@erislabs.net>.
39424 2010-12-19  Bruno Haible  <bruno@clisp.org>
39426         iconv: Make it possible again to use this module without 'iconv-h'.
39427         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
39428         if it is not defined.
39429         Reported by Ian Beckwith <ianb@erislabs.net>.
39431 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39433         acl: port to Solaris 8 when copying from tmpfs to ufs
39434         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
39435         error number.  Problem observed on Solaris 8 with latest
39436         coreutils, with "mv A B", where A is on a tmpfs file system and B
39437         is on a ufs file system.  This caused coreutils' mv/part-symlink
39438         test to fail.
39440         tests: set fail=0 at start
39441         * tests/init.sh (setup_): Move fail=0 initialization here ...
39442         (mktempd_): ... from here, so that tests can rely on fail being
39443         set to 0 initially.  This fixes a problem in coreutils; see:
39444         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
39446 2010-12-18  Bruno Haible  <bruno@clisp.org>
39448         memmem-simple: Stylistic changes.
39449         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
39450         Fix preprocessor directive indentation.
39452 2010-12-15  Pádraig Brady <P@draigBrady.com>
39454         memmem, memmem-simple: reorganize and expand empty needle check
39455         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
39456         functional checks to memmem-simple so that one has a fully functional
39457         memmem by using just this module.
39458         Restrict the performance only check to the memmem module.
39459         Also expand the empty needle check to ensure the correct
39460         pointer is returned, not just a non NULL pointer.
39461         * doc/glibc-functions/memmem.texi: Rearrange the portability
39462         documentation to correlate with the rearranged checks.
39463         Clarify exactly how the memmem and memmem-simple modules
39464         relate to each other.
39466 2010-12-15  Pádraig Brady <P@draigBrady.com>
39467             Bruno Haible  <bruno@clisp.org>
39469         Improve cross-compilation guesses for uClibc.
39470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
39471         that uClibc does not have the glibc bug.
39472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
39473         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
39475 2010-12-14  Eric Blake  <eblake@redhat.com>
39477         configmake: provide fallbacks for oldest supported autotools
39478         * m4/configmake.m4: New file.
39479         * modules/configmake (Files): Ship it.
39480         (configure.ac): Use it to guarantee fallbacks.
39482 2010-12-13  Pádraig Brady <P@draigBrady.com>
39484         read-file: Improve handling of large files
39485         * lib/read-file.c (fread_file): Minimize realloc()s
39486         for regular files, and better manage sizes around SIZE_MAX.
39488 2010-12-13  Eric Blake  <eblake@redhat.com>
39490         cloexec, fcntl: relax license
39491         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
39492         consent from all contributors.
39493         * modules/fcntl (License): Likewise.
39495 2010-12-10  Bruno Haible  <bruno@clisp.org>
39497         Tests for module 'pipe-posix'.
39498         * modules/pipe-posix-tests: New file.
39499         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
39501 2010-12-10  Bruno Haible  <bruno@clisp.org>
39503         pipe-posix: Make it work in C++ mode.
39504         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
39505         (pipe): Use common idiom, not a macro definition.
39506         * lib/pipe.c: New file.
39507         * m4/pipe.m4: New file.
39508         * modules/pipe-posix (Description): Enhance.
39509         (Files): Add lib/pipe.c, m4/pipe.m4.
39510         (configure.ac): Invoke gl_FUNC_PIPE.
39511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
39512         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
39513         * tests/test-unistd-c++.cc: Check the signature of pipe.
39515 2010-12-10  Bruno Haible  <bruno@clisp.org>
39517         Rename module 'pipe' to 'spawn-pipe'.
39518         * modules/spawn-pipe: New file, renamed from modules/pipe.
39519         (Files, configure.ac, Makefile.am): Update.
39520         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
39521         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
39522         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
39523         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
39524         "spawn-pipe.h" instead of "pipe.h".
39525         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
39526         to gl_SPAWN_PIPE.
39527         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
39528         (Files, Makefile.am): Update.
39529         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
39530         Update.
39531         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
39532         Include "spawn-pipe.h" instead of "pipe.h".
39533         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
39534         * lib/javacomp.c: Likewise.
39535         * lib/javaversion.c: Likewise.
39536         * lib/pipe-filter-gi.c: Likewise.
39537         * lib/pipe-filter-ii.c: Likewise.
39538         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
39539         * modules/javacomp (Depends-on): Likewise.
39540         * modules/javaversion (Depends-on): Likewise.
39541         * modules/pipe-filter-gi (Depends-on): Likewise.
39542         * modules/pipe-filter-ii (Depends-on): Likewise.
39543         * MODULES.html.sh (Executing programs): Update.
39544         * NEWS: Mention the change.
39546 2010-12-10  Eric Blake  <eblake@redhat.com>
39548         pipe-posix: new module
39549         * modules/pipe-posix: New file.
39550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
39551         (gl_UNISTD_H): Check for declaration.
39552         * modules/unistd (Makefile.am): Substitute it.
39553         * lib/unistd.in.h (pipe): Provide it for mingw.
39554         * doc/posix-functions/pipe.texi (pipe): Update documentation.
39555         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
39557 2010-12-07  Bruno Haible  <bruno@clisp.org>
39559         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
39560         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
39561         u8_strcmp_gnu.
39562         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
39564 2010-12-06  Bruno Haible  <bruno@clisp.org>
39566         Update internal documentation.
39567         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
39569 2010-12-04  Bruno Haible  <bruno@clisp.org>
39571         Put more information about failed tests into the test return codes.
39572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
39573         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
39574         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
39575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
39576         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
39577         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39578         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39579         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39580         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
39581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39582         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
39583         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39584         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
39585         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39586         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
39587         returns a bit mask.
39588         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
39589         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
39590         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
39591         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
39592         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39593         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
39594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39596         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
39597         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
39598         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39599         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
39600         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39601         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
39602         * m4/link.m4 (gl_FUNC_LINK): Likewise.
39603         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39604         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
39605         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
39606         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39607         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
39608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39609         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
39611         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39612         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
39613         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39614         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
39615         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
39616         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
39617         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
39618         gl_PRINTF_PRECISION): Likewise.
39619         * m4/regex.m4 (gl_REGEX): Likewise.
39620         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
39621         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
39622         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
39623         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39624         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39627         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
39628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39629         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39630         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39632         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
39633         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
39634         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39635         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39636         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
39637         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
39638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39639         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
39640         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
39641         enumerated value.
39642         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
39644 2010-12-04  Bruno Haible  <bruno@clisp.org>
39646         Update for Solaris 11 2010-11.
39647         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
39648         Express, released in November 2010.
39650 2010-12-04  Bruno Haible  <bruno@clisp.org>
39652         nproc: Relax license.
39653         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
39654         and Paul Eggert.
39655         Requested by Ludovic Courtès <ludo@gnu.org>.
39657 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
39659         utimecmp: fine-grained src to nearby coarse-grained dest
39661         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
39662         and the source is on a file system with higher-resolution time
39663         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
39664         not work, and the time stamps are close together, the algorithm to
39665         determine the exact resolution from the read-back mtime was buggy:
39666         it had a "!=" where it should have had an "==".  This bug has been
39667         in the code ever since it was introduced to gnulib.
39668         Problem reported by Dan Jacobson in
39669         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
39671 2010-11-30  Bruno Haible  <bruno@clisp.org>
39673         strerror_r-posix: Fix autoconf test.
39674         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
39676 2010-11-28  Bruno Haible  <bruno@clisp.org>
39677             Paul Eggert  <eggert@cs.ucla.edu>
39679         Tests for module 'getdomainname'.
39680         * modules/getdomainname-tests: New file.
39681         * tests/test-getdomainname.c: New file, based on
39682         tests/test-gethostname.c.
39684 2010-11-28  Bruno Haible  <bruno@clisp.org>
39685             Paul Eggert  <eggert@cs.ucla.edu>
39687         getdomainname: Use the system function when possible.
39688         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
39689         (getdomainname): Replace if needed. Provide the declaration if it is
39690         missing. Don't use _GL_CXXALIAS_SYS_CAST.
39691         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
39692         (getdomainname): When the system has getdomainname, call the system
39693         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
39694         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39695         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
39696         found in libnsl. Look for the declaration also in <netdb.h>. Replace
39697         the function if its second argument is of type 'int' or if it is found
39698         in libnsl.
39699         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
39700         <sys/systeminfo.h> and sysinfo().
39701         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
39702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39703         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
39704         HAVE_GETDOMAINNAME.
39705         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
39706         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
39707         * doc/glibc-functions/getdomainname.texi: Document the problems with
39708         the getdomainname declaration.
39710 2010-11-28  Bruno Haible  <bruno@clisp.org>
39712         sys_socket: Ensure ss_family field on AIX.
39713         * lib/sys_socket.in.h (ss_family): New macro definition.
39714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
39715         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
39716         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39717         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
39718         * modules/sys_socket (Makefile.am): Substitute
39719         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
39720         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
39722 2010-11-27  Bruno Haible  <bruno@clisp.org>
39724         readline: Improve configure output.
39725         * m4/readline.m4 (gl_FUNC_READLINE): Make the
39726         "checking for readline..." result understandable.
39728 2010-11-27  Bruno Haible  <bruno@clisp.org>
39730         *printf-posix: Detect a bug on Solaris 10/x86.
39731         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
39732         for floating-point output.
39733         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
39734         directive.
39735         * tests/test-snprintf-posix.h (test_function): Likewise.
39736         * tests/test-sprintf-posix.h (test_function): Likewise.
39737         * tests/test-vasprintf-posix.c (test_function): Likewise.
39738         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
39739         * doc/posix-functions/printf.texi: Likewise.
39740         * doc/posix-functions/snprintf.texi: Likewise.
39741         * doc/posix-functions/sprintf.texi: Likewise.
39742         * doc/posix-functions/vfprintf.texi: Likewise.
39743         * doc/posix-functions/vprintf.texi: Likewise.
39744         * doc/posix-functions/vsnprintf.texi: Likewise.
39745         * doc/posix-functions/vsprintf.texi: Likewise.
39746         * doc/glibc-functions/obstack_printf.texi: Likewise.
39747         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39749 2010-11-27  Bruno Haible  <bruno@clisp.org>
39751         Fix link error when module libunistring-optional is in use.
39752         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
39753         * modules/striconveha-tests (Makefile.am): Likewise.
39755 2010-11-27  Bruno Haible  <bruno@clisp.org>
39757         regex: Mention link dependencies.
39758         * modules/regex (Link): New section.
39759         * modules/rpmatch (Link): Likewise.
39760         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
39762 2010-11-27  Bruno Haible  <bruno@clisp.org>
39764         ftoastr: Fix compilation error on Solaris.
39765         * lib/ftoastr.c: Include <config.h>.
39767 2010-11-27  Bruno Haible  <bruno@clisp.org>
39769         getloadavg: Update documentation.
39770         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
39772 2010-11-27  Bruno Haible  <bruno@clisp.org>
39774         sys_socket: Fix test whether the functions are declared.
39775         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
39776         not <sys/select.h>.
39778 2010-11-27  Bruno Haible  <bruno@clisp.org>
39780         getpass: Make sure to get system declaration on some platforms.
39781         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
39782         gl_USE_SYSTEM_EXTENSIONS.
39783         * modules/getpass (Depends-on): Add extensions.
39785 2010-11-26  Bruno Haible  <bruno@clisp.org>
39787         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
39788         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
39789         'iconv' module is present.
39790         (ICONV_CONST): New macro.
39791         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
39792         ICONV_CONST.
39793         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
39794         set ICONV_CONST.
39795         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
39796         here.
39797         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
39798         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
39799         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
39800         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
39801         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
39802         present.
39804 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39806         ftoastr: comment fix
39807         * lib/ftoastr.c: "little" -> "little or no" in comment
39809 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
39811         stdint: port to GCC 4.3 + OSX + Octave
39812         On this platform, stdint.h is buggy and defines int64_t to long
39813         long int.  The replacement defined it to long int, causing
39814         problems with C++ style name mangling.  Instead, trust the system
39815         definition if INT64_MAX is defined, and likewise for the unsigned
39816         variant.   Problem reported by Jarno Rajahalme in
39817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
39818         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
39819         and don't mess with int64_t and INT64_MAX in this case.
39820         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
39822 2010-11-24  Bruno Haible  <bruno@clisp.org>
39824         doc: Corrections regarding MacOS X 10.4 and 10.5.
39825         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
39826         MacOS X.
39827         Reported by Simon Josefsson.
39829 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
39831         Uninstall ".bin" files installed by relocwrapper.
39832         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
39833         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
39834         unless it is already there.
39836 2010-11-21  Bruno Haible  <bruno@clisp.org>
39838         Update for NetBSD 5.0.
39839         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
39840         NetBSD; the test fails on NetBSD 5.0.
39841         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
39842         about NetBSD.
39844 2010-11-21  Bruno Haible  <bruno@clisp.org>
39846         Update for HP-UX 11.23 and HP-UX 11.31.
39847         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
39848         HP-UX.
39850 2010-11-21  Bruno Haible  <bruno@clisp.org>
39852         Update for MacOS X 10.5.
39853         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
39854         MacOS X; the test fails on MacOS X 10.5.8.
39855         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
39856         about MacOS X.
39858 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
39860         bootstrap: add bootstrap_sync option.
39861         See discussion at
39862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
39863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
39864         * build-aux/bootstrap: Accept --bootstrap-sync to update
39865         bootstrap if it is not identical to the local gnulib's
39866         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
39867         enable this by default.  Accept --no-bootstrap-sync to disable
39868         it.
39870 2010-11-20  Bruno Haible  <bruno@clisp.org>
39872         Ensure that <features.h> is included before __GLIBC__ is tested.
39873         * lib/printf-parse.h: Include <features.h>.
39874         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
39875         Reported by Mike Frysinger <vapier@gentoo.org>.
39877         Ensure that <features.h> is included before __GLIBC__ is tested.
39878         * lib/wchar.in.h: Include <features.h>.
39879         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
39880         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
39881         Reported by Mike Frysinger <vapier@gentoo.org>.
39883         Ensure that <features.h> is included before __GLIBC__ is tested.
39884         * lib/arpa_inet.in.h: Include <features.h>.
39885         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
39886         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
39887         Reported by Mike Frysinger <vapier@gentoo.org>.
39889         Ensure that <features.h> is included before __GLIBC__ is tested.
39890         * build-aux/link-warning.h: Include <features.h>.
39891         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
39892         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
39893         Reported by Mike Frysinger <vapier@gentoo.org>.
39895         Ensure that <features.h> is included before __GLIBC__ is tested.
39896         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
39897         Reported by Mike Frysinger <vapier@gentoo.org>.
39899 2010-11-20  Bruno Haible  <bruno@clisp.org>
39901         memmem: Fix autoconf test.
39902         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
39904 2010-11-20  Bruno Haible  <bruno@clisp.org>
39906         Port to uClibc.
39907         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
39908         * lib/fcntl.in.h: Likewise.
39909         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
39910         * lib/mbrtowc.c (mbrtowc): Likewise.
39911         * lib/relocatable.c (find_shared_library_fullname): Likewise.
39912         * lib/strerror_r.c: Likewise.
39913         * lib/unistr/u8-strnlen.c: Likewise.
39914         * lib/vasnprintf.c (decimal_point_char): Likewise.
39915         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
39916         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
39917         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39918         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39919         * tests/test-sigaction.c (handler, main): Likewise.
39920         * lib/freading.h: Treat uClibc like a non-glibc platform.
39921         * lib/freading.c: Likewise.
39922         * lib/gettext.h: Likewise.
39923         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
39924         Likewise.
39925         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
39926         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39927         * lib/propername.c (proper_name_utf8): Likewise.
39928         * lib/spawn.in.h: Likewise.
39929         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
39930         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
39931         mem_cd_iconveh_internal): Likewise.
39932         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
39933         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
39934         strstr, strcasestr): Likewise.
39935         * lib/unicodeio.c (unicode_to_mb): Likewise.
39936         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
39937         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
39938         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
39939         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
39940         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
39941         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
39942         * lib/unistr/u8-stpncpy.c: Likewise.
39943         * lib/vasnprintf.c (VASNPRINTF): Likewise.
39944         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
39945         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39946         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39947         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
39949         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
39950         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
39951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
39952         Likewise.
39953         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
39954         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39955         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39957         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39958         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39959         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39960         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
39961         * tests/test-getopt.h (OPTIND_MIN): Likewise.
39962         * tests/test-striconveha.c (main): Likewise.
39963         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39964         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
39965         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
39966         * doc/posix-functions/getline.texi: Likewise.
39967         Reported by Mike Frysinger <vapier@gentoo.org>.
39969 2010-11-20  Bruno Haible  <bruno@clisp.org>
39971         nproc: Fix condition.
39972         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
39973         HAVE_PTHREAD_AFFINITY_NP.
39975 2010-11-20  Bruno Haible  <bruno@clisp.org>
39977         Fix a comment.
39978         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
39980 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
39982         ftoastr: don't assume snprintf
39983         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
39984         Implement a subset of snprintf here, by using sprintf safely.
39985         * modules/ftoastr (Depends-on): Remove snprintf.
39987 2010-11-19  Jim Meyering  <meyering@redhat.com>
39989         test-rename.h: fix compilation failure
39990         * tests/test-rename.h (test_rename): Add omitted "}".
39992 2010-11-17  Jim Meyering  <meyering@redhat.com>
39994         maint.mk: add a URL discussing the no-@acronym policy
39995         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
39997 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
39999         ftoastr: depend on snprintf, improve comments
40000         * lib/ftoastr.c: Also mention Loitsch's draft.
40001         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
40002         needed in the current implementation, but it might simplify
40003         speeding up the code later.
40004         * modules/ftoastr: Depend on snprintf; this improves portability.
40005         Suggested by Bruno Haible in the same email.
40007         ftoastr: port to hosts lacking strtof and strtold
40008         Problem reported by Bruno Haible in
40009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
40010         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
40011         environment and strtold (and presumably strtof) are not available.
40012         * modules/ftoastr (Files): Add m4/c-strtod.m4.
40013         (configure.ac): Require gl_C99_STRTOLD.
40015 2010-11-18  Bruno Haible  <bruno@clisp.org>
40017         c-strtold: Avoid link error on AIX 7.
40018         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
40019         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
40020         (gl_C_STRTOLD): Test whether strtold_l exists.
40021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40023 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40025         intprops: new macro INT_BITS_STRLEN_BOUND
40026         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
40027         ftoastr.h.  This exposes an internal of intprops.h that was formerly
40028         not exposed.  Also, it uses a slightly tighter bound than before;
40029         though this makes no practical difference, we might as well be as
40030         tight as we easily can.
40032         ftoastr: new module, for lossless conversion of floats to short strings
40033         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
40034         * modules/ftoastr: New files.
40036 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40038         bootstrap: port to Solaris sed
40039         * build-aux/bootstrap (get_version): Port to Solaris sed.
40040         See Ralf Wildenhues's note in
40041         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
40043 2010-11-14  Jim Meyering  <meyering@redhat.com>
40045         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
40046         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
40047         and move definition closer to sole use.
40049 2010-11-13  Jim Meyering  <meyering@redhat.com>
40051         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
40052         Now we require at least autoconf-2.59, which means the work-around
40053         is no longer needed.
40054         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
40055         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40056         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40057         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
40058         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40060 2010-11-13  Bruno Haible  <bruno@clisp.org>
40062         rename, renameat: Avoid test failures at NFS mounted locations.
40063         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
40064         functions.
40065         (test_rename): Use assert_nonexistent.
40066         * tests/test-rename.c: Include <dirent.h>.
40067         * tests/test-renameat.c: Likewise.
40068         Reported by Gary V. Vaughan <gary@gnu.org>.
40070         rename, renameat: Document Linux bug with NFS
40071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
40072         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
40073         * doc/posix-functions/renameat.texi: Likewise.
40074         Suggested by Eric Blake.
40076 2010-11-13  Bruno Haible  <bruno@clisp.org>
40078         rename test: Add comments.
40079         * tests/test-rename.h (test_rename): Add structure and comments.
40081 2010-11-13  Eric Blake  <eblake@redhat.com>
40083         maintainer-makefile: cover a few more files
40084         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
40085         scripts generated within C files, for libvirt.
40087 2010-11-13  Bruno Haible  <bruno@clisp.org>
40089         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
40090         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
40091         character, return the number of bytes that belong together, not always
40092         1.
40093         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
40094         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
40095         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
40096         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
40097         number of bytes of an invalid character.
40098         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
40099         (main): Invoke it.
40100         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
40101         results.
40102         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
40103         malformed byte sequences.
40104         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
40105         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
40106         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
40107         Reported by Ben Pfaff and Paolo Bonzini.
40109 2010-11-13  Bruno Haible  <bruno@clisp.org>
40111         openat: Work around glibc bug with fchownat() and empty file names.
40112         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
40113         (gl_FUNC_FCHOWNAT): Invoke it.
40114         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
40115         * doc/posix-functions/fchownat.texi: Document the glibc bug.
40116         Reported by Gary V. Vaughan <gary@gnu.org>.
40118 2010-11-13  Bruno Haible  <bruno@clisp.org>
40120         openat: Ensure autoconf macro ordering.
40121         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
40122         gl_USE_SYSTEM_EXTENSIONS.
40123         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
40125 2010-11-13  Bruno Haible  <bruno@clisp.org>
40127         Update comments.
40128         * lib/unistr/u8-check.c: Update file name in comments.
40129         * lib/unistr/u8-mblen.c: Likewise.
40130         * lib/unistr/u8-prev.c: Likewise.
40131         * lib/unistr/u8-strmblen.c: Likewise.
40132         * lib/unistr/u8-strmbtouc.c: Likewise.
40134 2010-11-13  Jim Meyering  <meyering@redhat.com>
40136         tests: avoid test failure on Solaris 10 due to lack of PATH export
40137         * tests/test-update-copyright.sh: Don't forget to export PATH.
40139         init.sh: ensure that IFS is defined, just in case...
40140         * tests/init.sh (setup_): Ensure that IFS is defined,
40141         so that saving and restoring it works as expected.  This
40142         appears to be useful at least for an old version of dash
40143         from a long time ago (RH 6).  See here for details:
40144         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
40146         maint.mk: tighten "test a == b" check
40147         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
40148         test to files that contain something like #!/bin/sh.
40149         Without this, coreutils would get two false positives in
40150         the comments of C source files.
40152 2010-11-12  Eric Blake  <eblake@redhat.com>
40154         bootstrap: fix typo in previous attempt
40155         * build-aux/bootstrap (buildreq): Correct the grouping.
40156         Reported by Paul Eggert.
40158         maintainer-makefile: prohibit test x == x
40159         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
40160         Based on a report by Matthias Bolte.
40162         bootstrap: allow FreeBSD gzip
40163         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
40164         which has no '.' and goes to stderr.
40165         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
40166         Reported by Matthias Bolte.
40168         maintainer-makefile: check for i18n setup
40169         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
40170         will likely work.
40172 2010-11-12  Bruno Haible  <bruno@clisp.org>
40174         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
40175         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
40176         * lib/nanosleep.c (nanosleep): Likewise.
40178 2010-11-11  Bruno Haible  <bruno@clisp.org>
40180         fcntl-h: Fix for use of C++ on glibc systems.
40181         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
40182         also on glibc systems in C++ mode.
40183         Reported by Gary V. Vaughan <gary@gnu.org>.
40185 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
40187         mknod: avoid false failure with dash
40188         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
40190 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40192         unlink: Fix "is it should" typo in diagnostic.
40193         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
40194         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
40196 2010-11-11  Bruno Haible  <bruno@clisp.org>
40198         Tests for module 'strerror_r-posix'.
40199         * modules/strerror_r-posix-tests: New file.
40200         * tests/test-strerror_r.c: New file.
40201         * tests/test-string-c++.cc: Check the signature of strerror_r.
40203         New module 'strerror_r-posix'.
40204         * lib/string.in.h (strerror_r): New declaration.
40205         * lib/strerror_r.c: New file.
40206         * m4/strerror_r.m4: New file.
40207         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
40208         of strerror_r.
40209         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
40210         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
40211         * modules/strerror_r-posix: New file.
40212         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
40213         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
40214         * doc/posix-functions/strerror_r.texi: Mention the new module and the
40215         portability problems.
40217 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
40219         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
40220         line is also considered for output. Quoted function name in shell
40221         command, so temporary files for functions like MyClass::operator()
40222         are removed correctly without errors.
40224 2010-11-09  Bruno Haible  <bruno@clisp.org>
40226         * doc/posix-functions/strerror.texi: List more failing platforms.
40228         * doc/posix-functions/strerror.texi: Add a comment.
40230 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40232         fdopendir: fix bug on MacOS X when low on file descriptors
40234         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
40235         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
40236         All callers changed.
40237         (fdopendir): Invoke save_cwd at the top level, not after using
40238         multiple dup() calls to use up file descriptors.  Then retry
40239         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
40240         less than the maximum number of open file descriptors, because
40241         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
40242         on Mac OS X 10.6.4 for tar 1.24
40243         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
40244         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
40245         and for tar 1.25
40246         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
40248 2010-11-07  Bruno Haible  <bruno@clisp.org>
40250         vasnprintf: Support I flag on glibc systems.
40251         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
40252         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
40253         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
40254         snprintf function.
40255         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
40256         glibc systems.
40257         * tests/test-vasnprintf-posix3.c: New file.
40258         * modules/vasnprintf-posix-tests (Files): Add it.
40259         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
40261 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40263         [html] Fix copy/paste bug: Use unique name for compiler warnings.
40264         * MODULES.html.sh: For compiler warnings, use name
40265         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
40267 2010-11-05  Eric Blake  <eblake@redhat.com>
40269         ceil, floor: avoid spurious failure with icc
40270         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
40271         [denormals-as-zero] when optimizing without -mieee-fp option.
40272         * tests/test-floorf2.c (floorf_reference): Likewise.
40273         * tests/test-ceilf1.c (dummy): New function.
40274         (main): Use it to outsmart icc's optimization.
40275         * tests/test-floorf1.c (dummy, main): Likewise.
40277         tests: require working signbit
40278         * modules/ceilf-tests (Depends-on): Add signbit.
40279         * modules/ceill-tests (Depends-on): Likewise.
40280         * modules/floorf-tests (Depends-on): Likewise.
40281         * modules/floorl-tests (Depends-on): Likewise.
40282         * modules/round-tests (Depends-on): Likewise.
40283         * modules/roundf-tests (Depends-on): Likewise.
40284         * modules/roundl-tests (Depends-on): Likewise.
40285         * modules/trunc-tests (Depends-on): Likewise.
40286         * modules/truncf-tests (Depends-on): Likewise.
40287         * modules/truncl-tests (Depends-on): Likewise.
40289         strtod: work around icc bug
40290         * lib/strtod.c (minus_zero): Define to working value.
40291         (strtod): Use it to avoid icc bug.
40293         copysign: enhance tests
40294         * modules/copysign-tests (Files): Add minus-zero.h.
40295         * tests/test-copysign.c (main): Also test zeros.
40297 2010-11-04  Eric Blake  <eblake@redhat.com>
40299         ceil, floor, round, trunc: enhance tests of -0
40300         * tests/test-ceilf1.c (main): Ensure correct sign of result.
40301         * tests/test-ceill.c (main): Likewise.
40302         * tests/test-floorf1.c (main): Likewise.
40303         * tests/test-floorl.c (main): Likewise.
40304         * tests/test-round1.c (main): Likewise.
40305         * tests/test-roundf1.c (main): Likewise.
40306         * tests/test-roundl.c (main): Likewise.
40307         * tests/test-trunc1.c (main): Likewise.
40308         * tests/test-truncf1.c (main): Likewise.
40309         * tests/test-truncl.c (main): Likewise.
40311 2010-11-04  Eric Blake  <eblake@redhat.com>
40313         frexp, tests: work around ICC bug with -zero
40314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
40315         works with more compilers.
40316         * tests/minus-zero.h: New file.
40317         * modules/ceilf-tests (Files): Include it.
40318         * modules/ceill-tests (Files): Likewise.
40319         * modules/floorf-tests (Files): Likewise.
40320         * modules/floorl-tests (Files): Likewise.
40321         * modules/frexp-nolibm-tests (Files): Likewise.
40322         * modules/frexp-tests (Files): Likewise.
40323         * modules/frexpl-nolibm-tests (Files): Likewise.
40324         * modules/frexpl-tests (Files): Likewise.
40325         * modules/isnan-tests (Files): Likewise.
40326         * modules/isnand-nolibm-tests (Files): Likewise.
40327         * modules/isnand-tests (Files): Likewise.
40328         * modules/isnanf-nolibm-tests (Files): Likewise.
40329         * modules/isnanf-tests (Files): Likewise.
40330         * modules/isnanl-nolibm-tests (Files): Likewise.
40331         * modules/isnanl-tests (Files): Likewise.
40332         * modules/round-tests (Files): Likewise.
40333         * modules/roundf-tests (Files): Likewise.
40334         * modules/roundl-tests (Files): Likewise.
40335         * modules/ldexpl-tests (Files): Likewise.
40336         * modules/signbit-tests (Files): Likewise.
40337         * modules/snprintf-posix-tests (Files): Likewise.
40338         * modules/sprintf-posix-tests (Files): Likewise.
40339         * modules/strtod-tests (Files): Likewise.
40340         * modules/trunc-tests (Files): Likewise.
40341         * modules/truncf-tests (Files): Likewise.
40342         * modules/truncl-tests (Files): Likewise.
40343         * modules/vsnprintf-posix-tests (Files): Likewise.
40344         * modules/vsprintf-posix-tests (Files): Likewise.
40345         * modules/vasnprintf-posix-tests (Files): Likewise.
40346         * modules/vasprintf-posix-tests (Files): Likewise.
40347         * tests/test-ceilf1.c (main): Use it.
40348         * tests/test-ceill.c (main): Likewise.
40349         * tests/test-floorf1.c (main): Likewise.
40350         * tests/test-floorl.c (main): Likewise.
40351         * tests/test-frexp.c (main): Likewise.
40352         * tests/test-frexpl.c (main): Likewise.
40353         * tests/test-isnan.c (main): Likewise.
40354         * tests/test-isnand.h (main): Likewise.
40355         * tests/test-isnanf.h (main): Likewise.
40356         * tests/test-isnanl.h (main): Likewise.
40357         * tests/test-ldexpl.c (main): Likewise.
40358         * tests/test-round.c (main): Likewise.
40359         * tests/test-roundf.c (main): Likewise.
40360         * tests/test-roundl.c (main): Likewise.
40361         * tests/test-signbit.c (test_signbitf, test_signbitd)
40362         (test_signbitl): Likewise.
40363         * tests/test-snprintf-posix.h (test_function): Likewise.
40364         * tests/test-sprintf-posix.h (test_function): Likewise.
40365         * tests/test-strtod.c (main): Likewise.
40366         * tests/test-trunc1.c (main): Likewise.
40367         * tests/test-truncf1.c (main): Likewise.
40368         * tests/test-truncl.c (main): Likewise.
40370         isnanl: work around icc bug
40371         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
40373 2010-11-03  Eric Blake  <eblake@redhat.com>
40375         tests: fix compiler warnings
40376         * tests/test-getopt.h (test_getopt): Fix condition.
40377         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40378         * tests/test-pipe2.c (main): Likewise.
40379         * tests/test-quotearg-simple.c (main): Avoid icc warning.
40381         utimens: fix broken m4 test
40382         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
40384 2010-10-28  Bruno Haible  <bruno@clisp.org>
40386         posix_spawn*, getdtablesize: Relax license.
40387         * modules/posix_spawn (License): Change to LGPLv2+.
40388         * modules/posix_spawnp (License): Likewise.
40389         * modules/posix_spawn-internal (License): Likewise.
40390         * modules/posix_spawnattr_init (License): Likewise.
40391         * modules/posix_spawnattr_getflags (License): Likewise.
40392         * modules/posix_spawnattr_setflags (License): Likewise.
40393         * modules/posix_spawnattr_getpgroup (License): Likewise.
40394         * modules/posix_spawnattr_setpgroup (License): Likewise.
40395         * modules/posix_spawnattr_getschedparam (License): Likewise.
40396         * modules/posix_spawnattr_setschedparam (License): Likewise.
40397         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
40398         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
40399         * modules/posix_spawnattr_getsigdefault (License): Likewise.
40400         * modules/posix_spawnattr_setsigdefault (License): Likewise.
40401         * modules/posix_spawnattr_getsigmask (License): Likewise.
40402         * modules/posix_spawnattr_setsigmask (License): Likewise.
40403         * modules/posix_spawnattr_destroy (License): Likewise.
40404         * modules/posix_spawn_file_actions_init (License): Likewise.
40405         * modules/posix_spawn_file_actions_addclose (License): Likewise.
40406         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
40407         * modules/posix_spawn_file_actions_addopen (License): Likewise.
40408         * modules/posix_spawn_file_actions_destroy (License): Likewise.
40409         * modules/getdtablesize (License): Likewise.
40410         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
40412 2010-10-26  Bruno Haible  <bruno@clisp.org>
40414         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
40415         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
40416         Cygwin and mingw.
40417         Suggested by Eric Blake.
40419 2010-10-26  Bruno Haible  <bruno@clisp.org>
40421         stdio: Work around compilation error due to renameat() on Solaris 10.
40422         * lib/stdio.in.h: Include <unistd.h> on Solaris.
40423         * lib/renameat.c: Don't include <unistd.h> here.
40424         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
40425         Reported by Paul Eggert and Eric Blake.
40427 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40429         renameat: port to Solaris 10, which declares renameat in unistd.h
40431         * lib/renameat.c: Include unistd.h before stdio.h, because
40432         Solaris 10 declares renameat in unistd.h.  Problem encountered
40433         when building GNU tar 1.24 on Solaris 10.
40435 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
40437         fdopendir: fix C89 compilation
40438         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
40439         compilers.
40441 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
40443         inttostr: simplify by removing unnecessary redundancy
40444         * lib/anytostr.c: Don't include verify.h.
40445         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
40446         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
40447         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
40448         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
40449         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
40450         Likewise.
40451         * modules/inttostr (Depends-on): Remove 'verify'.
40453 2010-10-23  Bruno Haible  <bruno@clisp.org>
40455         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
40456         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
40457         Reported by Eric Blake.
40459 2010-10-23  Bruno Haible  <bruno@clisp.org>
40461         Tests: Fix LOCALE_JA on MirBSD 10.
40462         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
40463         to an UTF-8 locale.
40464         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
40465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40466         Reported by Eric Blake.
40468 2010-10-21  Bruno Haible  <bruno@clisp.org>
40470         nl_langinfo test: Avoid test failure on NetBSD 5.
40471         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
40472         Reported by Eric Blake.
40474 2010-10-21  Eric Blake  <eblake@redhat.com>
40476         c-stack: work around libsigsegv 2.8 bug
40477         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
40478         overflow on at least PowerPC64.
40480 2010-10-17  Bruno Haible  <bruno@clisp.org>
40482         userspec: Drop redundant file.
40483         * modules/userspec (Files): Remove lib/inttostr.h.
40485 2010-10-17  Bruno Haible  <bruno@clisp.org>
40487         nl_langinfo tests: Silence some warnings.
40488         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
40489         Reported by Jim Meyering.
40491 2010-10-17  Bruno Haible  <bruno@clisp.org>
40493         Make use of GCC's attribute __alloc_size__.
40494         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
40495         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
40496         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
40497         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
40498         __alloc_size__.
40499         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40500         Suggested by Jim Meyering.
40502 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
40504         bootstrap: anchor .gitignore entries.
40505         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
40506         with...
40507         (insert_vc_ignore): ... this new function, which prepends `/' to
40508         all .gitignore entries before passing them to
40509         insert_sorted_if_absent.
40511 2010-10-16  Bruno Haible  <bruno@clisp.org>
40513         nextafter: Fix configure check.
40514         * modules/nextafter (configure.ac): Correct expected prototype.
40516 2010-10-16  Bruno Haible  <bruno@clisp.org>
40518         termios: Update documentation.
40519         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
40521 2010-10-16  Bruno Haible  <bruno@clisp.org>
40523         tests: Make them compile with TinyCC.
40524         * tests/test-strstr.c (main): Remove parentheses around array
40525         initializer.
40527 2010-10-15  Eric Blake  <eblake@redhat.com>
40529         ignore-value: make header idempotent
40530         * lib/ignore-value.h: Add double-inclusion guards.
40531         Reported by Stefan Berger.
40533 2010-10-15  Jim Meyering  <meyering@redhat.com>
40535         GNUmakefile: handle "stable" target, not "major"
40536         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
40537         lists in maint.mk and announce-gen.  Without this, "make stable"
40538         would fail to ensure that $(VERSION) is up to date.
40540 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
40542         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
40543         & co.
40545 2010-10-14  Bruno Haible  <bruno@clisp.org>
40547         vasnprintf: Don't set errno to 0.
40548         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
40549         block that sets it to 0.
40550         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40552 2010-10-14  Bruno Haible  <bruno@clisp.org>
40554         socketlib: Fix.
40555         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
40556         gl_PREREQ_SYS_H_WINSOCK2.
40557         Reported by Ian Beckwith <ianb@erislabs.net>.
40559 2010-10-13  Jim Meyering  <meyering@redhat.com>
40561         test-select-stdin.c: avoid warn_unused_result warnings
40562         * tests/test-select-stdin.c: Include "macros.h".
40563         ASSERT that read and fflush succeed.
40565 2010-10-13  Jim Meyering  <meyering@redhat.com>
40567         git-version-gen: do require git-VC'd files in cwd
40568         * build-aux/git-version-gen: Reject a git version string
40569         if there are no commits associated with the current directory.
40570         This avoids an unlikely false-positive (unrelated dir whose parent
40571         repository also contains a tag matching v*), as pointed out
40572         by Giuseppe Scrivano in
40573         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
40575 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
40577         argv-iter: omit nonconforming declaration
40578         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
40579         enum arg_iter_err declaration, which doesn't conform to C99.
40580         Solaris 10 cc warns about this.
40582 2010-10-13  Eric Blake  <eblake@redhat.com>
40584         termios: fix compilation on mingw
40585         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
40586         (gl_TERMIOS_H): Adjust it on mingw.
40587         * modules/termios (Makefile.am): Substitute new key.
40588         * lib/termios.in.h (includes): Make include_next conditional.
40589         * doc/posix-headers/termios.texi (termios.h): Update
40590         documentation.
40591         Reported by Daniel P. Berrange.
40593 2010-10-13  Jim Meyering  <meyering@redhat.com>
40595         git-version-gen: don't require that .git/ be in the current dir
40596         * build-aux/git-version-gen: Adjust this script so that it works
40597         when run from any working directory beneath the top-level .git/-
40598         containing directory.  Inspired by a patch from Giuseppe Scrivano,
40599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
40601         test-select: avoid warn_unused_result warnings
40602         * tests/test-select.c: Include "macros.h".
40603         ASSERT that each call to read, write, and pipe succeeds.
40604         While not technically required, also check each "close".
40605         * modules/select-tests (Files): Add tests/macros.h.
40607         test-symlinkat: remove declaration of unused local
40608         * tests/test-symlinkat.c (main): Remove unused local, "buf".
40610         test-inttostr: avoid shadowing warnings
40611         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
40612         and use malloc rather than the stack for the same reason as
40613         mentioned in the comment justifying the other allocation.
40615 2010-10-11  Bruno Haible  <bruno@clisp.org>
40617         stdlib: Allow multiple gnulib generated replacements to coexist.
40618         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
40619         Reported by Sam Steingold <sds@gnu.org>.
40621 2010-10-11  Jim Meyering  <meyering@redhat.com>
40623         fix a documentation typo
40624         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
40626 2010-10-11  Eric Blake  <eblake@redhat.com>
40628         futimens: work around Solaris 11 bug
40629         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
40630         * tests/test-futimens.h (test_futimens): Enhance, rather than
40631         weaken test.
40632         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40634 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40636         Indentation.
40637         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
40638         higher-level operators more to the left.
40640 2010-10-11  Jim Meyering  <meyering@redhat.com>
40642         test-futimens: avoid unwarranted test failure on Solaris 5.11
40643         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
40644         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
40645         because it tries to dereference the NULL name argument.
40647 2010-10-11  Bruno Haible  <bruno@clisp.org>
40649         Indentation.
40650         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
40651         indentation.
40653 2010-10-11  Jim Meyering  <meyering@redhat.com>
40655         spawn.in.h: make indentation consistent with parentheses
40656         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
40657         Make indentation consistent with parentheses.
40659 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
40661         Fix mismatched parens in previous commit
40662         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
40663         parens.
40665 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40667         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
40669         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
40670         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
40671         * lib/malloca.c: Include "verify.h".
40672         (verify1): Remove, replacing with a verify call.
40673         * lib/relocwrapper.c (verify1): Likewise.
40674         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
40675         Likewise.
40676         * modules/malloca (Depends-on): Add 'verify'.
40677         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
40678         * modules/vasnprintf (Depends-on): Add 'verify'.
40679         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40681         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40682         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40684         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40685         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40687         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
40689         Formerly the style was sometimes 2*X - 1, because the C standard
40690         was wrongly thought to disallow ?: in integral constant expressions.
40691         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
40692         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
40693         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
40694         * lib/stdint.in.h (_verify_intmax_size): Likewise.
40695         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
40696         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
40697         verify that time_t cannot be floating.
40699 2010-10-08  Eric Blake  <eblake@redhat.com>
40701         time: enforce recent POSIX ruling that time_t is integral
40702         * lib/time.in.h (__time_t_must_be_integral): Detect any
40703         problematic systems, allowing the rest of gnulib to assume POSIX.
40705 2010-10-08  Jim Meyering  <meyering@redhat.com>
40707         fdopendir: fix a bug on systems lacking openat and /proc support
40708         OpenBSD 4.7 is one such system.  The most noticeable effect was
40709         failure of any application making nontrivial use of fts: rm, du,
40710         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
40711           ./rm: traversal failed: `a': Bad file descriptor
40712         Debugging that, you see that even though FD 6 was closed just
40713         prior to the opendir call in fd_clone_opendir, its resulting
40714         dir->dd_fd was 8, rather than the expected value of 6:
40716         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
40717         93                close (fd);
40718         (gdb) n
40719         94                dir = fd_clone_opendir (dupfd);
40720         (gdb) n
40721         95                saved_errno = errno;
40722         (gdb) p dir->dd_fd
40723         $11 = 8
40725         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
40726         The problem is that on OpenBSD, fd_clone_opendir has to resort
40727         to using the old-style save/restore CWD mechanism, due to its
40728         lack of openat/proc support, and *that* would steal the FD (6)
40729         that opendir was supposed to use.
40731         The fix is to squirrel away the desired FD so that save_cwd uses a
40732         different one, and then free the dest FD right before calling opendir.
40733         That guarantees opendir will use the required file descriptor.
40735         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
40737 2010-10-08  Bruno Haible  <bruno@clisp.org>
40739         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
40740         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
40742 2010-10-08  Bruno Haible  <bruno@clisp.org>
40744         nanosleep: Make replacement POSIX compliant.
40745         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
40746         is out of range.
40747         Reported by Jim Meyering.
40749 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40751         bootstrap: add hook for altering gnulib.mk, for Bison
40752         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
40753         the Bison bootstrapping process can rewrite file names and variables
40754         in this file before later parts of 'bootstrap' use the file.
40755         Bison wants to include lib/gnulib.mk from the top-level makefile,
40756         so it needs the file names in this file to be relative to the top
40757         level, not relative to lib; plus it needs variable names to be
40758         rewritten.
40759         (slurp): Use the new function.
40761         bootstrap: reformat for readability
40762         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
40764 2010-10-08  Eric Blake  <eblake@redhat.com>
40766         docs: update cygwin progress
40767         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
40768         1.7.7.
40769         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
40770         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
40771         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
40772         * doc/posix-functions/carg.texi (carg): Likewise.
40773         * doc/posix-functions/cargf.texi (cargf): Likewise.
40774         * doc/posix-functions/casin.texi (casin): Likewise.
40775         * doc/posix-functions/casinf.texi (casinf): Likewise.
40776         * doc/posix-functions/casinh.texi (casinh): Likewise.
40777         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
40778         * doc/posix-functions/catan.texi (catan): Likewise.
40779         * doc/posix-functions/catanf.texi (catanf): Likewise.
40780         * doc/posix-functions/catanh.texi (catanh): Likewise.
40781         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
40782         * doc/posix-functions/ccos.texi (ccos): Likewise.
40783         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
40784         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
40785         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
40786         * doc/posix-functions/cexp.texi (cexp): Likewise.
40787         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
40788         * doc/posix-functions/cimag.texi (cimag): Likewise.
40789         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
40790         * doc/posix-functions/clog.texi (clog): Likewise.
40791         * doc/posix-functions/clogf.texi (clogf): Likewise.
40792         * doc/posix-functions/conj.texi (conj): Likewise.
40793         * doc/posix-functions/conjf.texi (conjf): Likewise.
40794         * doc/posix-functions/cpow.texi (cpow): Likewise.
40795         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
40796         * doc/posix-functions/cproj.texi (cproj): Likewise.
40797         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
40798         * doc/posix-functions/creal.texi (creal): Likewise.
40799         * doc/posix-functions/crealf.texi (crealf): Likewise.
40800         * doc/posix-functions/csin.texi (csin): Likewise.
40801         * doc/posix-functions/csinf.texi (csinf): Likewise.
40802         * doc/posix-functions/csinh.texi (csinh): Likewise.
40803         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
40804         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
40805         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
40806         * doc/posix-functions/ctan.texi (ctan): Likewise.
40807         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
40808         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
40809         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
40810         * doc/posix-headers/complex.texi (complex.h): Likewise.
40812 2010-10-07  Jim Meyering  <meyering@redhat.com>
40814         parse-datetime: avoid compilation failure on OpenBSD 4.7
40815         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
40816         This works around a compilation failure on OpenBSD 4.7:
40817         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
40819 2010-10-07  Eric Blake  <eblake@redhat.com>
40821         docs: update cygwin progress
40822         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
40823         1.7.6.
40824         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40825         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
40826         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
40827         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
40828         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
40829         Likewise.
40830         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
40831         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
40832         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
40833         Likewise.
40834         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
40835         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
40836         Likewise.
40837         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
40838         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
40839         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
40840         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
40841         Likewise.
40842         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
40843         Likewise.
40844         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
40846         docs: update parse-datetime history
40847         * doc/parse-datetime.texi (Authors of parse_datetime): Better
40848         documentation of this function's history and alternatives.
40850         cygwin: use more robust version check
40851         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
40852         exclude an eventual cygwin 1.9.1.
40853         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
40854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
40855         (gl_FUNC_STRCASESTR): Likewise.
40856         Reported by Bruno Haible.
40858 2010-10-06  Bruno Haible  <bruno@clisp.org>
40860         string, sys_select: Avoid #including large headers unless necessary.
40861         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
40862         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
40863         OSF/1, BeOS, Haiku.
40864         Reported by Jim Meyering.
40866 2010-10-05  Eric Blake  <eblake@redhat.com>
40868         memmem, strstr, strcasestr: fix bug with long periodic needle
40869         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
40870         periodic needle having false positive.
40871         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
40872         and cygwin 1.7.7.
40873         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
40874         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
40875         (gl_FUNC_STRCASESTR): Likewise.
40876         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
40877         * tests/test-memmem.c (main): Expose the bug.
40878         * tests/test-strcasestr.c (main): Likewise.
40879         * tests/test-strstr.c (main): Likewise.
40880         * tests/test-c-strcasestr.c (main): Likewise.
40881         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
40882         * doc/posix-functions/strstr.texi (strstr): Likewise.
40883         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40884         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
40886 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40888         parse-datetime: do some more renaming
40889         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
40890         parse_datetime, not get_date.  Mention the renaming.
40891         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
40892         in comments.
40893         * m4/bison.m4: Likewise.
40895 2010-10-05  Eric Blake  <eblake@redhat.com>
40897         parse-datetime: better name than get_date
40898         * NEWS: Reword the deprecation notice.
40899         * modules/get_date: Rename to modules/parse-datetime.
40900         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
40901         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
40902         * lib/get_date.y: Rename to lib/parse-datetime.y.
40903         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
40904         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
40905         * doc/getdate.texi: Provide fallback wrapper.
40906         * lib/getdate.h: Move guts, and wrap...
40907         * lib/parse-datetime.h: ...new file.
40908         * lib/parse-datetime.y (get_date): Rename...
40909         (parse_datetime): ...to this.
40910         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
40911         (gl_PARSE_DATETIME): ...to this.
40912         * doc/posix-functions/getdate.texi (get_date): Provide fallback
40913         documentation.
40914         * modules/getdate (Files): Provide fallback docs and header.
40915         (Notice, Depends-on): Update references.
40916         * tests/test-parse-datetime.c: Likewise.
40917         * DEPENDENCIES: Likewise.
40918         * MODULES.html.sh (Date and time <time.h>): Likewise.
40919         * doc/parse-datetime.texi (Date input formats)
40920         (Authors of parse_datetime): Likewise.
40921         * modules/parse-datetime (Files, configure.ac, Makefile.am)
40922         (Include): Likewise.
40923         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
40924         * gnulib-tool: Likewise.
40925         * m4/bison.m4 (gl_BISON): Likewise.
40926         Suggested by Bruno Haible.
40928 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40930         more ports to Solaris tr, which needs [] around ranges
40931         * gnulib-tool: Solaris tr needs [] around ranges.
40932         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
40933         * tests/test-pipe-filter-gi1.c (main): Likewise.
40934         * tests/test-pipe-filter-ii1.c (main): Likewise.
40936 2010-10-05  Eric Blake  <eblake@redhat.com>
40938         bootstrap: fix Solaris regression
40939         * build-aux/bootstrap (check_versions): Solaris tr still needs []
40940         around ranges.
40941         Reported by Pádraig Brady.
40943         bootstrap: work with pkg-config
40944         * build-aux/bootstrap (check_versions): Also transliterate - in
40945         prerequisite name.
40946         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
40947         prerequisites that were already found, to avoid confusion.
40948         Reported by Justin Clift.
40950         faccessat: remove unused wrappers
40951         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
40952         presence of these wrappers dragged in -lgen on Solaris.
40953         Reported by Clemens Brogi; fix suggested by Paul Eggert.
40955 2010-10-05  Jim Meyering  <meyering@redhat.com>
40957         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
40958         * Makefile (sc_pragma_columns): New syntax-check rule.
40960 2010-10-04  Bruno Haible  <bruno@clisp.org>
40962         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
40963         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
40964         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
40965         Reported by Bruce Korb and Eric Blake.
40967 2010-10-04  Bruno Haible  <bruno@clisp.org>
40969         threadlib: Make option --with-libpth-prefix work.
40970         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
40971         use $LIBPTH, not just -lpth.
40973 2010-10-04  Bruno Haible  <bruno@clisp.org>
40975         Avoid line length limitation from HP NonStop system header files.
40976         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
40977         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
40978         * lib/ctype.in.h: Likewise.
40979         * lib/dirent.in.h: Likewise.
40980         * lib/errno.in.h: Likewise.
40981         * lib/fcntl.in.h: Likewise.
40982         * lib/float.in.h: Likewise.
40983         * lib/getopt.in.h: Likewise.
40984         * lib/iconv.in.h: Likewise.
40985         * lib/inttypes.in.h: Likewise.
40986         * lib/langinfo.in.h: Likewise.
40987         * lib/locale.in.h: Likewise.
40988         * lib/math.in.h: Likewise.
40989         * lib/netdb.in.h: Likewise.
40990         * lib/netinet_in.in.h: Likewise.
40991         * lib/poll.in.h: Likewise.
40992         * lib/pthread.in.h: Likewise.
40993         * lib/pty.in.h: Likewise.
40994         * lib/sched.in.h: Likewise.
40995         * lib/se-selinux.in.h: Likewise.
40996         * lib/search.in.h: Likewise.
40997         * lib/signal.in.h: Likewise.
40998         * lib/spawn.in.h: Likewise.
40999         * lib/stdarg.in.h: Likewise.
41000         * lib/stddef.in.h: Likewise.
41001         * lib/stdint.in.h: Likewise.
41002         * lib/stdio.in.h: Likewise.
41003         * lib/stdlib.in.h: Likewise.
41004         * lib/string.in.h: Likewise.
41005         * lib/strings.in.h: Likewise.
41006         * lib/sys_file.in.h: Likewise.
41007         * lib/sys_ioctl.in.h: Likewise.
41008         * lib/sys_select.in.h: Likewise.
41009         * lib/sys_socket.in.h: Likewise.
41010         * lib/sys_stat.in.h: Likewise.
41011         * lib/sys_time.in.h: Likewise.
41012         * lib/sys_times.in.h: Likewise.
41013         * lib/sys_utsname.in.h: Likewise.
41014         * lib/sys_wait.in.h: Likewise.
41015         * lib/sysexits.in.h: Likewise.
41016         * lib/termios.in.h: Likewise.
41017         * lib/time.in.h: Likewise.
41018         * lib/unistd.in.h: Likewise.
41019         * lib/wchar.in.h: Likewise.
41020         * lib/wctype.in.h: Likewise.
41021         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
41022         * modules/ctype (Makefile.am): Likewise.
41023         * modules/dirent (Makefile.am): Likewise.
41024         * modules/errno (Makefile.am): Likewise.
41025         * modules/fcntl-h (Makefile.am): Likewise.
41026         * modules/float (Makefile.am): Likewise.
41027         * modules/getopt-posix (Makefile.am): Likewise.
41028         * modules/iconv-h (Makefile.am): Likewise.
41029         * modules/inttypes (Makefile.am): Likewise.
41030         * modules/langinfo (Makefile.am): Likewise.
41031         * modules/locale (Makefile.am): Likewise.
41032         * modules/math (Makefile.am): Likewise.
41033         * modules/netdb (Makefile.am): Likewise.
41034         * modules/netinet_in (Makefile.am): Likewise.
41035         * modules/poll-h (Makefile.am): Likewise.
41036         * modules/pthread (Makefile.am): Likewise.
41037         * modules/pty (Makefile.am): Likewise.
41038         * modules/sched (Makefile.am): Likewise.
41039         * modules/search (Makefile.am): Likewise.
41040         * modules/selinux-h (Makefile.am): Likewise.
41041         * modules/signal (Makefile.am): Likewise.
41042         * modules/spawn (Makefile.am): Likewise.
41043         * modules/stdarg (Makefile.am): Likewise.
41044         * modules/stddef (Makefile.am): Likewise.
41045         * modules/stdint (Makefile.am): Likewise.
41046         * modules/stdio (Makefile.am): Likewise.
41047         * modules/stdlib (Makefile.am): Likewise.
41048         * modules/string (Makefile.am): Likewise.
41049         * modules/strings (Makefile.am): Likewise.
41050         * modules/sys_file (Makefile.am): Likewise.
41051         * modules/sys_ioctl (Makefile.am): Likewise.
41052         * modules/sys_select (Makefile.am): Likewise.
41053         * modules/sys_socket (Makefile.am): Likewise.
41054         * modules/sys_stat (Makefile.am): Likewise.
41055         * modules/sys_time (Makefile.am): Likewise.
41056         * modules/sys_times (Makefile.am): Likewise.
41057         * modules/sys_utsname (Makefile.am): Likewise.
41058         * modules/sys_wait (Makefile.am): Likewise.
41059         * modules/sysexits (Makefile.am): Likewise.
41060         * modules/termios (Makefile.am): Likewise.
41061         * modules/time (Makefile.am): Likewise.
41062         * modules/unistd (Makefile.am): Likewise.
41063         * modules/wchar (Makefile.am): Likewise.
41064         * modules/wctype (Makefile.am): Likewise.
41066 2010-10-04  Bruno Haible  <bruno@clisp.org>
41068         read-file tests: Avoid a test failure on NonStop Kernel.
41069         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
41070         a regular file.
41071         Reported by Joachim Schmitz <schmitz@hp.com>.
41073 2010-10-03  Bruno Haible  <bruno@clisp.org>
41075         gnulib-tool: Fixes for --create-testdir with --libtool.
41076         * gnulib-tool (func_get_automake_snippet): Don't augment
41077         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
41078         an executable.
41079         (func_create_testdir): Handle module 'alloca' like func_import.
41080         Reported by Bruce Korb <bruce.korb@gmail.com>.
41082 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
41084         Avoid some lines longer than 80 characters.
41085         * lib/stdint.in.h: Break long comment lines.
41086         * lib/math.in.h: Likewise.
41087         (_GL_NUM_UINT_WORDS): New macro, for readability.
41088         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
41089         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
41090         * lib/stdlib.in.h: Likewise.
41091         * lib/spawn.in.h: Likewise.
41092         * lib/sys_socket.in.h: Update an URL.
41093         * lib/sys_stat.in.h: Break long line.
41095 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
41097         Improve pmccabe2html.
41098         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
41099         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
41100         when the sources change. Remove the line in the HTML about "Used
41101         ranges" (which implied that there might be other unused ranges),
41102         rename "Resume" to "Summary" (easier to understand for more users).
41103         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
41104         styles, and some unnecessary blank lines.
41106 2010-10-03  Bruno Haible  <bruno@clisp.org>
41107             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
41109         acl: Add support for ACLs on NonStop Kernel.
41110         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
41111         Check whether the function aclsort() exists.
41112         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
41113         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
41114         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
41115         (acl_nontrivial [HAVE_ACLSORT]: New function.
41116         (file_has_acl): Implement for NonStop Kernel.
41117         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
41118         (qset_acl): Implement for NonStop Kernel.
41119         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
41120         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
41121         (main): Implement for NonStop Kernel.
41122         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
41123         Kernel. Handle this flavor.
41124         * tests/test-set-mode-acl.sh: Likewise.
41125         * tests/test-copy-acl.sh: Likewise.
41126         * tests/test-copy-file.sh: Likewise.
41128 2010-10-03  Bruno Haible  <bruno@clisp.org>
41130         Info about ACLs on NonStop Kernel.
41131         * doc/acl-resources.txt: Add info about NonStop Kernel.
41132         References by Joachim Schmitz <schmitz@hp.com>.
41134 2010-10-02  Bruno Haible  <bruno@clisp.org>
41136         Define missing EDQUOT on NonStop Kernel.
41137         * lib/errno.in.h (EDQUOT): Assign a value if missing.
41138         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
41139         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
41140         missing.
41141         * doc/posix-headers/errno.texi: Mention the NSK bug.
41142         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
41143         Reported by Joachim Schmitz <schmitz@hp.com>.
41145 2010-10-02  Bruno Haible  <bruno@clisp.org>
41147         Update doc for POSIX:2008.
41148         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
41149         Update URL of POSIX specification.
41151 2010-10-02  Bruno Haible  <bruno@clisp.org>
41153         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
41154         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
41155         from gnulib, not from Automake.
41157 2010-10-02  Bruno Haible  <bruno@clisp.org>
41159         New module 'system-posix'.
41160         * modules/system-posix: New file.
41161         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
41162         module is present.
41163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41164         GNULIB_SYSTEM_POSIX.
41165         * modules/stdlib (Depends-on): Remove sys_wait.
41166         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
41167         * doc/posix-functions/system.texi: Mention the new module.
41168         * doc/posix-headers/stdlib.texi: Likewise.
41169         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
41170         define test_sys_wait_macros to a no-op.
41171         Reported by Sam Steingold <sds@gnu.org>.
41173 2010-09-30  Bruno Haible  <bruno@clisp.org>
41175         More renaming from 'getdate' to 'get_date'.
41176         * doc/get_date.texi: Renamed from doc/getdate.texi.
41177         * modules/get_date (Files): Update.
41178         * MODULES.html.sh (Date and time <time.h>): Update.
41179         * DEPENDENCIES: Update.
41180         * gnulib-tool: Update comment.
41181         * m4/bison.m4 (gl_BISON): Likewise.
41182         * m4/get_date.m4 (gl_GET_DATE): Likewise.
41184 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
41186         bootstrap: support ACLOCAL_FLAGS during aclocal
41187         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
41188         can add additional -I dir for third-party .m4 files.
41190 2010-09-30  Eric Blake  <eblake@redhat.com>
41192         bootstrap: use glibtoolize on MacOS
41193         * build-aux/bootstrap (check_versions): Convert libtool into
41194         libtoolize.
41195         (tool search): Move libtool check earlier, and look for
41196         glibtoolize for MacOS.
41197         (gnulib_tool_options): Auto-add --libtool when appropriate.
41198         Reported by Justin Clift.
41200         poll: fix typo that broke test on MacOS
41201         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
41202         Reported by Justin Clift.
41204         getdate: rename to get_date
41205         Note: getdate.h is not renamed, to minimize client impact.
41206         * modules/getdate: Mark obsolete.  Move old contents...
41207         * modules/get_date: ...to new module name.
41208         * modules/getdate-tests: Move...
41209         * modules/get_date-tests: ...here.
41210         * m4/getdate.m4: Move...
41211         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
41212         * lib/getdate.y: Move...
41213         * lib/get_date.y: ...here.
41214         * tests/test-getdate.c: Move...
41215         * tests/test-get_date.c: ...here.
41216         * doc/posix-functions/getdate.texi (getdate): Update name.
41217         * NEWS: Mention the change.
41219 2010-09-29  Bruno Haible  <bruno@clisp.org>
41221         Separate the module 'waitpid' from the module 'sys_wait'.
41222         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
41223         present.
41224         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
41225         gl_MODULE_INDICATOR_FOR_TESTS.
41226         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
41227         * modules/sys_wait (Depends-on): Remove waitpid.
41228         (Makefile.am): Substitute GNULIB_WAITPID.
41229         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
41230         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
41231         signature only if the 'waitpid' module is present.
41232         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
41233         * NEWS: Mention the change.
41234         * modules/grantpt (Depends-on): Add waitpid.
41235         * modules/wait-process (Depends-on): Likewise.
41237 2010-09-29  Bruno Haible  <bruno@clisp.org>
41239         More tests for module 'sys_wait'.
41240         * modules/sys_wait-c++-tests: New file.
41241         * tests/test-sys_wait-c++.cc: New file.
41242         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
41243         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
41245 2010-09-29  Bruno Haible  <bruno@clisp.org>
41247         New module 'waitpid'.
41248         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
41249         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
41250         Don't include <process.h>.
41251         (waitpid): Declare only, using modern idiom.
41252         * m4/waitpid.m4: New file.
41253         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
41254         * modules/waitpid: New file.
41255         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
41256         (Makefile.am): Update.
41257         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
41259 2010-09-28  Bruno Haible  <bruno@clisp.org>
41261         poll: Assume ANSI C.
41262         * lib/poll.c (poll): Use an ANSI C declaration.
41264 2010-09-28  Bruno Haible  <bruno@clisp.org>
41266         poll-h: Create poll.h on all platforms.
41267         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
41268         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
41269         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
41270         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
41271         (gl_REPLACE_POLL_H): Don't set POLL_H.
41272         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
41273         * modules/poll-h (Depends-on): Add include_next.
41274         (Makefile.am): Create poll.h unconditionally. Substitute also
41275         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
41277 2010-09-28  Bruno Haible  <bruno@clisp.org>
41279         Tests for module 'poll-h'.
41280         * modules/poll-h-c++-tests: New file.
41281         * tests/test-poll-h-c++.cc: New file.
41283         Tests for module 'poll-h'.
41284         * modules/poll-h-tests: New file.
41285         * tests/test-poll-h.c: New file.
41287 2010-09-28  Bruno Haible  <bruno@clisp.org>
41289         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
41290         * modules/poll-h (Depends-on): Add 'extensions'.
41292 2010-09-28  Bruno Haible  <bruno@clisp.org>
41294         New module 'poll-h'.
41295         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
41296         (poll): Use modern idiom.
41297         * modules/poll-h: New file.
41298         * modules/poll (Files): Remove lib/poll.in.h.
41299         (Depends-on): Add poll-h.
41300         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
41301         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
41302         * m4/poll_h.m4: New file.
41303         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
41304         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
41305         and invoke gl_REPLACE_POLL_H.
41306         * lib/poll.c: Use common idiom.
41307         * tests/test-poll.c: Likewise.
41308         * doc/posix-headers/poll.texi: Mention the poll-h module.
41309         Suggested by Eric Blake.
41311 2010-09-26  Bruno Haible  <bruno@clisp.org>
41313         sys_wait: Implement WSTOPSIG.
41314         * lib/sys_wait.in.h (WSTOPSIG): New macro.
41315         Reported by Simon Josefsson.
41317 2010-09-26  Simon Josefsson  <simon@josefsson.org>
41319         stdlib, sys_wait: Avoid compilation error on mingw.
41320         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
41322 2010-09-26  Bruno Haible  <bruno@clisp.org>
41324         stdlib tests: Avoid code duplication.
41325         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
41326         * modules/sys_wait-tests (Files): Likewise.
41327         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
41328         * tests/test-stdlib.c: Include test-sys_wait.h.
41329         (main): Invoke test_sys_wait_macros.
41330         * tests/test-sys_wait.c: Include test-sys_wait.h.
41331         (main): Invoke test_sys_wait_macros.
41333 2010-09-25  Simon Josefsson  <simon@josefsson.org>
41335         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
41336         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
41337         sure Windows sockets are working before calling getaddrinfo.
41338         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
41339         * doc/gnulib.texi (Windows sockets): Fix typo.
41341 2010-09-25  Bruno Haible  <bruno@clisp.org>
41343         Tests for module 'regex-quote'.
41344         * modules/regex-quote-tests: New file.
41345         * tests/test-regex-quote.c: New file.
41347         New module 'regex-quote'.
41348         * lib/regex-quote.h: New file.
41349         * lib/regex-quote.c: New file.
41350         * modules/regex-quote: New file.
41351         Suggested by Reuben Thomas <rrt@sc3d.org>.
41353 2010-09-24  Bruno Haible  <bruno@clisp.org>
41355         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
41356         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
41358 2010-09-23  Bruno Haible  <bruno@clisp.org>
41360         setenv: Relax license.
41361         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
41362         Blake.
41363         Requested by Eric Blake.
41365 2010-09-22  Bruno Haible  <bruno@clisp.org>
41367         termios: Relax license.
41368         * modules/termios (License): Change to LGPLv2+.
41369         Requested by Eric Blake.
41371 2010-09-22  Bruno Haible  <bruno@clisp.org>
41373         threadlib: Allow the package to change the default to 'no'.
41374         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
41375         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
41376         Reported by Paul Eggert.
41378 2010-09-22  Pádraig Brady  <P@draigbrady.com>
41379             Bruno Haible  <bruno@clisp.org>
41381         Fix endless loop in mbmemcasecoll.
41382         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
41383         byte.
41384         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
41386 2010-09-22  Bruno Haible  <bruno@clisp.org>
41388         Tests for module 'memcoll'.
41389         * modules/memcoll-tests: New file.
41390         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
41392         memcoll, xmemcoll: Clarify size vs. length.
41393         * modules/memcoll.c (memcoll0): Clarify specification.
41394         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
41395         passed to collate_error.
41397 2010-09-22  Bruno Haible  <bruno@clisp.org>
41399         Tests for module 'memcasecmp'.
41400         * modules/memcasecmp-tests: New file.
41401         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
41403 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
41405         * lib/pthread.in.h: Add split double-inclusion guard, and include
41406         system <pthread.h> if there is one.  Use @@-style as in other
41407         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
41408         pthread.h doesn't.
41409         (pthread_mutexattr_destroy, pthread_mutexattr_init):
41410         (pthread_mutexattr_settype, pthread_mutex_trylock):
41411         New static inline functions, if there's no system <pthread.h>.
41412         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
41413         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
41414         Approximate with mutexes if the system lacks spinlocks, as in
41415         MacOS.
41416         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
41417         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
41418         @@-style.  Check for spinlocks separately.
41419         (gl_PTHREAD_DEFAULTS): New macro.
41420         * modules/pthread: Redo to use a more typical style for in.h files.
41422 2010-09-21  Eric Blake  <eblake@redhat.com>
41424         net_if: enhance tests
41425         * tests/test-net_if.c (main): Move signature checks earlier.
41426         Print failures to stderr.
41427         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
41428         Document the bug that we do not yet fix.
41430 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
41432         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
41433         about gnulib, not GSS.
41435 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
41437         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
41438         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
41439         for Emacs.
41440         * build-aux/pmccabe2html: Make Makefile.am example code more
41441         cut-and-paste friendly.
41443 2010-09-21  Simon Josefsson  <simon@josefsson.org>
41445         * tests/test-net_if.c: New file.
41446         * modules/net_if-tests: New file.
41448 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41450         pthread: add pthread_spin_destroy
41451         * lib/pthread.in.h (pthread_spin_destroy): New function.
41453 2010-09-19  Bruno Haible  <bruno@clisp.org>
41455         gnulib-tool: Fix --help output.
41456         * gnulib-tool (func_usage): Fix help message.
41457         Reported by Reuben Thomas <rrt@sc3d.org>.
41459 2010-09-18  Jim Meyering  <meyering@redhat.com>
41461         maint.mk: avoid unexpanded \n in two diagnostics
41462         * top/maint.mk (sc_prohibit_always_true_header_tests):
41463         Don't use a literal \n in a halt=... assignment.  It would not be
41464         expanded, and the two \n bytes would appear in the diagnostic output
41465         rather than the desired newline.  Use halt=$$(printf ... instead.
41466         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
41468 2010-09-18  Bruno Haible  <bruno@clisp.org>
41470         netinet_in: Doc tweak.
41471         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
41472         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
41474 2010-09-18  Jim Meyering  <meyering@redhat.com>
41476         init.sh: correct an outdated comment
41477         * tests/init.sh (create_exe_shims_):  s/function/alias/
41479         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
41480         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
41481         a file named "*.exe" is removed between the glob expansion and the
41482         processing of that oddly named file.
41484 2010-09-17  Eric Blake  <eblake@redhat.com>
41486         mirbsd: add some more support
41487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
41488         in BSD family.
41489         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
41490         devices as OpenBSD.
41491         * m4/host-os.m4 (mirbsd): Add MirBSD.
41493         tests: fix unportable assumption on sys/wait.h
41494         * tests/test-sys_wait.c (main): Relax test.
41495         * tests/test-stdlib.c (main): Likewise.
41497         init.sh: accommodate directory with no .exes
41498         * tests/init.sh: Accomodate directory containing only scripts.
41500         tests: avoid compiler warning
41501         * tests/test-stdlib.c (main): Use the variable.
41503         fdutimens, fdutimensat: update signature, again
41504         * lib/utimens.h (gl_futimens): Delete, and move signature...
41505         (fdutimens): ...here.
41506         (fdutimensat): Rearrange signature.
41507         (lutimensat): Rename variable for clarity.
41508         * lib/fdutimensat.c (fdutimensat): Update signature.
41509         * lib/utimens.c (fdutimens): Likewise.
41510         (gl_futimens): Delete.
41511         (utimens, lutimens): Update callers.
41512         * lib/futimens.c (futimens): Likewise.
41513         * tests/test-fdutimensat.c: Likewise.
41514         * tests/test-utimens.c: Likewise.
41515         * tests/test-futimens.h: Update comment.
41516         * NEWS: Mention this.
41517         Suggested by Paul Eggert.
41519 2010-09-17  Bruno Haible  <bruno@clisp.org>
41521         Take over the maintenance of some older macros from Autoconf.
41522         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
41523         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
41524         GNU Autoconf.
41525         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
41526         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
41528 2010-09-17  Eric Blake  <eblake@redhat.com>
41530         fdutimensat: drop atflag validation
41531         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
41532         with valid fd, to close a race scenario where futimens is
41533         unsupported and FILE was replaced by a symlink.
41534         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
41535         accordingly.
41536         Suggested by Paul Eggert.
41538 2010-09-16  Bruno Haible  <bruno@clisp.org>
41540         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
41541         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
41543 2010-09-16  Bruno Haible  <bruno@clisp.org>
41545         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
41546         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
41547         login_tty exists.
41548         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
41550 2010-09-16  Bruno Haible  <bruno@clisp.org>
41552         login_tty: Make the replacement code work on BSD systems.
41553         * lib/login_tty.c: Include <sys/ioctl.h>.
41554         (login_tty): Use ioctl TIOCSCTTY when available.
41555         * modules/login_tty (Depends-on): Add sys_ioctl.
41556         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
41558 2010-09-16  Bruno Haible  <bruno@clisp.org>
41560         login_tty: Stricter unit test.
41561         * modules/login_tty-tests (Depends-on): Add tcgetsid.
41562         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
41563         and tcgetsid() after login_tty.
41564         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
41566 2010-09-16  Bruno Haible  <bruno@clisp.org>
41568         New module 'tcgetsid'.
41569         * lib/tcgetsid.c: New file.
41570         * m4/tcgetsid.m4: New file.
41571         * modules/tcgetsid: New file.
41572         * modules/termios (Depends-on): Add c++defs, warn-on-use.
41573         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
41574         GNULIB_TCGETSID, HAVE_TCGETSID.
41575         * lib/termios.in.h: Include <sys/types.h>.
41576         (tcgetsid): New declaration.
41577         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
41578         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
41579         * doc/posix-functions/tcgetsid.texi: Mention the new module.
41580         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
41582 2010-09-16  Bruno Haible  <bruno@clisp.org>
41584         Tests for module 'termios'.
41585         * modules/termios-c++-tests: New file.
41586         * modules/termios-tests: New file.
41587         * tests/test-termios-c++.cc: New file.
41588         * tests/test-termios.c: New file.
41590         New module 'termios'.
41591         * modules/termios: New file.
41592         * lib/termios.in.h: New file.
41593         * m4/termios_h.m4: New file.
41594         * doc/posix-headers/termios.texi: Mention the new module.
41596 2010-09-16  Eric Blake  <eblake@redhat.com>
41598         fdutimensat: add an atflag parameter
41599         * lib/fdutimensat.c (fdutimensat): Add new parameter.
41600         * lib/utimens.h (fdutimensat): Update prototype.
41601         * tests/test-fdutimensat.c: Adjust test to match.
41602         * NEWS: Document the change.
41603         Suggested by Paul Eggert.
41605 2010-09-16  Bruno Haible  <bruno@clisp.org>
41607         Fix typos in comments.
41608         * lib/striconveh.h: Fix typo in comment.
41609         * lib/login_tty.c (login_tty): Likewise.
41611 2010-09-15  Bruno Haible  <bruno@clisp.org>
41613         stdlib: clarify MirBSD WEXITSTATUS bug
41614         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
41615         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41617 2010-09-15  Eric Blake  <eblake@redhat.com>
41619         stdlib: work around MirBSD WEXITSTATUS bug
41620         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
41621         * modules/stdlib (Depends-on): Add sys_wait.
41622         * tests/test-sys_wait.c (main): Enhance test.
41623         * tests/test-stdlib.c (main): Likewise.
41624         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
41626         docs: mention MacOS issue with WEXITSTATUS(constant)
41627         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
41628         issue.
41629         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41631         strnlen: add tests
41632         * modules/strnlen-tests: New file.
41633         * tests/test-strnlen.c: Likewise.
41635 2010-09-14  Bruno Haible  <bruno@clisp.org>
41637         unistr/base: Avoid link errors when module 'libunistring' is also used.
41638         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
41639         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
41640         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
41641         Declare also when HAVE_LIBUNISTRING is set.
41642         Reported by Pádraig Brady <P@draigbrady.com>.
41644 2010-09-14  Eric Blake  <eblake@redhat.com>
41646         test-rawmemchr: make more robust
41647         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
41648         (Depends-on, configure.ac): Add needed prerequisites to use it.
41649         * modules/memchr-tests (Files, Depends-on, configure.ac):
41650         Likewise, to avoid implicit reliance on memchr module prereqs.
41651         * tests/test-memchr.c (main): Ensure proper masking.
41652         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
41653         reads.
41655         memchr: detect glibc Alpha bug
41656         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
41657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
41658         Alpha.
41659         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
41660         * tests/test-memchr.c (main): Enhance test.
41661         Reported by Nelson H. F. Beebe.
41663 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41665         fts, getcwd, glob: audit for dirfd returning -1
41666         * lib/fts.c (opendir): Remove #define; no longer used.
41667         (opendirat): New arg PDIR_FD.  All callers changed.
41668         (fts_build, _opendir2): Use new opendirat to avoid the need for
41669         dirfd, or for checking whether dirfd returns a negative value.
41670         Don't use opendir; always use openat followed by fdopendir.
41671         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
41672         it.
41673         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
41674         returns -1 here.
41675         * modules/fts (Depends-on): Remove dirfd.
41676         * modules/getcwd (Depends-on): Likewise.
41678 2010-09-13  Eric Blake  <eblake@redhat.com>
41680         float: fix broken MirBSD header
41681         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
41682         * doc/posix-headers/float.texi (float.h): Document it.
41684 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41686         fts: use O_NOFOLLOW to avoid race condition when opening a directory
41687         * lib/fts.c (opendirat): New arg extra_flags.
41688         (__opendir2): Use it to avoid following symlinks when opening
41689         a directory, if symlinks are not supposed to be followed.  See
41690         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
41692         fdopendir: preserve argument fd before returning
41693         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
41694         (fdopendir_with_dup, fd_clone_opendir): New static functions.
41695         (fdopendir): Use them, arranging for FD to be open to the same
41696         directory that it was when it started.  (It might be temporarily
41697         closed while fdopendir is running, so this not thread- or
41698         signal-safe.)  Be careful to do the right thing even when file
41699         descriptors are scarce and dup fails with errno == EMFILE.  See
41700         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
41702 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
41704         regex: Pass the system regex if its only problem is 32-bit regoff_t.
41705         * NEWS: Document change.
41706         * m4/regex.m4: Disable test for regoff_t size.
41708 2010-09-13  Jim Meyering  <meyering@redhat.com>
41710         fts: don't operate on an invalid file descriptor after failed dup
41711         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
41712         negative file descriptor.
41714 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
41716         savedir: add streamsavedir, deprecate fdsavedir
41717         * NEWS: Mention deprecation of fdsavedir.
41718         * lib/savedir.c (streamsavedir): New extern function, whose name
41719         ends in "savedir" to be consistent with the others.  This differs
41720         from savedirstream in that it doesn't close its argument.  The
41721         next version of GNU tar will use this instead of fdsavedir, to
41722         avoid some race conditions and conserve file descriptors.
41723         (savedirstream): Reimplement as a wrapper around streamsavedir.
41724         (fdsavedir): Add a comment deprecating this function.  As far as
41725         I know, only GNU tar used it, and GNU tar doesn't need it any more.
41726         * lib/savedir.h (streamsavedir): New decl.
41727         (fdsavedir): Add a comment deprecating this.
41729 2010-09-10  Bruno Haible  <bruno@clisp.org>
41731         langinfo: Fix last commit.
41732         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
41733         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
41734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41736 2010-09-10  Bruno Haible  <bruno@clisp.org>
41738         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
41739         * lib/progreloc.c (O_EXEC): Define fallback.
41741 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
41743         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
41744         * NEWS: Document recent changes to fcntl-h.
41745         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
41746         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
41747         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
41748         Similarly for O_SEARCH; this last was already true, but not documented.
41749         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
41750         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
41751         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
41752         Likewise.
41753         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
41754         is zero, not whether it is defined.
41755         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
41756         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
41757         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
41759 2010-09-10  Bruno Haible  <bruno@clisp.org>
41761         langinfo, nl_langinfo: Fix for IRIX 5.3.
41762         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
41763         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
41764         HAVE_LANGINFO_YESEXPR.
41765         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
41766         HAVE_LANGINFO_YESEXPR.
41767         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
41768         HAVE_LANGINFO_T_FMT_AMPM is 0.
41769         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
41770         HAVE_LANGINFO_YESEXPR is 0.
41771         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
41772         NOEXPR.
41773         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
41774         * doc/posix-functions/nl_langinfo.texi: Likewise.
41775         Reported by Eric Blake.
41777 2010-09-10  Bruno Haible  <bruno@clisp.org>
41779         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
41780         * doc/glibc-functions/login_tty.texi: Mention the include file problem
41781         on FreeBSD 8.0 and OpenBSD 4.6.
41782         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
41783         * m4/pty_h.m4 (gl_PTY_H): Likewise.
41784         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
41785         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
41786         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
41787         ac_includes_default.
41788         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
41790 2010-09-09  Eric Blake  <eblake@redhat.com>
41792         strsignal: work around NetBSD bug
41793         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
41794         * lib/string.in.h (includes): Likewise.
41795         * doc/posix-functions/strsignal.texi (strsignal): Document the
41796         bug.
41797         Reported by Nelson H. F. Beebe.
41799         gnulib-tool: work with NetBSD /bin/sh
41800         * gnulib-tool (func_cache_var, func_cache_lookup_module)
41801         (func_get_description, func_get_comment, func_get_status)
41802         (func_get_notice, func_get_applicability, func_get_filelist)
41803         (func_get_dependencies, func_get_autoconf_early_snippet)
41804         (func_get_autoconf_snippet, func_get_automake_snippet)
41805         (func_get_include_directive, func_get_link_directive)
41806         (func_get_license, func_get_maintainer, func_import): Avoid
41807         shell syntax errors from parsing syntax extensions.
41809 2010-09-09  Bruno Haible  <bruno@clisp.org>
41811         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
41812         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
41813         a reliable way to determine whether the 'alias' command works.
41815 2010-09-08  Jim Meyering  <meyering@redhat.com>
41817         init.sh: penalize a set-x-impaired shell; don't disqualify it
41818         * tests/init.sh: Too many shells corrupt application stderr when
41819         you set -x, so we can't afford to disqualify them, since at least
41820         on Irix-6.5, that would disqualify all bourne shells.
41821         Instead, use a two-pass approach.
41822         On the first pass, try to find a shell that meets the stricter
41823         condition that set -x does not corrupt stderr.
41824         If no shell meets the stricter condition, retest each candidate
41825         shell, but without that extra condition.  Finally, when
41826         VERBOSE=yes is requested and set -x might cause trouble, simply
41827         issue a warning and refrain from enabling debug output.
41829 2010-09-08  Eric Blake  <eblake@redhat.com>
41831         unsetenv: fix OpenBSD bug
41832         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
41833         * doc/posix-functions/unsetenv.texi (unsetenv): Update
41834         documentation.
41835         Reported by Jim Meyering.
41837         strtod: work around IRIX 6.5 bug
41838         * lib/strtod.c (strtod): Reparse number on shorter string if
41839         exponent parse was invalid.
41840         * tests/test-strtod.c (main): Add check for "0x1p 2".
41841         Reported by Tom G. Christensen.
41843         getopt: optimize previous patch
41844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
41845         empty variable.  Speed up awk script.
41846         Reported by Paolo Bonzini.
41848 2010-09-08  Jim Meyering  <meyering@redhat.com>
41850         test.sh: disqualify shells for which set -x corrupts stderr
41851         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
41852         and OpenBSD 4.7.  They make it so with "set -x", environment settings
41853         appear in stderr output.  For example, this command:
41854             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
41855         prints "P=1" on those two systems:
41857 2010-09-08  Bruno Haible  <bruno@clisp.org>
41859         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
41860         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
41861         commands, because some shells ignore redirections when there is an
41862         error in the command lookup.
41863         Reported by Eric Blake.
41865 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
41867         * lib/regex.h: Fix a mention of `regex_compile' (should be
41868         `re_compile_pattern').
41869         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
41870         (re_set_registers): Correct name of parameter in comment.
41872         * doc/regex.texi: Add documentation for missing syntax flags.
41873         Remove commented-out documentation of defunct syntax option
41874         RE_NO_EMPTY_ALTS.
41875         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
41876         Add documentation of re_set_registers.
41877         Document trick to re-use a pattern buffer by setting fastmap manually.
41878         Update documentation of struct re_pattern_buffer per public members.
41879         Uncomment documentation of equivalence class operators and
41880         collating symbol operators, since they are now implemented,
41881         Explain leftmost-longest matching in relation to alternatives.
41882         Tidy documentation of substring matching.
41883         Remove POSIX documentation, which is done better in
41884         glibc, and refer the reader there. Keep BSD API documentation, as
41885         that is not readily available elsewhere.
41887 2010-09-07  Eric Blake  <eblake@redhat.com>
41889         getopt: handle POSIXLY_CORRECT set but not exported
41890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
41891         export state of POSIXLY_CORRECT, due to bash set -o posix.
41892         Reported by Dustin J. Mitchell.
41894 2010-09-05  Bruno Haible  <bruno@clisp.org>
41896         gnulib-tool: Highlight the changed options.
41897         * gnulib-tool (func_usage): Display the --import, --add-import,
41898         --remove-import explanations in bold font.
41900 2010-09-06  Karl Berry  <karl@gnu.org>
41902         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
41904 2010-09-05  Bruno Haible  <bruno@clisp.org>
41906         uniwidth/width: Update comment.
41907         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
41908         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
41910 2010-09-05  Bruno Haible  <bruno@clisp.org>
41912         isinf, isnan: Relax license.
41913         * modules/isinf (License): Change from GPL to LGPL, with consent from
41914         Ben Pfaff.
41915         * modules/isnan (License): Likewise.
41916         Requested by Ludovic Courtès.
41918 2010-09-04  Bruno Haible  <bruno@clisp.org>
41920         gnulib-tool: Help migration from --import to --add-import or --update.
41921         * gnulib-tool: Emit a verbose error message when --import is used
41922         without any module name.
41924 2010-09-04  Bruno Haible  <bruno@clisp.org>
41926         Update doc about gnulib-tool.
41927         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
41928         'gnulib-tool --update' in more detail.
41929         Reported by Eric Blake.
41931 2010-09-04  Bruno Haible  <bruno@clisp.org>
41933         gnulib-tool: Change --import. New options --add/remove-import.
41934         * gnulib-tool: New options --add-import, --remove-import.
41935         (func_usage): Document them.
41936         (have_associative): Define always.
41937         (func_import): In import mode, don't merge the specified settings with
41938         the cached settings. Implement remove-import mode.
41939         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
41940         Explain when to use them versus --import.
41941         (Simple update): Use --add-import instead of --import.
41942         * NEWS: Mention the change.
41944 2010-09-04  Bruno Haible  <bruno@clisp.org>
41946         * doc/gnulib-tool.texi (Initial import): Update paragraph about
41947         separate gnulib.mk.
41949 2010-09-04  Bruno Haible  <bruno@clisp.org>
41951         gnulib-tool: Don't talk about CVS any more.
41952         * gnulib-tool (func_usage, func_import): Write "version control"
41953         instead of CVS.
41955 2010-09-04  Jim Meyering  <meyering@redhat.com>
41957         maint.mk: avoid obscure sc_copyright_check failure in coreutils
41958         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
41959         false positives (whose names may be ill-chosen) when searching
41960         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
41961         would cause a false-positive.
41963         avoid coreutils "make distcheck" failure
41964         Coreutils tests with an absolute build directory name that contains
41965         a space.  Not quoting this directory name caused a failure.
41966         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
41967         * tests/test-vc-list-files-cvs.sh: Likewise.
41969 2010-09-04  Bruno Haible  <bruno@clisp.org>
41971         gnulib-tool: Avoid error when run in a package without Makefile.am.
41972         * gnulib-tool: When collecting the m4dirs in a package that does not
41973         have a Makefile.am, eliminate those directories that contain no
41974         gnulib-cache.m4. Fix expression that counts these directories.
41976 2010-09-04  Bruno Haible  <bruno@clisp.org>
41978         update-copyright test: Improve output when perl is missing or too old.
41979         * tests/test-update-copyright.sh: Move test of Perl version down after
41980         the test whether Perl exists. Provide an explanation relating Perl's
41981         error message to Automake's SKIP: message.
41983 2010-09-04  Bruno Haible  <bruno@clisp.org>
41985         Don't augment PATH in TESTS_ENVIRONMENT.
41986         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
41987         set abs_aux_dir instead of augmenting PATH.
41988         * modules/vc-list-files-tests (Makefile.am): Likewise.
41989         * tests/test-update-copyright.sh: Augment PATH here.
41990         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
41991         path_prepend_.
41992         * tests/test-vc-list-files-git.sh: Likewise.
41994 2010-09-04  Jim Meyering  <meyering@redhat.com>
41996         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
41997         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
41999 2010-09-04  Bruno Haible  <bruno@clisp.org>
42001         strdup: Fix compilation error in C++ mode.
42002         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
42003         the macro.
42005 2010-09-04  Bruno Haible  <bruno@clisp.org>
42007         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
42008         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
42009         macro into a function.
42010         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
42012 2010-09-04  Bruno Haible  <bruno@clisp.org>
42014         Set PATH_SEPARATOR the same way autoconf does.
42015         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
42016         the value of PATH_SEPARATOR the same way autoconf-generated configure
42017         scripts do.
42018         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
42019         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42021 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42023         Set PATH_SEPARATOR the same way autoconf does.
42024         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
42025         the same way autoconf-generated configure scripts do.
42026         * posix-modules: Likewise.
42028 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
42030         hash: fix safe_hasher const typo
42031         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
42032         const; otherwise, there is a type error later.
42034 2010-09-02  Jim Meyering  <meyering@redhat.com>
42036         test-update-copyright.sh: require perl 5.8.0
42037         * tests/test-update-copyright.sh: Require 5.8.0,
42038         which Tom G. Christensen has confirmed is adequate,
42039         while 5.6.1 is not.
42041 2010-09-02  Eric Blake  <eblake@redhat.com>
42043         tests: init.sh improvements for re-exec'ing with zsh
42044         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
42045         -vx through shell re-exec.
42046         Reported by Tom G. Christensen.
42048         wctype: fix typo in previous commit
42049         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
42050         Reported by Ludovic Courtès.
42052 2010-09-02  Jim Meyering  <meyering@redhat.com>
42054         test-update-copyright.sh: skip test if Perl is too old
42055         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
42056         Reported by Tom G. Christensen.
42058 2010-09-02  Bruno Haible  <bruno@clisp.org>
42060         wctype: Avoid compilation error on IRIX 6.5.30.
42061         * lib/wctype.in.h (iswblank): Declare with a replacement if
42062         REPLACE_ISWBLANK is set.
42063         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
42064         declared. Set REPLACE_ISWBLANK.
42065         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
42066         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
42067         * doc/posix-headers/wctype.texi: Likewise.
42068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42070 2010-09-01  Bruno Haible  <bruno@clisp.org>
42072         New module 'socketlib'.
42073         * modules/socketlib: New file.
42074         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
42075         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
42076         * modules/sockets (Depends-on): Add socketlib.
42077         Suggested by Sam Steingold <sds@gnu.org>.
42079 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42081         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
42083         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
42084         when one needs search access to a directory but not read access.
42085         On systems where it is available, it works in some cases where
42086         O_RDONLY does not, namely on directories that are searchable but
42087         not readable, and which need only to be searchable.  If O_SEARCH
42088         is not available, fall back to the traditional method of using
42089         O_RDONLY.
42091         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
42092         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
42093         when opening a directory that needs only to be searchable.
42094         * lib/chdir-safer.c (chdir_no_follow): Likewise.
42095         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
42096         * lib/openat-proc.c (openat_proc_name): Likewise.
42097         * lib/openat.c (openat_needs_fchdir): Likewise.
42098         * lib/save-cwd.c (save_cwd): Likewise.
42099         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
42101 2010-08-28  Bruno Haible  <bruno@clisp.org>
42103         New module 'host-cpu-c-abi'.
42104         * modules/host-cpu-c-abi: New file.
42105         * m4/host-cpu-c-abi.m4: New file, based on part of
42106         clisp/src/m4/general.m4.
42107         Requested by Sam Steingold <sds@gnu.org>.
42109 2010-08-31  Eric Blake  <eblake@redhat.com>
42110         and Jim Meyering  <meyering@redhat.com>
42112         hash: factor, and guard against misbehaving hasher function
42113         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
42114         of table->hasher's return value.  Also protect against a hash value
42115         so large that adding it to table->bucket results in a NULL pointer.
42116         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
42117         Use it in place of open-coded check-and-abort.
42119 2010-08-30  Bruno Haible  <bruno@clisp.org>
42121         hash: silence spurious clang warning
42122         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
42123         Reported by Eric Blake.
42125 2010-08-30  Eric Blake  <eblake@redhat.com>
42127         strstr, memmem, strcasestr: avoid leaked shell message
42128         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
42129         FreeBSD.
42130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42133         tests: silence clang warning
42134         * tests/test-malloca.c (do_allocation): Avoid dead store.
42136 2010-08-29  Bruno Haible  <bruno@clisp.org>
42138         gettext: Fix recent mistake.
42139         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
42141 2010-08-29  Bruno Haible  <bruno@clisp.org>
42143         selinux-h: Offer a --without-selinux option.
42144         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
42145         --without-selinux was specified, skip all tests and define
42146         HAVE_SELINUX_SELINUX_H to 0.
42147         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
42148         set LIB_SELINUX to empty.
42149         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
42150         gl_LIBSELINUX. If --without-selinux was specified, replace
42151         selinux/context.h.
42152         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
42154 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42155             Bruno Haible  <bruno@clisp.org>
42157         Make the module 'realloc-gnu' work again on AIX and OSF/1.
42158         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
42159         of HAVE_REALLOC.
42160         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
42161         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
42162         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
42163         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
42165 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42166             Bruno Haible  <bruno@clisp.org>
42168         Make the module 'calloc-gnu' work again on AIX and OSF/1.
42169         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
42170         HAVE_CALLOC.
42171         * lib/xmalloc.c: Update accordingly.
42172         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
42173         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
42174         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
42176 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42177             Bruno Haible  <bruno@clisp.org>
42179         Make the module 'malloc-gnu' work again on AIX and OSF/1.
42180         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
42181         HAVE_MALLOC.
42182         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
42183         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
42184         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
42186 2010-08-29  Bruno Haible  <bruno@clisp.org>
42188         Update modules list.
42189         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42190         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
42191         (String handling <string.h>): Add astrxfrm.
42192         (File system functions): Add readlinkat.
42194 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42196         Tests for module 'realloc-gnu'.
42197         * modules/realloc-gnu-tests: New file.
42198         * tests/test-realloc-gnu.c: New file.
42200         Tests for module 'calloc-gnu'.
42201         * modules/calloc-gnu-tests: New file.
42202         * tests/test-calloc-gnu.c: New file.
42204         Tests for module 'malloc-gnu'.
42205         * modules/malloc-gnu-tests: New file.
42206         * tests/test-malloc-gnu.c: New file.
42208 2010-08-28  Bruno Haible  <bruno@clisp.org>
42210         Rename module 'realloc' -> 'realloc-gnu'.
42211         * modules/realloc-gnu: New file, copied from modules/realloc.
42212         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
42213         obsolete.
42214         * modules/mgetgroups (Depends-on): Update.
42215         * doc/posix-functions/realloc.texi: Update.
42216         * NEWS: Mention the change.
42218         Rename module 'calloc' -> 'calloc-gnu'.
42219         * modules/calloc-gnu: New file, copied from modules/calloc.
42220         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
42221         obsolete.
42222         * doc/posix-functions/calloc.texi: Update.
42223         * NEWS: Mention the change.
42225         Rename module 'malloc' -> 'malloc-gnu'.
42226         * modules/malloc-gnu: New file, copied from modules/malloc.
42227         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
42228         obsolete.
42229         * modules/argp (Depends-on): Update.
42230         * modules/regex (Depends-on): Update.
42231         * doc/posix-functions/malloc.texi: Update.
42232         * NEWS: Mention the change.
42234 2010-08-28  Eric Blake  <eblake@redhat.com>
42236         pread, pwrite: add missing dependency
42237         * modules/pread (Depends-on): Add extensions.
42238         * modules/pwrite (Depends-on): Likewise.
42240 2010-08-28  Bruno Haible  <bruno@clisp.org>
42242         unistr/u*-strchr: Fix tests dependencies.
42243         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
42244         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
42245         Reported by Ian Beckwith <ianb@erislabs.net>.
42247 2010-08-28  Bruno Haible  <bruno@clisp.org>
42249         read-file: Don't occupy too much unused memory.
42250         * lib/read-file.c (fread_file): Shrink the buffer at the end.
42252 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
42253             Eric Blake  <eblake@redhat.com>
42254             Bruno Haible  <bruno@clisp.org>
42256         read-file: Avoid memory reallocations with regular files.
42257         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
42258         (fread_file): With regular files, use the remaining length as the
42259         initial buffer size.  Check against overflow.
42260         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
42261         sys_stat.
42263 2010-08-28  Bruno Haible  <bruno@clisp.org>
42265         ftello: Relax license.
42266         * modules/ftello (License): Relax to LGPLv2+.
42267         Reported by Eric Blake.
42269 2010-08-28  Bruno Haible  <bruno@clisp.org>
42271         Avoid relocwrapper link errors due to gnulib replacement functions.
42272         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
42273         function.
42274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42276 2010-08-28  Bruno Haible  <bruno@clisp.org>
42278         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
42279         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
42280         defined.
42281         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
42282         Suggested by Eric Blake.
42284 2010-08-28  Bruno Haible  <bruno@clisp.org>
42286         sys_socket, netdb: Ensure socklen_t gets defined.
42287         * modules/sys_socket (Depends-on): Add socklen.
42288         * modules/netdb (Depends-on): Likewise.
42289         * modules/getaddrinfo (Depends-on): Remove socklen.
42290         * modules/getsockopt (Depends-on): Likewise.
42291         * modules/setsockopt (Depends-on): Likewise.
42292         * tests/test-sys_socket.c: Check that socklen_t is defined.
42293         * tests/test-netdb.c: Likewise.
42294         * m4/socklen.m4: Update comments.
42295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42297 2010-08-27  Eric Blake  <eblake@redhat.com>
42299         login_tty: add missing dependency
42300         * modules/login_tty (Depends-on): Add pty.
42302 2010-08-26  Eric Blake  <eblake@redhat.com>
42304         lib-symbol-versions: fix m4 quoting
42305         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
42306         format for AC_LINK_IFELSE.
42308         glob: fix compile test
42309         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
42311         btowc: fix missing file
42312         * modules/btowc (Files): Also ship locale-fr.m4.
42314         lseek: fix link test
42315         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
42316         AC_LINK_IFELSE.
42318         include_next: silence autoconf 2.68 warning
42319         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
42320         AC_COMPILE_IFELSE as special.
42321         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
42322         autoconf < 2.68.
42324         acl: fix compilation test
42325         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
42326         AC_COMPILE_IFELSE.
42328 2010-08-26  Bruno Haible  <bruno@clisp.org>
42330         Modernize AC_TRY_RUN invocations.
42331         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
42332         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
42333         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
42334         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
42335         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
42336         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
42337         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
42338         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42339         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
42340         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42341         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
42342         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42343         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
42344         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
42346         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
42347         gl_MBRLEN_NUL_RETVAL): Likewise.
42348         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42349         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42350         Likewise.
42351         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42352         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42353         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
42354         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
42355         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
42356         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
42357         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
42358         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
42359         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
42360         Likewise.
42361         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42362         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
42363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42364         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42365         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
42366         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
42367         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42368         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
42369         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42372 2010-08-26  Bruno Haible  <bruno@clisp.org>
42374         Modernize AC_TRY_LINK invocations.
42375         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
42376         AC_TRY_LINK.
42377         * m4/argp.m4 (gl_ARGP): Likewise.
42378         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
42379         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
42380         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42381         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42382         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42383         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
42384         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
42385         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
42386         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42387         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42388         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42389         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
42390         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
42391         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
42392         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42393         * m4/hostent.m4 (gl_HOSTENT): Likewise.
42394         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42395         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
42396         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42397         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
42398         Likewise.
42399         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
42400         Likewise.
42401         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
42402         Likewise.
42403         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42404         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
42405         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
42406         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
42407         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
42408         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
42409         * m4/servent.m4 (gl_SERVENT): Likewise.
42410         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
42411         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
42412         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
42413         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
42414         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42415         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
42416         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
42417         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
42418         * modules/tsearch-tests (configure.ac): Likewise.
42420 2010-08-26  Bruno Haible  <bruno@clisp.org>
42422         Modernize AC_TRY_COMPILE invocations.
42423         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
42424         AC_TRY_COMPILE.
42425         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
42426         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
42427         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42428         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42429         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42430         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42431         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42432         * m4/lock.m4 (gl_LOCK): Likewise.
42433         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
42434         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42435         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
42436         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42437         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42438         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
42439         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
42441         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42442         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42443         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42444         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42445         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
42446         extraneous semicolon.
42448 2010-08-26  Jim Meyering  <meyering@redhat.com>
42450         stat-time: relax license LGPL
42451         * modules/stat-time (License): Change from GPL to LGPL,
42452         with consent from all contributors, for use in libguile.
42453         Requested by Ludovic Courtès.
42455 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
42457         poll: return immediately on POLLHUP.
42458         * lib/poll.c (poll): Always set timeout before wait_timeout is
42459         computed.
42461 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42463         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
42464         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
42465         rmdir ("dir/.//"), unlinkat.
42467 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42469         stdbool: avoid spurious failure with modern xlc
42470         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
42472 2010-08-24  Bruno Haible  <bruno@clisp.org>
42474         getloadavg: simplify code
42475         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
42476         gl_have_func. Update comments.
42478 2010-08-24  Eric Blake  <eblake@redhat.com>
42480         getloadavg: don't define SVR4 on cygwin
42481         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
42482         only define SVR4 when -lkvm is required.
42483         Reported by Yaakov Selkowitz.
42485 2010-08-24  Bruno Haible  <bruno@clisp.org>
42487         priv-set: fix comment
42488         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
42490 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42492         priv-set: fix comments
42493         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
42494         to match code, as suggested by David Bartley in:
42495         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
42497 2010-08-23  Eric Blake  <eblake@redhat.com>
42499         stdbool: avoid rejecting clang
42500         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
42501         * tests/test-stdbool.c: Enable more tests if using the system
42502         <stdbool.h> instead of the gnulib replacement.
42503         (main): Move xlc bug test to a runtime test for all compilers.
42504         Reported by Anders Kaseorg.
42506         argz: fix shell quoting issue
42507         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
42508         Reported by Charles Wilson.
42510 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
42511             Erik Faye-Lund <kusmabite@gmail.com>
42513         poll, select: handle ERROR_BROKEN_PIPE.
42514         * lib/poll.c (win32_compute_revents): Return POLLHUP when
42515         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
42516         * lib/select.c (win32_compute_revents): Do not mark a pipe
42517         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
42519 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
42521         fts: allow compilation with C++
42522         * lib/fts_.h: Specify extern "C" linkage with C++.
42524 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42526         Fix gnulib-tool sed script de-commentation for AIX sed.
42527         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
42528         sed.
42530 2010-08-17  Eric Blake  <eblake@redhat.com>
42532         test-stddef: test for (some) offsetof bugs
42533         * tests/test-stddef.c: Enhance test to ensure correct type of
42534         offsetof.
42535         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
42536         that we are not fixing at this time.
42538 2010-08-15  Bruno Haible  <bruno@clisp.org>
42540         stpncpy: Allow stpncpy to be defined as a macro.
42541         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
42542         if it's already correctly declared.
42543         * lib/string.in.h (stpncpy): Undefine before redefining.
42544         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
42546 2010-08-14  Bruno Haible  <bruno@clisp.org>
42548         Rename module 'memxfrm' to 'amemxfrm'.
42549         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
42550         (amemxfrm): Renamed from memxfrm.
42551         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
42552         (amemxfrm): Renamed from memxfrm.
42553         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
42554         * NEWS: Mention the change.
42555         * MODULES.html.sh (String handling <string.h>): Update.
42556         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
42557         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
42558         * lib/unicase/u16-casexfrm.c: Likewise.
42559         * lib/unicase/u32-casexfrm.c: Likewise.
42560         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
42561         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
42562         * lib/uninorm/u16-normxfrm.c: Likewise.
42563         * lib/uninorm/u32-normxfrm.c: Likewise.
42564         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
42565         memxfrm.
42566         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
42567         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
42568         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
42569         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
42570         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
42571         Suggested by Paul Eggert.
42573 2010-08-14  Bruno Haible  <bruno@clisp.org>
42575         Tests for module 'astrxfrm'.
42576         * modules/astrxfrm-tests: New file.
42577         * tests/test-astrxfrm.c: New file.
42579         New module 'astrxfrm'.
42580         * lib/astrxfrm.h: New file.
42581         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
42582         * modules/astrxfrm: New file.
42584 2010-08-14  Reuben Thomas <rrt@sc3d.org>
42586         regex: Tweak doc.
42587         * doc/regex.texi (Overview): Don't mention regex.c.
42588         (GNU Regular Expression Compiling): Likewise.
42589         (Match-end-of-line Operator): Mention 'not_eol'.
42591 2010-08-14  Brian Gough  <bjg@gnu.org>
42592             Bruno Haible  <bruno@clisp.org>
42594         git-merge-changelog: add doc relating to use with bzr and hg.
42595         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
42597 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
42599         pthread: fix pthread.h creation for srcdir != builddir
42600         * modules/pthread (Makefile.am): Fix the rule to work also in a
42601         non-srcdir build.
42603 2010-08-13  Karl Berry  <karl@gnu.org>
42605         * doc/regex.texi (Predefined Syntaxes): @smallexample.
42606         * doc/posix-*/*: force line break before @url of POSIX
42607         specifications.
42608         Suggested by Werner Lemberg.
42610 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42612         strtod: fix const diagnostic
42613         * lib/strtod.c (strtod): Don't assign const char * to char *,
42614         as this elicits a warning from GCC when warnings are enabled.
42616 2010-08-10  Pádraig Brady <P@draigbrady.com>
42617         and Eric Blake  <eblake@redhat.com>
42619         copy-acl: ignore ENOTSUP on HP-UX
42620         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
42621         so that it is available for HP-UX.
42622         * lib/copy-acl.c (qcopy_acl): Use it.
42623         Reported by Patrick M. Callahan.
42625 2010-08-10  Eric Blake  <eblake@redhat.com>
42627         open, chown: relax license
42628         * modules/open (License): Change to LGPLv2+, with consent by all
42629         authors, for use in augeas.
42630         * modules/chown (License): Likewise.
42631         * modules/lchown (Likewise): Likewise.
42632         Requested by Adam Stokes.
42634 2010-08-09  Karl Berry  <karl@gnu.org>
42636         * build-aux/ar-lib: new file, import from Automake.
42637         * config/srclist.txt: autocheck for updates.
42639 2010-08-09  Eric Blake  <eblake@redhat.com>
42641         readlinkat: adjust client modules
42642         * modules/areadlinkat (Depends-on): Use readlinkat, not
42643         symlinkat.
42644         * modules/areadlinkat-with-size (Depends-on): Likewise.
42646         mknod: be more vocal about danger of running tests as root
42647         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
42648         root, since that is just asking for problems.
42649         Suggested by Bruno Haible, based on a report by Rainer Tammer.
42651         readlinkat: split into its own module
42652         * modules/symlinkat: Split readlinkat...
42653         * modules/readlinkat: ...into separate module.
42654         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
42655         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
42656         * lib/symlinkat.c (readlinkat): Move...
42657         * lib/readlinkat.c: ...into new file.
42658         * modules/symlinkat-tests: Split readlinkat test...
42659         * modules/readlinkat-tests: ...into separate module.
42660         * tests/test-symlinkat.c: Split...
42661         * tests/test-readlinkat.c: ...into new file.
42662         * NEWS: Document the split.
42663         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42664         * lib/unistd.in.h (readlinkat): Likewise.
42665         Suggested by Bruno Haible.
42667 2010-08-08  Bruno Haible  <bruno@clisp.org>
42669         memxfrm: Speed up.
42670         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
42671         that usually only one call to strxfrm is necessary for each string
42672         part.
42673         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42675 2010-08-07  Karl Berry  <karl@gnu.org>
42677         * doc/posix-headers/limits.texi,
42678         * doc/posix-functions/malloc.texi,
42679         * doc/posix-functions/strsignal.texi: missing @item.
42680         * doc/ld-version-script.texi: spurious leading i.
42681         * doc/regex.texi (Interval Operators): no commas inside @var.
42683 2010-08-01  Bruno Haible  <bruno@clisp.org>
42685         Integrate the regex documentation.
42686         * doc/gnulib.texi: Define 'cn' index.
42687         (Regular expressions): New a chapter that includes regex.texi and
42688         regexprops-generic.texi.
42689         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
42690         syntax.
42692         Whitespace cleanup.
42693         * doc/regex.texi: Remove trailing spaces.
42695         Add regex documentation.
42696         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
42697         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
42698         Written by Kathy A. Hargreaves and Karl Berry.
42700 2010-08-01  Bruno Haible  <bruno@clisp.org>
42702         link: Update documentation.
42703         * doc/posix-functions/link.texi: Update regarding Solaris.
42705 2010-07-31  Bruno Haible  <bruno@clisp.org>
42707         Update modules list.
42708         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
42709         (String handling <string.h>): Add memcmp2, memxfrm.
42710         (Container data structures): Add xlist, xsublist, xoset.
42711         (Core language properties): Add alignof, unused-parameter.
42712         (Process control, Numeric conversion functions <stdlib.h>): Renamed
42713         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
42714         (Unibyte characters <ctype.h>): New section.
42715         (String handling <string.h>): New section.
42716         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
42717         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
42718         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
42719         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
42720         tan, tanh, tanl, y0, y1, yn.
42721         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
42722         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
42723         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
42724         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
42725         unlockpt, vdprintf, vdprintf-posix.
42726         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
42727         (File system functions): Add concat-filename, sys_file, sys_ioctl,
42728         xconcat-filename.
42729         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
42730         getdtablesize, pipe2, pipe2-safer.
42731         (Security): New section.
42732         (Networking functions): Add accept4.
42733         (Signal handling): Add sigpipe.
42734         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
42735         mbmemcasecoll.
42736         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
42737         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
42738         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
42739         pipe-filter-ii.
42740         (Misc): Add argp-version-etc, login_tty, parse-duration.
42742 2010-07-31  Bruno Haible  <bruno@clisp.org>
42744         Improve doc in MODULES.html.
42745         * modules/linkat (Description): Add the word "function".
42746         * modules/mkfifo (Description): Likewise.
42747         * modules/mknod (Description): Likewise.
42748         * modules/remove (Description): Likewise.
42749         * modules/renameat (Description): Likewise.
42750         * modules/stat (Description): Likewise.
42751         * modules/symlink (Description): Likewise.
42752         * modules/unlink (Description): Likewise.
42754 2010-07-31  Bruno Haible  <bruno@clisp.org>
42756         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
42757         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
42758         option --enable/disable-c++ instead of --enable/disable-cxx.
42759         * NEWS: Mention the change.
42761 2010-07-31  Bruno Haible  <bruno@clisp.org>
42763         readlink, areadlink: Relax test a bit.
42764         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
42765         alternative to ENOTDIR.
42766         * tests/test-areadlink.h (test_areadlink): Likewise.
42767         Reported by Rainer Tammer.
42769 2010-07-31  Bruno Haible  <bruno@clisp.org>
42771         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
42772         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
42773         character, perform the search using U_STRCHR.
42774         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
42775         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
42776         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
42777         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
42778         Suggested by Paolo Bonzini.
42780 2010-07-31  Bruno Haible  <bruno@clisp.org>
42782         unistr/u*-strstr: Fix dependencies.
42783         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
42784         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
42785         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
42787 2010-07-31  Bruno Haible  <bruno@clisp.org>
42789         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
42790         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
42791         the beginning of the loop.
42792         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
42793         cases in 'switch' statement.
42795         unistr/u8-strchr: Fix several bugs.
42796         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
42797         the string. When not found, return NULL, not a pointer near the end.
42799         More tests for unistr/u8-strchr.
42800         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
42801         that the function does not read past the first occurrence of the byte
42802         being searched.
42803         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
42804         * tests/unistr/test-u16-strchr.c (main): New function.
42805         * tests/unistr/test-u32-strchr.c (main): New function.
42807 2010-07-31  Bruno Haible  <bruno@clisp.org>
42809         posix-modules: Ignore backup files of documentation files.
42810         * posix-modules: grep only through files named *.texi.
42812 2010-07-31  Bruno Haible  <bruno@clisp.org>
42814         symlinkat: Fix documentation.
42815         * doc/posix-functions/readlinkat.texi: Fix module name.
42817 2010-07-31  Bruno Haible  <bruno@clisp.org>
42819         fchownat: Replace also when chown has the trailing slash bug.
42820         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
42821         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
42822         introduced on 2010-04-10.
42823         Reported by Rainer Tammer.
42825 2010-07-31  Bruno Haible  <bruno@clisp.org>
42827         linkat: Work around AIX 7.1 bug.
42828         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
42829         whether linkat handles trailing slash correctly. If not, replace linkat
42830         and define LINKAT_TRAILING_SLASH_BUG.
42831         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
42832         check whether (fd1,file1) points to a directory if file1 or file2 ends
42833         in a slash. Code taken from lib/link.c.
42834         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
42835         Reported by Rainer Tammer.
42837 2010-07-31  Bruno Haible  <bruno@clisp.org>
42839         Correctly determine whether pow is available in libc on AIX 7 with xlc.
42840         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
42841         This disables an xlc optimization that was causing wrong test results.
42842         Reported by Rainer Tammer.
42844 2010-07-31  Bruno Haible  <bruno@clisp.org>
42846         iconv: Work around AIX 6.1..7.1 bug.
42847         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
42848         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
42849         cross-compiling, guess no on all versions of AIX.
42850         Reported by Rainer Tammer.
42852 2010-07-31  Bruno Haible  <bruno@clisp.org>
42854         readlink: Relax test a bit.
42855         * tests/test-readlink.h (test_readlink): Allow different errno value
42856         when readlink is called with a file name that ends in / and refers to
42857         a file.
42858         Suggested by Eric Blake.
42859         Reported by Rainer Tammer.
42861 2010-07-31  Bruno Haible  <bruno@clisp.org>
42863         copysign: Does not require -lm on glibc systems.
42864         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
42865         gl_COMMON_DOUBLE_MATHFUNC.
42866         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
42868 2010-07-31  Bruno Haible  <bruno@clisp.org>
42870         duplocale: Work around AIX 7.1 bug.
42871         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
42872         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
42873         * lib/duplocale.c (rpl_duplocale): Update comment.
42874         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
42875         Reported by Rainer Tammer.
42877 2010-07-30  Bruno Haible  <bruno@clisp.org>
42879         dirfd: Avoid link error on AIX 7.1.
42880         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
42881         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
42882         exist, set REPLACE_DIRFD.
42883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
42884         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
42885         * doc/posix-functions/dirfd.texi: Update.
42886         Reported by Rainer Tammer.
42888 2010-07-30  Eric Blake  <eblake@redhat.com>
42890         strtod: next round of AIX fixes
42891         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
42892         exponent.
42893         * tests/test-strtod.c (main): Enhance tests.
42894         * doc/posix-functions/strtod.texi (strtod): Document next bug.
42895         Reported by Rainer Tammer.
42897         futimens: fix configure check
42898         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
42899         Reported by Bruno Haible.
42901 2010-07-30  Bruno Haible  <bruno@clisp.org>
42903         getline: Update regarding AIX.
42904         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
42905         Reported by Rainer Tammer.
42907 2010-07-30  Bruno Haible  <bruno@clisp.org>
42909         wcwidth: Drop replacement on AIX 7.
42910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
42911         AIX 7.
42912         Reported by Rainer Tammer.
42914 2010-07-30  Bruno Haible  <bruno@clisp.org>
42916         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
42917         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
42918         a 'char *'.
42919         Reported by Rainer Tammer.
42921 2010-07-30  Bruno Haible  <bruno@clisp.org>
42923         unlink: Update regarding AIX.
42924         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
42925         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
42926         Reported by Rainer Tammer.
42928 2010-07-30  Bruno Haible  <bruno@clisp.org>
42930         symlink: Update regarding AIX.
42931         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
42932         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
42933         Reported by Rainer Tammer.
42935 2010-07-30  Bruno Haible  <bruno@clisp.org>
42937         strndup: Update regarding AIX.
42938         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
42939         AIX 7.
42940         Reported by Rainer Tammer.
42942 2010-07-30  Bruno Haible  <bruno@clisp.org>
42944         stat: Update regarding AIX.
42945         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
42946         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
42947         Reported by Rainer Tammer.
42949 2010-07-30  Bruno Haible  <bruno@clisp.org>
42951         truncl: Fix autoconf test.
42952         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
42953         whether truncl works.
42954         Reported by Rainer Tammer.
42956 2010-07-30  Bruno Haible  <bruno@clisp.org>
42958         round: Update regarding AIX.
42959         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
42960         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
42961         Reported by Rainer Tammer.
42963 2010-07-30  Bruno Haible  <bruno@clisp.org>
42965         rename: Update regarding AIX.
42966         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
42967         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
42968         Reported by Rainer Tammer.
42970 2010-07-30  Bruno Haible  <bruno@clisp.org>
42972         printf.m4: Update regarding AIX.
42973         * m4/printf.m4: Update comments regarding AIX.
42974         Reported by Rainer Tammer.
42976 2010-07-30  Bruno Haible  <bruno@clisp.org>
42978         iconv: Update regarding AIX.
42979         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
42980         AIX 7.
42981         Reported by Rainer Tammer.
42983 2010-07-30  Bruno Haible  <bruno@clisp.org>
42985         getopt: Update regarding AIX.
42986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
42987         no on AIX.
42988         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
42989         Reported by Rainer Tammer.
42991 2010-07-30  Bruno Haible  <bruno@clisp.org>
42993         ldexpl; Update regarding AIX.
42994         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
42995         on AIX 7.
42996         Reported by Rainer Tammer.
42998 2010-07-30  Bruno Haible  <bruno@clisp.org>
43000         frexpl: Update regarding AIX.
43001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
43002         on AIX 7.
43003         Reported by Rainer Tammer.
43005 2010-07-30  Bruno Haible  <bruno@clisp.org>
43007         open, fopen: Update regarding AIX.
43008         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
43009         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
43010         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
43011         * doc/posix-functions/fopen.texi: Likewise.
43012         Reported by Rainer Tammer.
43014 2010-07-30  Bruno Haible  <bruno@clisp.org>
43016         chown: Update doc regarding AIX.
43017         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
43018         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
43019         Reported by Rainer Tammer.
43021 2010-07-30  Eric Blake  <eblake@redhat.com>
43023         strtod: fix bug in replacement function on AIX
43024         * lib/strtod.c (strtod): Special case broken "0x" parse in
43025         underlying strtod.
43026         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
43027         * doc/posix-functions/strtod.texi (strtod): Likewise.
43028         Reported by Rainer Tammer.
43030 2010-07-30  Bruno Haible  <bruno@clisp.org>
43032         mbrlen: Fix cross-compilation guess for AIX.
43033         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
43034         guess. Leftover from 2008-12-22.
43036 2010-07-30  Bruno Haible  <bruno@clisp.org>
43038         mbrtowc: Fix cross-compilation guess for AIX.
43039         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
43040         guess. Leftover from 2008-12-21.
43042 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
43044         init.sh: work around trap limitation of some shells
43045         * tests/init.sh (setup_): Move exit trap outside of shell function.
43047 2010-07-29  Eric Blake  <eblake@redhat.com>
43049         strtod: aid debugging
43050         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
43051         understanding why strtod is rejected.
43053 2010-07-28  Bruno Haible  <bruno@clisp.org>
43055         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
43056         * lib/unistr/u8-chr.c: Include <string.h>.
43057         * tests/unistr/test-u8-chr.c: Likewise.
43058         * tests/unistr/test-u16-chr.c: Likewise.
43059         * tests/unistr/test-u32-chr.c: Likewise.
43060         * tests/unistr/test-u8-strchr.c: Likewise.
43061         * tests/unistr/test-u16-strchr.c: Likewise.
43062         * tests/unistr/test-u32-strchr.c: Likewise.
43063         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
43064         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
43065         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
43066         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
43068 2010-07-28  Bruno Haible  <bruno@clisp.org>
43070         Use spaces for indentation, not tabs.
43071         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43073 2010-07-27  Bruno Haible  <bruno@clisp.org>
43075         mbspcasecmp: Fix function specification.
43076         * lib/string.in.h (mbspcasecmp): Fix specification comment.
43077         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
43078         Reported by Eric Blake <eblake@redhat.com>.
43080 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
43082         timespec: use cast and not conditional, as truncation isn't possible
43083         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
43084         instead of a conditional.  Comment about the situation in more detail.
43085         This undoes most of the 2009-10-29 patch.
43087 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
43089         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
43090         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
43091         * lib/unistr/u8-strchr.c: Likewise.
43092         * modules/unistr/u8-chr: Depend on memchr.
43094         unistr/u*-strchr: add tests
43095         * modules/unistr/u8-strchr-tests: New file.
43096         * modules/unistr/u16-strchr-tests: New file.
43097         * modules/unistr/u32-strchr-tests: New file.
43098         * tests/unistr/test-strchr.h: New file.
43099         * tests/unistr/test-u8-strchr.c: New file.
43100         * tests/unistr/test-u16-strchr.c: New file.
43101         * tests/unistr/test-u32-strchr.c: New file.
43103         unistr/u*-chr: test multibyte sequences more
43104         * tests/unistr/test-chr.h: Do complete testing of the characters in the
43105         test vector.
43106         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
43107         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
43108         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
43110         unistr/u*-chr: test multibyte sequences
43111         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
43113         unistr/u*-chr: prepare for multibyte tests
43114         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
43115         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
43116         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
43117         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
43118         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
43119         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
43121 2010-07-18  Bruno Haible  <bruno@clisp.org>
43123         unistr/u8-strchr: Optimize non-ASCII argument case.
43124         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
43125         because the first byte often matches anyway.
43126         Reported by Pádraig Brady <P@draigbrady.com>.
43128 2010-07-15  Karl Berry  <karl@gnu.org>
43130         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
43132 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
43134         getcwd: on Solaris, work better if ancestors are inaccessible
43135         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
43136         buffer and size, try again with a large buffer.  This works better
43137         on Solaris, since its getcwd succeeds even if the path to the root
43138         is inaccessible, and this is helpful in common cases such as .zfs
43139         hidden directories.  Problem reported by J Chapman Flack in
43140         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
43141         Use system getcwd if it's declared, not merely if it's partly
43142         working; use the partly-working test only to avoid needless effort
43143         if the system getcwd fails.
43144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
43145         comment that was already obsolete and is now even more obsolete.
43146         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
43147         now might call strdup.
43149 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
43151         pthread: Add enough so that coreutils/src/sort.c compiles.
43152         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
43153         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
43154         gnulib. Include <sched.h> and <time.h>, as per POSIX.
43155         Include <sys/types.h>, in case it defines pthread_t.
43156         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
43157         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
43158         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
43159         (pthread_rwlockattr_t, pthread_spinlock_t):
43160         New typedefs, if HAVE_PTHREAD_T is not defined.
43161         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
43162         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
43163         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
43164         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
43165         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
43166         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
43167         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
43168         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
43169         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
43170         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
43171         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
43172         New macros.
43173         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
43174         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
43175         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
43176         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
43177         (pthread_spin_unlock): New dummy functions.
43178         (pthread_create): Return EAGAIN; don't set errno.
43179         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
43180         require AC_C_INLINE.
43181         * modules/pthread (Depends-on): Add sched, time.
43182         (pthread.h): Use AM_V_GEN.
43184 2010-07-13  Bruno Haible  <bruno@clisp.org>
43186         striconveh: Don't malloc memory if the result buffer is sufficient.
43187         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
43188         buffer if its size is sufficient.
43189         Reported by Ludovic Courtès <ludo@gnu.org>.
43191 2010-07-13  Bruno Haible  <bruno@clisp.org>
43193         strtod: Add safety check.
43194         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
43196 2010-07-12  Bruno Haible  <bruno@clisp.org>
43198         Unify tests that set gl_cv_func_ldexpl_no_libm.
43199         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
43200         gl_FUNC_LDEXPL.
43201         (gl_FUNC_LDEXPL): Invoke it.
43202         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43204 2010-07-12  Bruno Haible  <bruno@clisp.org>
43206         Unify tests that set gl_cv_func_ldexp_no_libm.
43207         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
43208         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
43209         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
43210         (configure.ac): Simply invoke gl_FUNC_LDEXP.
43211         * modules/strtod (Files): Add m4/ldexp.m4.
43213 2010-07-12  Bruno Haible  <bruno@clisp.org>
43215         Unify tests that set gl_cv_func_frexpl_no_libm.
43216         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
43217         gl_FUNC_FREXPL_NO_LIBM.
43218         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
43219         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43221 2010-07-12  Bruno Haible  <bruno@clisp.org>
43223         Unify tests that set gl_cv_func_frexp_no_libm.
43224         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
43225         gl_FUNC_FREXP_NO_LIBM.
43226         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
43227         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
43229 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
43231         memcoll: clarify sizes versus lengths, document better, and tweak perf
43232         * lib/memcoll.c (strcoll_loop, memcoll0):
43233         Improve quality of descriptive comments.  Name variables
43234         consistently as to whether they are lengths (which do not include
43235         terminating null) versus sizes (which do).
43236         * lib/xmemcoll.c (xmemcoll0): Likewise.
43237         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
43238         returned when s1size == 0; this is easier to compile and saves
43239         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
43241 2010-07-12  Bruno Haible  <bruno@clisp.org>
43243         Tests for module '_Exit'.
43244         * modules/_Exit-tests: New file.
43245         * tests/test-_Exit.sh: New file.
43246         * tests/test-_Exit.c: New file.
43248         New module '_Exit'.
43249         * lib/stdlib.in.h (__attribute__): New macro.
43250         (_Exit): New declaration.
43251         * lib/_Exit.c: New file.
43252         * m4/_Exit.m4: New file.
43253         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
43254         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
43255         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
43256         * modules/_Exit: New file.
43257         * tests/test-stdlib-c++.cc (_Exit): Check signature.
43258         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
43260 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
43262         strtod: make it more-accurate typically, and don't require libm
43263         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
43264         Include limits.h.  Don't include string.h.
43265         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
43266         (locale_isspace): New function, so that no casts are needed to
43267         check whether *s is a space.
43268         (ldexp): Provide an unused dummy if not available.
43269         (scale_radix_exp, parse_number, underlying_strtod): New functions.
43270         (strtod): Use them.  This implementation prefers to use the
43271         underlying strtod if available, falling back on our own code
43272         only to fix known bugs.  This is more likely to produce an
43273         accurate result.  Also, it avoids the use of libm functions.
43274         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
43275         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
43276         was absent, but it caused a test failure with coreutils.
43277         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
43278         with libm.
43279         * modules/strtod (Makefile.am, Link): libm is no longer needed.
43280         * modules/strtod-tests (Makefile.am): Likewise.
43282 2010-07-11  Pádraig Brady  <P@draigBrady.com>
43283             Bruno Haible  <bruno@clisp.org>
43285         unistr/u8-strchr: Optimize ASCII argument case.
43286         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
43288 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43290         (x)memcoll: minor tweaks
43291         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
43292         is after the type that it qualifies.
43293         (memcoll0): Likewise.
43294         * lib/memcoll.h (memcoll0): Likewise.
43295         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
43296         * lib/xmemcoll.h (xmemcoll0): Likewise.
43297         * lib/memcoll.c (memcoll0): Correct the comment.  This function
43298         differs from memcoll in that the NUL byte is part of the argument.
43299         Omit the abort-checks, as performance is a real issue here.  Plus,
43300         the checks were wrong anyway (an off-by-one error).  Omit local
43301         variable 'diff', as it's a bit clearer that way.
43302         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
43303         no longer needed.
43305 2010-07-08  Chen Guo <chenguo4@yahoo.com>
43307         (x)memcoll: speedup when input is known to be NUL delimited
43308         * lib/memcoll.c: Include stdlib.
43309         (memcoll0): New function.
43310         (strcoll_loop): New function, refactored for use in both memcoll
43311         and memcoll0.
43312         * lib/memcoll.h (memcoll0): Add prototype.
43313         * lib/xmemcoll.c (xmemcoll0): New function.
43314         (collate_error): New function, refactored for use in both xmemcoll
43315         and xmemcoll0.
43316         * lib/xmemcoll.h (xmemcoll0): Add prototype.
43317         * m4/memcoll.m4: add inline invocation.
43319 2010-07-06  Pádraig Brady  <P@draigBrady.com>
43321         * build-aux/bootstrap: Remove any local translations
43322         from the translation project synchronization directory,
43323         so that local only translations are not distributed.
43325 2010-07-04  Bruno Haible  <bruno@clisp.org>
43327         fsusage: Clarify which code applies to which platforms.
43328         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
43329         platform.
43330         * lib/fsusage.c (get_fs_usage): Likewise.
43332 2010-07-04  Bruno Haible  <bruno@clisp.org>
43334         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
43335         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
43336         Reported by Martin Lambers <marlam@marlam.de>.
43338 2010-07-04  Jim Meyering  <meyering@redhat.com>
43340         hash: once again explicitly disallow insertion of NULL
43341         * lib/hash.c (hash_insert0): Reinstate just-removed test:
43342         inserting a NULL pointer cannot work with these functions.
43343         Add a comment with details.
43344         This reverts part of the 2010-07-01 commit, 5bef1a35
43345         "hash: extend module to deal with non-pointer keys".
43347 2010-07-01  Bruno Haible  <bruno@clisp.org>
43349         stdbool: Update doc.
43350         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
43351         Info from Christian Weisgerber <naddy@mips.inka.de>.
43353 2010-07-01  Jim Meyering  <meyering@redhat.com>
43355         hash: extend module to deal with non-pointer keys
43356         * lib/hash.c (hash_insert0): New interface, much like hash_insert
43357         but that allows insertion of non-pointer entries.
43358         Do not disallow an ENTRY value of NULL.
43359         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
43360         * lib/hash.h (hash_insert0): Declare.
43362 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43364         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
43365         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
43366         not present (i.e. with autoconf 2.59 and when using gettextize, not
43367         gnulib), require AC_GNU_SOURCE instead.
43369 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
43371         idpriv-drop: Fix tests.
43372         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
43373         not to the test-idpriv-droptemp program.
43375 2010-06-29  Bruno Haible  <bruno@clisp.org>
43377         string: Fix syntax error with g++ 2.96.
43378         * lib/string.in.h (__pure__): Remove definition.
43379         (_GL_ATTRIBUTE_PURE): New macro.
43380         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
43381         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
43382         Reported by Christian Weisgerber <naddy@mips.inka.de>.
43384 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
43386         unitypes: Fix bug introduced on 2010-05-18.
43387         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
43389 2010-06-22  Eric Blake  <eblake@redhat.com>
43391         memmem: slight optimization
43392         * lib/str-two-way.h (critical_factorization): Update comments.
43393         Reduce work during factorization phase.
43394         Reported by Carlos Bueno <carlos@bueno.org>.
43396 2010-06-21  Bruno Haible  <bruno@clisp.org>
43398         Fix HAVE_CALLOC_POSIX misnomer.
43399         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
43400         !HAVE_CALLOC_POSIX.
43401         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
43402         HAVE_CALLOC_POSIX.
43403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
43404         instead of HAVE_CALLOC_POSIX.
43405         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
43406         HAVE_CALLOC_POSIX.
43408         Use modern idiom for calloc() replacement.
43409         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
43410         AC_FUNC_CALLOC.
43411         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
43412         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
43413         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
43414         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
43415         (gl_REPLACE_CALLOC): New macro.
43417 2010-06-21  Bruno Haible  <bruno@clisp.org>
43419         Fix HAVE_REALLOC_POSIX misnomer.
43420         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
43421         !HAVE_REALLOC_POSIX.
43422         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
43423         HAVE_REALLOC_POSIX.
43424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
43425         instead of HAVE_REALLOC_POSIX.
43426         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
43427         HAVE_REALLOC_POSIX.
43429         Use modern idiom for realloc() replacement.
43430         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
43431         AC_FUNC_REALLOC.
43432         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
43433         Autoconf's AC_FUNC_REALLOC.
43434         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
43435         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
43436         (gl_REPLACE_REALLOC): New macro.
43437         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
43439 2010-06-21  Bruno Haible  <bruno@clisp.org>
43441         Fix HAVE_MALLOC_POSIX misnomer.
43442         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
43443         !HAVE_MALLOC_POSIX.
43444         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
43445         HAVE_MALLOC_POSIX.
43446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
43447         instead of HAVE_MALLOC_POSIX.
43448         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
43449         HAVE_MALLOC_POSIX.
43451         Use modern idiom for malloc() replacement.
43452         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
43453         AC_FUNC_MALLOC.
43454         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
43455         Autoconf's AC_FUNC_MALLOC.
43456         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
43457         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
43458         (gl_REPLACE_MALLOC): New macro.
43459         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
43461 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
43463         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
43464         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
43465         This macro takes 3 arguments, not 4.
43467 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
43469         ipv6: fix detection under mingw
43470         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
43471         in6_addr.
43473 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
43475         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
43476         that strtod() works when cross-compiling to a glibc version known
43477         to work.
43479 2010-06-15  Bruno Haible  <bruno@clisp.org>
43481         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
43483 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
43485         select: Correct timeout.
43486         * lib/select.c (rpl_select): Compute wait_timeout correctly.
43488 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43490         git-version-gen: init shell var to avoid env var influence
43491         * build-aux/git-version-gen (v): Init shell var to empty.
43493 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
43495         priv-set: Don't assume that priv.h exists merely because getppriv does.
43496         See Jan Andersen's bug report about AIX 5L in
43497         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
43498         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
43499         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
43500         * lib/priv-set.h: Likewise.
43501         * tests/test-priv-set.c: Likewise.
43503 2010-06-13  Bruno Haible  <bruno@clisp.org>
43505         relocatable: Make it easier to test whether to install wrappers.
43506         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
43507         RELOCATABLE_VIA_WRAPPER.
43509 2010-06-13  Bruno Haible  <bruno@clisp.org>
43511         gnulib-tool: Display specified modules and dependencies differently.
43512         * gnulib-tool (func_show_module_list): New function.
43513         (func_import, func_create_testdir): Invoke it.
43514         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43516 2010-06-13  Bruno Haible  <bruno@clisp.org>
43518         gnulib-tool: Align code of func_import and func_create_testdir.
43519         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
43520         specified_modules.
43522 2010-06-12  Jim Meyering  <meyering@redhat.com>
43524         test-inttostr: avoid spurious failure on Solaris 9
43525         * tests/test-inttostr.c (main): Skip the test when snprintf fails
43526         to accept "%ju".  Reported by Bruno Haible.
43528 2010-06-11  Jim Meyering  <meyering@redhat.com>
43530         test-sys_socket: mark variables as used more readably
43531         * tests/test-sys_socket.c (main): Mark otherwise unused variables
43532         as "used" explicitly via (void) statement casts.  This is more
43533         readable than using them in an artificial return expression.
43534         Suggestion from Bruno Haible.
43536 2010-06-11  Bruno Haible  <bruno@clisp.org>
43538         Avoid some more warnings from "gcc -Wwrite-strings".
43539         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
43540         to 'const char *'.
43541         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
43542         * tests/test-c-strcasestr.c (main): Likewise.
43543         * tests/test-mbscasestr1.c (main): Likewise.
43544         * tests/test-mbscasestr2.c (main): Likewise.
43545         * tests/test-memmem.c (main): Likewise.
43546         * tests/test-strstr.c (main): Likewise.
43547         * tests/test-strcasestr.c (main): Likewise.
43549 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43551         init.sh: change framework_failure_ to fail with status 99, not 1
43552         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
43553         automake's parallel-tests rule that this is an unexpected failure,
43554         even if the test is listed in XFAIL_TESTS.
43556 2010-06-11  Jim Meyering  <meyering@redhat.com>
43558         test-inttostr: avoid warnings about 4-6KB literal strings
43559         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
43560         Include "macros.h", for its definition of ASSERT.
43561         (CK): s/assert/ASSERT/
43562         * modules/inttostr-tests (Files): Add macros.h.
43564         init.sh: don't use $ME_ or skip_ before they are defined
43565         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
43566         their first uses.  Also hoist their companions: warn_, fail_,
43567         framework_failure_, $stderr_fileno.  Prompted by a patch from
43568         Stefano Lattarini.
43570         test-sys_socket: avoid set-but-not-used warnings from gcc
43571         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
43572         avoid warning about set-but-not-used variables.
43574         test-xvasprintf: avoid 'const' discard warnings
43575         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
43576         "const" when assigning from literal strings.
43577         (test_xasprintf): Add "void" in function argument list to placate
43578         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
43580         tests: avoid compilation warnings in argmatch and exclude tests...
43581         in packages that define ARGMATCH_DIE_DECL, like coreutils.
43582         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
43583         Since it always exits, declare with the "noreturn" attribute.
43584         * tests/test-argmatch.c: Likewise.
43586         tests: avoid 'const' discard warnings in mbsstr tests
43587         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
43588         * tests/test-mbsstr2.c (main): Likewise.
43590         test-verify: avoid warning from gcc's -Wmissing-declarations
43591         * tests/test-verify.c (function): Declare to be static.
43593         test-inttostr.c: include <string.h> for use of strcmp
43594         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
43596         test-linkat: avoid failed assertion on "other" architectures
43597         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
43598         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
43599         sparc: https://bugs.launchpad.net/bugs/591968
43601 2010-06-11  Jim Meyering  <meyering@redhat.com>
43603         printf.m4: avoid autoconf's "Expanded Before Required" warning
43604         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
43605         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
43606         autoconf warning.
43608 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
43610         Replacement header templates are now named with ".in", not "_".
43611         * doc/gnulib-intro.texi: Correct.
43613 2010-06-10  Jim Meyering  <meyering@redhat.com>
43615         inttostr-tests: depend on snprintf, not snprintf-posix
43616         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
43617         snprintf-posix, to avoid this aclocal failure:
43618           missing file gnulib-tests/vasnprintf.c
43619           configure.ac:45: error: expected source file, required through \
43620           AC_LIBSOURCES, not found
43622 2010-06-10  Jim Meyering  <meyering@redhat.com>
43624         inttostr: add a new function, inttostr, and tests
43625         The namesake function was not available.  The existence of the
43626         template file, inttostr.c makes its addition nontrivial.
43627         * lib/anytostr.c: Rename from inttostr.c.
43628         (anytostr): Rename from inttostr.
43629         * lib/inttostr.c: New file.
43630         * modules/inttostr (Files): Add anytostr.c.
43631         (Makefile.am): Set lib_SOURCES instead of ...
43632         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
43633         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
43634         * lib/offtostr.c: Likewise.
43635         * lib/uinttostr.c: Likewise.
43636         * lib/umaxtostr.c: Likewise.
43637         * modules/inttostr-tests: New file.
43638         * tests/test-inttostr.c: New file.  Test these functions.
43640 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
43641             Bruno Haible  <bruno@clisp.org>
43643         Add "Extending Gnulib" chapter to manual.
43644         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
43645         chapter.
43646         (Extending Gnulib): New chapter.
43647         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
43648         chapter.
43650 2010-06-09  Bruno Haible  <bruno@clisp.org>
43652         Avoid relocwrapper link errors due to gnulib replacement functions.
43653         * lib/areadlink.c: Use the system's malloc, realloc functions.
43654         (areadlink): Set errno to ENOMEM explicitly.
43655         * modules/areadlink (Depends-on): Remove malloc-posix.
43656         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43658 2010-06-09  Bruno Haible  <bruno@clisp.org>
43660         Avoid relocwrapper link errors due to gnulib replacement functions.
43661         * lib/canonicalize-lgpl.c: Use the system's malloc function.
43662         * lib/malloca.c: Likewise.
43663         * lib/relocatable.c: Likewise.
43664         * lib/progreloc.c: Use the system's malloc, sprintf functions.
43665         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
43666         * lib/setenv.c: Use the system's malloc, realloc functions.
43667         * lib/strerror.c: Use the system's sprintf function.
43668         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43670 2010-06-04  Bruno Haible  <bruno@clisp.org>
43672         Prefer documented low-level autoconf macro names.
43673         * m4/lib-link.m4: Use m4_translit instead of translit.
43674         * m4/environ.m4: Likewise.
43675         * m4/mathfunc.m4: Likewise.
43676         * m4/onceonly.m4: Likewise.
43677         * m4/stdint.m4: Likewise.
43678         Suggested by Eric Blake.
43680 2010-06-04  Martin Lambers  <marlam@marlam.de>
43681             Bruno Haible  <bruno@clisp.org>
43683         havelib: Allow library names with '+' characters.
43684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43685         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
43687 2010-06-09  Bruno Haible  <bruno@clisp.org>
43689         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
43690         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
43691         realloc failed.
43693 2010-06-08  Peter Simons  <simons@cryp.to>
43695         maint.mk: make the news-check rule more configurable
43696         * top/maint.mk (news-check-lines-spec): New variable.
43697         (news-check): Use "sed -n 1,10p" in place of "head".
43699 2010-06-07  Jim Meyering  <meyering@redhat.com>
43701         do-release-commit-and-tag: fix typo in --help
43702         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
43704         regex: avoid new dead-code warning with gcc-4.6.0
43705         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
43706         if-block containing a while-loop.  It's been unused for at least
43707         5 years.
43709 2010-06-05  Bruno Haible  <bruno@clisp.org>
43711         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
43712         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
43714 2010-06-04  Bruno Haible  <bruno@clisp.org>
43716         Update to GNU gettext 0.18.1.
43717         * modules/gettext (configure.ac): Require gettext infrastructure from
43718         version 0.18.1.
43720 2010-06-03  Bruno Haible  <bruno@clisp.org>
43722         Don't use AC_LIBOBJ with file names in subdirectories.
43723         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
43724         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
43725         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
43726         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
43727         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
43728         gl_LIBUNISTRING_LIBSOURCE.
43729         (Makefile.am): Augment lib_SOURCES here, conditionally.
43730         * NEWS: Drop requirement for Automake option 'subdir-objects'.
43732 2010-06-03  Bruno Haible  <bruno@clisp.org>
43734         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
43735         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
43736         expansion does not end with a newline.
43737         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
43738         unnecessary newline.
43740 2010-06-03  Bruno Haible  <bruno@clisp.org>
43742         Reduce dependencies.
43743         * tests/test-quotearg.h: New file, extracted from
43744         tests/test-quotearg.c.
43745         * tests/test-quotearg-simple.c: New file, extracted from
43746         tests/test-quotearg.c.
43747         * tests/test-quotearg.c: Don't include <ctype.h>.
43748         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
43749         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
43750         use_quote_double_quotes, use_quotearg_colon): Moved to
43751         tests/test-quotearg.h.
43752         (results_g, flag_results, custom_quotes, custom_results): Moved
43753         to tests/test-quotearg-simple.c.
43754         (main): Moved the part that does not depend on gettext to
43755         tests/test-quotearg-simple.c. Return 77 if the test cannot be
43756         performed.
43757         * modules/quotearg-simple: New file.
43758         * modules/quotearg-simple-tests: New file.
43759         * modules/quotearg (Depends-on): Add quotearg-simple.
43760         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
43761         (Files): Add tests/test-quotearg.h.
43762         Reported by Paolo Bonzini.
43764 2010-06-03  Bruno Haible  <bruno@clisp.org>
43766         Reduce dependencies.
43767         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
43769 2010-06-03  Bruno Haible  <bruno@clisp.org>
43771         time: Undefine more broken macros.
43772         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
43773         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
43774         Reported by Eric Blake.
43776 2010-06-03  Bruno Haible  <bruno@clisp.org>
43778         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
43779         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
43780         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
43781         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
43782         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
43783         Reported by Ludovic Courtès <ludo@gnu.org>.
43785 2010-06-02  Eric Blake  <eblake@redhat.com>
43787         time: work with mingw + pthreads-win32 library
43788         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
43789         if timespec is defined only in pthread.h.
43790         * modules/time (Makefile.am): Substitute it.
43791         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
43792         <pthread.h>, when needed.
43793         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
43794         from the library.
43796 2010-05-31  Bruno Haible  <bruno@clisp.org>
43798         Avoid expanding two macros in the wrong order.
43799         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
43800         gl_LIBUNISTRING if it is defined.
43801         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
43802         autoconf >= 2.64.
43803         Reported by Ludovic Courtès <ludo@gnu.org>.
43805 2010-05-27  Jim Meyering  <meyering@redhat.com>
43807         maint.mk: also prohibit "#undef" of always-defined symbols
43808         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
43809         Allow more than one space before the symbol name.
43810         (sc_prohibit_always-defined_macros): Use grep's -E, now that
43811         the regexp uses alternation.
43813 2010-05-26  Eric Blake  <eblake@redhat.com>
43815         maint.mk: avoid echo -e
43816         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
43817         Convert all uses of echo -* to printf.
43818         Reported by Matthias Bolte.
43820 2010-05-25  Bruno Haible  <bruno@clisp.org>
43822         Update to GNU gettext 0.18, part 2.
43823         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
43824         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
43826 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43828         Add missing include in test-pwrite.c.
43829         * tests/test-pwrite.c: Include string.h, for strcmp.
43831 2010-05-24  Bruno Haible  <bruno@clisp.org>
43833         * NEWS: Mention requirement for Automake option 'subdir-objects'.
43835 2010-05-24  Bruno Haible  <bruno@clisp.org>
43837         Don't use conversion with transliteration in u{8,16,32}_strcoll.
43838         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
43839         iconveh_error argument.
43840         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
43841         U_STRCONV_TO_LOCALE.
43842         * lib/unistr/u16-strcoll.c: Likewise.
43843         * lib/unistr/u32-strcoll.c: Likewise.
43844         * modules/unistr/u8-strcoll (Depends-on): Add
43845         uniconv/u8-strconv-to-enc, localcharset. Remove
43846         uniconv/u8-strconv-to-locale.
43847         (configure.ac): Bump version number.
43848         * modules/unistr/u16-strcoll (Depends-on): Add
43849         uniconv/u16-strconv-to-enc, localcharset. Remove
43850         uniconv/u16-strconv-to-locale.
43851         (configure.ac): Bump version number.
43852         * modules/unistr/u32-strcoll (Depends-on): Add
43853         uniconv/u32-strconv-to-enc, localcharset. Remove
43854         uniconv/u32-strconv-to-locale.
43855         (configure.ac): Bump version number.
43857 2010-05-24  Bruno Haible  <bruno@clisp.org>
43859         Avoid a test failure on NetBSD 5.0.
43860         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
43861         an iconv() bug.
43863 2010-05-24  Bruno Haible  <bruno@clisp.org>
43865         Adjust #include directive style.
43866         * modules/regex (Includes): Recommend to write <regex.h>.
43868 2010-05-24  Bruno Haible  <bruno@clisp.org>
43870         regex: Don't require alloca.
43871         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
43872         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
43873         only inside if (0).
43875 2010-05-23  Jim Meyering  <meyering@redhat.com>
43877         test-renameat.c: include <sys/stat.h>
43878         * tests/test-renameat.c: Include <sys/stat.h>; required for
43879         definition of S_IS* macros.
43881 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
43883         Update maintainer documentation for 'relocatable-prog' module.
43884         * doc/relocatable-maint.texi: Update.
43885         Comments by Bruno Haible.
43887 2010-05-23  Bruno Haible  <bruno@clisp.org>
43889         git-merge-changelog: Enable --split-merged-entry by default.
43890         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
43891         (usage): Don't mention this option any more.
43892         Reported by Ralf Wildenhues.
43894 2010-05-23  Jim Meyering  <meyering@redhat.com>
43896         test-pwrite: do not leave behind a test file named "out"
43897         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
43898         The trivial-looking use of init.sh is really necessary.
43899         It ensures that the temporary file, "out", is created in
43900         a temporary directory, and removed upon termination.
43901         * tests/test-pwrite.sh: Re-add file.
43902         * modules/pwrite-tests: Reference it.
43904 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43906         Fix output redirection buglet in init.sh.
43907         * tests/init.sh: Fix redirection of stderr.
43909 2010-05-20  Simon Josefsson  <simon@josefsson.org>
43911         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
43913 2010-05-17  Simon Josefsson  <simon@josefsson.org>
43915         * modules/valgrind-tests: New file.
43916         * m4/valgrind-tests.m4: New file.
43917         * doc/valgrind-tests.texi: New file.
43918         * doc/gnulib.texi (Running self-tests under valgrind): New
43919         section.
43921 2010-05-19  Bruno Haible  <bruno@clisp.org>
43923         Clean up dead code in recent commit.
43924         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
43925         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
43926         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
43927         Suggested by Paolo Bonzini.
43929 2010-05-19  Bruno Haible  <bruno@clisp.org>
43931         Avoid valgrind error reports from libunistring.
43932         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
43933         * modules/libunistring (Files): Add it.
43934         * modules/libunistring-optional (Files): Likewise.
43936 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
43937             Bruno Haible  <bruno@clisp.org>
43939         New module 'libunistring-optional'.
43940         * modules/libunistring-optional: New file.
43941         * m4/libunistring-base.m4: New file.
43942         * m4/libunistring-optional.m4: New file.
43943         * lib/unicase.in.h: Renamed from lib/unicase.h.
43944         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
43945         * lib/unictype.in.h: Renamed from lib/unictype.h.
43946         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
43947         * lib/uniname.in.h: Renamed from lib/uniname.h.
43948         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
43949         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
43950         * lib/unistr.in.h: Renamed from lib/unistr.h.
43951         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
43952         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
43953         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
43954         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
43955         gl_LIBUNISTRING. If the library was found, determine the installed
43956         version and set LIBUNISTRING_VERSION.
43957         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
43958         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
43959         handle a configuration option --with-included-libunistring.
43960         * modules/libunistring (Files): Add m4/absolute-header.m4.
43961         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
43962         Add m4/libunistring-base.m4.
43963         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43964         (Makefile.am): Build unicase.h from unicase.in.h.
43965         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
43966         Add m4/libunistring-base.m4.
43967         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43968         (Makefile.am): Build uniconv.h from uniconv.in.h.
43969         * modules/unictype/base (Files): Use unictype.in.h instead of
43970         unictype.h. Add m4/libunistring-base.m4.
43971         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43972         (Makefile.am): Build unictype.h from unictype.in.h.
43973         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
43974         Add m4/libunistring-base.m4.
43975         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43976         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
43977         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
43978         Add m4/libunistring-base.m4.
43979         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43980         (Makefile.am): Build uniname.h from uniname.in.h.
43981         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
43982         Add m4/libunistring-base.m4.
43983         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43984         (Makefile.am): Build uninorm.h from uninorm.in.h.
43985         * modules/unistdio/base (Files): Use unistdio.in.h instead of
43986         unistdio.h. Add m4/libunistring-base.m4.
43987         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43988         (Makefile.am): Build unistdio.h from unistdio.in.h.
43989         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
43990         Add m4/libunistring-base.m4.
43991         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43992         (Makefile.am): Build unistr.h from unistr.in.h.
43993         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
43994         Add m4/libunistring-base.m4.
43995         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43996         (Makefile.am): Build unitypes.h from unitypes.in.h.
43997         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
43998         Add m4/libunistring-base.m4.
43999         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44000         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
44001         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
44002         uniwidth.h. Add m4/libunistring-base.m4.
44003         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44004         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
44005         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
44006         instead of augmenting lib_SOURCES.
44007         * modules/unicase/empty-suffix-context: Likewise.
44008         * modules/unicase/locale-language: Likewise.
44009         * modules/unicase/tolower: Likewise.
44010         * modules/unicase/totitle: Likewise.
44011         * modules/unicase/toupper: Likewise.
44012         * modules/unicase/u8-casecmp: Likewise.
44013         * modules/unicase/u8-casecoll: Likewise.
44014         * modules/unicase/u8-casefold: Likewise.
44015         * modules/unicase/u8-casexfrm: Likewise.
44016         * modules/unicase/u8-ct-casefold: Likewise.
44017         * modules/unicase/u8-ct-tolower: Likewise.
44018         * modules/unicase/u8-ct-totitle: Likewise.
44019         * modules/unicase/u8-ct-toupper: Likewise.
44020         * modules/unicase/u8-is-cased: Likewise.
44021         * modules/unicase/u8-is-casefolded: Likewise.
44022         * modules/unicase/u8-is-lowercase: Likewise.
44023         * modules/unicase/u8-is-titlecase: Likewise.
44024         * modules/unicase/u8-is-uppercase: Likewise.
44025         * modules/unicase/u8-prefix-context: Likewise.
44026         * modules/unicase/u8-suffix-context: Likewise.
44027         * modules/unicase/u8-tolower: Likewise.
44028         * modules/unicase/u8-totitle: Likewise.
44029         * modules/unicase/u8-toupper: Likewise.
44030         * modules/unicase/u16-casecmp: Likewise.
44031         * modules/unicase/u16-casecoll: Likewise.
44032         * modules/unicase/u16-casefold: Likewise.
44033         * modules/unicase/u16-casexfrm: Likewise.
44034         * modules/unicase/u16-ct-casefold: Likewise.
44035         * modules/unicase/u16-ct-tolower: Likewise.
44036         * modules/unicase/u16-ct-totitle: Likewise.
44037         * modules/unicase/u16-ct-toupper: Likewise.
44038         * modules/unicase/u16-is-cased: Likewise.
44039         * modules/unicase/u16-is-casefolded: Likewise.
44040         * modules/unicase/u16-is-lowercase: Likewise.
44041         * modules/unicase/u16-is-titlecase: Likewise.
44042         * modules/unicase/u16-is-uppercase: Likewise.
44043         * modules/unicase/u16-prefix-context: Likewise.
44044         * modules/unicase/u16-suffix-context: Likewise.
44045         * modules/unicase/u16-tolower: Likewise.
44046         * modules/unicase/u16-totitle: Likewise.
44047         * modules/unicase/u16-toupper: Likewise.
44048         * modules/unicase/u32-casecmp: Likewise.
44049         * modules/unicase/u32-casecoll: Likewise.
44050         * modules/unicase/u32-casefold: Likewise.
44051         * modules/unicase/u32-casexfrm: Likewise.
44052         * modules/unicase/u32-ct-casefold: Likewise.
44053         * modules/unicase/u32-ct-tolower: Likewise.
44054         * modules/unicase/u32-ct-totitle: Likewise.
44055         * modules/unicase/u32-ct-toupper: Likewise.
44056         * modules/unicase/u32-is-cased: Likewise.
44057         * modules/unicase/u32-is-casefolded: Likewise.
44058         * modules/unicase/u32-is-lowercase: Likewise.
44059         * modules/unicase/u32-is-titlecase: Likewise.
44060         * modules/unicase/u32-is-uppercase: Likewise.
44061         * modules/unicase/u32-prefix-context: Likewise.
44062         * modules/unicase/u32-suffix-context: Likewise.
44063         * modules/unicase/u32-tolower: Likewise.
44064         * modules/unicase/u32-totitle: Likewise.
44065         * modules/unicase/u32-toupper: Likewise.
44066         * modules/unicase/ulc-casecmp: Likewise.
44067         * modules/unicase/ulc-casecoll: Likewise.
44068         * modules/unicase/ulc-casexfrm: Likewise.
44069         * modules/uniconv/u8-conv-from-enc: Likewise.
44070         * modules/uniconv/u8-conv-to-enc: Likewise.
44071         * modules/uniconv/u8-strconv-from-enc: Likewise.
44072         * modules/uniconv/u8-strconv-from-locale: Likewise.
44073         * modules/uniconv/u8-strconv-to-enc: Likewise.
44074         * modules/uniconv/u8-strconv-to-locale: Likewise.
44075         * modules/uniconv/u16-conv-from-enc: Likewise.
44076         * modules/uniconv/u16-conv-to-enc: Likewise.
44077         * modules/uniconv/u16-strconv-from-enc: Likewise.
44078         * modules/uniconv/u16-strconv-from-locale: Likewise.
44079         * modules/uniconv/u16-strconv-to-enc: Likewise.
44080         * modules/uniconv/u16-strconv-to-locale: Likewise.
44081         * modules/uniconv/u32-conv-from-enc: Likewise.
44082         * modules/uniconv/u32-conv-to-enc: Likewise.
44083         * modules/uniconv/u32-strconv-from-enc: Likewise.
44084         * modules/uniconv/u32-strconv-from-locale: Likewise.
44085         * modules/uniconv/u32-strconv-to-enc: Likewise.
44086         * modules/uniconv/u32-strconv-to-locale: Likewise.
44087         * modules/unictype/bidicategory-byname: Likewise.
44088         * modules/unictype/bidicategory-name: Likewise.
44089         * modules/unictype/bidicategory-of: Likewise.
44090         * modules/unictype/bidicategory-test: Likewise.
44091         * modules/unictype/block-list: Likewise.
44092         * modules/unictype/block-test: Likewise.
44093         * modules/unictype/category-C: Likewise.
44094         * modules/unictype/category-Cc: Likewise.
44095         * modules/unictype/category-Cf: Likewise.
44096         * modules/unictype/category-Cn: Likewise.
44097         * modules/unictype/category-Co: Likewise.
44098         * modules/unictype/category-Cs: Likewise.
44099         * modules/unictype/category-L: Likewise.
44100         * modules/unictype/category-Ll: Likewise.
44101         * modules/unictype/category-Lm: Likewise.
44102         * modules/unictype/category-Lo: Likewise.
44103         * modules/unictype/category-Lt: Likewise.
44104         * modules/unictype/category-Lu: Likewise.
44105         * modules/unictype/category-M: Likewise.
44106         * modules/unictype/category-Mc: Likewise.
44107         * modules/unictype/category-Me: Likewise.
44108         * modules/unictype/category-Mn: Likewise.
44109         * modules/unictype/category-N: Likewise.
44110         * modules/unictype/category-Nd: Likewise.
44111         * modules/unictype/category-Nl: Likewise.
44112         * modules/unictype/category-No: Likewise.
44113         * modules/unictype/category-P: Likewise.
44114         * modules/unictype/category-Pc: Likewise.
44115         * modules/unictype/category-Pd: Likewise.
44116         * modules/unictype/category-Pe: Likewise.
44117         * modules/unictype/category-Pf: Likewise.
44118         * modules/unictype/category-Pi: Likewise.
44119         * modules/unictype/category-Po: Likewise.
44120         * modules/unictype/category-Ps: Likewise.
44121         * modules/unictype/category-S: Likewise.
44122         * modules/unictype/category-Sc: Likewise.
44123         * modules/unictype/category-Sk: Likewise.
44124         * modules/unictype/category-Sm: Likewise.
44125         * modules/unictype/category-So: Likewise.
44126         * modules/unictype/category-Z: Likewise.
44127         * modules/unictype/category-Zl: Likewise.
44128         * modules/unictype/category-Zp: Likewise.
44129         * modules/unictype/category-Zs: Likewise.
44130         * modules/unictype/category-and: Likewise.
44131         * modules/unictype/category-and-not: Likewise.
44132         * modules/unictype/category-byname: Likewise.
44133         * modules/unictype/category-name: Likewise.
44134         * modules/unictype/category-none: Likewise.
44135         * modules/unictype/category-of: Likewise.
44136         * modules/unictype/category-or: Likewise.
44137         * modules/unictype/category-test: Likewise.
44138         * modules/unictype/combining-class: Likewise.
44139         * modules/unictype/ctype-alnum: Likewise.
44140         * modules/unictype/ctype-alpha: Likewise.
44141         * modules/unictype/ctype-blank: Likewise.
44142         * modules/unictype/ctype-cntrl: Likewise.
44143         * modules/unictype/ctype-digit: Likewise.
44144         * modules/unictype/ctype-graph: Likewise.
44145         * modules/unictype/ctype-lower: Likewise.
44146         * modules/unictype/ctype-print: Likewise.
44147         * modules/unictype/ctype-punct: Likewise.
44148         * modules/unictype/ctype-space: Likewise.
44149         * modules/unictype/ctype-upper: Likewise.
44150         * modules/unictype/ctype-xdigit: Likewise.
44151         * modules/unictype/decimal-digit: Likewise.
44152         * modules/unictype/digit: Likewise.
44153         * modules/unictype/mirror: Likewise.
44154         * modules/unictype/numeric: Likewise.
44155         * modules/unictype/property-alphabetic: Likewise.
44156         * modules/unictype/property-ascii-hex-digit: Likewise.
44157         * modules/unictype/property-bidi-arabic-digit: Likewise.
44158         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
44159         * modules/unictype/property-bidi-block-separator: Likewise.
44160         * modules/unictype/property-bidi-boundary-neutral: Likewise.
44161         * modules/unictype/property-bidi-common-separator: Likewise.
44162         * modules/unictype/property-bidi-control: Likewise.
44163         * modules/unictype/property-bidi-embedding-or-override: Likewise.
44164         * modules/unictype/property-bidi-eur-num-separator: Likewise.
44165         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
44166         * modules/unictype/property-bidi-european-digit: Likewise.
44167         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
44168         * modules/unictype/property-bidi-left-to-right: Likewise.
44169         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
44170         * modules/unictype/property-bidi-other-neutral: Likewise.
44171         * modules/unictype/property-bidi-pdf: Likewise.
44172         * modules/unictype/property-bidi-segment-separator: Likewise.
44173         * modules/unictype/property-bidi-whitespace: Likewise.
44174         * modules/unictype/property-byname: Likewise.
44175         * modules/unictype/property-combining: Likewise.
44176         * modules/unictype/property-composite: Likewise.
44177         * modules/unictype/property-currency-symbol: Likewise.
44178         * modules/unictype/property-dash: Likewise.
44179         * modules/unictype/property-decimal-digit: Likewise.
44180         * modules/unictype/property-default-ignorable-code-point: Likewise.
44181         * modules/unictype/property-deprecated: Likewise.
44182         * modules/unictype/property-diacritic: Likewise.
44183         * modules/unictype/property-extender: Likewise.
44184         * modules/unictype/property-format-control: Likewise.
44185         * modules/unictype/property-grapheme-base: Likewise.
44186         * modules/unictype/property-grapheme-extend: Likewise.
44187         * modules/unictype/property-grapheme-link: Likewise.
44188         * modules/unictype/property-hex-digit: Likewise.
44189         * modules/unictype/property-hyphen: Likewise.
44190         * modules/unictype/property-id-continue: Likewise.
44191         * modules/unictype/property-id-start: Likewise.
44192         * modules/unictype/property-ideographic: Likewise.
44193         * modules/unictype/property-ids-binary-operator: Likewise.
44194         * modules/unictype/property-ids-trinary-operator: Likewise.
44195         * modules/unictype/property-ignorable-control: Likewise.
44196         * modules/unictype/property-iso-control: Likewise.
44197         * modules/unictype/property-join-control: Likewise.
44198         * modules/unictype/property-left-of-pair: Likewise.
44199         * modules/unictype/property-line-separator: Likewise.
44200         * modules/unictype/property-logical-order-exception: Likewise.
44201         * modules/unictype/property-lowercase: Likewise.
44202         * modules/unictype/property-math: Likewise.
44203         * modules/unictype/property-non-break: Likewise.
44204         * modules/unictype/property-not-a-character: Likewise.
44205         * modules/unictype/property-numeric: Likewise.
44206         * modules/unictype/property-other-alphabetic: Likewise.
44207         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
44208         * modules/unictype/property-other-grapheme-extend: Likewise.
44209         * modules/unictype/property-other-id-continue: Likewise.
44210         * modules/unictype/property-other-id-start: Likewise.
44211         * modules/unictype/property-other-lowercase: Likewise.
44212         * modules/unictype/property-other-math: Likewise.
44213         * modules/unictype/property-other-uppercase: Likewise.
44214         * modules/unictype/property-paired-punctuation: Likewise.
44215         * modules/unictype/property-paragraph-separator: Likewise.
44216         * modules/unictype/property-pattern-syntax: Likewise.
44217         * modules/unictype/property-pattern-white-space: Likewise.
44218         * modules/unictype/property-private-use: Likewise.
44219         * modules/unictype/property-punctuation: Likewise.
44220         * modules/unictype/property-quotation-mark: Likewise.
44221         * modules/unictype/property-radical: Likewise.
44222         * modules/unictype/property-sentence-terminal: Likewise.
44223         * modules/unictype/property-soft-dotted: Likewise.
44224         * modules/unictype/property-space: Likewise.
44225         * modules/unictype/property-terminal-punctuation: Likewise.
44226         * modules/unictype/property-test: Likewise.
44227         * modules/unictype/property-titlecase: Likewise.
44228         * modules/unictype/property-unassigned-code-value: Likewise.
44229         * modules/unictype/property-unified-ideograph: Likewise.
44230         * modules/unictype/property-uppercase: Likewise.
44231         * modules/unictype/property-variation-selector: Likewise.
44232         * modules/unictype/property-white-space: Likewise.
44233         * modules/unictype/property-xid-continue: Likewise.
44234         * modules/unictype/property-xid-start: Likewise.
44235         * modules/unictype/property-zero-width: Likewise.
44236         * modules/unictype/scripts: Likewise.
44237         * modules/unictype/syntax-c-ident: Likewise.
44238         * modules/unictype/syntax-c-whitespace: Likewise.
44239         * modules/unictype/syntax-java-ident: Likewise.
44240         * modules/unictype/syntax-java-whitespace: Likewise.
44241         * modules/unilbrk/u8-possible-linebreaks: Likewise.
44242         * modules/unilbrk/u8-width-linebreaks: Likewise.
44243         * modules/unilbrk/u16-possible-linebreaks: Likewise.
44244         * modules/unilbrk/u16-width-linebreaks: Likewise.
44245         * modules/unilbrk/u32-possible-linebreaks: Likewise.
44246         * modules/unilbrk/u32-width-linebreaks: Likewise.
44247         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
44248         * modules/unilbrk/ulc-width-linebreaks: Likewise.
44249         * modules/uniname/uniname: Likewise.
44250         * modules/uninorm/canonical-decomposition: Likewise.
44251         * modules/uninorm/composition: Likewise.
44252         * modules/uninorm/decomposing-form: Likewise.
44253         * modules/uninorm/decomposition: Likewise.
44254         * modules/uninorm/filter: Likewise.
44255         * modules/uninorm/nfc: Likewise.
44256         * modules/uninorm/nfd: Likewise.
44257         * modules/uninorm/nfkc: Likewise.
44258         * modules/uninorm/nfkd: Likewise.
44259         * modules/uninorm/u8-normalize: Likewise.
44260         * modules/uninorm/u8-normcmp: Likewise.
44261         * modules/uninorm/u8-normcoll: Likewise.
44262         * modules/uninorm/u8-normxfrm: Likewise.
44263         * modules/uninorm/u16-normalize: Likewise.
44264         * modules/uninorm/u16-normcmp: Likewise.
44265         * modules/uninorm/u16-normcoll: Likewise.
44266         * modules/uninorm/u16-normxfrm: Likewise.
44267         * modules/uninorm/u32-normalize: Likewise.
44268         * modules/uninorm/u32-normcmp: Likewise.
44269         * modules/uninorm/u32-normcoll: Likewise.
44270         * modules/uninorm/u32-normxfrm: Likewise.
44271         * modules/unistdio/u8-asnprintf: Likewise.
44272         * modules/unistdio/u8-asprintf: Likewise.
44273         * modules/unistdio/u8-snprintf: Likewise.
44274         * modules/unistdio/u8-sprintf: Likewise.
44275         * modules/unistdio/u8-u8-asnprintf: Likewise.
44276         * modules/unistdio/u8-u8-asprintf: Likewise.
44277         * modules/unistdio/u8-u8-snprintf: Likewise.
44278         * modules/unistdio/u8-u8-sprintf: Likewise.
44279         * modules/unistdio/u8-u8-vasnprintf: Likewise.
44280         * modules/unistdio/u8-u8-vasprintf: Likewise.
44281         * modules/unistdio/u8-u8-vsnprintf: Likewise.
44282         * modules/unistdio/u8-u8-vsprintf: Likewise.
44283         * modules/unistdio/u8-vasnprintf: Likewise.
44284         * modules/unistdio/u8-vasprintf: Likewise.
44285         * modules/unistdio/u8-vsnprintf: Likewise.
44286         * modules/unistdio/u8-vsprintf: Likewise.
44287         * modules/unistdio/u16-asnprintf: Likewise.
44288         * modules/unistdio/u16-asprintf: Likewise.
44289         * modules/unistdio/u16-snprintf: Likewise.
44290         * modules/unistdio/u16-sprintf: Likewise.
44291         * modules/unistdio/u16-u16-asnprintf: Likewise.
44292         * modules/unistdio/u16-u16-asprintf: Likewise.
44293         * modules/unistdio/u16-u16-snprintf: Likewise.
44294         * modules/unistdio/u16-u16-sprintf: Likewise.
44295         * modules/unistdio/u16-u16-vasnprintf: Likewise.
44296         * modules/unistdio/u16-u16-vasprintf: Likewise.
44297         * modules/unistdio/u16-u16-vsnprintf: Likewise.
44298         * modules/unistdio/u16-u16-vsprintf: Likewise.
44299         * modules/unistdio/u16-vasnprintf: Likewise.
44300         * modules/unistdio/u16-vasprintf: Likewise.
44301         * modules/unistdio/u16-vsnprintf: Likewise.
44302         * modules/unistdio/u16-vsprintf: Likewise.
44303         * modules/unistdio/u32-asnprintf: Likewise.
44304         * modules/unistdio/u32-asprintf: Likewise.
44305         * modules/unistdio/u32-snprintf: Likewise.
44306         * modules/unistdio/u32-sprintf: Likewise.
44307         * modules/unistdio/u32-u32-asnprintf: Likewise.
44308         * modules/unistdio/u32-u32-asprintf: Likewise.
44309         * modules/unistdio/u32-u32-snprintf: Likewise.
44310         * modules/unistdio/u32-u32-sprintf: Likewise.
44311         * modules/unistdio/u32-u32-vasnprintf: Likewise.
44312         * modules/unistdio/u32-u32-vasprintf: Likewise.
44313         * modules/unistdio/u32-u32-vsnprintf: Likewise.
44314         * modules/unistdio/u32-u32-vsprintf: Likewise.
44315         * modules/unistdio/u32-vasnprintf: Likewise.
44316         * modules/unistdio/u32-vasprintf: Likewise.
44317         * modules/unistdio/u32-vsnprintf: Likewise.
44318         * modules/unistdio/u32-vsprintf: Likewise.
44319         * modules/unistdio/ulc-asnprintf: Likewise.
44320         * modules/unistdio/ulc-asprintf: Likewise.
44321         * modules/unistdio/ulc-fprintf: Likewise.
44322         * modules/unistdio/ulc-snprintf: Likewise.
44323         * modules/unistdio/ulc-sprintf: Likewise.
44324         * modules/unistdio/ulc-vasnprintf: Likewise.
44325         * modules/unistdio/ulc-vasprintf: Likewise.
44326         * modules/unistdio/ulc-vfprintf: Likewise.
44327         * modules/unistdio/ulc-vsnprintf: Likewise.
44328         * modules/unistdio/ulc-vsprintf: Likewise.
44329         * modules/unistr/u8-check: Likewise.
44330         * modules/unistr/u8-chr: Likewise.
44331         * modules/unistr/u8-cmp: Likewise.
44332         * modules/unistr/u8-cmp2: Likewise.
44333         * modules/unistr/u8-cpy: Likewise.
44334         * modules/unistr/u8-cpy-alloc: Likewise.
44335         * modules/unistr/u8-endswith: Likewise.
44336         * modules/unistr/u8-mblen: Likewise.
44337         * modules/unistr/u8-mbsnlen: Likewise.
44338         * modules/unistr/u8-mbtouc: Likewise.
44339         * modules/unistr/u8-mbtouc-unsafe: Likewise.
44340         * modules/unistr/u8-mbtoucr: Likewise.
44341         * modules/unistr/u8-move: Likewise.
44342         * modules/unistr/u8-next: Likewise.
44343         * modules/unistr/u8-prev: Likewise.
44344         * modules/unistr/u8-set: Likewise.
44345         * modules/unistr/u8-startswith: Likewise.
44346         * modules/unistr/u8-stpcpy: Likewise.
44347         * modules/unistr/u8-stpncpy: Likewise.
44348         * modules/unistr/u8-strcat: Likewise.
44349         * modules/unistr/u8-strchr: Likewise.
44350         * modules/unistr/u8-strcmp: Likewise.
44351         * modules/unistr/u8-strcoll: Likewise.
44352         * modules/unistr/u8-strcpy: Likewise.
44353         * modules/unistr/u8-strcspn: Likewise.
44354         * modules/unistr/u8-strdup: Likewise.
44355         * modules/unistr/u8-strlen: Likewise.
44356         * modules/unistr/u8-strmblen: Likewise.
44357         * modules/unistr/u8-strmbtouc: Likewise.
44358         * modules/unistr/u8-strncat: Likewise.
44359         * modules/unistr/u8-strncmp: Likewise.
44360         * modules/unistr/u8-strncpy: Likewise.
44361         * modules/unistr/u8-strnlen: Likewise.
44362         * modules/unistr/u8-strpbrk: Likewise.
44363         * modules/unistr/u8-strrchr: Likewise.
44364         * modules/unistr/u8-strspn: Likewise.
44365         * modules/unistr/u8-strstr: Likewise.
44366         * modules/unistr/u8-strtok: Likewise.
44367         * modules/unistr/u8-to-u16: Likewise.
44368         * modules/unistr/u8-to-u32: Likewise.
44369         * modules/unistr/u8-uctomb: Likewise.
44370         * modules/unistr/u16-check: Likewise.
44371         * modules/unistr/u16-chr: Likewise.
44372         * modules/unistr/u16-cmp: Likewise.
44373         * modules/unistr/u16-cmp2: Likewise.
44374         * modules/unistr/u16-cpy: Likewise.
44375         * modules/unistr/u16-cpy-alloc: Likewise.
44376         * modules/unistr/u16-endswith: Likewise.
44377         * modules/unistr/u16-mblen: Likewise.
44378         * modules/unistr/u16-mbsnlen: Likewise.
44379         * modules/unistr/u16-mbtouc: Likewise.
44380         * modules/unistr/u16-mbtouc-unsafe: Likewise.
44381         * modules/unistr/u16-mbtoucr: Likewise.
44382         * modules/unistr/u16-move: Likewise.
44383         * modules/unistr/u16-next: Likewise.
44384         * modules/unistr/u16-prev: Likewise.
44385         * modules/unistr/u16-set: Likewise.
44386         * modules/unistr/u16-startswith: Likewise.
44387         * modules/unistr/u16-stpcpy: Likewise.
44388         * modules/unistr/u16-stpncpy: Likewise.
44389         * modules/unistr/u16-strcat: Likewise.
44390         * modules/unistr/u16-strchr: Likewise.
44391         * modules/unistr/u16-strcmp: Likewise.
44392         * modules/unistr/u16-strcoll: Likewise.
44393         * modules/unistr/u16-strcpy: Likewise.
44394         * modules/unistr/u16-strcspn: Likewise.
44395         * modules/unistr/u16-strdup: Likewise.
44396         * modules/unistr/u16-strlen: Likewise.
44397         * modules/unistr/u16-strmblen: Likewise.
44398         * modules/unistr/u16-strmbtouc: Likewise.
44399         * modules/unistr/u16-strncat: Likewise.
44400         * modules/unistr/u16-strncmp: Likewise.
44401         * modules/unistr/u16-strncpy: Likewise.
44402         * modules/unistr/u16-strnlen: Likewise.
44403         * modules/unistr/u16-strpbrk: Likewise.
44404         * modules/unistr/u16-strrchr: Likewise.
44405         * modules/unistr/u16-strspn: Likewise.
44406         * modules/unistr/u16-strstr: Likewise.
44407         * modules/unistr/u16-strtok: Likewise.
44408         * modules/unistr/u16-to-u32: Likewise.
44409         * modules/unistr/u16-to-u8: Likewise.
44410         * modules/unistr/u16-uctomb: Likewise.
44411         * modules/unistr/u32-check: Likewise.
44412         * modules/unistr/u32-chr: Likewise.
44413         * modules/unistr/u32-cmp: Likewise.
44414         * modules/unistr/u32-cmp2: Likewise.
44415         * modules/unistr/u32-cpy: Likewise.
44416         * modules/unistr/u32-cpy-alloc: Likewise.
44417         * modules/unistr/u32-endswith: Likewise.
44418         * modules/unistr/u32-mblen: Likewise.
44419         * modules/unistr/u32-mbsnlen: Likewise.
44420         * modules/unistr/u32-mbtouc: Likewise.
44421         * modules/unistr/u32-mbtouc-unsafe: Likewise.
44422         * modules/unistr/u32-mbtoucr: Likewise.
44423         * modules/unistr/u32-move: Likewise.
44424         * modules/unistr/u32-next: Likewise.
44425         * modules/unistr/u32-prev: Likewise.
44426         * modules/unistr/u32-set: Likewise.
44427         * modules/unistr/u32-startswith: Likewise.
44428         * modules/unistr/u32-stpcpy: Likewise.
44429         * modules/unistr/u32-stpncpy: Likewise.
44430         * modules/unistr/u32-strcat: Likewise.
44431         * modules/unistr/u32-strchr: Likewise.
44432         * modules/unistr/u32-strcmp: Likewise.
44433         * modules/unistr/u32-strcoll: Likewise.
44434         * modules/unistr/u32-strcpy: Likewise.
44435         * modules/unistr/u32-strcspn: Likewise.
44436         * modules/unistr/u32-strdup: Likewise.
44437         * modules/unistr/u32-strlen: Likewise.
44438         * modules/unistr/u32-strmblen: Likewise.
44439         * modules/unistr/u32-strmbtouc: Likewise.
44440         * modules/unistr/u32-strncat: Likewise.
44441         * modules/unistr/u32-strncmp: Likewise.
44442         * modules/unistr/u32-strncpy: Likewise.
44443         * modules/unistr/u32-strnlen: Likewise.
44444         * modules/unistr/u32-strpbrk: Likewise.
44445         * modules/unistr/u32-strrchr: Likewise.
44446         * modules/unistr/u32-strspn: Likewise.
44447         * modules/unistr/u32-strstr: Likewise.
44448         * modules/unistr/u32-strtok: Likewise.
44449         * modules/unistr/u32-to-u16: Likewise.
44450         * modules/unistr/u32-to-u8: Likewise.
44451         * modules/unistr/u32-uctomb: Likewise.
44452         * modules/uniwbrk/u8-wordbreaks: Likewise.
44453         * modules/uniwbrk/u16-wordbreaks: Likewise.
44454         * modules/uniwbrk/u32-wordbreaks: Likewise.
44455         * modules/uniwbrk/ulc-wordbreaks: Likewise.
44456         * modules/uniwbrk/wordbreak-property: Likewise.
44457         * modules/uniwidth/u8-strwidth: Likewise.
44458         * modules/uniwidth/u8-width: Likewise.
44459         * modules/uniwidth/u16-strwidth: Likewise.
44460         * modules/uniwidth/u16-width: Likewise.
44461         * modules/uniwidth/u32-strwidth: Likewise.
44462         * modules/uniwidth/u32-width: Likewise.
44463         * modules/uniwidth/width: Likewise.
44464         * modules/unicase/cased-tests (Makefile.am): Link all test programs
44465         with $(LIBUNISTRING).
44466         * modules/unicase/ignorable-tests: Likewise.
44467         * modules/unicase/locale-language-tests: Likewise.
44468         * modules/unicase/tolower-tests: Likewise.
44469         * modules/unicase/totitle-tests: Likewise.
44470         * modules/unicase/toupper-tests: Likewise.
44471         * modules/unicase/u8-casecmp-tests: Likewise.
44472         * modules/unicase/u8-casecoll-tests: Likewise.
44473         * modules/unicase/u8-casefold-tests: Likewise.
44474         * modules/unicase/u8-is-cased-tests: Likewise.
44475         * modules/unicase/u8-is-casefolded-tests: Likewise.
44476         * modules/unicase/u8-is-lowercase-tests: Likewise.
44477         * modules/unicase/u8-is-titlecase-tests: Likewise.
44478         * modules/unicase/u8-is-uppercase-tests: Likewise.
44479         * modules/unicase/u8-tolower-tests: Likewise.
44480         * modules/unicase/u8-totitle-tests: Likewise.
44481         * modules/unicase/u8-toupper-tests: Likewise.
44482         * modules/unicase/u16-casecmp-tests: Likewise.
44483         * modules/unicase/u16-casecoll-tests: Likewise.
44484         * modules/unicase/u16-casefold-tests: Likewise.
44485         * modules/unicase/u16-is-cased-tests: Likewise.
44486         * modules/unicase/u16-is-casefolded-tests: Likewise.
44487         * modules/unicase/u16-is-lowercase-tests: Likewise.
44488         * modules/unicase/u16-is-titlecase-tests: Likewise.
44489         * modules/unicase/u16-is-uppercase-tests: Likewise.
44490         * modules/unicase/u16-tolower-tests: Likewise.
44491         * modules/unicase/u16-totitle-tests: Likewise.
44492         * modules/unicase/u16-toupper-tests: Likewise.
44493         * modules/unicase/u32-casecmp-tests: Likewise.
44494         * modules/unicase/u32-casecoll-tests: Likewise.
44495         * modules/unicase/u32-casefold-tests: Likewise.
44496         * modules/unicase/u32-is-cased-tests: Likewise.
44497         * modules/unicase/u32-is-casefolded-tests: Likewise.
44498         * modules/unicase/u32-is-lowercase-tests: Likewise.
44499         * modules/unicase/u32-is-titlecase-tests: Likewise.
44500         * modules/unicase/u32-is-uppercase-tests: Likewise.
44501         * modules/unicase/u32-tolower-tests: Likewise.
44502         * modules/unicase/u32-totitle-tests: Likewise.
44503         * modules/unicase/u32-toupper-tests: Likewise.
44504         * modules/unicase/ulc-casecmp-tests: Likewise.
44505         * modules/unicase/ulc-casecoll-tests: Likewise.
44506         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
44507         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
44508         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
44509         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
44510         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
44511         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
44512         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
44513         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
44514         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
44515         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
44516         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
44517         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
44518         * modules/unictype/bidicategory-byname-tests: Likewise.
44519         * modules/unictype/bidicategory-name-tests: Likewise.
44520         * modules/unictype/bidicategory-of-tests: Likewise.
44521         * modules/unictype/bidicategory-test-tests: Likewise.
44522         * modules/unictype/block-list-tests: Likewise.
44523         * modules/unictype/block-of-tests: Likewise.
44524         * modules/unictype/block-test-tests: Likewise.
44525         * modules/unictype/category-C-tests: Likewise.
44526         * modules/unictype/category-Cc-tests: Likewise.
44527         * modules/unictype/category-Cf-tests: Likewise.
44528         * modules/unictype/category-Cn-tests: Likewise.
44529         * modules/unictype/category-Co-tests: Likewise.
44530         * modules/unictype/category-Cs-tests: Likewise.
44531         * modules/unictype/category-L-tests: Likewise.
44532         * modules/unictype/category-Ll-tests: Likewise.
44533         * modules/unictype/category-Lm-tests: Likewise.
44534         * modules/unictype/category-Lo-tests: Likewise.
44535         * modules/unictype/category-Lt-tests: Likewise.
44536         * modules/unictype/category-Lu-tests: Likewise.
44537         * modules/unictype/category-M-tests: Likewise.
44538         * modules/unictype/category-Mc-tests: Likewise.
44539         * modules/unictype/category-Me-tests: Likewise.
44540         * modules/unictype/category-Mn-tests: Likewise.
44541         * modules/unictype/category-N-tests: Likewise.
44542         * modules/unictype/category-Nd-tests: Likewise.
44543         * modules/unictype/category-Nl-tests: Likewise.
44544         * modules/unictype/category-No-tests: Likewise.
44545         * modules/unictype/category-P-tests: Likewise.
44546         * modules/unictype/category-Pc-tests: Likewise.
44547         * modules/unictype/category-Pd-tests: Likewise.
44548         * modules/unictype/category-Pe-tests: Likewise.
44549         * modules/unictype/category-Pf-tests: Likewise.
44550         * modules/unictype/category-Pi-tests: Likewise.
44551         * modules/unictype/category-Po-tests: Likewise.
44552         * modules/unictype/category-Ps-tests: Likewise.
44553         * modules/unictype/category-S-tests: Likewise.
44554         * modules/unictype/category-Sc-tests: Likewise.
44555         * modules/unictype/category-Sk-tests: Likewise.
44556         * modules/unictype/category-Sm-tests: Likewise.
44557         * modules/unictype/category-So-tests: Likewise.
44558         * modules/unictype/category-Z-tests: Likewise.
44559         * modules/unictype/category-Zl-tests: Likewise.
44560         * modules/unictype/category-Zp-tests: Likewise.
44561         * modules/unictype/category-Zs-tests: Likewise.
44562         * modules/unictype/category-and-not-tests: Likewise.
44563         * modules/unictype/category-and-tests: Likewise.
44564         * modules/unictype/category-byname-tests: Likewise.
44565         * modules/unictype/category-name-tests: Likewise.
44566         * modules/unictype/category-none-tests: Likewise.
44567         * modules/unictype/category-of-tests: Likewise.
44568         * modules/unictype/category-or-tests: Likewise.
44569         * modules/unictype/category-test-withtable-tests: Likewise.
44570         * modules/unictype/combining-class-tests: Likewise.
44571         * modules/unictype/ctype-alnum-tests: Likewise.
44572         * modules/unictype/ctype-alpha-tests: Likewise.
44573         * modules/unictype/ctype-blank-tests: Likewise.
44574         * modules/unictype/ctype-cntrl-tests: Likewise.
44575         * modules/unictype/ctype-digit-tests: Likewise.
44576         * modules/unictype/ctype-graph-tests: Likewise.
44577         * modules/unictype/ctype-lower-tests: Likewise.
44578         * modules/unictype/ctype-print-tests: Likewise.
44579         * modules/unictype/ctype-punct-tests: Likewise.
44580         * modules/unictype/ctype-space-tests: Likewise.
44581         * modules/unictype/ctype-upper-tests: Likewise.
44582         * modules/unictype/ctype-xdigit-tests: Likewise.
44583         * modules/unictype/decimal-digit-tests: Likewise.
44584         * modules/unictype/digit-tests: Likewise.
44585         * modules/unictype/mirror-tests: Likewise.
44586         * modules/unictype/numeric-tests: Likewise.
44587         * modules/unictype/property-alphabetic-tests: Likewise.
44588         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
44589         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
44590         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
44591         * modules/unictype/property-bidi-block-separator-tests: Likewise.
44592         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
44593         * modules/unictype/property-bidi-common-separator-tests: Likewise.
44594         * modules/unictype/property-bidi-control-tests: Likewise.
44595         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
44596         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
44597         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
44598         * modules/unictype/property-bidi-european-digit-tests: Likewise.
44599         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
44600         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
44601         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
44602         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
44603         * modules/unictype/property-bidi-pdf-tests: Likewise.
44604         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
44605         * modules/unictype/property-bidi-whitespace-tests: Likewise.
44606         * modules/unictype/property-byname-tests: Likewise.
44607         * modules/unictype/property-combining-tests: Likewise.
44608         * modules/unictype/property-composite-tests: Likewise.
44609         * modules/unictype/property-currency-symbol-tests: Likewise.
44610         * modules/unictype/property-dash-tests: Likewise.
44611         * modules/unictype/property-decimal-digit-tests: Likewise.
44612         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
44613         * modules/unictype/property-deprecated-tests: Likewise.
44614         * modules/unictype/property-diacritic-tests: Likewise.
44615         * modules/unictype/property-extender-tests: Likewise.
44616         * modules/unictype/property-format-control-tests: Likewise.
44617         * modules/unictype/property-grapheme-base-tests: Likewise.
44618         * modules/unictype/property-grapheme-extend-tests: Likewise.
44619         * modules/unictype/property-grapheme-link-tests: Likewise.
44620         * modules/unictype/property-hex-digit-tests: Likewise.
44621         * modules/unictype/property-hyphen-tests: Likewise.
44622         * modules/unictype/property-id-continue-tests: Likewise.
44623         * modules/unictype/property-id-start-tests: Likewise.
44624         * modules/unictype/property-ideographic-tests: Likewise.
44625         * modules/unictype/property-ids-binary-operator-tests: Likewise.
44626         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
44627         * modules/unictype/property-ignorable-control-tests: Likewise.
44628         * modules/unictype/property-iso-control-tests: Likewise.
44629         * modules/unictype/property-join-control-tests: Likewise.
44630         * modules/unictype/property-left-of-pair-tests: Likewise.
44631         * modules/unictype/property-line-separator-tests: Likewise.
44632         * modules/unictype/property-logical-order-exception-tests: Likewise.
44633         * modules/unictype/property-lowercase-tests: Likewise.
44634         * modules/unictype/property-math-tests: Likewise.
44635         * modules/unictype/property-non-break-tests: Likewise.
44636         * modules/unictype/property-not-a-character-tests: Likewise.
44637         * modules/unictype/property-numeric-tests: Likewise.
44638         * modules/unictype/property-other-alphabetic-tests: Likewise.
44639         * modules/unictype/property-other-default-ignorable-code-point-tests:
44640         Likewise.
44641         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
44642         * modules/unictype/property-other-id-continue-tests: Likewise.
44643         * modules/unictype/property-other-id-start-tests: Likewise.
44644         * modules/unictype/property-other-lowercase-tests: Likewise.
44645         * modules/unictype/property-other-math-tests: Likewise.
44646         * modules/unictype/property-other-uppercase-tests: Likewise.
44647         * modules/unictype/property-paired-punctuation-tests: Likewise.
44648         * modules/unictype/property-paragraph-separator-tests: Likewise.
44649         * modules/unictype/property-pattern-syntax-tests: Likewise.
44650         * modules/unictype/property-pattern-white-space-tests: Likewise.
44651         * modules/unictype/property-private-use-tests: Likewise.
44652         * modules/unictype/property-punctuation-tests: Likewise.
44653         * modules/unictype/property-quotation-mark-tests: Likewise.
44654         * modules/unictype/property-radical-tests: Likewise.
44655         * modules/unictype/property-sentence-terminal-tests: Likewise.
44656         * modules/unictype/property-soft-dotted-tests: Likewise.
44657         * modules/unictype/property-space-tests: Likewise.
44658         * modules/unictype/property-terminal-punctuation-tests: Likewise.
44659         * modules/unictype/property-test-tests: Likewise.
44660         * modules/unictype/property-titlecase-tests: Likewise.
44661         * modules/unictype/property-unassigned-code-value-tests: Likewise.
44662         * modules/unictype/property-unified-ideograph-tests: Likewise.
44663         * modules/unictype/property-uppercase-tests: Likewise.
44664         * modules/unictype/property-variation-selector-tests: Likewise.
44665         * modules/unictype/property-white-space-tests: Likewise.
44666         * modules/unictype/property-xid-continue-tests: Likewise.
44667         * modules/unictype/property-xid-start-tests: Likewise.
44668         * modules/unictype/property-zero-width-tests: Likewise.
44669         * modules/unictype/scripts-tests: Likewise.
44670         * modules/unictype/syntax-c-ident-tests: Likewise.
44671         * modules/unictype/syntax-c-whitespace-tests: Likewise.
44672         * modules/unictype/syntax-java-ident-tests: Likewise.
44673         * modules/unictype/syntax-java-whitespace-tests: Likewise.
44674         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
44675         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
44676         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
44677         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
44678         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
44679         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
44680         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
44681         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
44682         * modules/uniname/uniname-tests: Likewise.
44683         * modules/uninorm/canonical-decomposition-tests: Likewise.
44684         * modules/uninorm/compat-decomposition-tests: Likewise.
44685         * modules/uninorm/composition-tests: Likewise.
44686         * modules/uninorm/decomposing-form-tests: Likewise.
44687         * modules/uninorm/decomposition-tests: Likewise.
44688         * modules/uninorm/filter-tests: Likewise.
44689         * modules/uninorm/nfc-tests: Likewise.
44690         * modules/uninorm/nfd-tests: Likewise.
44691         * modules/uninorm/nfkc-tests: Likewise.
44692         * modules/uninorm/nfkd-tests: Likewise.
44693         * modules/uninorm/u8-normcmp-tests: Likewise.
44694         * modules/uninorm/u8-normcoll-tests: Likewise.
44695         * modules/uninorm/u16-normcmp-tests: Likewise.
44696         * modules/uninorm/u16-normcoll-tests: Likewise.
44697         * modules/uninorm/u32-normcmp-tests: Likewise.
44698         * modules/uninorm/u32-normcoll-tests: Likewise.
44699         * modules/unistdio/u8-asnprintf-tests: Likewise.
44700         * modules/unistdio/u8-vasnprintf-tests: Likewise.
44701         * modules/unistdio/u8-vasprintf-tests: Likewise.
44702         * modules/unistdio/u8-vsnprintf-tests: Likewise.
44703         * modules/unistdio/u8-vsprintf-tests: Likewise.
44704         * modules/unistdio/u16-asnprintf-tests: Likewise.
44705         * modules/unistdio/u16-vasnprintf-tests: Likewise.
44706         * modules/unistdio/u16-vasprintf-tests: Likewise.
44707         * modules/unistdio/u16-vsnprintf-tests: Likewise.
44708         * modules/unistdio/u16-vsprintf-tests: Likewise.
44709         * modules/unistdio/u32-asnprintf-tests: Likewise.
44710         * modules/unistdio/u32-vasnprintf-tests: Likewise.
44711         * modules/unistdio/u32-vasprintf-tests: Likewise.
44712         * modules/unistdio/u32-vsnprintf-tests: Likewise.
44713         * modules/unistdio/u32-vsprintf-tests: Likewise.
44714         * modules/unistdio/ulc-asnprintf-tests: Likewise.
44715         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
44716         * modules/unistdio/ulc-vasprintf-tests: Likewise.
44717         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
44718         * modules/unistdio/ulc-vsprintf-tests: Likewise.
44719         * modules/unistr/u8-check-tests: Likewise.
44720         * modules/unistr/u8-chr-tests: Likewise.
44721         * modules/unistr/u8-cmp-tests: Likewise.
44722         * modules/unistr/u8-cmp2-tests: Likewise.
44723         * modules/unistr/u8-cpy-alloc-tests: Likewise.
44724         * modules/unistr/u8-cpy-tests: Likewise.
44725         * modules/unistr/u8-mblen-tests: Likewise.
44726         * modules/unistr/u8-mbsnlen-tests: Likewise.
44727         * modules/unistr/u8-mbtouc-tests: Likewise.
44728         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
44729         * modules/unistr/u8-mbtoucr-tests: Likewise.
44730         * modules/unistr/u8-move-tests: Likewise.
44731         * modules/unistr/u8-next-tests: Likewise.
44732         * modules/unistr/u8-prev-tests: Likewise.
44733         * modules/unistr/u8-set-tests: Likewise.
44734         * modules/unistr/u8-stpcpy-tests: Likewise.
44735         * modules/unistr/u8-stpncpy-tests: Likewise.
44736         * modules/unistr/u8-strcat-tests: Likewise.
44737         * modules/unistr/u8-strcmp-tests: Likewise.
44738         * modules/unistr/u8-strcoll-tests: Likewise.
44739         * modules/unistr/u8-strcpy-tests: Likewise.
44740         * modules/unistr/u8-strdup-tests: Likewise.
44741         * modules/unistr/u8-strlen-tests: Likewise.
44742         * modules/unistr/u8-strmblen-tests: Likewise.
44743         * modules/unistr/u8-strmbtouc-tests: Likewise.
44744         * modules/unistr/u8-strncat-tests: Likewise.
44745         * modules/unistr/u8-strncmp-tests: Likewise.
44746         * modules/unistr/u8-strncpy-tests: Likewise.
44747         * modules/unistr/u8-strnlen-tests: Likewise.
44748         * modules/unistr/u8-to-u16-tests: Likewise.
44749         * modules/unistr/u8-to-u32-tests: Likewise.
44750         * modules/unistr/u8-uctomb-tests: Likewise.
44751         * modules/unistr/u16-check-tests: Likewise.
44752         * modules/unistr/u16-chr-tests: Likewise.
44753         * modules/unistr/u16-cmp-tests: Likewise.
44754         * modules/unistr/u16-cmp2-tests: Likewise.
44755         * modules/unistr/u16-cpy-alloc-tests: Likewise.
44756         * modules/unistr/u16-cpy-tests: Likewise.
44757         * modules/unistr/u16-mblen-tests: Likewise.
44758         * modules/unistr/u16-mbsnlen-tests: Likewise.
44759         * modules/unistr/u16-mbtouc-tests: Likewise.
44760         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
44761         * modules/unistr/u16-mbtoucr-tests: Likewise.
44762         * modules/unistr/u16-move-tests: Likewise.
44763         * modules/unistr/u16-next-tests: Likewise.
44764         * modules/unistr/u16-prev-tests: Likewise.
44765         * modules/unistr/u16-set-tests: Likewise.
44766         * modules/unistr/u16-stpcpy-tests: Likewise.
44767         * modules/unistr/u16-stpncpy-tests: Likewise.
44768         * modules/unistr/u16-strcat-tests: Likewise.
44769         * modules/unistr/u16-strcmp-tests: Likewise.
44770         * modules/unistr/u16-strcoll-tests: Likewise.
44771         * modules/unistr/u16-strcpy-tests: Likewise.
44772         * modules/unistr/u16-strdup-tests: Likewise.
44773         * modules/unistr/u16-strlen-tests: Likewise.
44774         * modules/unistr/u16-strmblen-tests: Likewise.
44775         * modules/unistr/u16-strmbtouc-tests: Likewise.
44776         * modules/unistr/u16-strncat-tests: Likewise.
44777         * modules/unistr/u16-strncmp-tests: Likewise.
44778         * modules/unistr/u16-strncpy-tests: Likewise.
44779         * modules/unistr/u16-strnlen-tests: Likewise.
44780         * modules/unistr/u16-to-u32-tests: Likewise.
44781         * modules/unistr/u16-to-u8-tests: Likewise.
44782         * modules/unistr/u16-uctomb-tests: Likewise.
44783         * modules/unistr/u32-check-tests: Likewise.
44784         * modules/unistr/u32-chr-tests: Likewise.
44785         * modules/unistr/u32-cmp-tests: Likewise.
44786         * modules/unistr/u32-cmp2-tests: Likewise.
44787         * modules/unistr/u32-cpy-alloc-tests: Likewise.
44788         * modules/unistr/u32-cpy-tests: Likewise.
44789         * modules/unistr/u32-mblen-tests: Likewise.
44790         * modules/unistr/u32-mbsnlen-tests: Likewise.
44791         * modules/unistr/u32-mbtouc-tests: Likewise.
44792         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
44793         * modules/unistr/u32-mbtoucr-tests: Likewise.
44794         * modules/unistr/u32-move-tests: Likewise.
44795         * modules/unistr/u32-next-tests: Likewise.
44796         * modules/unistr/u32-prev-tests: Likewise.
44797         * modules/unistr/u32-set-tests: Likewise.
44798         * modules/unistr/u32-stpcpy-tests: Likewise.
44799         * modules/unistr/u32-stpncpy-tests: Likewise.
44800         * modules/unistr/u32-strcat-tests: Likewise.
44801         * modules/unistr/u32-strcmp-tests: Likewise.
44802         * modules/unistr/u32-strcoll-tests: Likewise.
44803         * modules/unistr/u32-strcpy-tests: Likewise.
44804         * modules/unistr/u32-strdup-tests: Likewise.
44805         * modules/unistr/u32-strlen-tests: Likewise.
44806         * modules/unistr/u32-strmblen-tests: Likewise.
44807         * modules/unistr/u32-strmbtouc-tests: Likewise.
44808         * modules/unistr/u32-strncat-tests: Likewise.
44809         * modules/unistr/u32-strncmp-tests: Likewise.
44810         * modules/unistr/u32-strncpy-tests: Likewise.
44811         * modules/unistr/u32-strnlen-tests: Likewise.
44812         * modules/unistr/u32-to-u16-tests: Likewise.
44813         * modules/unistr/u32-to-u8-tests: Likewise.
44814         * modules/unistr/u32-uctomb-tests: Likewise.
44815         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
44816         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
44817         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
44818         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
44819         * modules/uniwidth/u8-strwidth-tests: Likewise.
44820         * modules/uniwidth/u8-width-tests: Likewise.
44821         * modules/uniwidth/u16-strwidth-tests: Likewise.
44822         * modules/uniwidth/u16-width-tests: Likewise.
44823         * modules/uniwidth/u32-strwidth-tests: Likewise.
44824         * modules/uniwidth/u32-width-tests: Likewise.
44825         * modules/uniwidth/width-tests: Likewise.
44827 2010-05-18  Richard Jones  <rjones@redhat.com>
44829         doc: users.txt: list hivex
44830         * users.txt: Add hivex.
44832 2010-05-18  Richard Jones  <rjones@redhat.com>
44834         doc: users.txt: list febootstrap
44835         * users.txt: Add febootstrap.
44837 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
44839         bootstrap: fix an error when gnulib is not used as a git submodule
44840         * build-aux/bootstrap (gnulib_path): If its length is zero then
44841         assign "gnulib" to it.
44842         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
44844 2010-05-16  Bruno Haible  <bruno@clisp.org>
44846         Avoid autoconf warnings about AM_ICONV.
44847         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
44848         2.64.
44850 2010-05-16  Bruno Haible  <bruno@clisp.org>
44852         absolute-header: Make the macro usable in more situations.
44853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
44854         from gl_ABSOLUTE_HEADER.
44855         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
44857 2010-05-16  James Youngman  <jay@gnu.org>
44859         doc: update users.txt
44860         * users.txt: Add CSSC.
44862 2010-05-16  Jim Meyering  <meyering@redhat.com>
44864         init.sh: fix an error in the previous change; add more comments
44865         * tests/init.sh: Compare exit code in loop against 9, not 2.
44866         Patch by Bruno Haible.
44867         Make the two tests more similar by adding an empty "then" clause.
44868         Add comments.
44870         init.sh: avoid unnecessary shell re-exec
44871         * tests/init.sh: Improve the re-exec-required check to first test the
44872         current shell.  If it passes the test, do not search for a shell that
44873         does pass, and do not re-exec.  This test is particularly contorted to
44874         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
44875         of $(...) evokes a syntax error and causes immediate shell exit with
44876         status 2.  Bruno Haible reported that the re-exec made it impossible
44877         to single-step through any init.sh-using script.
44879 2010-05-16  Bruno Haible  <bruno@clisp.org>
44881         Fix collision between gnulib's and libintl's printf replacements.
44882         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
44883         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
44884         (printf): When using GNU C, map the __printf__ function to rpl_printf
44885         via __asm__. When not using GNU C, define rpl_printf instead of
44886         __printf__.
44887         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
44888         commit.
44889         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
44890         commit.
44891         * m4/asm-underscore.m4: New file.
44892         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
44893         * modules/stdio (Files): Add m4/asm-underscore.m4.
44894         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
44895         Reported by Ben Pfaff.
44897 2010-05-16  Bruno Haible  <bruno@clisp.org>
44899         verify: Avoid skipping the test on openSUSE 11.0.
44900         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
44902 2010-05-13  Bruno Haible  <bruno@clisp.org>
44904         Avoid useless warnings from G++.
44905         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
44906         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
44907         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44909 2010-05-11  Jim Meyering  <meyering@redhat.com>
44911         maint.mk: tweak preceding change
44912         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
44913         regexps tighter by anchoring at EOL, and make the new group "shy"
44914         for slightly decreased overhead.
44916 2010-05-11  Eric Blake  <eblake@redhat.com>
44918         maint.mk: gnulib doesn't guarantee NSIG
44919         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
44921 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
44923         test-pwrite.c: Remove unused variable declaration.
44924         * tests/test-pwrite.c (main): Remove read_buf declaration.
44926         Remove useless test-pwrite.sh file.
44927         * tests/test-pwrite.sh: Delete file.
44928         * modules/pwrite-tests: Remove references.
44929         Reported by Bruno Haible.
44931 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
44933         init.sh: fix a typo
44934         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
44936 2010-05-10  Jim Meyering  <meyering@redhat.com>
44938         maint.mk: avoid using a temporary file in the always-defined-macros check
44939         * top/maint.mk (.re-defmac): Remove rule.
44940         (gl_trap_): Remove definition.
44941         (sc_prohibit_always-defined_macros): Rewrite not to create and
44942         depend on a temporary file.  Instead, depend on GNU grep's ability
44943         to read a list of regular expressions from stdin when given "-f -".
44945 2010-05-09  Bruno Haible  <bruno@clisp.org>
44947         Update to GNU gettext 0.18, part 1.
44948         * m4/gettext.m4: Update to GNU gettext 0.18.
44949         * m4/intl.m4: Likewise.
44950         * m4/po.m4: Likewise.
44951         * modules/gettext (Files): Add m4/fcntl-o.m4.
44952         (configure.ac): Require gettext infrastructure from version 0.18.
44954 2010-05-09  Jim Meyering  <meyering@redhat.com>
44956         init.sh: enable MALLOC_PERTURB_
44957         * tests/init.sh: Enable glibc's malloc-perturbing option.
44959         maint.mk: improve sc_cross_check_PATH_usage_in_tests
44960         With my recent change in init.sh from the two-line form:
44961             -#   : ${srcdir=.}
44962             -#   . "$srcdir/init.sh"; path_prepend_ .
44963             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
44964         I noticed that using the one-line form would cause this test
44965         to fail with a false-positive, or to stop working altogether,
44966         depending on whether help-version changed or all the tests did.
44967         * top/maint.mk (_hv_regex): Remove this definition.
44968         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
44969         (_hv_regex_strong): Use a stronger regex to check for conformance.
44970         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
44971         Give a separate diagnostic for lack of conforming use.
44973         maint.mk: prohibit definition of symbols defined by gnulib
44974         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
44975         definition of symbols defined by gnulib.
44977 2010-05-09  Bruno Haible  <bruno@clisp.org>
44979         acl: Avoid test failure on Cygwin-hosted mingw.
44980         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
44982 2010-05-09  Bruno Haible  <bruno@clisp.org>
44984         error: Use system's fcntl function.
44985         * lib/error.c (fcntl): Undefine.
44987 2010-05-09  Jim Meyering  <meyering@redhat.com>
44989         verify: adjust formatting to be more consistent
44990         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
44991         argument-list '('s, and after one comma.
44993 2010-05-09  Bruno Haible  <bruno@clisp.org>
44995         error: More reliable output on mingw.
44996         * lib/error.c: Include <windows.h>.
44997         (is_open): New function.
44998         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
44999         defined.
45001 2010-05-09  Bruno Haible  <bruno@clisp.org>
45003         vasnprintf: Fix syntax errors in libintl build on mingw.
45004         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
45005         pad_ourselves and prec_ourselves after use.
45007 2010-05-08  Bruno Haible  <bruno@clisp.org>
45009         * lib/config.charset: Update comments for Cygwin 1.7.
45010         * lib/localcharset.c: Likewise.
45012 2010-05-07  Jim Meyering  <meyering@redhat.com>
45014         init.sh: improve comments
45015         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
45016         . "${srcdir=.}/init.sh"; path_prepend_ .
45017         Add a note about path_prepend_ and the alternative of using
45018         TESTS_ENVIRONMENT.
45020 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45022         exclude: Unescape hashed patterns in wildcard mode.
45023         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
45024         to the hash list.
45025         * tests/test-exclude8.sh: New test case.
45026         * modules/exclude-tests: Add new test.
45028 2010-05-05  Eric Blake  <eblake@redhat.com>
45030         verify: automate tests
45031         * modules/verify-tests: New module.
45032         * tests/test-verify.sh: New file.
45033         * tests/test-verify.c: Guard each negative test with a unique id.
45034         Also avoid warning about unused left hand of comma expressions.
45036 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45038         Further improvements to verify.h, suggested by Eric Blake.
45039         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
45040         the GL_* versions, to avoid collision with OpenGL.
45041         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
45042         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
45043         than testing merely whether it's defined.
45045         Modify verify.h to pacify gcc -Wredundant_decls.
45046         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
45047         These use the prefix "GL_" since they're likely to be useful elsewhere.
45048         We may need to break them out into a different .h file.
45049         (__COUNTER__): Define to 0 if the compiler doesn't support it.
45050         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
45051         of verify_function__.
45053 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
45055         Tests for module pwrite.
45056         * modules/pwrite-tests: New file.
45057         * tests/test-pwrite.sh: New file.
45058         * tests/test-pwrite.c: New file.
45060         New module pwrite.
45061         * lib/unistd.in.h (pwrite): New declaration.
45062         * lib/pwrite.c: New file, from glibc with modifications.
45063         * m4/pwrite.m4: New file.
45064         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
45065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
45066         REPLACE_PWRITE.
45067         * modules/pwrite: New file.
45068         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
45069         REPLACE_PWRITE.
45070         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
45071         * doc/posix-functions/pwrite.texi: Mention the new module.
45073 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
45075         pread: Update documentation.
45076         * doc/posix-functions/pread.texi: Mention the 'pread' module.
45078 2010-05-04  Eric Blake  <eblake@redhat.com>
45080         docs: update cygwin progress
45081         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
45082         this bug.
45083         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
45084         Added in cygwin 1.7.2.
45085         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
45086         Likewise.
45087         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
45088         Likewise.
45089         * doc/glibc-functions/dup3.texi (dup3): Likewise.
45090         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
45091         * doc/glibc-functions/accept4.texi (accept4): Likewise.
45092         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
45093         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
45094         Mention nproc module.
45095         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
45096         bug in cygwin 1.7.5 addition.
45097         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
45098         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
45099         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
45100         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
45101         1.7.5.
45102         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
45103         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
45104         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
45105         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
45106         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
45107         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
45108         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
45109         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
45110         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
45111         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
45112         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
45113         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
45114         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
45115         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
45116         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
45117         Likewise.
45118         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
45119         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
45120         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
45121         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
45122         Likewise.
45123         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
45124         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
45125         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
45126         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
45127         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
45128         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
45129         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
45130         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
45131         Likewise.
45132         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
45133         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
45134         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
45135         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
45136         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
45137         Likewise.
45138         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
45139         Likewise.
45140         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
45141         Likewise.
45142         * doc/glibc-functions/xdrrec_endofrecord.texi
45143         (xdrrec_endofrecord): Likewise.
45144         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
45145         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
45146         Likewise.
45147         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
45148         Likewise.
45150 2010-05-04  Jim Meyering  <meyering@redhat.com>
45152         gendocs.sh: make its "-s FILE" option more useful
45153         * build-aux/gendocs.sh: When honoring the -s FILE option, update
45154         $PACKAGE to reflect the probably-different basename of "FILE".
45156 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45158         bootstrap: don't ignore download_po_files failure
45159         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
45160         failure.
45162 2010-05-03  Jim Meyering  <meyering@redhat.com>
45164         maint.mk: allow to pass options to gendocs.sh
45165         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
45166         (gendocs_options_): New overridable variable.
45168         gnu-web-doc-update: don't ignore configure or build failure
45169         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
45171         announce-gen: backslash-escape '@'s in --help output
45172         * build-aux/announce-gen: Fix syntax errors.
45174         maint.mk, announce-gen: allow project-specific announcement mail headers
45175         * top/maint.mk (translation_project_): Define default.
45176         (announcement_Cc_, announcement_mail_headers_): Likewise.
45177         (announcement): Invoke announce-gen with new --mail-headers option.
45178         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
45180         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
45181         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
45182         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
45183         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
45184         line in the "err2" output file when running "make check" in verbose
45185         mode (i.e., with set -x enabled).
45187 2010-05-03  Bruno Haible  <bruno@clisp.org>
45189         wctob: Fix for weird platforms.
45190         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
45191         argument value.
45193 2010-05-03  Jim Meyering  <meyering@redhat.com>
45195         maint.mk: prohibit unwarranted use of <strings.h>
45196         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
45197         strings.h in a file that does not also use strcasecmp, strncasecmp,
45198         ffs or ffsll.
45200         maint.mk: remove obsolete comments
45201         * top/maint.mk: Remove stale, commented-out rules.
45203 2010-05-02  Bruno Haible  <bruno@clisp.org>
45205         wcwidth: Declare also when it's aliased.
45206         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
45207         macro.
45209 2010-05-02  Bruno Haible  <bruno@clisp.org>
45211         Fix regression from 2010-04-25.
45212         * gnulib-tool (func_modules_transitive_closure): Check the status of
45213         all modules, not only of the tests that are of the form foo-tests where
45214         foo is a module.
45216 2010-05-02  Bruno Haible  <bruno@clisp.org>
45218         wctob: Work around nasty Cygwin 1.7.2 bug.
45219         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
45220         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
45222 2010-05-01  Bruno Haible  <bruno@clisp.org>
45224         fpurge: Sharper test.
45225         * tests/test-fpurge.c (main): Add one more ftell check.
45226         * modules/fpurge-tests (Depends-on): Add ftell.
45227         Suggested by Eric Blake.
45229 2010-05-01  Bruno Haible  <bruno@clisp.org>
45231         ftello: Another test.
45232         * tests/test-ftello3.c: New file.
45233         * modules/ftello-tests (Files): Add it.
45234         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
45235         MOSTLYCLEANFILES.
45237         ftell: Another test.
45238         * tests/test-ftell3.c: New file.
45239         * modules/ftell-tests (Files): Add it.
45240         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
45241         MOSTLYCLEANFILES.
45243 2010-05-01  Bruno Haible  <bruno@clisp.org>
45245         ftell, ftello: Work around Solaris bug.
45246         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
45247         * lib/ftello.c: Include stdio-impl.h.
45248         (ftello): On Solaris, when _IOWRT is set, compute the result without
45249         looking at _IOREAD.
45250         * modules/ftello (Files): Add lib/stdio-impl.h.
45251         * doc/posix-functions/ftell.texi: Mention Solaris bug.
45252         * doc/posix-functions/ftello.texi: Likewise.
45253         Reported by Eric Blake.
45255 2010-05-01  Bruno Haible  <bruno@clisp.org>
45257         freading: Adapt to special meaning of _IOREAD flag on Solaris.
45258         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
45259         the _IOWRT flag is also set.
45261 2010-05-01  Bruno Haible  <bruno@clisp.org>
45263         Fix doc about a HP-UX stdio bug.
45264         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
45265         * doc/posix-functions/ftello.texi: Likewise.
45267 2010-05-01  Bruno Haible  <bruno@clisp.org>
45269         lseek test: Fix failure on Solaris.
45270         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
45271         output.
45273 2010-04-30  Jim Meyering  <meyering@redhat.com>
45275         bootstrap: don't ignore failure to generate po*/Makevars
45276         * build-aux/bootstrap (with_gettext): Don't ignore failure
45277         to create po/Makevars or runtime-po/Makevars.
45279 2010-04-29  Eric Blake  <eblake@redhat.com>
45281         headers: relax license to LGPLv2+
45282         * modules/fcntl-h (License): Relax license.
45283         * modules/getopt-posix (License): Likewise.
45284         * modules/locale (License): Likewise.
45285         * modules/math (License): Likewise.
45286         * modules/pty (License): Likewise.
45287         * modules/sched (License): Likewise.
45288         * modules/search (License): Likewise.
45289         * modules/spawn (License): Likewise.
45290         * modules/stdarg (License): Likewise.
45291         * modules/sysexits (License): Likewise.
45293 2010-04-29  Jim Meyering  <meyering@redhat.com>
45295         inttypes: relax license to LGPLv2+
45296         * modules/inttypes (License): Relax license.
45298 2010-04-29  Simon Josefsson  <simon@josefsson.org>
45300         * top/maint.mk (indent): Run twice to produce idempotent results.
45302 2010-04-28  Bruno Haible  <bruno@clisp.org>
45304         getdate: Generate getdate.c in the source directory.
45305         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
45306         MOSTLYCLEANFILES.
45307         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
45309 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
45311         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
45312         is not declared as a const *; avoid warnings in that case.
45314 2010-04-28  Eric Blake  <eblake@redhat.com>
45316         canonicalize-lgpl: avoid compiler warning
45317         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
45318         declaration' / 'extraneous semicolon' warning with some compilers.
45319         Reported by Andreas Gruenbacher.
45321 2010-04-28  Jim Meyering  <meyering@redhat.com>
45323         init.sh: ensure a more reliable exit status when exiting via trap
45324         * tests/init.sh (setup_): Don't rely on $? in signal handler.
45325         Inspired by patches from Dmitry V. Levin.
45326         Also trap on signal 3 (SIGQUIT).
45328 2010-04-27  Bruno Haible  <bruno@clisp.org>
45330         Update doc about utimes().
45331         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
45332         'utimens' module.
45333         Reported by Andreas Gruenbacher <agruen@suse.de>.
45335 2010-04-27  Eric Blake  <eblake@redhat.com>
45337         full-read, full-write: relax license
45338         * modules/full-read (License): Drop to LGPLv2+.
45339         * modules/full-write (License): Likewise.
45340         * modules/safe-read (License): Likewise.
45341         * modules/safe-write (License): Likewise.
45343         pthread: mention library for linking
45344         * modules/pthread (Link): Mention $(LIB_PTHREAD).
45346 2010-04-27  Jim Meyering  <meyering@redhat.com>
45348         maint.mk: fix a bug introduced in last change
45349         * top/maint.mk (gl_assured_headers_): Now that all names are on
45350         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
45351         is not anchored to end of word, it should be adequate.
45353         maint.mk: avoid side-effect in latest syntax-check
45354         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
45355         to run commands via $(shell...), and hence to incur cost only when
45356         the new rule is actually run.
45358         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
45359         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
45360         and use that to create a regexp used to detect all #if HAVE_..._H uses.
45361         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
45362         (gl_assured_headers_, az_, AZ_): Define.
45363         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
45365 2010-04-26  Jim Meyering  <jim@meyering.net>
45366             Bruno Haible  <bruno@clisp.org>
45368         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
45369         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
45370         Prompted by an exchange with Gilles Espinasse.
45372 2010-04-26  Jim Meyering  <meyering@redhat.com>
45374         git-version-gen: aesthetic tweak
45375         * build-aux/git-version-gen: Use "$nl" rather than a literal,
45376         so that the command remains on a single line.
45378 2010-04-26  Eric Blake  <eblake@redhat.com>
45380         git-version-gen: allow use on EBCDIC hosts
45381         * build-aux/git-version-gen (dirty): Use literal rather than tying
45382         ourselves to ascii.
45383         Reported by Steve Goetze.
45385 2010-04-25  Bruno Haible  <bruno@clisp.org>
45387         netdb: Add support for GNULIB_POSIXCHECK.
45388         * lib/netdb.in.h: Include warn-on-use.h.
45389         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
45390         functions are used when GNULIB_POSIXCHECK is defined and the
45391         getaddrinfo module is not in use.
45392         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
45393         freeaddrinfo, gai_strerror, getnameinfo are declared.
45394         * modules/netdb (Depends-on): Add warn-on-use.
45395         (Makefile.am): Include warn-on-use.h in netdb.h.
45397 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
45399         build: avoid "make check" failure without .git/ directory
45400         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
45401         there is no .git/ directory.
45403 2010-04-25  Bruno Haible  <bruno@clisp.org>
45405         ptsname: Fix misuse of ttyname_r.
45406         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
45407         of errno.
45409 2010-04-25  Bruno Haible  <bruno@clisp.org>
45411         ttyname_r: Make it work on Solaris 10.
45412         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
45413         if the system function has the POSIX declaration. Test whether the
45414         function fails if the buffer is less than 128 bytes large.
45415         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
45416         system's ttyname_r function. Provide a reasonably large buffer.
45417         * modules/ttyname_r (Depends-on): Add extensions.
45418         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
45420 2010-04-25  Bruno Haible  <bruno@clisp.org>
45422         Use the 'extensions' module for some more functions on Solaris.
45423         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
45424         module.
45425         * doc/posix-functions/ctime_r.texi: Likewise.
45426         * doc/posix-functions/getgrgid_r.texi: Likewise.
45427         * doc/posix-functions/getgrnam_r.texi: Likewise.
45428         * doc/posix-functions/getpwnam_r.texi: Likewise.
45429         * doc/posix-functions/getpwuid_r.texi: Likewise.
45430         * doc/posix-functions/readdir_r.texi: Likewise.
45431         * doc/posix-functions/sigwait.texi: Likewise.
45432         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
45433         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
45435 2010-04-25  Bruno Haible  <bruno@clisp.org>
45437         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
45438         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
45439         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
45440         * lib/ttyname_r.c: Include <limits.h>.
45441         (ttyname_r): Define using the system's ttyname_r function, if it exists
45442         and not on Solaris.
45443         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
45444         set.
45445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
45446         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
45447         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
45448         Reported by Simon Josefsson.
45450 2010-04-25  Bruno Haible  <bruno@clisp.org>
45452         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
45453         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
45454         * doc/posix-functions/ctime_r.texi: Likewise.
45455         * doc/posix-functions/getgrgid_r.texi: Likewise.
45456         * doc/posix-functions/getgrnam_r.texi: Likewise.
45457         * doc/posix-functions/getlogin_r.texi: Likewise.
45458         * doc/posix-functions/getpwnam_r.texi: Likewise.
45459         * doc/posix-functions/getpwuid_r.texi: Likewise.
45460         * doc/posix-functions/readdir_r.texi: Likewise.
45461         * doc/posix-functions/sigwait.texi: Likewise.
45462         * doc/posix-functions/ttyname_r.texi: Likewise.
45463         Reported by Simon Josefsson.
45465 2010-04-25  Bruno Haible  <bruno@clisp.org>
45467         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
45468         * gnulib-tool (func_usage): Document that --with-*-tests options apply
45469         also to --create-testdir.
45470         (func_acceptable): Don't consider the status of *-tests modules here.
45471         (func_modules_transitive_closure): Consider it here, before including a
45472         test module.
45473         (func_import, func_create_testdir): Set inc_all_direct_tests,
45474         inc_all_indirect_tests.
45475         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
45476         --create-testdir and --create-megatestdir.
45478 2010-04-25  Bruno Haible  <bruno@clisp.org>
45480         gnulib-tool: Add --without-*-tests options.
45481         * gnulib-tool (func_usage): Document the --without-*-tests options.
45482         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
45483         excl_unportable_tests): New variables.
45484         Fail if they are specified with --import or --update.
45485         (func_acceptable): Respect the excl_*_tests variables.
45486         (func_import): Set the excl_*_tests variables to empty.
45488 2010-04-25  Simon Josefsson  <simon@josefsson.org>
45489             Bruno Haible  <bruno@clisp.org>
45491         Work around a MacOS X 10.4 bug with openpty.
45492         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
45493         * tests/test-openpty.c (main): Close the master side explicitly.
45495 2010-04-25  Bruno Haible  <bruno@clisp.org>
45497         strnlen: Fix a C++ test error on MacOS X and Solaris.
45498         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
45499         the function is not declared.
45500         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
45501         Simon Josefsson.
45503 2010-04-24  Bruno Haible  <bruno@clisp.org>
45505         Avoid a gcc warning.
45506         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
45507         of correct type for %08lx directive.
45508         Reported by Eric Blake.
45510 2010-04-24  Bruno Haible  <bruno@clisp.org>
45512         vasnprintf: Correct errno value in case of out-of-memory.
45513         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
45514         or sprintf. Use the errno value from SNPRINTF or sprintf.
45515         Reported by Ian Beckwith <ianb@erislabs.net>.
45517 2010-04-24  Bruno Haible  <bruno@clisp.org>
45519         ansi-c++-opt: Find correct compiler when cross-compiling.
45520         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
45521         AC_CHECK_PROGS.
45522         Reported by Simon Josefsson.
45524 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
45526         vc-list-files: Add support for subversion
45527         * build-aux/vc-list-files: Use "svn list" to generate the list of
45528         files controlled by subversion.
45530 2010-04-23  Jim Meyering  <meyering@redhat.com>
45532         vc-list-files tests: convert to use init.sh
45533         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
45534         path_prepend_.
45535         Use Exit, not exit.
45536         Use skip_ rather than open coding it.
45537         Remove trap set-up and compare definitions.
45538         * tests/test-vc-list-files-git.sh: Likewise.
45539         * modules/vc-list-files-tests (Files): Add tests/init.sh.
45541 2010-04-22  Simon Josefsson  <simon@josefsson.org>
45543         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
45544         backup files.
45546 2010-04-21  Simon Josefsson  <simon@josefsson.org>
45548         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
45550 2010-04-20  Eric Blake  <eblake@redhat.com>
45552         tests: be robust to ignored SIGPIPE
45553         * tests/test-select-in.sh: Consume all output.
45554         * tests/test-lseek.sh: Check correct exit status, while avoiding
45555         EPIPE.
45557 2010-04-20  Simon Josefsson  <simon@josefsson.org>
45558             Bruno Haible  <bruno@clisp.org>
45560         visibility: Don't use -fvisibility if it leads to a warning.
45561         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
45562         yes, don't pretend that visibility works if it leads to a warning.
45563         Reported by Mike Gran <spk121@yahoo.com>.
45565 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
45567         * build-aux/bootstrap: Use "git -h" for testing for supported options
45568         instead of "git --help".  The short-form option only shows a summary,
45569         and doesn't layout the full man page.  Grep for the full option name
45570         in the summary, too.
45572 2010-04-19  Bruno Haible  <bruno@clisp.org>
45574         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
45575         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
45576         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
45577         mention of RELOCATABLE_STRIP.
45578         Reported by Sylvain Beucler <beuc@beuc.net>.
45580 2010-04-19  Bruno Haible  <bruno@clisp.org>
45582         * lib/diffseq.h: Fix typo in comment.
45583         Reported by Eric Blake.
45585 2010-04-19  Bruno Haible  <bruno@clisp.org>
45587         ioctl: Move autoconf macro to a .m4 file.
45588         * m4/ioctl.m4: New file, extracted from modules/ioctl.
45589         * modules/ioctl (Files): Add it.
45590         (configure.ac): Simply invoke gl_FUNC_IOCTL.
45591         Reported by Ian Beckwith <ianb@erislabs.net>.
45593 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
45594             Bruno Haible  <bruno@clisp.org>
45596         diffseq: Accommodate use-case with abstract arrays.
45597         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
45598         is not defined.
45599         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
45600         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
45602 2010-04-18  Bruno Haible  <bruno@clisp.org>
45604         * doc/posix-headers/stdbool.texi: More precise wording.
45606 2010-04-17  Jim Meyering  <meyering@redhat.com>
45608         maint.mk: use gnu-style indentation in an embedded perl script
45609         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
45610         Rename variable: s/two/last_two_bytes/
45612 2010-04-16  Eric Blake  <eblake@redhat.com>
45614         test-stdbool: skip test that fails with Solaris CC
45615         * tests/test-stdbool.c (f): Skip test that causes compilation
45616         error under buggy C++ compiler.
45617         * lib/stdbool.in.h: Document the limitation.
45618         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
45620         setenv: allow compilation with C++
45621         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
45622         register keyword.
45624         stdint: allow test to pass with C++
45625         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
45627         getopt: allow compilation with C++
45628         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
45629         struct.
45630         * lib/getopt.c (_getopt_internal_r): Use correct type.
45631         Reported by Dagobert Michelson, via Joel E. Denny.
45633 2010-04-16  Bruno Haible  <bruno@clisp.org>
45635         Override netdb.h always.
45636         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
45637         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
45638         Reported by Ludovic Courtès <ludo@gnu.org>.
45640 2010-04-15  Bruno Haible  <bruno@clisp.org>
45642         openpty: Fix mistake from 2010-03-21.
45643         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
45644         Reported by Simon Josefsson.
45646 2010-04-15  Eric Blake  <eblake@redhat.com>
45648         test-forkpty: fix expected signature
45649         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
45650         Reported by Simon Josefsson.
45652 2010-04-15  Jim Meyering  <meyering@redhat.com>
45654         maint.mk: texinfo_suffix_re_: correct the default regexp
45655         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
45657         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
45658         make it configurable via texinfo_suffix_re_.
45660 2010-04-14  Eric Blake  <eblake@redhat.com>
45662         strtok_r: relax license to LGPLv2+
45663         * modules/strtok_r (License): Relax license.
45664         Reported by Matthias Bolte.
45666 2010-04-14  Simon Josefsson  <simon@josefsson.org>
45668         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
45669         version 1.4.4 by default instead of requiring the libgcrypt
45670         version used during build.  This makes it possible to use the
45671         application with older but still binary compatible libgcrypt
45672         versions.
45674 2010-04-13  Eric Blake  <eblake@redhat.com>
45676         getopt-gnu: match recent glibc fixes and posix ruling
45677         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
45678         '+' handling, when requesting extensions.
45679         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
45680         'W;' handling.
45681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
45682         * doc/posix-functions/getopt.texi (getopt): Document this.
45683         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
45684         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
45685         Likewise.
45687         getopt: merge bug fixes from glibc
45688         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
45689         diagnostics.  Honor '+:' correctly.  Reject ';'.
45691         getopt-posix: detect MacOS bug
45692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
45693         optind when missing a required argument.
45694         * doc/posix-functions/getopt.texi (getopt): Document the bug.
45695         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
45696         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
45697         Likewise.
45699         getopt-posix: avoid spurious failure on Solaris
45700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
45701         an indicator that setting optind=1 is sufficient for reset.
45703         getopt-posix: avoid spurious failure on FreeBSD
45704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
45705         in POSIX mode, since the m4 test uses it.
45707         gnulib-tool: silence warning on BSD sh
45708         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
45710 2010-04-13  Jim Meyering  <meyering@redhat.com>
45712         doc: users.txt: GNU patch now uses gnulib
45713         * users.txt: Add patch.
45715 2010-04-12  Jim Meyering  <meyering@redhat.com>
45717         maint.mk: generate more concise timing data for syntax-check rules
45718         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
45719         " done" from each line that reports a syntax-check test duration.
45721 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
45723         git-version-gen: use "git update-index..." rather than "git status"
45724         * build-aux/git-version-gen: Use git update-index --refresh, not
45725         "git status".  With some versions of git, "git status" would fail
45726         to update the index and result in an unwarranted "-dirty" suffix.
45728 2010-04-11  Jim Meyering  <meyering@redhat.com>
45730         openat: correct formatting (no semantic change)
45731         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
45732         Suggested by Bruno Haible.
45734 2010-04-11  Bruno Haible  <bruno@clisp.org>
45736         Stricter declaration checking in testdirs.
45737         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45738         If for_tests is true, augment AM_CPPFLAGS to define
45739         GNULIB_STRICT_CHECKING.
45740         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
45741         GNULIB_STRICT_CHECKING is defined, verify that the function is
45742         declared.
45744 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
45745             Bruno Haible  <bruno@clisp.org>
45747         libunistring: Improve configure output.
45748         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
45749         Don't say "consider installing GNU libunistring" when checking again
45750         with libiconv.
45752 2010-04-11  Bruno Haible  <bruno@clisp.org>
45754         libunistring: Correct value of $LTLIBUNISTRING.
45755         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
45756         correct the value of $LTLIBUNISTRING.
45758 2010-04-11  Bruno Haible  <bruno@clisp.org>
45760         havelib: Add static libraries to LIBS in the right order.
45761         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
45762         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
45764 2010-04-11  Bruno Haible  <bruno@clisp.org>
45766         libunistring: Detect libunistring also when it depends on libiconv.
45767         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
45768         the second AC_LIB_HAVE_LINKFLAGS invocation.
45770 2010-04-11  James Youngman  <jay@gnu.org>
45772         close-stream: declare local scalars to be "const"
45773         * lib/close-stream.c (close_stream): Make boolean variables const
45774         to document the fact that we set but do not change them.
45776 2010-04-11  Bruno Haible  <bruno@clisp.org>
45778         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
45780 2010-04-11  Jim Meyering  <meyering@redhat.com>
45782         maint.mk: don't include dist-check.mk
45783         * top/maint.mk: Remove bogus include directive.
45785         maint.mk: improve empty-line-at-EOF check
45786         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
45787         solution, rather than tail+Perl-based one.  The latter would read
45788         a few kilobytes from the end of each file, and did not handle empty
45789         files properly.
45791         maint.mk: print the elapsed time for each syntax-check rule
45792         * top/maint.mk (sc_m_rules_): Save start time in a file.
45793         (sc_z_rules_): New rules: remove temp file and print elapsed time.
45794         (local-check): Interpose the .z rules
45796 2010-04-11  Jim Meyering  <meyering@redhat.com>
45798         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
45799         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
45800         empty file with one that ends in an empty line.
45802 2010-04-10  Bruno Haible  <bruno@clisp.org>
45804         mkdir: Make it work on mingw64.
45805         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
45806         * lib/mkdir.c: Update comment.
45807         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
45809 2010-04-10  Bruno Haible  <bruno@clisp.org>
45811         Don't override improved macro from newer autoconf.
45812         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
45813         autoconf >= 2.62.
45814         Reported by Joel E. Denny <jdenny@clemson.edu>.
45816 2010-04-10  Jim Meyering  <meyering@redhat.com>
45818         maint.mk: new syntax-check rule: prohibit empty lines at end of file
45819         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
45821         maint.mk: correct a diagnostic
45822         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
45823         in diagnostic; now use $prohibit.
45825 2010-04-10  Bruno Haible  <address@hidden>
45827         fchownat: Fix a C++ test error on Solaris 8.
45828         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
45829         the function does not exist.
45831 2010-04-10  Bruno Haible  <bruno@clisp.org>
45833         vasnprintf: Add more tests.
45834         * tests/test-vasnprintf-posix.c: Include <errno.h>.
45835         (test_function): Test converting an invalid wide string.
45837         vasnprintf: Correct handling of unconvertible wide string arguments.
45838         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
45839         VASNPRINTF.
45840         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
45841         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
45842         smaller than the expected maximum need for the directive. Set errno to
45843         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
45844         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
45845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
45846         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
45847         * modules/vasnprintf (Files): Add m4/printf.m4.
45848         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45850 2010-04-10  Bruno Haible  <bruno@clisp.org>
45852         vasnprintf: Fix crash in %ls directive.
45853         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
45854         string is passed as argument to %ls, with no precision and no width.
45855         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45857 2010-04-10  Bruno Haible  <bruno@clisp.org>
45859         vasnprintf: Fix multiple test failures on mingw.
45860         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
45861         _snprintf, or snwprintf, not _snwprintf.
45863 2010-04-10  Bruno Haible  <bruno@clisp.org>
45865         write: Fix a C++ test error on mingw.
45866         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
45868 2010-04-10  Bruno Haible  <bruno@clisp.org>
45870         vasnprintf test: Reduce code duplication.
45871         * tests/test-vasnprintf.c (test_function): New function, extracted from
45872         test_vasnprintf.
45873         (test_vasnprintf, test_asnprintf): Invoke it.
45875 2010-04-10  Bruno Haible  <bruno@clisp.org>
45877         strnlen: Fix warning in C++ mode on MacOS X.
45878         * lib/string.in.h (strnlen): Use the modern idiom.
45879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
45880         defining strnlen as a macro already in <config.h>.
45881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45882         REPLACE_STRNLEN.
45883         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
45884         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45886 2010-04-08  James Youngman  <jay@gnu.org>
45888         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
45889         the example.
45891 2010-04-09  Jim Meyering  <meyering@redhat.com>
45893         maint.mk: print better diagnostic when there is no $(_hv_file)
45894         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
45895         announce that when $(_hv_file) (aka help-version) does not exist.
45897         init.sh: run tr in the "C" locale to avoid multibyte interpretation
45898         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
45899         not try to interpret its random input bytes.  Jarno Rajahalme reported
45900         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
45901         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
45902         (mktempd_): Likewise, just in case.
45904         ftruncate: add two years to projected module removal date: 2012
45905         * m4/ftruncate.m4: Adjust comments.
45907         ftruncate: mark module as obsolete; even MinGW provides it, now
45908         * modules/ftruncate (Status): Obsolete.
45909         (Notice): Say that.
45910         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
45911         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
45913 2010-04-08  Bruno Haible  <bruno@clisp.org>
45915         Fix side effects from tests-related modules.
45916         * modules/dprintf-posix (Comment): New section.
45917         * modules/fprintf-posix (Comment): Likewise.
45918         * modules/obstack-printf-posix (Comment): Likewise.
45919         * modules/printf-posix (Comment): Likewise.
45920         * modules/snprintf-posix (Comment): Likewise.
45921         * modules/sprintf-posix (Comment): Likewise.
45922         * modules/vasnprintf-posix (Comment): Likewise.
45923         * modules/vasprintf-posix (Comment): Likewise.
45924         * modules/vdprintf-posix (Comment): Likewise.
45925         * modules/vfprintf-posix (Comment): Likewise.
45926         * modules/vprintf-posix (Comment): Likewise.
45927         * modules/vsnprintf-posix (Comment): Likewise.
45928         * modules/vsprintf-posix (Comment): Likewise.
45929         * modules/xprintf-posix (Comment): Likewise.
45930         * modules/xvasprintf-posix (Comment): Likewise.
45931         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
45932         * modules/floorf-tests (Depends-on): Likewise.
45933         * modules/round-tests (Depends-on): Likewise.
45934         * modules/roundf-tests (Depends-on): Likewise.
45935         * modules/trunc-tests (Depends-on): Likewise.
45936         * modules/truncf-tests (Depends-on): Likewise.
45937         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
45938         'fprintf-posix' module is not present.
45939         * tests/test-floorf2.c (check): Likewise.
45940         * tests/test-trunc2.c (check): Likewise.
45941         * tests/test-truncf2.c (check): Likewise.
45942         * tests/test-round2.c (equal): Likewise.
45943         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45945 2010-04-07  Karl Berry  <karl@gnu.org>
45947         * config/srclist.txt,
45948         * config/srclistvars.sh,
45949         * config/srclist-update: doc fixes.
45951 2010-04-07  Jim Meyering  <meyering@redhat.com>
45953         maint.mk: add a PATH crosschecking syntax-check rule
45954         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
45955         Useful if you use a test like the one in help-version (coreutils,
45956         diffutils, grep, gzip) that ensures $(VERSION) matches what is
45957         printed by prog --version.
45959 2010-04-06  Bruno Haible  <bruno@clisp.org>
45961         Fix link error on mingw.
45962         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
45963         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
45965 2010-04-06  Bruno Haible  <bruno@clisp.org>
45967         Assume rmdir exists.
45968         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
45970 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
45972         doc: update users.txt
45973         * users.txt: Add gcal.
45975 2010-04-06  Jim Meyering  <meyering@redhat.com>
45977         init.sh: simply unset TMPDIR rather than risking env -i
45978         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
45979         although it probably works fine on all Unix-based systems, some
45980         systems (Cygwin?) cannot tolerate a totally cleared environment.
45981         Suggestion from Eric Blake.
45983 2010-04-06  Jim Meyering  <meyering@redhat.com>
45985         init.sh: portability fix: use env's POSIX-specified -i option not -u
45986         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
45987         than unportable env -u.  Solaris 5.11's env lacks support for -u.
45989 2010-04-05  Bruno Haible  <bruno@clisp.org>
45991         btowc: Work around Cygwin 1.7.2 bug.
45992         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
45993         does not map NUL to 0.
45994         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
45996 2010-04-05  Bruno Haible  <bruno@clisp.org>
45998         Make the multithread modules work on Cygwin 1.7.2.
45999         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
46000         imported symbols can be declared weak, so that it returns "no" on
46001         Cygwin 1.7.2.
46003 2010-04-05  Bruno Haible  <bruno@clisp.org>
46005         Use the module 'strncat'.
46006         * modules/unistr/u8-strncat (Depends-on): Add strncat.
46008         Tests for module 'strncat'.
46009         * modules/strncat-tests: New file.
46010         * tests/test-strncat.c: New file.
46012         New module 'strncat'.
46013         * lib/string.in.h (strncat): New declaration.
46014         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
46015         * m4/strncat.m4: New file, based on m4/memchr.m4.
46016         * modules/strncat: New file.
46017         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
46018         is declared.
46019         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
46020         REPLACE_STRNCAT.
46021         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
46022         REPLACE_STRNCAT.
46023         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
46024         module.
46025         * tests/test-string-c++.cc: Check signature of strncat.
46027 2010-04-05  Jim Meyering  <meyering@redhat.com>
46029         xstrtoumax-tests: convert to use init.sh
46030         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
46031         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46032         Use Exit, not exit.
46033         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46035         xstrtoimax-tests: convert to use init.sh
46036         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
46037         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46038         Use Exit, not exit.
46039         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46041 2010-04-05  Bruno Haible  <bruno@clisp.org>
46043         sys_socket: Avoid #define replacements in C++ mode.
46044         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
46045         warning to the function if possible, rather than #defining the symbol
46046         to a dysfunctional alias.
46048 2010-04-05  Bruno Haible  <bruno@clisp.org>
46050         fseeko: Fix C++ test error on mingw.
46051         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
46052         gl_FUNC_FSEEKO.
46053         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
46054         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
46055         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
46056         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
46058 2010-04-05  Bruno Haible  <bruno@clisp.org>
46060         duplocale: Improve test output.
46061         * tests/test-duplocale.c (main): Print reason for skipped test.
46063 2010-04-05  Bruno Haible  <bruno@clisp.org>
46065         Assume rmdir exists.
46066         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
46067         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
46069 2010-04-05  Bruno Haible  <bruno@clisp.org>
46071         Fix link error on Solaris 8 with cc.
46072         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
46074 2010-04-05  Bruno Haible  <bruno@clisp.org>
46076         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
46077         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
46079 2010-04-05  Bruno Haible  <bruno@clisp.org>
46081         vasprintf: Update documentation.
46082         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
46084 2010-04-05  Bruno Haible  <bruno@clisp.org>
46086         ptsname: Improve test.
46087         * tests/test-ptsname.c (main): Also try the various master names of BSD
46088         systems.
46090 2010-04-05  Bruno Haible  <bruno@clisp.org>
46092         memchr: Avoid a possible C++ test error.
46093         * lib/string.in.h (memchr): Provide declaration if function is missing.
46094         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
46095         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
46096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
46097         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
46099 2010-04-05  Bruno Haible  <bruno@clisp.org>
46101         strtok_r: Improve idiom.
46102         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
46103         AC_LIBOBJ is used.
46105 2010-04-05  Bruno Haible  <bruno@clisp.org>
46107         strdup: Improve idiom.
46108         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
46109         AC_LIBOBJ is used.
46110         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
46111         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
46112         when AC_LIBOBJ is used.
46114 2010-04-05  Bruno Haible  <bruno@clisp.org>
46116         mbsinit, mbrtowc, wcrtomb: Improve idioms.
46117         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
46118         don't set REPLACE_MBSINIT to 1.
46119         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
46120         don't set REPLACE_MBRTOWC to 1.
46121         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
46122         exist, don't set REPLACE_MBSRTOWCS to 1.
46123         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
46124         exist, don't set REPLACE_MBSNRTOWCS to 1.
46125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
46126         don't set REPLACE_WCRTOMB to 1.
46127         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
46128         exist, don't set REPLACE_WCSRTOMBS to 1.
46129         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
46130         exist, don't set REPLACE_WCSNRTOMBS to 1.
46132 2010-04-05  Bruno Haible  <bruno@clisp.org>
46134         ldexpl: Improve idiom.
46135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
46136         make sure to set HAVE_DECL_LDEXPL to 0.
46138 2010-04-05  Jim Meyering  <meyering@redhat.com>
46140         xstrtol-tests: convert to use init.sh
46141         * modules/xstrtol-tests (Files): Add tests/init.sh.
46142         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46143         Use Exit, not exit.
46144         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46146         atexit-tests: convert to use init.sh
46147         * modules/atexit-tests (Files): Add tests/init.sh.
46148         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46149         Use Exit, not exit.
46150         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46152         init.sh: fix typo
46153         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
46155         init.sh: make it easier for a test script to write to the tty, ...
46156         when using automake's parallel-tests mode.
46157         * tests/init.sh (stderr_fileno_): Define overridable variable.
46158         (warn_): New function, to use it.
46159         (fail_, skip_, framework_failure_): Use warn_.
46161 2010-04-04  Bruno Haible  <bruno@clisp.org>
46163         btowc: Avoid warning.
46164         * lib/btowc.c: Include <stdlib.h>.
46165         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
46167 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
46168             Bruno Haible  <bruno@clisp.org>
46170         wchar: Port to NetBSD 1.5.
46171         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
46172         * lib/wctype.in.h (WEOF): Likewise.
46174 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
46175             Bruno Haible  <bruno@clisp.org>
46177         Port extended stdio to NetBSD 1.5.
46178         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
46179         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
46180         older.
46182 2010-04-04  Bruno Haible  <bruno@clisp.org>
46184         string: Remove unused substitution.
46185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46186         HAVE_DECL_STRERROR.
46187         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
46189 2010-04-04  Bruno Haible  <bruno@clisp.org>
46191         strtod: Avoid a possible C++ test error.
46192         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
46193         set REPLACE_STRTOD.
46195 2010-04-04  Bruno Haible  <bruno@clisp.org>
46197         strerror: Update documentation.
46198         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
46200 2010-04-04  Bruno Haible  <bruno@clisp.org>
46202         stdio: Fix some C++ test errors on Solaris 8 with GCC.
46203         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
46204         _GL_CXXALIAS_SYS_CAST.
46206 2010-04-04  Bruno Haible  <bruno@clisp.org>
46208         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
46209         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
46210         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
46211         REPLACE_FREXPL to 1.
46212         * doc/posix-functions/frexpl.texi: Update documentation.
46214 2010-04-04  Bruno Haible  <bruno@clisp.org>
46216         math: Fix some C++ test errors on Solaris 8 and Cygwin.
46217         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
46219 2010-04-04  Bruno Haible  <bruno@clisp.org>
46221         Implement nanosleep for native Windows.
46222         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
46224 2010-04-04  Bruno Haible  <bruno@clisp.org>
46226         math: Fix some C++ test errors on Solaris 8.
46227         * lib/math.in.h (truncf, trunc): Use simpler idiom.
46229 2010-04-04  Bruno Haible  <bruno@clisp.org>
46231         math: Fix some C++ test errors on Cygwin.
46232         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
46233         truncl): Provide declaration if the system does not have it.
46234         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
46235         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
46236         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
46237         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
46238         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
46239         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
46240         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
46241         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
46242         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
46243         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
46244         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
46245         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
46246         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
46247         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
46248         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
46249         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
46250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
46251         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
46252         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
46253         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
46254         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
46255         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
46257 2010-04-04  Bruno Haible  <bruno@clisp.org>
46259         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
46260         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
46261         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
46262         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46263         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46264         * m4/isinf.m4 (gl_ISINF): Likewise.
46265         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46267 2010-04-04  Bruno Haible  <bruno@clisp.org>
46269         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
46270         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46272 2010-04-04  Bruno Haible  <bruno@clisp.org>
46274         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
46275         * modules/tmpfile (configure.ac): Update.
46277         tmpfile: Fix C++ test error on mingw.
46278         * lib/stdio.in.h (tmpfile): New declaration.
46279         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
46280         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
46281         * modules/tmpfile (Depends-on): Add stdio.
46282         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46283         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
46284         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
46285         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
46286         REPLACE_TMPFILE.
46287         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
46289 2010-04-04  Bruno Haible  <bruno@clisp.org>
46291         ioctl: Fix C++ test error on mingw.
46292         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
46293         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
46294         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
46296 2010-04-03  Bruno Haible  <bruno@clisp.org>
46298         wcwidth: Fix C++ test error on mingw.
46299         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
46300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
46301         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
46303 2010-04-03  Bruno Haible  <bruno@clisp.org>
46305         nanosleep: Fix C++ test error on mingw.
46306         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
46307         * lib/time.in.h (nanosleep): Use modern idiom.
46308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
46309         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
46310         REPLACE_NANOSLEEP to 1.
46311         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
46312         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
46314 2010-04-03  Bruno Haible  <bruno@clisp.org>
46316         strptime: Fix C++ test error on mingw.
46317         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
46318         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
46319         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
46320         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
46321         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
46322         not REPLACE_STRPTIME.
46323         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
46324         REPLACE_STRPTIME.
46326 2010-04-03  Bruno Haible  <bruno@clisp.org>
46328         timegm: Fix C++ test error on mingw.
46329         * lib/time.in.h (timegm): Use modern idiom.
46330         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
46331         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
46332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
46333         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
46335 2010-04-03  Bruno Haible  <bruno@clisp.org>
46337         timegm: Assume declaration if function exists.
46338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
46339         if it exists. Don't clobber ac_cv_func_timegm.
46341 2010-04-03  Bruno Haible  <bruno@clisp.org>
46343         time_r: Fix C++ test error on mingw.
46344         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
46345         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
46346         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
46347         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
46348         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
46350 2010-04-03  Bruno Haible  <bruno@clisp.org>
46352         time_r: Minor updates.
46353         * modules/time_r (Description): Mention the provided functions.
46354         * lib/time_r.c: Don't include <string.h>.
46355         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
46356         * doc/posix-functions/localtime_r.texi: Likewise.
46358 2010-04-03  Bruno Haible  <bruno@clisp.org>
46360         time: Fix regression introduced on 2010-03-08.
46361         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
46362         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
46364 2010-04-03  Jim Meyering  <meyering@redhat.com>
46366         maint.mk: don't silently disable project-specific syntax-check rules
46367         * top/maint.mk (_prohibit_regexp): Define, to help people realize
46368         that they need to convert their project-specific syntax-check rules
46369         to use the new _sc_search_regexp.
46371 2010-04-03  Bruno Haible  <bruno@clisp.org>
46373         fchdir: Fix regression introduced on 2010-03-08.
46374         * lib/unistd.in.h (fchdir): Fix declaration.
46375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
46376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
46377         REPLACE_FCHDIR.
46378         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
46379         REPLACE_FCHDIR.
46381 2010-04-03  Bruno Haible  <bruno@clisp.org>
46383         getpagesize: Fix C++ test error on mingw.
46384         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
46385         system does not declare the function.
46386         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
46387         declared.
46388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46389         HAVE_DECL_GETPAGESIZE.
46390         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
46392 2010-04-03  Bruno Haible  <bruno@clisp.org>
46394         stdio: Make C++ tests work on mingw.
46395         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
46396         does not declare the function.
46398 2010-04-03  Bruno Haible  <bruno@clisp.org>
46400         ftello: Fix C++ test error on mingw.
46401         * lib/stdio.in.h (ftello): Use modern idiom.
46402         * lib/ftello.c (ftello): Renamed from rpl_ftello.
46403         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
46404         is missing and that it needs to be replaced.
46405         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
46406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
46407         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
46409 2010-04-03  Bruno Haible  <bruno@clisp.org>
46411         fseeko: Fix C++ test error on mingw.
46412         * lib/stdio.in.h (fseeko): Use modern idiom.
46413         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
46414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
46415         is missing and that it needs to be replaced.
46416         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
46417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
46418         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
46420 2010-04-03  Bruno Haible  <bruno@clisp.org>
46422         mkstemp: Fix C++ test error on mingw.
46423         * lib/stdlib.in.h (mkstemp): Use modern idiom.
46424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
46425         function is missing and that it needs to be replaced.
46426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
46427         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
46429 2010-04-03  Bruno Haible  <bruno@clisp.org>
46431         stpncpy: Fix C++ test error on mingw.
46432         * lib/string.in.h (stpncpy): Use modern idiom.
46433         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
46434         function is missing and that it needs to be replaced.
46435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46436         REPLACE_STPNCPY.
46437         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
46439 2010-04-03  Bruno Haible  <bruno@clisp.org>
46441         sys_stat: Fix C++ test error on mingw.
46442         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
46443         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
46445 2010-04-03  Bruno Haible  <bruno@clisp.org>
46447         pty: Update doc.
46448         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
46450 2010-04-03  Bruno Haible  <bruno@clisp.org>
46452         unistd: Fix C++ test error on mingw.
46453         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
46455 2010-04-03  Bruno Haible  <bruno@clisp.org>
46457         Update doc regarding mingw.
46458         * doc/glibc-functions/openpty.texi: Update regarding mingw.
46459         * doc/glibc-functions/login_tty.texi: Likewise.
46460         * doc/glibc-functions/forkpty.texi: Likewise.
46462 2010-04-03  Bruno Haible  <bruno@clisp.org>
46464         stdlib: Avoid compilation failure of c-strtold on mingw.
46465         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
46467 2010-04-03  Bruno Haible  <bruno@clisp.org>
46469         locale: Make C++ tests work on Cygwin and mingw.
46470         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
46471         cannot provide the function.
46472         Reported by Simon Josefsson.
46474 2010-04-03  Bruno Haible  <bruno@clisp.org>
46476         localename: Port to MacOS X 10.6.
46477         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
46478         memory layout of the locales in MacOS X 10.6 as well.
46479         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
46481 2010-04-02  Bruno Haible  <bruno@clisp.org>
46483         gnulib-tool: Ensure that long-running tests are executed last.
46484         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
46485         running tests after the one for the other tests.
46487 2010-04-02  Bruno Haible  <bruno@clisp.org>
46489         gnulib-tool: Ensure the tests in the main directory are executed first.
46490         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
46491         start with the current directory.
46493 2010-04-02  Bruno Haible  <bruno@clisp.org>
46495         Tests for module 'havelib', moved here from GNU gettext.
46496         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
46497         modifications.
46498         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
46499         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
46500         with modifications.
46501         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
46502         modifications.
46503         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
46504         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
46505         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
46506         with modifications.
46507         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
46508         with modifications.
46509         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
46510         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
46511         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
46512         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
46513         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
46514         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
46515         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
46516         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
46517         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
46518         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
46519         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
46520         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
46521         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
46522         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
46523         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
46524         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
46525         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
46526         with modifications.
46527         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
46528         with modifications.
46529         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
46530         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
46531         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
46532         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
46533         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
46534         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
46535         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
46536         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
46537         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
46538         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
46539         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
46540         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
46541         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
46542         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
46543         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
46544         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
46545         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
46546         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
46547         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
46548         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
46549         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
46550         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
46551         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
46552         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
46553         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
46554         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
46555         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
46556         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
46557         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
46558         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
46559         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
46560         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
46561         * tests/havelib/rpathx/rpathx.c: New file, from
46562         gettext/autoconf-lib-link.
46563         * tests/havelib/rpathx/Makefile.am: New file, from
46564         gettext/autoconf-lib-link.
46565         * tests/havelib/rpathx/configure.ac: New file, from
46566         gettext/autoconf-lib-link with modifications.
46567         * tests/havelib/rpathy/rpathy.c: New file, from
46568         gettext/autoconf-lib-link.
46569         * tests/havelib/rpathy/Makefile.am: New file, from
46570         gettext/autoconf-lib-link.
46571         * tests/havelib/rpathy/configure.ac: New file, from
46572         gettext/autoconf-lib-link with modifications.
46573         * tests/havelib/rpathz/rpathz.c: New file, from
46574         gettext/autoconf-lib-link.
46575         * tests/havelib/rpathz/Makefile.am: New file, from
46576         gettext/autoconf-lib-link.
46577         * tests/havelib/rpathz/configure.ac: New file, from
46578         gettext/autoconf-lib-link with modifications.
46579         * tests/havelib/rpathlx/usex.c: New file, from
46580         gettext/autoconf-lib-link.
46581         * tests/havelib/rpathlx/Makefile.am: New file, from
46582         gettext/autoconf-lib-link.
46583         * tests/havelib/rpathlx/configure.ac: New file, from
46584         gettext/autoconf-lib-link with modifications.
46585         * tests/havelib/rpathly/usey.c: New file, from
46586         gettext/autoconf-lib-link.
46587         * tests/havelib/rpathly/Makefile.am: New file, from
46588         gettext/autoconf-lib-link.
46589         * tests/havelib/rpathly/configure.ac: New file, from
46590         gettext/autoconf-lib-link with modifications.
46591         * tests/havelib/rpathlz/usez.c: New file, from
46592         gettext/autoconf-lib-link.
46593         * tests/havelib/rpathlz/Makefile.am: New file, from
46594         gettext/autoconf-lib-link.
46595         * tests/havelib/rpathlz/configure.ac: New file, from
46596         gettext/autoconf-lib-link with modifications.
46597         * tests/havelib/rpathlyx/usey.c: New file, from
46598         gettext/autoconf-lib-link.
46599         * tests/havelib/rpathlyx/Makefile.am: New file, from
46600         gettext/autoconf-lib-link.
46601         * tests/havelib/rpathlyx/configure.ac: New file, from
46602         gettext/autoconf-lib-link with modifications.
46603         * tests/havelib/rpathlzyx/usez.c: New file, from
46604         gettext/autoconf-lib-link.
46605         * tests/havelib/rpathlzyx/Makefile.am: New file, from
46606         gettext/autoconf-lib-link.
46607         * tests/havelib/rpathlzyx/configure.ac: New file, from
46608         gettext/autoconf-lib-link with modifications.
46609         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
46610         with modifications.
46612 2010-04-02  Bruno Haible  <bruno@clisp.org>
46614         gnulib-tool: Create distributed built sources also for the tests.
46615         * gnulib-tool (func_create_testdir): Also generate distributed built
46616         sources in the tests directory.
46618 2010-04-02  Bruno Haible  <bruno@clisp.org>
46620         gnulib-tool: Obey user's environment variables.
46621         * gnulib-tool (func_create_testdir): When creating built sources,
46622         respect the environment variables for autoconf, automake, etc. given by
46623         the user.
46625 2010-04-02  Bruno Haible  <bruno@clisp.org>
46627         gnulib-tool: Provide the value of --m4-base to modules.
46628         * gnulib-tool (func_import, func_create_testdir): Emit a definition
46629         of gl_m4_base.
46631 2010-04-02  Eric Blake  <eblake@redhat.com>
46633         maint.mk: fix some fallout
46634         * NEWS: Document the incompatible change, and its effect on cfg.mk.
46635         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
46637 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
46639         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
46640         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
46641         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
46642         (sc_cast_of_x_alloc_return_value): Likewise.
46643         (sc_cast_of_alloca_return_value): Likewise.
46644         (sc_space_tab): Likewise.
46645         (sc_prohibit_atoi_atof): Likewise.
46646         (sc_prohibit_magic_number_exit): Likewise.
46647         (sc_error_exit_success): Likewise.
46648         (sc_file_system): Likewise.
46649         (sc_prohibit_have_config_h): Likewise.
46650         (sc_require_config_h): Likewise.
46651         (sc_prohibit_HAVE_MBRTOWC): Likewise.
46652         (sc_obsolete_symbols): Likewise.
46653         (sc_changelog): Likewise.
46654         (sc_program_name): Likewise.
46655         (sc_the_the): Likewise.
46656         (sc_trailing_blank): Likewise.
46657         (sc_two_space_separator_in_usage): Likewise.
46658         (sc_useless_cpp_parens): Likewise.
46659         (sc_GPL_version): Likewise.
46660         (sc_GFDL_version): Likewise.
46661         (sc_texinfo_acronym): Likewise.
46662         (sc_prohibit_cvs_keyword): Likewise.
46663         (sc_prohibit_stat_st_blocks): Likewise.
46664         (sc_prohibit_S_IS_definition): Likewise.
46665         (sc_redundant_const): Likewise.
46666         (sc_makefile_TAB_only_indentation): Likewise.
46667         (sc_m4_quote_check): Likewise.
46668         (sc_makefile_path_separator_check): Likewise.
46669         (sc_copyright_check): Likewise.
46670         (sc_Wundef_boolean): Likewise.
46671         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46673         maint.mk: match 0 or more whitespace-before-function-call '('
46674         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
46675         that have zero or two-and-more spaces between the function name
46676         and the open parenthesis.
46677         (sc_error_message_warn_fatal): Likewise.
46678         (sc_error_message_uppercase): Likewise.
46679         (sc_error_message_period): Likewise.
46681 2010-03-31  Eric Blake  <eblake@redhat.com>
46683         maint.mk: check for [ as well as test
46684         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
46685         Based on a libvirt report by Matthias Bolte.
46687         gnumakefile: don't squelch _version output
46688         * top/GNUmakefile (_version): Create one-shot dependency rather
46689         than using $(shell) when version must be regenerated.
46690         (_autoreconf): Run verbosely, by default.
46692         sys_time: avoid compiler warnings
46693         * lib/sys_time.in.h (includes): Ensure gcc pragma is
46694         unconditional, fixing regression from 2010-03-29.
46695         Reported by Simon Josefsson.
46697 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
46699         maint.mk: s/_header_without_use/_sc_header_without_use/
46700         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
46701         (sc_prohibit_assert_without_use): Use the new name.
46702         (sc_prohibit_close_stream_without_use): Likewise.
46703         (sc_prohibit_getopt_without_use): Likewise.
46704         (sc_prohibit_quotearg_without_use): Likewise.
46705         (sc_prohibit_quote_without_use): Likewise.
46706         (sc_prohibit_long_options_without_use): Likewise.
46707         (sc_prohibit_inttostr_without_use): Likewise.
46708         (sc_prohibit_ignore_value_without_use): Likewise.
46709         (sc_prohibit_error_without_use): Likewise.
46710         (sc_prohibit_xalloc_without_use): Likewise.
46711         (sc_prohibit_hash_without_use): Likewise.
46712         (sc_prohibit_hash_pjw_without_use): Likewise.
46713         (sc_prohibit_safe_read_without_use): Likewise.
46714         (sc_prohibit_argmatch_without_use): Likewise.
46715         (sc_prohibit_canonicalize_without_use): Likewise.
46716         (sc_prohibit_root_dev_ino_without_use): Likewise.
46717         (sc_prohibit_openat_without_use): Likewise.
46718         (sc_prohibit_c_ctype_without_use): Likewise.
46719         (sc_prohibit_signal_without_use): Likewise.
46720         (sc_prohibit_intprops_without_use): Likewise.
46722 2010-03-30  Eric Blake  <eblake@redhat.com>
46724         maint: improve module indicators
46725         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
46726         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
46727         columns, and avoid extra macro expansion.
46729         fdopendir: work around FreeBSD bug
46730         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
46731         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
46732         * modules/dirent (Makefile.am): Substitute it.
46733         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
46734         declaration.
46735         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
46736         fix.
46737         Reported by Christian Weisgerber <naddy@mips.inka.de>.
46739 2010-03-29  Bruno Haible  <bruno@clisp.org>
46741         Emit #pragma system_header after the inclusion guard, not before.
46742         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
46743         guard that spans the entire file, not before. This enables an
46744         optimization in GCC's preprocessor.
46745         * lib/ctype.in.h: Likewise.
46746         * lib/dirent.in.h: Likewise.
46747         * lib/errno.in.h: Likewise.
46748         * lib/float.in.h: Likewise.
46749         * lib/getopt.in.h: Likewise.
46750         * lib/iconv.in.h: Likewise.
46751         * lib/langinfo.in.h: Likewise.
46752         * lib/locale.in.h: Likewise.
46753         * lib/math.in.h: Likewise.
46754         * lib/netdb.in.h: Likewise.
46755         * lib/netinet_in.in.h: Likewise.
46756         * lib/pty.in.h: Likewise.
46757         * lib/sched.in.h: Likewise.
46758         * lib/se-selinux.in.h: Likewise.
46759         * lib/search.in.h: Likewise.
46760         * lib/spawn.in.h: Likewise.
46761         * lib/stdarg.in.h: Likewise.
46762         * lib/stdint.in.h: Likewise.
46763         * lib/string.in.h: Likewise.
46764         * lib/strings.in.h: Likewise.
46765         * lib/sys_file.in.h: Likewise.
46766         * lib/sys_ioctl.in.h: Likewise.
46767         * lib/sys_time.in.h: Likewise.
46768         * lib/sys_times.in.h: Likewise.
46769         * lib/sys_utsname.in.h: Likewise.
46770         * lib/sys_wait.in.h: Likewise.
46771         * lib/sysexits.in.h: Likewise.
46772         * lib/wctype.in.h: Likewise.
46774 2010-03-28  James Youngman  <jay@gnu.org>
46776         save-cwd: don't leak a file descriptor when the caller execs.
46777         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
46778         saved file descriptor.
46779         * modules/save-cwd (Depends-on): Depend on cloexec.
46781 2010-03-29  Bruno Haible  <bruno@clisp.org>
46783         Remove vestiges of fts-lgpl module.
46784         * lib/fts_.h: Assume GNULIB_FTS is 1.
46785         * lib/fts.c: Likewise.
46786         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
46788 2010-03-28  Bruno Haible  <bruno@clisp.org>
46790         Fix definition of tests witness macro.
46791         * gnulib-tool (func_import): Fix definition of witness macro.
46793 2010-03-28  Bruno Haible  <bruno@clisp.org>
46795         Fix ioctl's protoype on glibc systems.
46796         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
46797         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
46798         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
46799         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
46800         signature. If not, arrange to replace the ioctl function.
46801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46802         REPLACE_IOCTL.
46803         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
46804         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
46805         Reported by Ludovic Courtès <ludo@gnu.org>.
46807 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
46809         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
46810         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
46811         made it so grep -r --include=GLOB* ... did not work.
46813 2010-03-26  Jim Meyering  <meyering@redhat.com>
46814             Eric Blake  <eblake@redhat.com>
46816         maint.mk: prohibit use of test's -o and -a operators
46817         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
46819 2010-03-28  Bruno Haible  <bruno@clisp.org>
46821         Remove unused GNULIB_XYZ macro definitions.
46822         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
46823         invocation.
46825 2010-03-28  Bruno Haible  <bruno@clisp.org>
46827         Mark privileged tests modules.
46828         * modules/idpriv-drop-tests (Status): New section.
46829         * modules/idpriv-droptemp-tests (Status): New section.
46831 2010-03-28  Bruno Haible  <bruno@clisp.org>
46833         Split C++ tests into separate tests modules.
46834         * modules/dirent-c++-tests: New file, extracted from
46835         modules/dirent-tests.
46836         * modules/dirent-tests: Depend on it.
46837         * modules/fcntl-h-c++-tests: New file, extracted from
46838         modules/fcntl-h-tests.
46839         * modules/fcntl-h-tests: Depend on it.
46840         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
46841         * modules/glob-tests: Depend on it.
46842         * modules/iconv-h-c++-tests: New file, extracted from
46843         modules/iconv-h-tests.
46844         * modules/iconv-h-tests: Depend on it.
46845         * modules/langinfo-c++-tests: New file, extracted from
46846         modules/langinfo-tests.
46847         * modules/langinfo-tests: Depend on it.
46848         * modules/locale-c++-tests: New file, extracted from
46849         modules/locale-tests.
46850         * modules/locale-tests: Depend on it.
46851         * modules/math-c++-tests: New file, extracted from modules/math-tests.
46852         * modules/math-tests: Depend on it.
46853         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
46854         * modules/pty-tests: Depend on it.
46855         * modules/search-c++-tests: New file, extracted from
46856         modules/search-tests.
46857         * modules/search-tests: Depend on it.
46858         * modules/signal-c++-tests: New file, extracted from
46859         modules/signal-tests.
46860         * modules/signal-tests: Depend on it.
46861         * modules/spawn-c++-tests: New file, extracted from
46862         modules/spawn-tests.
46863         * modules/spawn-tests: Depend on it.
46864         * modules/stdio-c++-tests: New file, extracted from
46865         modules/stdio-tests.
46866         * modules/stdio-tests: Depend on it.
46867         * modules/stdlib-c++-tests: New file, extracted from
46868         modules/stdlib-tests.
46869         * modules/stdlib-tests: Depend on it.
46870         * modules/string-c++-tests: New file, extracted from
46871         modules/string-tests.
46872         * modules/string-tests: Depend on it.
46873         * modules/sys_ioctl-c++-tests: New file, extracted from
46874         modules/sys_ioctl-tests.
46875         * modules/sys_ioctl-tests: Depend on it.
46876         * modules/sys_select-c++-tests: New file, extracted from
46877         modules/sys_select-tests.
46878         * modules/sys_select-tests: Depend on it.
46879         * modules/sys_socket-c++-tests: New file, extracted from
46880         modules/sys_socket-tests.
46881         * modules/sys_socket-tests: Depend on it.
46882         * modules/sys_stat-c++-tests: New file, extracted from
46883         modules/sys_stat-tests.
46884         * modules/sys_stat-tests: Depend on it.
46885         * modules/sys_time-c++-tests: New file, extracted from
46886         modules/sys_time-tests.
46887         * modules/sys_time-tests: Depend on it.
46888         * modules/time-c++-tests: New file, extracted from modules/time-tests.
46889         * modules/time-tests: Depend on it.
46890         * modules/unistd-c++-tests: New file, extracted from
46891         modules/unistd-tests.
46892         * modules/unistd-tests: Depend on it.
46893         * modules/wchar-c++-tests: New file, extracted from
46894         modules/wchar-tests.
46895         * modules/wchar-tests: Depend on it.
46896         * modules/wctype-c++-tests: New file, extracted from
46897         modules/wctype-tests.
46898         * modules/wctype-tests: Depend on it.
46899         Reported by Simon Josefsson.
46901 2010-03-28  Bruno Haible  <bruno@clisp.org>
46903         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
46904         * gnulib-tool (func_exists_module): New function, extracted from
46905         func_verify_module.
46906         (func_verify_module): Use it.
46907         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
46908         'foo' only if 'foo' exists.
46909         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
46910         module.
46912 2010-03-28  Bruno Haible  <bruno@clisp.org>
46914         gnulib-tool: Add support for special categories of tests.
46915         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
46916         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
46917         (func_usage): Document them.
46918         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
46919         inc_unportable_tests, inc_all_tests): New variables.
46920         (func_acceptable): Consider these variables.
46921         (func_modules_transitive_closure): Make it work when the 'Status' field
46922         consists of multiple words.
46923         (func_import): Store and restore the values of inc_cxx_tests,
46924         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
46925         inc_all_tests in gnulib-comp.m4.
46926         (func_create_testdir): Set inc_all_tests to true.
46927         * doc/gnulib.texi (Extra tests modules): New section.
46928         Suggested by Jim Meyering.
46930 2010-03-28  Bruno Haible  <bruno@clisp.org>
46932         ansi-c++-opt: Allow turning off the C++ build by default.
46933         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
46934         gl_CXX_CHOICE_DEFAULT_NO is defined.
46935         Requested by Eric Blake.
46937 2010-03-28  Bruno Haible  <bruno@clisp.org>
46939         unistd: Avoid #define replacements in C++ mode.
46940         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
46941         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
46942         setsockopt, shutdown, select): In C++, attach a warning to the function
46943         if possible, rather than #defining the symbol to a dysfunctional alias.
46944         Reported by John W. Eaton <jwe@gnu.org>.
46946 2010-03-28  Bruno Haible  <bruno@clisp.org>
46948         Fix link errors on mingw.
46949         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
46950         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
46951         $(LIBSOCKET).
46952         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
46953         $(LIBSOCKET).
46955 2010-03-28  Bruno Haible  <bruno@clisp.org>
46956             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46958         lib-ignore: Determine different options for different compilers.
46959         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
46960         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
46961         Add comments.
46962         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
46963         * NEWS: Mention the change.
46965 2010-03-27  Bruno Haible  <bruno@clisp.org>
46967         Remove unused GNULIB_XYZ macro definitions.
46968         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
46969         * modules/fseek (configure.ac): Likewise.
46970         * modules/ioctl (configure.ac): Likewise.
46971         * modules/open (configure.ac): Likewise.
46972         * modules/stdlib-safer (configure.ac): Likewise.
46974 2010-03-27  Bruno Haible  <bruno@clisp.org>
46976         Add a remark about certain modules.
46977         * modules/malloc (Comment): New section.
46978         * modules/realloc (Comment): Likewise.
46979         * modules/sigpipe (Comment): Likewise.
46981 2010-03-27  Bruno Haible  <bruno@clisp.org>
46983         Resolve conflict between the two kinds of module indicators.
46984         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
46985         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
46986         * modules/canonicalize (configure.ac): Invoke
46987         gl_MODULE_INDICATOR_FOR_TESTS.
46988         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
46989         GNULIB_XYZ.
46990         * tests/test-dirent-c++.cc: Likewise.
46991         * tests/test-dirent-safer.c: Likewise.
46992         * tests/test-dup2.c: Likewise.
46993         * tests/test-fchdir.c: Likewise.
46994         * tests/test-fcntl-h-c++.cc: Likewise.
46995         * tests/test-getopt.c: Likewise.
46996         * tests/test-getopt.h: Likewise.
46997         * tests/test-langinfo-c++.cc: Likewise.
46998         * tests/test-locale-c++.cc: Likewise.
46999         * tests/test-math-c++.cc: Likewise.
47000         * tests/test-pty-c++.cc: Likewise.
47001         * tests/test-search-c++.cc: Likewise.
47002         * tests/test-signal-c++.cc: Likewise.
47003         * tests/test-spawn-c++.cc: Likewise.
47004         * tests/test-stdio-c++.cc: Likewise.
47005         * tests/test-stdlib-c++.cc: Likewise.
47006         * tests/test-string-c++.cc: Likewise.
47007         * tests/test-sys_ioctl-c++.cc: Likewise.
47008         * tests/test-sys_select-c++.cc: Likewise.
47009         * tests/test-sys_socket-c++.cc: Likewise.
47010         * tests/test-sys_stat-c++.cc: Likewise.
47011         * tests/test-sys_time-c++.cc: Likewise.
47012         * tests/test-time-c++.cc: Likewise.
47013         * tests/test-unistd-c++.cc: Likewise.
47014         * tests/test-wchar-c++.cc: Likewise.
47015         * tests/uninorm/test-u8-nfc.c: Likewise.
47016         * tests/uninorm/test-u8-nfd.c: Likewise.
47017         * tests/uninorm/test-u8-nfkc.c: Likewise.
47018         * tests/uninorm/test-u8-nfkd.c: Likewise.
47019         * tests/uninorm/test-u16-nfc.c: Likewise.
47020         * tests/uninorm/test-u16-nfd.c: Likewise.
47021         * tests/uninorm/test-u16-nfkc.c: Likewise.
47022         * tests/uninorm/test-u16-nfkd.c: Likewise.
47023         * tests/uninorm/test-u32-nfc.c: Likewise.
47024         * tests/uninorm/test-u32-nfc-big.c: Likewise.
47025         * tests/uninorm/test-u32-nfd.c: Likewise.
47026         * tests/uninorm/test-u32-nfd-big.c: Likewise.
47027         * tests/uninorm/test-u32-nfkc.c: Likewise.
47028         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
47029         * tests/uninorm/test-u32-nfkd.c: Likewise.
47030         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
47031         * tests/uninorm/test-u32-normalize-big.c: Likewise.
47033 2010-03-27  Bruno Haible  <bruno@clisp.org>
47035         Distinguish two kinds of module indicators.
47036         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
47037         gl_MODULE_INDICATOR.
47038         (gl_MODULE_INDICATOR): New macro.
47039         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
47040         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
47041         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
47042         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
47043         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
47044         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
47045         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
47046         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
47047         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
47048         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
47049         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
47050         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
47051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
47052         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
47053         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
47054         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
47055         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
47056         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
47057         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
47058         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
47059         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
47060         * modules/cloexec (configure.ac): Likewise.
47061         * modules/getopt-gnu (configure.ac): Likewise.
47062         * modules/uninorm/u8-normalize (configure.ac): Likewise.
47063         * modules/uninorm/u16-normalize (configure.ac): Likewise.
47064         * modules/uninorm/u32-normalize (configure.ac): Likewise.
47065         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
47067 2010-03-27  Bruno Haible  <bruno@clisp.org>
47069         New module description field 'Comment'.
47070         * gnulib-tool: New option --extract-comment.
47071         (func_usage): Document it.
47072         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
47073         (func_get_comment): New function.
47074         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
47076 2010-03-27  Bruno Haible  <bruno@clisp.org>
47078         Addendum to 2010-02-07 commit.
47079         * gnulib-tool (func_usage): Document --extract-applicability option.
47081 2010-03-27  Bruno Haible  <bruno@clisp.org>
47083         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
47084         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
47085         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
47086         rather than link errors.
47088 2010-03-27  Bruno Haible  <bruno@clisp.org>
47090         Avoid side effects from tests-related modules on the compilation of lib.
47091         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
47092         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
47093         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
47094         parameter. Emit into AM_CPPFLAGS a definition of the designated C
47095         macro.
47096         (func_import): Define a witness macro. Assign it a value that depends
47097         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
47098         tests-related modules.
47099         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
47100         Reported by Jim Meyering.
47102 2010-03-27  Bruno Haible  <bruno@clisp.org>
47104         Factorize common .m4 code.
47105         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
47106         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
47107         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
47108         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
47109         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
47110         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
47111         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
47112         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
47113         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
47114         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
47115         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
47116         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
47117         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
47118         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
47119         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
47120         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
47121         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
47122         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
47123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
47124         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
47125         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
47126         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
47127         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
47128         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
47129         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
47130         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
47131         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
47132         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
47133         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
47134         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
47135         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
47136         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
47138 2010-03-27  Bruno Haible  <bruno@clisp.org>
47140         Fix a compilation error on Cygwin with g++ >= 4.3.
47141         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
47142         if it is undefined or if we alias it to chmod.
47143         (lstat): Don't warn about the use of this function if it is undefined
47144         or if we alias it to stat.
47145         Reported by Simon Josefsson.
47147 2010-03-27  Bruno Haible  <bruno@clisp.org>
47149         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
47150         * modules/getlogin (configure.ac): Update.
47152         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
47153         * modules/getlogin_r (configure.ac): Update.
47155         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
47156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
47157         * modules/inet_ntop (configure.ac): Update.
47159         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
47160         * modules/inet_pton (configure.ac): Update.
47162         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
47163         * modules/mbslen (configure.ac): Update.
47165         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
47166         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
47167         * modules/forkpty (configure.ac): Update.
47168         * modules/openpty (configure.ac): Update.
47170 2010-03-26  Simon Josefsson  <simon@josefsson.org>
47172         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
47173         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
47175 2010-03-25  Eric Blake  <eblake@redhat.com>
47177         maint: use pragma consistently across replacement headers
47178         * lib/ctype.in.h (system_header): Hoist for consistent placement.
47179         * lib/dirent.in.h (system_header): Likewise.
47180         * lib/errno.in.h (system_header): Likewise.
47181         * lib/float.in.h (system_header): Likewise.
47182         * lib/getopt.in.h (system_header): Likewise.
47183         * lib/iconv.in.h (system_header): Likewise.
47184         * lib/inttypes.in.h (system_header): Likewise.
47185         * lib/langinfo.in.h (system_header): Likewise.
47186         * lib/locale.in.h (system_header): Likewise.
47187         * lib/math.in.h (system_header): Likewise.
47188         * lib/netdb.in.h (system_header): Likewise.
47189         * lib/netinet_in.in.h (system_header): Likewise.
47190         * lib/pty.in.h (system_header): Likewise.
47191         * lib/sched.in.h (system_header): Likewise.
47192         * lib/se-selinux.in.h (system_header): Likewise.
47193         * lib/search.in.h (system_header): Likewise.
47194         * lib/spawn.in.h (system_header): Likewise.
47195         * lib/stdarg.in.h (system_header): Likewise.
47196         * lib/stdint.in.h (system_header): Likewise.
47197         * lib/string.in.h (system_header): Likewise.
47198         * lib/strings.in.h (system_header): Likewise.
47199         * lib/sys_file.in.h (system_header): Likewise.
47200         * lib/sys_ioctl.in.h (system_header): Likewise.
47201         * lib/sys_socket.in.h (system_header): Likewise.
47202         * lib/sys_times.in.h (system_header): Likewise.
47203         * lib/sys_utsname.in.h (system_header): Likewise.
47204         * lib/sys_wait.in.h (system_header): Likewise.
47205         * lib/sysexits.in.h (system_header): Likewise.
47206         * lib/unistd.in.h (system_header): Likewise.
47207         * lib/wctype.in.h (system_header): Likewise.
47209         arpa/inet: fix mingw compilation warning
47210         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
47211         Reported by Matthew Bolte.
47213 2010-03-25  Bruno Haible  <bruno@clisp.org>
47215         Avoid collision between gnulib wrapper and libintl wrapper.
47216         * lib/printf.c (printf): Don't define if a printf wrapper is already
47217         defined in intl/printf.c.
47218         Reported by Michel Boaventura <michel@michelboaventura.com>.
47220 2010-03-25  Bruno Haible  <bruno@clisp.org>
47222         Use ANSI C.
47223         * lib/readutmp.h (getutent): Provide ANSI C prototype.
47225 2010-03-25  Bruno Haible  <bruno@clisp.org>
47227         Minor formatting changes.
47228         * lib/acosl.c: Insert space before function argument list.
47229         * lib/argz.c: Likewise.
47230         * lib/asinl.c: Likewise.
47231         * lib/expl.c: Likewise.
47232         * lib/gen-uni-tables.c: Likewise.
47233         * lib/gettext.h: Likewise.
47234         * lib/glthread/lock.h: Likewise.
47235         * lib/tanl.c: Likewise.
47236         * lib/uniname/uniname.c: Likewise.
47237         * tests/test-idpriv-drop.c: Likewise.
47238         * tests/test-idpriv-droptemp.c: Likewise.
47239         * tests/test-lock.c: Likewise.
47240         * tests/test-tls.c: Likewise.
47241         * lib/argp-help.c: Insert space before function-like macro argument
47242         list.
47243         * lib/memcmp.c: Likewise.
47244         * tests/test-base64.c: Likewise.
47245         * lib/localename.c: Insert space before sizeof's argument list.
47246         * lib/safe-alloc.h: Likewise.
47247         * lib/file-set.h: Insert space before macro argument list.
47248         * tests/test-argp.c: Likewise.
47249         * lib/argp-namefrob.h: Insert space before function parameter list.
47250         * lib/getaddrinfo.c: Likewise.
47251         * lib/netdb.in.h: Likewise.
47252         * lib/parse-duration.h: Likewise.
47253         * lib/parse-duration.c: Likewise.
47254         * lib/poll.c: Likewise.
47255         * lib/select.c: Likewise.
47256         * lib/trim.h: Likewise.
47257         * tests/test-usleep.c: Likewise.
47258         * lib/ldexpl.c: Insert space before function parameter list and before
47259         function argument list.
47260         * lib/logl.c: Likewise.
47261         * lib/sqrtl.c: Likewise.
47262         * lib/trim.c: Likewise.
47263         * lib/cosl.c: Use GNU style indentation. Insert space before function
47264         argument list.
47265         * lib/sinl.c: Likewise.
47266         * lib/tsearch.c: Insert space after 'for'.
47267         Reported by Jim Meyering.
47269 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
47271         * maint.mk (sc_Wundef_boolean): Check for the presence of the
47272         config header before grepping, as it's not present before
47273         autoreconf/configure are run.  Reported by Simon Josefsson.
47275 2010-03-23  Bruno Haible  <bruno@clisp.org>
47277         pt_chown: Make it work with automake < 1.11.
47278         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
47279         Reported by Simon Josefsson.
47281 2010-03-23  Bruno Haible  <bruno@clisp.org>
47283         pt_chown: Don't depend on GPLed modules.
47284         * lib/pt_chown.c: Don't include idpriv.h.
47285         (main): Don't drop privileges.
47286         * modules/pt_chown (Depends-on): Remove idpriv-drop.
47287         Reported by Simon Josefsson.
47289 2010-03-24  Simon Josefsson  <simon@josefsson.org>
47291         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
47292         suggestions from karl@freefriends.org (Karl Berry).
47294 2010-03-22  Eric Blake  <eblake@redhat.com>
47296         gethostname: further tweaks
47297         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
47298         are overriding gethostname.
47299         Suggested by Bruno Haible.
47301 2010-03-21  Bruno Haible  <bruno@clisp.org>
47303         Fix comments.
47304         * lib/forkpty.c (rpl_forkpty): Fix comment.
47305         * lib/openpty.c (rpl_openpty): Likewise.
47306         Reported by Eric Blake.
47308 2010-03-22  Eric Blake  <eblake@redhat.com>
47310         gethostname: fix build on mingw
47311         * lib/unistd.in.h (includes): Work around fact that mingw
47312         <winsock2.h> re-includes <unistd.h>, by avoiding any
47313         redeclarations if we are being included by <winsock2.h>.
47314         Reported by Matthias Bolte.
47316 2010-03-21  Bruno Haible  <bruno@clisp.org>
47318         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
47319         * lib/forkpty.c (forkpty): New replacement function, from glibc with
47320         modifications.
47321         * lib/pty.in.h (forkpty): Update declaration. Add comments.
47322         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
47323         provide the replacement.
47324         * modules/forkpty (Depends-on): Add openpty, login_tty.
47325         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
47326         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
47327         * doc/glibc-functions/forkpty.texi: More supported platforms.
47328         * config/srclist.txt: Add forkpty.c (commented).
47330 2010-03-21  Bruno Haible  <bruno@clisp.org>
47332         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
47333         (Makefile.am): Verify that PTY_LIB is defined.
47335         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
47337 2010-03-21  Bruno Haible  <bruno@clisp.org>
47339         Tests for module 'login_tty'.
47340         * modules/login_tty-tests: New file.
47341         * tests/test-login_tty.c: New file.
47343         New module 'login_tty'.
47344         * lib/login_tty.c: New file.
47345         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
47346         * modules/login_tty: New file.
47347         * doc/glibc-functions/login_tty.texi: Mention the new module.
47349 2010-03-21  Bruno Haible  <bruno@clisp.org>
47351         login_tty: Documentation.
47352         * doc/glibc-functions/login_tty.texi: New file.
47353         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
47355 2010-03-21  Bruno Haible  <bruno@clisp.org>
47357         pty: Consistent macro naming.
47358         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
47359         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
47360         * modules/pty (configure.ac): Update.
47362 2010-03-21  Bruno Haible  <bruno@clisp.org>
47364         Tests for openpty: Make stricter.
47365         * tests/test-openpty.c (main): Add test of canonical processing and
47366         erase.
47367         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
47369         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
47370         * lib/openpty.c (openpty): New replacement function.
47371         * lib/pty.in.h: Include <termios.h>.
47372         (openpty): Update declaration. Add comments.
47373         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
47374         is not declared, arrange to provide the replacement. Check for _getpty
47375         and posix_openpt.
47376         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
47377         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
47378         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
47379         * modules/pty-tests (test_pty_c___LDADD): New variable.
47380         * doc/glibc-functions/openpty.texi: More supported platforms.
47382 2010-03-21  Bruno Haible  <bruno@clisp.org>
47384         setenv: Tweaks.
47385         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
47386         the test program.
47387         * doc/posix-functions/setenv.texi: Update platforms list.
47389 2010-03-21  Bruno Haible  <bruno@clisp.org>
47391         New module 'unlockpt'.
47392         * lib/unlockpt.c: New file, from glibc with modifications.
47393         * m4/unlockpt.m4: New file.
47394         * modules/unlockpt: New file.
47395         * lib/stdlib.in.h (unlockpt): New declaration.
47396         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
47397         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
47398         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
47399         HAVE_UNLOCKPT.
47400         * doc/posix-functions/unlockpt.texi: Mention the new module.
47401         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
47402         * config/srclist.txt: Add unlockpt.c (commented).
47404 2010-03-21  Jim Meyering  <meyering@redhat.com>
47406         maint.mk: prohibit inclusion of "intprops.h" without use
47407         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
47409 2010-03-21  Bruno Haible  <bruno@clisp.org>
47411         New module 'grantpt'.
47412         * lib/grantpt.c: New file, from glibc with modifications.
47413         * m4/grantpt.m4: New file.
47414         * modules/grantpt: New file.
47415         * lib/stdlib.in.h (grantpt): New declaration.
47416         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
47417         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
47418         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
47419         HAVE_GRANTPT.
47420         * doc/posix-functions/grantpt.texi: Mention the new module.
47421         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
47422         * config/srclist.txt: Add grantpt.c (commented).
47424 2010-03-21  Bruno Haible  <bruno@clisp.org>
47426         New module 'pt_chown'.
47427         * lib/pt_chown.c: New file, from glibc with modifications.
47428         * lib/pty-private.h: New file, from glibc with modifications.
47429         * modules/pt_chown: New file.
47430         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
47432 2010-03-21  Bruno Haible  <bruno@clisp.org>
47434         Tests for module 'ptsname'.
47435         * modules/ptsname-tests: New file.
47436         * tests/test-ptsname.c: New file.
47438         New module 'ptsname'.
47439         * lib/ptsname.c: New file, from glibc with modifications.
47440         * m4/ptsname.m4: New file.
47441         * modules/ptsname: New file.
47442         * lib/stdlib.in.h (ptsname): New declaration.
47443         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
47444         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
47445         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
47446         HAVE_PTSNAME.
47447         * doc/posix-functions/ptsname.texi: Mention the new module.
47448         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
47449         * config/srclist.txt: Add ptsname.c (commented).
47451 2010-03-21  Bruno Haible  <bruno@clisp.org>
47453         Tests for module 'ttyname_r'.
47454         * modules/ttyname_r-tests: New file.
47455         * tests/test-ttyname_r.c: New file.
47457         New module 'ttyname_r'.
47458         * lib/ttyname_r.c: New file.
47459         * m4/ttyname_r.m4: New file.
47460         * modules/ttyname_r: New file.
47461         * lib/unistd.in.h (ttyname_r): New declaration.
47462         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
47463         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
47464         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
47465         HAVE_TTYNAME_R.
47466         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
47467         * doc/posix-functions/ttyname_r.texi: Mention the new module.
47469 2010-03-20  Bruno Haible  <bruno@clisp.org>
47471         signal: Undefine macro definitions in C++ mode.
47472         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
47473         sigfillset): Undefine macro definitions from the system header in C++
47474         mode.
47475         Reported by John W. Eaton <jwe@gnu.org>.
47477 2010-03-20  Bruno Haible  <bruno@clisp.org>
47479         Ensure no #include statements inside extern "C" { ... }.
47480         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
47481         contain #include statements.
47482         * lib/time.in.h: Likewise.
47484 2010-03-20  Bruno Haible  <bruno@clisp.org>
47486         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
47487         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
47488         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
47489         Reported by John W. Eaton <jwe@gnu.org>.
47491 2010-03-20  Bruno Haible  <bruno@clisp.org>
47493         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
47494         Reported by Jim Meyering.
47496 2010-03-20  Bruno Haible  <bruno@clisp.org>
47498         pipe: Set errno upon failure.
47499         * lib/pipe.h: Specify that when -1 is returned, errno is set.
47500         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
47501         errno value in error message.
47503 2010-03-20  Bruno Haible  <bruno@clisp.org>
47504             Jim Meyering  <meyering@redhat.com>
47506         lchown: Avoid "unused variable" warning.
47507         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
47509 2010-03-20  Bruno Haible  <bruno@clisp.org>
47511         Work around unlink() bug on MacOS X 10.5.6.
47512         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
47513         attempting to unlink a parent directory.
47514         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
47515         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
47516         activate for the replacement function.
47517         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
47519 2010-03-20  Bruno Haible  <bruno@clisp.org>
47521         Fix link errors on Solaris 8.
47522         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
47523         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
47525 2010-03-19  Jim Meyering  <meyering@redhat.com>
47527         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
47528         The _LIBC implementation of build_range_exp correctly honors the
47529         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
47530         However, the non-_LIBC implementation would ignore that syntax-bit
47531         flag and return REG_ERANGE unconditionally.
47532         This change makes it honor that flag.
47533         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
47534         Make two pointer parameters "const".
47535         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
47536         (parse_bracket_exp): Update caller.
47538         regex.m4: correct the reversed range endpoint ([b-a]) test
47539         * m4/regex.m4: When requiring that [b-a] evoke failure,
47540         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
47541         test pass once again for x86-based systems.
47543 2010-03-19  Bruno Haible  <bruno@clisp.org>
47545         scandir: Fix link error on Solaris 8.
47546         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
47547         macros.
47549 2010-03-19  Bruno Haible  <bruno@clisp.org>
47551         getusershell: Fix documentation.
47552         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
47553         module.
47554         * doc/glibc-functions/setusershell.texi: Likewise.
47556         getusershell: Provide declaration, missing on Solaris 9.
47557         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
47558         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
47559         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
47560         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
47561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47562         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
47563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
47564         HAVE_GETUSERSHELL.
47565         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
47567 2010-03-19  Bruno Haible  <bruno@clisp.org>
47569         wctype: Provide iswblank function.
47570         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
47571         exists and is fine.
47572         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
47573         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
47574         * tests/test-wctype.c (main): Re-enable the iswblank tests.
47575         * doc/posix-functions/iswblank.texi: Update.
47577 2010-03-19  Bruno Haible  <bruno@clisp.org>
47579         Tests of module 'pty' in C++ mode.
47580         * modules/pty-tests: New file.
47581         * tests/test-pty-c++.cc: New file.
47582         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
47584 2010-03-19  Eric Blake  <eblake@redhat.com>
47586         logb: fix documentation
47587         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
47588         1.5 declaration bug.
47590         forkpty, openpty: prefer glibc's const-safe prototype
47591         * lib/forkpty.c (rpl_forkpty): New file.
47592         * lib/openpty.c (rpl_openpty): Likewise.
47593         * modules/forkpty (Files): Distribute it.
47594         * modules/openpty (Files): Likewise.
47595         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
47596         check...
47597         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
47598         replacement for for non-const BSD signature.
47599         * modules/pty (Makefile.am): Substitute witnesses.
47600         * lib/pty.in.h (forkpty, openpty): Declare replacements.
47601         * tests/test-forkpty.c: Update signature check.
47602         * tests/test-openpty.c: Likewise.
47603         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
47604         * doc/glibc-functions/openpty.texi (openpty): Likewise.
47606         forkpty, openpty: split functions into new modules
47607         * modules/pty (Makefile.am): Substitute new witnesses.
47608         (Libraries): Move library detection...
47609         * modules/forkpty: ...into new module.
47610         * modules/openpty: Another new module.
47611         * modules/pty-tests: Rename and split...
47612         * modules/forkpty-tests: ...to this...
47613         * modules/openpty-tests: ...and this.
47614         * tests/test-pty.c: Rename and split...
47615         * tests/test-forkpty.c: ...to this...
47616         * tests/test-openpty.c: ...and this.
47617         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
47618         (gl_PTY): Split library searching...
47619         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
47620         (gl_FORKPTY, gl_OPENPTY): New macros.
47621         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
47622         * NEWS: Mention the split.
47623         * MODULES.html.sh (Misc): Document the modules.
47624         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
47625         * doc/glibc-functions/openpty.texi (openpty): Likewise.
47627         pty: improve replacement header
47628         * lib/pty.in.h: New file.
47629         * modules/pty (Files): Ship it.
47630         (Makefile.am): Always build replacement.
47631         * m4/pty.m4: Rename...
47632         * m4/pty_h.m4: ...to this.
47633         (gl_PTY): Modernize setting of witness macros; update check of
47634         forkpty to take proper advantage of cache.
47635         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
47637         getopt: avoid compiler warning
47638         * lib/getopt.c (attribute_hidden): Remove unused macro.
47640 2010-03-18  Bruno Haible  <bruno@clisp.org>
47642         Fix link errors on Solaris 8.
47643         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
47644         * modules/search-tests (test_search_c___LDADD): Likewise.
47645         * modules/signal-tests (test_signal_c___LDADD): Likewise.
47646         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
47647         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
47648         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
47649         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
47650         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
47651         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
47653 2010-03-18  Bruno Haible  <bruno@clisp.org>
47655         Fix bug introduced on 2010-03-14.
47656         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
47657         (gl_SPAWN_H): Require it.
47658         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
47659         Reported by Simon Josefsson.
47661 2010-03-18  Bruno Haible  <bruno@clisp.org>
47663         Fix typo introduced on 2009-12-31.
47664         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
47665         posix_spawn_file_actions_adddup2.
47667 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
47668         and Eric Blake  <eblake@redhat.com>
47670         test-vc-list-files-git: make more robust
47671         * tests/test-vc-list-files-git.sh: Unset problematic environment
47672         variables.  Chain commands together.
47674 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
47676         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
47677         `AC_CHECK_DECL' invocation.
47679 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
47681         * lib/inttostr.c (inttostr): Make sure the invocation of verify
47682         appears before executable statements. Suggested by Petr Sumbera
47683         <Petr.Sumbera@Sun.COM>.
47685 2010-03-14  Bruno Haible  <bruno@clisp.org>
47687         * tests/test-flock.c (test_exclusive): Comment out a test that causes
47688         portability problems. Instead use a simpler test.
47689         (main): Check that invalid arguments are rejected only on Linux.
47691 2010-03-14  Bruno Haible  <bruno@clisp.org>
47693         Fix bug introduced on 2009-12-31.
47694         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
47695         gl_PREREQ_SYS_H_WINSOCK2 always.
47696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
47697         SYS_SOCKET_H variable.
47698         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
47699         Update comments.
47700         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
47701         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
47702         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47703         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
47704         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
47706 2010-03-14  Bruno Haible  <bruno@clisp.org>
47708         Fix values returned by sinl, cosl.
47709         * lib/trigl.h: Add specification comments.
47710         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
47711         that combines the values from the precomputed table with the values of
47712         the Chebyshev polynomials.
47714 2010-03-14  Bruno Haible  <bruno@clisp.org>
47716         Fix compilation error when modules 'posix_spawn[p]' are not used.
47717         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
47718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
47720 2010-03-14  Bruno Haible  <bruno@clisp.org>
47722         Fix compilation error on mingw when module 'time_r' is not used.
47723         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
47724         is 1.
47725         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
47726         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
47727         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
47728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
47730 2010-03-14  Bruno Haible  <bruno@clisp.org>
47732         Fix compilation error with Sun C.
47733         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
47734         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
47735         instead of GCC specific ULONG_LONG_MAX.
47736         * lib/xstrtoll.c: Likewise.
47737         * lib/xstrtoull.c: Likewise.
47739 2010-03-13  Bruno Haible  <bruno@clisp.org>
47741         Allow the user to disable C++ code and tests.
47742         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
47743         (gl_PROG_ANSI_CXX): Require it.
47745 2010-03-13  Bruno Haible  <bruno@clisp.org>
47747         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
47748         cases.
47750 2010-03-13  Bruno Haible  <bruno@clisp.org>
47752         Test that gnulib does not break the standard C++ headers.
47753         * tests/test-locale-c++2.cc: New file.
47754         * modules/locale-tests (Files): Add it.
47755         (Makefile.am): Compile it for test-locale-c++.
47756         * tests/test-math-c++2.cc: New file.
47757         * modules/math-tests (Files): Add it.
47758         (Makefile.am): Compile it for test-math-c++.
47759         * tests/test-signal-c++2.cc: New file.
47760         * modules/signal-tests (Files): Add it.
47761         (Makefile.am): Compile it for test-signal-c++.
47762         * tests/test-stdio-c++2.cc: New file.
47763         * modules/stdio-tests (Files): Add it.
47764         (Makefile.am): Compile it for test-stdio-c++.
47765         * tests/test-stdlib-c++2.cc: New file.
47766         * modules/stdlib-tests (Files): Add it.
47767         (Makefile.am): Compile it for test-stdlib-c++.
47768         * tests/test-string-c++2.cc: New file.
47769         * modules/string-tests (Files): Add it.
47770         (Makefile.am): Compile it for test-string-c++.
47771         * tests/test-time-c++2.cc: New file.
47772         * modules/time-tests (Files): Add it.
47773         (Makefile.am): Compile it for test-time-c++.
47774         Reported by John W. Eaton <jwe@gnu.org>.
47776 2010-03-13  Bruno Haible  <bruno@clisp.org>
47778         * gnulib-tool (func_usage): Clarify which options are available for
47779         --create-testdir and --create-megatestdir.
47781 2010-03-13  Bruno Haible  <bruno@clisp.org>
47783         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
47784         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
47785         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
47786         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47787         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
47788         when appropriate.
47789         Reported by Jim Meyering.
47791 2010-03-12  Simon Josefsson  <simon@josefsson.org>
47793         * gnulib-tool (func_import): Explain origin of code.
47795 2010-03-12  Bruno Haible  <bruno@clisp.org>
47797         Fix problem with automake's definition of CXXLINK.
47798         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
47799         Reported by Simon Josefsson and Ludovic Courtès.
47801 2010-03-12  Bruno Haible  <bruno@clisp.org>
47803         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
47804         stable releases.
47806 2010-03-11  Bruno Haible  <bruno@clisp.org>
47808         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
47809         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
47810         whether the system provides one variant or multiple variants of the
47811         function.
47812         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
47813         C++ compilers.
47814         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
47815         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
47816         Reported by Jim Meyering.
47818 2010-03-09  Simon Josefsson  <simon@josefsson.org>
47820         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
47822 2010-03-08  Bruno Haible  <bruno@clisp.org>
47824         gnulib-tool: Add support for --libtool in --create-testdir.
47825         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
47826         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
47828 2010-03-08  Eric Blake  <eblake@redhat.com>
47830         gnulib-tool.texi: mention possibility of git submodule
47831         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
47832         submodules.
47833         * doc/.gitignore: Ignore another generated file.
47835 2010-03-08  Karl Berry  <karl@gnu.org>
47837         * doc/gnulib-tool.texi (VCS Issues): Mention third option
47838         of committing gnulib files while skipping others.
47840 2010-03-07  Bruno Haible  <bruno@clisp.org>
47842         Tests of module 'wctype' in C++ mode.
47843         * tests/test-wctype-c++.cc: New file.
47844         * modules/wctype-tests (Files): Add it and tests/signature.h.
47845         (Depends-on): Add ansi-c++-opt.
47846         (Makefile.am): Arrange to compile and run test-wctype-c++.
47848         Tests of module 'wchar' in C++ mode.
47849         * tests/test-wchar-c++.cc: New file.
47850         * modules/wchar-tests (Files): Add it and tests/signature.h.
47851         (Depends-on): Add ansi-c++-opt.
47852         (Makefile.am): Arrange to compile and run test-wchar-c++.
47853         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
47854         gl_MODULE_INDICATOR.
47856         Tests of module 'unistd' in C++ mode.
47857         * tests/test-unistd-c++.cc: New file.
47858         * modules/unistd-tests (Files): Add it and tests/signature.h.
47859         (Depends-on): Add ansi-c++-opt.
47860         (Makefile.am): Arrange to compile and run test-unistd-c++.
47861         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
47862         gl_MODULE_INDICATOR.
47864         Tests of module 'time' in C++ mode.
47865         * tests/test-time-c++.cc: New file.
47866         * modules/time-tests (Files): Add it and tests/signature.h.
47867         (Depends-on): Add ansi-c++-opt.
47868         (Makefile.am): Arrange to compile and run test-time-c++.
47869         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
47871         Tests of module 'sys_time' in C++ mode.
47872         * tests/test-sys_time-c++.cc: New file.
47873         * modules/sys_time-tests (Files): Add it and tests/signature.h.
47874         (Depends-on): Add ansi-c++-opt.
47875         (Makefile.am): Arrange to compile and run test-sys_time-c++.
47876         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
47877         gl_MODULE_INDICATOR.
47879         Tests of module 'sys_stat' in C++ mode.
47880         * tests/test-sys_stat-c++.cc: New file.
47881         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
47882         (Depends-on): Add ansi-c++-opt.
47883         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
47884         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
47885         gl_MODULE_INDICATOR.
47887         Tests of module 'sys_socket' in C++ mode.
47888         * tests/test-sys_socket-c++.cc: New file.
47889         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
47890         (Depends-on): Add ansi-c++-opt.
47891         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
47892         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
47893         gl_MODULE_INDICATOR.
47895         Tests of module 'sys_select' in C++ mode.
47896         * tests/test-sys_select-c++.cc: New file.
47897         * modules/sys_select-tests (Files): Add it and tests/signature.h.
47898         (Depends-on): Add ansi-c++-opt.
47899         (Makefile.am): Arrange to compile and run test-sys_select-c++.
47900         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
47901         gl_MODULE_INDICATOR.
47903         Tests of module 'sys_ioctl' in C++ mode.
47904         * tests/test-sys_ioctl-c++.cc: New file.
47905         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
47906         (Depends-on): Add ansi-c++-opt.
47907         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
47908         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
47909         gl_MODULE_INDICATOR.
47911         Tests of module 'string' in C++ mode.
47912         * tests/test-string-c++.cc: New file.
47913         * modules/string-tests (Files): Add it and tests/signature.h.
47914         (Depends-on): Add ansi-c++-opt.
47915         (Makefile.am): Arrange to compile and run test-string-c++.
47916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
47917         gl_MODULE_INDICATOR.
47919         Tests of module 'stdlib' in C++ mode.
47920         * tests/test-stdlib-c++.cc: New file.
47921         * modules/stdlib-tests (Files): Add it and tests/signature.h.
47922         (Depends-on): Add ansi-c++-opt.
47923         (Makefile.am): Arrange to compile and run test-stdlib-c++.
47924         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
47925         gl_MODULE_INDICATOR.
47927         Tests of module 'stdio' in C++ mode.
47928         * tests/test-stdio-c++.cc: New file.
47929         * modules/stdio-tests (Files): Add it and tests/signature.h.
47930         (Depends-on): Add ansi-c++-opt.
47931         (Makefile.am): Arrange to compile and run test-stdio-c++.
47932         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
47933         gl_MODULE_INDICATOR.
47935         Tests of module 'spawn' in C++ mode.
47936         * tests/test-spawn-c++.cc: New file.
47937         * modules/spawn-tests (Files): Add it and tests/signature.h.
47938         (Depends-on): Add ansi-c++-opt.
47939         (Makefile.am): Arrange to compile and run test-spawn-c++.
47940         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
47941         gl_MODULE_INDICATOR.
47943         Tests of module 'signal' in C++ mode.
47944         * tests/test-signal-c++.cc: New file.
47945         * modules/signal-tests (Files): Add it and tests/signature.h.
47946         (Depends-on): Add ansi-c++-opt.
47947         (Makefile.am): Arrange to compile and run test-signal-c++.
47948         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
47949         gl_MODULE_INDICATOR.
47951         Tests of module 'search' in C++ mode.
47952         * tests/test-search-c++.cc: New file.
47953         * modules/search-tests (Files): Add it and tests/signature.h.
47954         (Depends-on): Add ansi-c++-opt.
47955         (Makefile.am): Arrange to compile and run test-search-c++.
47956         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
47957         gl_MODULE_INDICATOR.
47959         Tests of module 'math' in C++ mode.
47960         * tests/test-math-c++.cc: New file.
47961         * modules/math-tests (Files): Add it and tests/signature.h.
47962         (Depends-on): Add ansi-c++-opt.
47963         (Makefile.am): Arrange to compile and run test-math-c++.
47964         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
47966         Tests of module 'locale' in C++ mode.
47967         * tests/test-locale-c++.cc: New file.
47968         * modules/locale-tests (Files): Add it and tests/signature.h.
47969         (Depends-on): Add ansi-c++-opt.
47970         (Makefile.am): Arrange to compile and run test-locale-c++.
47971         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
47972         gl_MODULE_INDICATOR.
47974         Tests of module 'langinfo' in C++ mode.
47975         * tests/test-langinfo-c++.cc: New file.
47976         * modules/langinfo-tests (Files): Add it and tests/signature.h.
47977         (Depends-on): Add ansi-c++-opt.
47978         (Makefile.am): Arrange to compile and run test-langinfo-c++.
47979         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
47980         gl_MODULE_INDICATOR.
47982         Tests of module 'iconv-h' in C++ mode.
47983         * tests/test-iconv-h-c++.cc: New file.
47984         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
47985         (Depends-on): Add ansi-c++-opt.
47986         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
47988         Tests of module 'glob' in C++ mode.
47989         * tests/test-glob-c++.cc: New file.
47990         * modules/glob-tests (Files): Add it.
47991         (Depends-on): Add ansi-c++-opt.
47992         (Makefile.am): Arrange to compile and run test-glob-c++.
47994         Tests of module 'fcntl-h' in C++ mode.
47995         * tests/test-fcntl-h-c++.cc: New file.
47996         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
47997         (Depends-on): Add ansi-c++-opt.
47998         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
47999         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
48000         gl_MODULE_INDICATOR.
48002         Tests of module 'dirent' in C++ mode.
48003         * tests/test-dirent-c++.cc: New file.
48004         * modules/dirent-tests (Files): Add it and tests/signature.h.
48005         (Depends-on): Add ansi-c++-opt.
48006         (Makefile.am): Arrange to compile and run test-dirent-c++.
48007         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48008         gl_MODULE_INDICATOR.
48010         New module 'ansi-c++-opt'.
48011         * modules/ansi-c++-opt: New file.
48012         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
48014         Document C++ namespace mode.
48015         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
48017         wctype: Avoid #define replacements in C++ mode.
48018         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
48019         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
48020         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
48021         In C++, define a namespaced alias symbol.
48022         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
48023         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
48024         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
48025         rule.
48027         wchar: Avoid #define replacements in C++ mode.
48028         * lib/wchar.in.h: Include c++defs.h.
48029         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
48030         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
48031         symbol.
48032         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
48033         * modules/wchar (Depends-on): Add c++defs.
48034         (Makefile.am): Update wchar.h rule.
48036         unistd: Avoid #define replacements in C++ mode.
48037         * lib/unistd.in.h: Include c++defs.h.
48038         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
48039         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
48040         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
48041         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
48042         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
48043         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
48044         symbol.
48045         (environ): Update.
48046         * modules/unistd (Depends-on): Add c++defs.
48047         (Makefile.am): Update unistd.h rule.
48049         time: Avoid #define replacements in C++ mode.
48050         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
48051         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
48052         define a namespaced alias symbol.
48053         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
48054         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
48055         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
48056         * modules/time (Depends-on): Add c++defs, warn-on-use.
48057         (Makefile.am): Update time.h rule.
48058         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
48059         * modules/nanosleep (configure.ac): Likewise.
48060         * modules/strptime (configure.ac): Likewise.
48061         * modules/timegm (configure.ac): Likewise.
48063         sys_time: Avoid #define replacements in C++ mode.
48064         * lib/sys_time.in.h: Include c++defs.h.
48065         (gettimeofday): In C++, define a namespaced alias symbol.
48066         * modules/sys_time (Depends-on): Add c++defs.
48067         (Makefile.am): Update sys/time.h rule.
48069         sys_stat: Avoid #define replacements in C++ mode.
48070         * lib/sys_stat.in.h: Include c++defs.h.
48071         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
48072         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
48073         namespaced alias symbol.
48074         In C++, define a namespaced alias symbol.
48075         * modules/sys_stat (Depends-on): Add c++defs.
48076         (Makefile.am): Update sys/stat.h rule.
48078         sys_socket: Avoid #define replacements in C++ mode.
48079         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
48080         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
48081         definitions also when the system has a <sys/socket.h>.
48082         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48083         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
48084         In C++, define a namespaced alias symbol.
48085         * modules/sys_socket (Depends-on): Add c++defs.
48086         (Makefile.am): Update sys/socket.h rule.
48088         sys_select: Avoid #define replacements in C++ mode.
48089         * lib/sys_select.in.h: Include c++defs.h. Enable the function
48090         definitions also when the system has a <sys/select.h>.
48091         (select): In C++, define a namespaced alias symbol.
48092         * modules/sys_select (Depends-on): Add c++defs.
48093         (Makefile.am): Update sys/select.h rule.
48095         sys_ioctl: Avoid #define replacements in C++ mode.
48096         * lib/sys_ioctl.in.h: Include c++defs.h.
48097         (ioctl): In C++, define a namespaced alias symbol.
48098         * modules/sys_ioctl (Depends-on): Add c++defs.
48099         (Makefile.am): Update sys/ioctl.h rule.
48101         string: Avoid #define replacements in C++ mode.
48102         * lib/string.in.h: Include c++defs.h.
48103         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
48104         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
48105         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
48106         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
48107         strsignal, strverscmp): In C++, define a namespaced alias symbol.
48108         * modules/string (Depends-on): Add c++defs.
48109         (Makefile.am): Update string.h rule.
48111         stdlib: Avoid #define replacements in C++ mode.
48112         * lib/stdlib.in.h: Include c++defs.h.
48113         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
48114         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
48115         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
48116         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
48117         symbol.
48118         * modules/stdlib (Depends-on): Add c++defs.
48119         (Makefile.am): Update stdlib.h rule.
48121         stdio: Avoid #define replacements in C++ mode.
48122         * lib/stdio.in.h: Include c++defs.h.
48123         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
48124         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
48125         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
48126         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
48127         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
48128         namespaced alias symbol.
48129         * modules/stdio (Depends-on): Add c++defs.
48130         (Makefile.am): Update stdio.h rule.
48132         spawn: Avoid #define replacements in C++ mode.
48133         * lib/spawn.in.h: Include c++defs.h.
48134         (posix_spawn, posix_spawnp, posix_spawnattr_init,
48135         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
48136         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
48137         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
48138         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
48139         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
48140         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
48141         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
48142         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
48143         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
48144         In C++, define a namespaced alias symbol.
48145         * modules/spawn (Depends-on): Add c++defs.
48146         (Makefile.am): Update spawn.h rule.
48148         signal: Avoid #define replacements in C++ mode.
48149         * lib/signal.in.h: Include c++defs.h.
48150         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
48151         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
48152         namespaced alias symbol.
48153         * modules/signal (Depends-on): Add c++defs.
48154         (Makefile.am): Update signal.h rule.
48156         search: Avoid #define replacements in C++ mode.
48157         * lib/search.in.h: Include c++defs.h.
48158         (_gl_search_compar_fn, _gl_search_action_fn): New types.
48159         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
48160         symbol.
48161         * modules/search (Depends-on): Add c++defs.
48162         (Makefile.am): Update search.h rule.
48164         math: Avoid #define replacements in C++ mode.
48165         * lib/math.in.h: Include c++defs.h.
48166         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
48167         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
48168         trunc, truncl): In C++, define a namespaced alias symbol.
48169         * modules/math (Depends-on): Add c++defs.
48170         (Makefile.am): Update math.h rule.
48172         locale: Avoid #define replacements in C++ mode.
48173         * lib/locale.in.h: Include c++defs.h.
48174         (duplocale): In C++, define a namespaced alias symbol.
48175         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
48176         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
48177         * modules/locale (Depends-on): Add c++defs.
48178         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
48180         langinfo: Avoid #define replacements in C++ mode.
48181         * lib/langinfo.in.h: Include c++defs.h.
48182         (nl_langinfo): In C++, define a namespaced alias symbol.
48183         * modules/langinfo (Depends-on): Add c++defs.
48184         (Makefile.am): Update langinfo.h rule.
48186         iconv-h: Avoid #define replacements in C++ mode.
48187         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
48188         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
48189         symbol.
48190         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48191         whenever iconv is present.
48192         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
48193         (Makefile.am): Update iconv.h rule.
48195         glob: Avoid #define replacements in C++ mode.
48196         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
48197         (_gl_glob_errfunc_fn): New type.
48198         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
48199         symbol.
48200         * modules/glob (Depends-on): Add c++defs, warn-on-use.
48201         (Makefile.am): Update glob.h rule.
48203         fcntl-h: Avoid #define replacements in C++ mode.
48204         * lib/fcntl.in.h: Include c++defs.h.
48205         (fcntl, open, openat): In C++, define a namespaced alias symbol.
48206         * modules/fcntl-h (Depends-on): Add c++defs.
48207         (Makefile.am): Update fcntl.h rule.
48209         dirent: Avoid #define replacements in C++ mode.
48210         * lib/dirent.in.h: Include c++defs.h.
48211         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
48212         namespaced alias symbol.
48213         (dirfd): Update declaration.
48214         * modules/dirent (Depends-on): Add c++defs.
48215         (Makefile.am): Update dirent.h rule.
48217         ctype: Make it usable in C++ code.
48218         * lib/ctype.in.h: Include c++defs.h.
48219         (isblank): Declare as extern "C".
48220         * modules/ctype (Depends-on): Add c++defs.
48221         (Makefile.am): Update ctype.h rule.
48223         New module 'c++defs'.
48224         * modules/c++defs: New file.
48225         * build-aux/c++defs.h: New file.
48226         Reported by John W. Eaton <jwe@gnu.org>.
48228 2010-03-07  Bruno Haible  <bruno@clisp.org>
48230         logb: Provide missing declaration for Cygwin.
48231         * lib/math.in.h (logb): New declaration.
48232         * m4/logb.m4: New file.
48233         * modules/logb (Files): Add m4/logb.m4.
48234         (Depends-on): Add math.
48235         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
48236         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
48237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
48238         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
48239         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
48241 2010-03-07  Bruno Haible  <bruno@clisp.org>
48243         Fix test-cond link error.
48244         * tests/test-cond.c: Include <stdio.h>.
48246 2010-03-07  Bruno Haible  <bruno@clisp.org>
48248         Fix test-dirent-safer link error.
48249         * modules/dirent-safer-tests (Makefile.am): Define
48250         test_dirent_safer_LDADD.
48252 2010-03-07  Bruno Haible  <bruno@clisp.org>
48254         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
48255         among default module list.
48257 2010-03-07  Bruno Haible  <bruno@clisp.org>
48259         Fix link error on platforms with GNU libiconv.
48260         * modules/unistr/u8-strcoll-tests (Makefile): Define
48261         test_u8_strcoll_LDADD.
48262         * modules/unistr/u16-strcoll-tests (Makefile): Define
48263         test_u16_strcoll_LDADD.
48264         * modules/unistr/u32-strcoll-tests (Makefile): Define
48265         test_u32_strcoll_LDADD.
48267 2010-03-07  Bruno Haible  <bruno@clisp.org>
48269         Use POSIX declarations for socket functions.
48270         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
48271         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
48272         rpl_sendto): Change declaration to match POSIX.
48273         * lib/connect.c (rpl_connect): Likewise.
48274         * lib/accept.c (rpl_accept): Likewise.
48275         * lib/bind.c (rpl_bind): Likewise.
48276         * lib/getpeername.c (rpl_getpeername): Likewise.
48277         * lib/getsockname.c (rpl_getsockname): Likewise.
48278         * lib/recv.c (rpl_recv): Likewise.
48279         * lib/send.c (rpl_send): Likewise.
48280         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48281         * lib/sendto.c (rpl_sendto): Likewise.
48283 2010-03-06  Bruno Haible  <bruno@clisp.org>
48285         Clarify access, euidaccess, faccessat.
48286         * doc/posix-functions/faccessat.texi: Mention security problem under
48287         "Other problems", not "Portability problems".
48288         * doc/posix-functions/access.texi: Likewise. Mention a related security
48289         problem.
48290         * doc/glibc-functions/euidaccess.texi: Mention security problems.
48291         * lib/euidaccess.c: Add comments about platforms.
48292         * lib/unistd.in.h (access, euidaccess): Add warnings.
48294 2010-03-07  Bruno Haible  <bruno@clisp.org>
48296         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
48297         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
48298         (POSIX_SPAWN_SETSCHEDULER): Likewise.
48299         (POSIX_SPAWN_USEVFORK): Define in a way that works when
48300         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
48301         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
48302         declare when POSIX_SPAWN_SETSCHEDULER is zero.
48303         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
48304         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
48305         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
48306         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
48307         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
48308         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
48309         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
48310         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
48311         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
48312         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
48313         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
48314         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
48315         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
48316         Likewise.
48317         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
48318         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
48319         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
48320         Likewise.
48321         * tests/test-spawn.c (main): Make it work when
48322         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
48324 2010-03-07  Bruno Haible  <bruno@clisp.org>
48326         Fix incorrect Makefile.am generation in German locale.
48327         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48328         Execute sed command with character range in C locale.
48330 2010-03-06  Bruno Haible  <bruno@clisp.org>
48332         Tests for module 'iconv-h'.
48333         * modules/iconv-h-tests: New file.
48334         * tests/test-iconv-h.c: New file.
48336         New module 'iconv-h'.
48337         * modules/iconv-h: New file.
48338         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
48339         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
48340         (configure.ac): Remove gl_ICONV_H.
48341         (Makefile.am): Remove rule for iconv.h.
48343 2010-03-06  Bruno Haible  <bruno@clisp.org>
48345         More consistent naming of *.m4 files.
48346         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
48347         * modules/wctype (Files): Update.
48349         More consistent naming of *.m4 files.
48350         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
48351         * modules/wchar (Files): Update.
48353 2010-03-06  Jim Meyering  <meyering@redhat.com>
48355         euidaccess: relax license to LGPLv2+
48356         * modules/euidaccess (License): Relax to LGPLv2+.
48358 2010-03-06  Bruno Haible  <bruno@clisp.org>
48360         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
48361         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
48362         (Makefile.am): Augment lib_SOURCES instead.
48364 2010-03-04  Jim Meyering  <meyering@redhat.com>
48366         utime: remove obsolete module
48367         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
48368         unnecessary for years, and has been marked as obsolete for 10 months.
48369         * modules/utime: Remove file.
48370         * lib/utime.c: Remove file.
48371         * m4/utime.m4: Remove file.
48372         * m4/utimes-null.m4: Remove file.
48373         * doc/posix-functions/utime.texi (utime): Remove reference to
48374         the module.  Move the sole "fixed by gnulib" item into the
48375         "problems not fixed by Gnulib" list.
48376         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
48378 2010-03-05  Simon Josefsson  <simon@josefsson.org>
48380         * modules/exit (License): Relax license to LGPLv2+.
48381         (Status): Mark as obsolete.
48382         * NEWS: Mention deprecated 'exit' module.
48383         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
48384         of now obsolete 'exit'.
48386 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48388         fts-lgpl: remove unused module
48389         * modules/fts-lgpl: Remove.
48390         * MODULES.html.sh (func_all_modules): Adjust.
48391         * check-module (find_included_lib_files): Adjust.
48392         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
48394 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
48396         copy-acl: enhance Solaris ACL error handling
48397         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
48398         * lib/set-mode-acl.c (qset_acl): Likewise.
48400 2010-03-02  Bruno Haible  <bruno@clisp.org>
48402         spawn: Don't override the system defined values on FreeBSD 8.
48403         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
48404         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
48405         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
48406         if HAVE_POSIX_SPAWN is 1.
48407         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
48409 2010-03-01  Bruno Haible  <bruno@clisp.org>
48411         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
48412         regarding Automake.
48414 2010-02-25  Bruno Haible  <bruno@clisp.org>
48416         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
48417         * gnulib-tool: Define 'echo' as a function only before the ksh alias
48418         setting, not afterwards.
48419         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
48421 2010-02-24  Eric Blake  <eblake@redhat.com>
48423         bootstrap, git-version-gen: use timestamp
48424         * build-aux/git-version-gen (scriptversion): Force UTC.
48425         * build-aux/bootstrap (scriptversion): New variable.
48427         bootstrap: allow older git
48428         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
48429         older than 1.6.4.  Requested by the libvirt project.
48431 2010-02-23  Eric Blake  <eblake@redhat.com>
48433         warn-on-use: work with old autoconf
48434         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
48435         AS_VAR semantics of autoconf 2.60.
48436         Reported by Bruno Haible.
48438         bootstrap: improve some comments
48439         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
48440         clarification comments.
48442         gettimeofday: provide correct function
48443         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
48444         when replacement is declared, otherwise provide gettimeofday.
48445         Reported by Michael Goffioul.
48447 2010-02-23  Jim Meyering  <meyering@redhat.com>
48449         lib-ignore: relax license to "unlimited", not LGPLv2+
48450         * modules/lib-ignore (License): Relax to "unlimited".
48452 2010-02-23  Jim Meyering  <meyering@redhat.com>
48454         lib-ignore: relax license to LGPLv2+
48455         * modules/lib-ignore (License): Relax to LGPLv2+.
48457 2010-02-22  Eric Blake  <eblake@redhat.com>
48459         lseek: avoid bash 3.2 broken pipe bug
48460         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
48461         warning from bash 3.2.
48462         Reported by Ben Pfaff, with analysis from Bruno Haible.
48464         bootstrap: support non-FSF copyright holder
48465         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
48466         bootstrap.conf override of COPYRIGHT_HOLDER.
48467         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
48469         bootstrap: interoperate with gettext 0.14.1
48470         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
48472         bootstrap: allow for alternate submodule location
48473         * build-aux/bootstrap (gnulib_path): New variable; use instead of
48474         hardcoding submodule location.
48475         (gnulib_mk): Allow direct use of Makefile.am.
48477         bootstrap: use GNULIB_SRCDIR to reduce disk usage
48478         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
48479         rather than reconfiguring where the submodule points.
48481         gettimeofday: restore support for platforms that lack function
48482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
48483         replacement if function is missing.
48484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
48485         * modules/sys_time (Makefile.am): Substitute it.
48486         * lib/sys_time.in.h (gettimeofday): Check it.
48487         Reported by Michael Goffioul.
48489 2010-02-21  Bruno Haible  <bruno@clisp.org>
48491         * lib/stdio.in.h (obstack_printf): Fix typo.
48493 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
48495         vc-list-files: use bzr ls's -R option
48496         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
48497         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
48499 2010-02-21  Jim Meyering  <meyering@redhat.com>
48501         init.sh: fix EXEEXT shims to work also for names like test-prog
48502         * tests/init.sh: Re-exec a better shell, when needed.
48503         If the current shell lacks support for posix $(...), an init.sh-using
48504         test will now try to find a shell that supports that.  If EXEEXT is
48505         nonempty, we also require support for hyphen-in-alias-name and shell
48506         substitutions like ${var#glob}.  Failure to find such a shell results
48507         in a skipped test.
48509 2010-02-21  Bruno Haible  <bruno@clisp.org>
48511         Really work around around "broken pipe" error message from bash 3.2.
48512         * gnulib-tool (func_reset_sigpipe): Remove function.
48513         (echo): In bash 3.2, define to a function that uses printf.
48514         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
48516 2010-02-20  Bruno Haible  <bruno@clisp.org>
48518         Restore support for automake 1.9.6 with autoconf 2.61.
48519         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
48520         Reported by James Youngman <jay@gnu.org>.
48522 2010-02-20  Bruno Haible  <bruno@clisp.org>
48524         Improve *printf warning condition.
48525         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
48526         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
48527         and the function is overridden due to SIGPIPE emulation.
48529 2010-02-20  Bruno Haible  <bruno@clisp.org>
48531         * lib/stdio.in.h: Tweak comments.
48533 2010-02-19  Bruno Haible  <bruno@clisp.org>
48535         Make it easier to find modules. New gnulib-tool option '--find'.
48536         * gnulib-tool: New option --find.
48537         (func_usage): Document it.
48538         (func_sanitize_modulelist): New function, extracted from
48539         func_all_modules.
48540         (func_all_modules): Invoke it.
48541         * doc/gnulib-tool.texi (Which modules?): New node.
48543 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
48545         * lib/sys_select.in.h: Provide select replacement even if
48546         sys/select.h exists on a system, for Interix.
48548 2010-02-18  Jim Meyering  <meyering@redhat.com>
48550         init.sh: don't use $(...) just yet
48551         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
48552         to accommodate e.g., Solaris' /bin/sh.
48554 2010-02-17  Bruno Haible  <bruno@clisp.org>
48556         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
48557         Reported by Ludovic Courtès <ludo@gnu.org>.
48559 2010-02-16  Simon Josefsson  <simon@josefsson.org>
48561         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
48562         linking with -lintl.
48564 2010-02-17  Simon Josefsson  <simon@josefsson.org>
48566         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
48567         if not provided by the system's netdb.h.  Reported by
48568         ludo@gnu.org (Ludovic Courtès).
48570 2010-02-15  Jim Meyering  <meyering@redhat.com>
48572         init.sh: improve portability and efficiency
48573         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
48574         "dummy" in a for loop.
48575         Use '!', not '^' to select the complement of a character set used
48576         in a "case" statement.
48577         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
48578         Suggestions from Eric Blake.
48580         init.sh: automatically accommodate programs with the .exe suffix
48581         Automatically arrange for an invocation of "prog" to execute the
48582         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
48583         may use the simpler "prog", yet still work when built on a system
48584         that requires specifying the added suffix.
48585         Do this by constructing a function named "prog" that invokes
48586         "prog.exe" for each .exe file in selected directories.
48587         * tests/init.sh (find_exe_basenames_): New function.
48588         (create_exe_shim_functions_): New function.
48589         (path_prepend_): Use it.
48591         maint.mk: mark syntax-check sc_*.m rules as .PHONY
48592         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
48593         "make -t syntax-check" doesn't create a ton of sc_*.m files.
48595 2010-02-14  Jim Meyering  <meyering@redhat.com>
48597         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
48598         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
48599         (sc_prohibit_hash_pjw_without_use): New rule.
48601         maint.mk: allow the default upload destination dir to be overridden
48602         * top/maint.mk (upload_dest_dir_): Define with a default that
48603         preserves the status quo.
48604         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
48605         Reported by Peter Simons.
48607         maint.mk: prohibit inclusion of "hash.h" without_use
48608         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
48610 2010-02-10  Jim Meyering  <meyering@redhat.com>
48612         maint.mk: prohibit inclusion of "ignore-value.h" without_use
48613         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
48615 2010-02-09  Eric Blake  <ebb9@byu.net>
48616         and Bruno Haible  <bruno@clisp.org>
48618         obstack-printf-posix: ensure declaration
48619         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
48620         extracted from gl_FUNC_OBSTACK_PRINTF.
48621         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
48622         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48623         Likewise.
48624         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
48625         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
48626         0.
48628 2010-02-08  Bruno Haible  <bruno@clisp.org>
48630         gnulib-tool: Fix typo in 2010-02-07 commit.
48631         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
48632         Reported by Eric Blake.
48634 2010-02-07  Bruno Haible  <bruno@clisp.org>
48636         gnulib-tool: Fix up caching patches.
48637         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
48638         option --no-cache. Use associative arrays when supported by the shell.
48639         (sed_comments): New variable.
48640         (modcache): Renamed from do_cache.
48641         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
48642         abbreviate unnecessarily.
48643         (have_associative): New variable.
48644         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
48645         way also for ksh and zsh.
48646         (func_init_sed_convert_to_cache_statements): New function, extracted
48647         from func_cache_lookup_module. Add support for associative arrays.
48648         Don't set the c_MODULE_cached variable here. Ignore all lines before
48649         the first field header. Remove only the final newline, not all trailing
48650         newlines. Support empty fields correctly. Limit the use of 'eval' to
48651         assignments.
48652         (func_get_description, func_get_status, func_get_notice,
48653         func_get_applicability, func_get_filelist, func_get_dependencies,
48654         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
48655         func_get_automake_snippet, func_get_include_directive,
48656         func_get_link_directive, func_get_license, func_get_maintainer):
48657         Update documentation. List the unoptimized code first. Add support for
48658         associative arrays. Limit the use of 'eval' to assignments.
48659         (func_get_applicability): Undo stylistic pessimisations.
48660         (func_get_automake_snippet, func_get_include_directive): Reduce code
48661         duplication.
48662         (func_modules_transitive_closure, func_modules_add_dummy,
48663         func_modules_notice, func_modules_to_filelist, func_add_file,
48664         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
48665         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
48666         func_create_testdir, func_create_megatestdir): Update documentation.
48668 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48670         * gnulib-tool (func_cache_lookup_module): Store the module name
48671         belonging to the cache variable; error out if two different
48672         module names map to the same cache variable name.
48674 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48676         gnulib-tool: Make caching optional.
48677         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
48678         Update matching short versions of --no-changelog.
48679         (func_usage): Update.
48680         (sed_extract_cache_prog): Renamed from ...
48681         (sed_extract_prog): ... this; revert to old extraction script.
48682         (func_get_description, func_get_status)
48683         (func_get_notice, func_get_applicability, func_get_filelist)
48684         (func_get_dependencies, func_get_autoconf_early_snippet)
48685         (func_get_autoconf_snippet, func_get_automake_snippet)
48686         (func_get_include_directive, func_get_link_directive)
48687         (func_get_license, func_get_maintainer): If $do_cache is false,
48688         use old, non-caching extraction scripts.
48689         Suggestion by Bruno Haible.
48691 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48693         gnulib-tool: cache module metainformation.
48694         * gnulib-tool (sed_extract_prog): Match newline before each
48695         header, and rewrite header to a shell variable suffix.
48696         (func_cache_var, func_cache_lookup_module): New functions,
48697         to turn a module name into a cache variable prefix, and to
48698         look up and cache module metainformation.
48699         (func_get_description, func_get_status)
48700         (func_get_notice, func_get_applicability, func_get_filelist)
48701         (func_get_dependencies, func_get_autoconf_early_snippet)
48702         (func_get_autoconf_snippet, func_get_automake_snippet)
48703         (func_get_include_directive, func_get_link_directive)
48704         (func_get_license, func_get_maintainer): Use
48705         func_cache_lookup_module.
48707 2010-02-07  Bruno Haible  <bruno@clisp.org>
48709         fnctl: Fix missing dependency.
48710         * modules/fcntl (Depends-on): Add getdtablesize.
48711         Reported by John W. Eaton <jwe@gnu.org>.
48713 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48715         Argp: fix recognition of short alias options.
48717         * lib/argp-parse.c (convert_options): Fix improper use of
48718         `|' between character values.
48719         * tests/test-argp.c (group1_option): New alias option
48720         --read (-r).
48721         (group1_parser): Special handling for 'r'.
48722         (test15): New test case.
48723         (test_fun): Add test15.
48724         * tests/test-argp-2.sh: Update expected --help and --usage
48725         outputs.
48727 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48729         * tests/test-argp.c: Fix indentation.
48731 2010-02-04  Eric Blake  <ebb9@byu.net>
48733         gettimeofday: expose type of second argument
48734         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
48735         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
48736         * tests/test-gettimeofday.c: Use it to silence warning.
48737         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
48738         the issue.
48740 2010-02-03  Jim Meyering  <meyering@redhat.com>
48742         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
48743         * lib/regcomp.c (TYPE_SIGNED): Define.
48744         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
48746         regcomp.c: avoid a new -Wshadow warning
48747         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
48749 2010-02-01  Jim Meyering  <meyering@redhat.com>
48751         removing useless parentheses in cpp #define directives
48752         For motivation, see commit c0221df4, "define STREQ(a,b)
48753         consistently, removing useless parentheses"
48754         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
48755         * lib/mountlist.c (MNT_IGNORE): Likewise.
48756         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
48758 2010-02-01  Eric Blake  <ebb9@byu.net>
48760         sys_time: use link-warning
48761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
48762         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
48763         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
48764         * modules/sys_time (Depends-on): Add warn-on-use.
48765         (Makefile.am): Always build replacement.
48766         (configure.ac): Update substitutions.
48767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
48768         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
48769         bother with SYS_TIME_H.
48770         * modules/gettimeofday (configure.ac): Declare indicator.
48771         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
48772         in use.
48774         closein-tests: silence compiler warning
48775         * tests/test-closein.c (main): Ignore fread result.
48776         * modules/closein-tests (Depends-on): Add ignore-value.
48778         tests: silence warning about system return
48779         * tests/test-areadlink-with-size.c (main): Ignore system result.
48780         * tests/test-areadlink.c (main): Likewise.
48781         * tests/test-areadlinkat-with-size.c (main): Likewise.
48782         * tests/test-areadlinkat.c (main): Likewise.
48783         * tests/test-canonicalize-lgpl.c (main): Likewise.
48784         * tests/test-canonicalize.c (main): Likewise.
48785         * tests/test-chown.c (main): Likewise.
48786         * tests/test-fchownat.c (main): Likewise.
48787         * tests/test-fdutimensat.c (main): Likewise.
48788         * tests/test-fstatat.c (main): Likewise.
48789         * tests/test-futimens.c (main): Likewise.
48790         * tests/test-lchown.c (main): Likewise.
48791         * tests/test-link.c (main): Likewise.
48792         * tests/test-linkat.c (main): Likewise.
48793         * tests/test-lstat.c (main): Likewise.
48794         * tests/test-mkdir.c (main): Likewise.
48795         * tests/test-mkdirat.c (main): Likewise.
48796         * tests/test-mkfifo.c (main): Likewise.
48797         * tests/test-mkfifoat.c (main): Likewise.
48798         * tests/test-mknod.c (main): Likewise.
48799         * tests/test-readlink.c (main): Likewise.
48800         * tests/test-remove.c (main): Likewise.
48801         * tests/test-rename.c (main): Likewise.
48802         * tests/test-renameat.c (main): Likewise.
48803         * tests/test-rmdir.c (main): Likewise.
48804         * tests/test-symlink.c (main): Likewise.
48805         * tests/test-symlinkat.c (main): Likewise.
48806         * tests/test-unlink.c (main): Likewise.
48807         * tests/test-unlinkat.c (main): Likewise.
48808         * tests/test-utimens.c (main): Likewise.
48809         * tests/test-utimensat.c (main): Likewise.
48810         * modules/areadlink-tests (Depends-on): Add ignore-value.
48811         * modules/areadlink-with-size-tests (Depends-on): Likewise.
48812         * modules/areadlinkat-tests (Depends-on): Likewise.
48813         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
48814         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
48815         * modules/canonicalize-tests (Depends-on): Likewise.
48816         * modules/chown-tests (Depends-on): Likewise.
48817         * modules/fdutimensat-tests (Depends-on): Likewise.
48818         * modules/futimens-tests (Depends-on): Likewise.
48819         * modules/lchown-tests (Depends-on): Likewise.
48820         * modules/link-tests (Depends-on): Likewise.
48821         * modules/linkat-tests (Depends-on): Likewise.
48822         * modules/lstat-tests (Depends-on): Likewise.
48823         * modules/mkdir-tests (Depends-on): Likewise.
48824         * modules/mkfifo-tests (Depends-on): Likewise.
48825         * modules/mkfifoat-tests (Depends-on): Likewise.
48826         * modules/mknod-tests (Depends-on): Likewise.
48827         * modules/openat-tests (Depends-on): Likewise.
48828         * modules/readlink-tests (Depends-on): Likewise.
48829         * modules/remove-tests (Depends-on): Likewise.
48830         * modules/rename-tests (Depends-on): Likewise.
48831         * modules/renameat-tests (Depends-on): Likewise.
48832         * modules/rmdir-tests (Depends-on): Likewise.
48833         * modules/symlink-tests (Depends-on): Likewise.
48834         * modules/symlinkat-tests (Depends-on): Likewise.
48835         * modules/unlink-tests (Depends-on): Likewise.
48836         * modules/utimens-tests (Depends-on): Likewise.
48837         * modules/utimensat-tests (Depends-on): Likewise.
48839 2010-01-31  Bruno Haible  <bruno@clisp.org>
48841         Perform the same test for many <math.h> functions.
48842         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
48843         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
48844         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
48845         of gl_MATHFUNC.
48846         * modules/acos (configure.ac): Likewise.
48847         * modules/asin (configure.ac): Likewise.
48848         * modules/atan (configure.ac): Likewise.
48849         * modules/atan2 (configure.ac): Likewise.
48850         * modules/cbrt (configure.ac): Likewise.
48851         * modules/copysign (configure.ac): Likewise.
48852         * modules/cos (configure.ac): Likewise.
48853         * modules/cosh (configure.ac): Likewise.
48854         * modules/erf (configure.ac): Likewise.
48855         * modules/erfc (configure.ac): Likewise.
48856         * modules/exp (configure.ac): Likewise.
48857         * modules/fmod (configure.ac): Likewise.
48858         * modules/hypot (configure.ac): Likewise.
48859         * modules/j0 (configure.ac): Likewise.
48860         * modules/j1 (configure.ac): Likewise.
48861         * modules/jn (configure.ac): Likewise.
48862         * modules/lgamma (configure.ac): Likewise.
48863         * modules/log (configure.ac): Likewise.
48864         * modules/log10 (configure.ac): Likewise.
48865         * modules/log1p (configure.ac): Likewise.
48866         * modules/pow (configure.ac): Likewise.
48867         * modules/remainder (configure.ac): Likewise.
48868         * modules/sin (configure.ac): Likewise.
48869         * modules/sinh (configure.ac): Likewise.
48870         * modules/tan (configure.ac): Likewise.
48871         * modules/tanh (configure.ac): Likewise.
48872         * modules/y0 (configure.ac): Likewise.
48873         * modules/y1 (configure.ac): Likewise.
48874         * modules/yn (configure.ac): Likewise.
48875         Suggested by Paolo Bonzini.
48877 2010-01-31  Bruno Haible  <bruno@clisp.org>
48879         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
48881 2010-01-31  Bruno Haible  <bruno@clisp.org>
48883         Work around getdelim() bug on FreeBSD 8.0.
48884         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
48885         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
48886         not work.
48887         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
48888         is 1.
48889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
48890         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
48891         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
48892         a non-zero size.
48893         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
48895 2010-01-31  Bruno Haible  <bruno@clisp.org>
48897         Work around getline() bug on FreeBSD 8.0.
48898         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
48899         and a non-zero size.
48900         * tests/test-getline.c (main): Likewise.
48901         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
48902         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
48904 2010-01-28  Eric Blake  <ebb9@byu.net>
48906         regex: fix build failure
48907         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
48908         platforms.
48910 2010-01-28  Jim Meyering  <meyering@redhat.com>
48912         regex: do not ignore memory allocation failure
48913         * lib/regex_internal.c (create_cd_newstate): Detect
48914         re_node_set_init_copy failure.   Extracted from glibc commit
48915         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
48917         regex: sync more white-space changes from libc
48918         * lib/regex_internal.c: White-space only changes.
48919         * lib/regexec.c: Likewise.
48921         regex: add many uses of __attribute_warn_unused_result__
48922         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
48923         * lib/regexec.c: Likewise.
48924         Extracted from a messy glibc commit.
48926         regcomp.c: spelling and merge-artifact from glibc
48927         * lib/regcomp.c: Merge remainder of glibc's
48928         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
48930         regcomp.c: sync white-space changes from glibc
48931         * lib/regcomp.c: Merge to accommodate white space
48932         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
48934         regcomp.c: do not ignore internal return values
48935         * lib/regcomp.c: Do not ignore internal return values.
48936         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
48937         but without its white-space changes and spelling fixes.
48939         regex_internal.h: define __attribute_warn_unused_result__
48940         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
48942         maint: add a syntax-check rule to check for vulnerable Makefile.in
48943         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
48945 2010-01-27  Jim Meyering  <meyering@redhat.com>
48947         ncftpput-ftp: clean up spaces
48948         * build-aux/ncftpput-ftp: Make Copyright line consistent.
48949         Remove trailing blanks.
48951 2010-01-27  Simon Josefsson  <simon@josefsson.org>
48953         * build-aux/git-version-gen: Fix copyright statement.
48954         * build-aux/gnupload: Likewise.
48955         * tests/test-arcfour.c: Likewise.
48956         * tests/test-arctwo.c: Likewise.
48957         * tests/test-count-one-bits.c: Likewise.
48958         * tests/test-crc.c: Likewise.
48959         * tests/test-des.c: Likewise.
48960         * tests/test-gc-arcfour.c: Likewise.
48961         * tests/test-gc-arctwo.c: Likewise.
48962         * tests/test-gc-des.c: Likewise.
48963         * tests/test-gc-hmac-md5.c: Likewise.
48964         * tests/test-gc-hmac-sha1.c: Likewise.
48965         * tests/test-gc-md2.c: Likewise.
48966         * tests/test-gc-md4.c: Likewise.
48967         * tests/test-gc-md5.c: Likewise.
48968         * tests/test-gc-pbkdf2-sha1.c: Likewise.
48969         * tests/test-gc-rijndael.c: Likewise.
48970         * tests/test-gc-sha1.c: Likewise.
48971         * tests/test-gc.c: Likewise.
48972         * tests/test-gethostname.c: Likewise.
48973         * tests/test-gettimeofday.c: Likewise.
48974         * tests/test-hash.c: Likewise.
48975         * tests/test-hmac-md5.c: Likewise.
48976         * tests/test-hmac-sha1.c: Likewise.
48977         * tests/test-md2.c: Likewise.
48978         * tests/test-md4.c: Likewise.
48979         * tests/test-md5.c: Likewise.
48980         * tests/test-memchr.c: Likewise.
48981         * tests/test-memchr2.c: Likewise.
48982         * tests/test-memcmp.c: Likewise.
48983         * tests/test-memmem.c: Likewise.
48984         * tests/test-memrchr.c: Likewise.
48985         * tests/test-rawmemchr.c: Likewise.
48986         * tests/test-read-file.c: Likewise.
48987         * tests/test-rijndael.c: Likewise.
48988         * tests/test-sockets.c: Likewise.
48989         * tests/test-strchrnul.c: Likewise.
48990         * tests/test-strstr.c: Likewise.
48991         * tests/test-strtod.c: Likewise.
48992         * build-aux/ncftpput-ftp: Likewise.
48994 2010-01-26  Eric Blake  <ebb9@byu.net>
48996         ignore-value: update recommended header name
48997         * modules/ignore-value (Include): Only use <> for headers that
48998         exist in glibc.
49000 2010-01-26  Jim Meyering  <meyering@redhat.com>
49002         test-userspec.c: avoid compiler warnings
49003         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
49004         and "initialization discards qualifiers..." warnings.
49005         Put the first "uid" in its own scope, and make char* members "const".
49007 2010-01-25  Bruno Haible  <bruno@clisp.org>
49009         gnulib-tool: Make warning diagnostics consistent.
49010         * gnulib-tool (func_warning): New function.
49011         Use it everywhere where gnulib-tool produces output to stderr and it is
49012         not a fatal error.
49014 2010-01-25  Bruno Haible  <bruno@clisp.org>
49016         Fix test dependencies.
49017         * modules/xstrtol-tests (Depends-on): Add inttypes.
49018         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
49020 2010-01-25 Pádraig Brady <P@draigBrady.com>
49022         syntax-check: detect incorrect boolean macro values in config.h
49023         * modules/maintainer-makefile (configure.ac): Parameterize the location
49024         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
49025         The logic is from Eric Blake and the location indicated by Jim Meyering.
49026         Note the more natural CONFIG_HEADER name is prohibited by automake
49027         for backwards compatibility reasons.
49028         * top/maint.mk (sc_Wundef_boolean): New rule.
49030 2010-01-25  Jim Meyering  <meyering@redhat.com>
49032         bootstrap: detect MacOS 10.6's shasum, too
49033         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
49034         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
49036 2010-01-23  Jim Meyering  <meyering@redhat.com>
49038         xstrtoll: new module
49039         * modules/xstrtoll: New file.
49040         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
49041         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
49042         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
49043         ./configure fails if you use this module and lack "long long".
49044         * modules/xstrtoll-tests: New module.
49045         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
49046         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
49047         new init.sh-based test framework.
49049 2010-01-24  Bruno Haible  <bruno@clisp.org>
49051         Tests for module 'yn'.
49052         * modules/yn-tests: New file.
49053         * tests/test-yn.c: New file.
49055         Tests for module 'y1'.
49056         * modules/y1-tests: New file.
49057         * tests/test-y1.c: New file.
49059         Tests for module 'y0'.
49060         * modules/y0-tests: New file.
49061         * tests/test-y0.c: New file.
49063         Tests for module 'tanh'.
49064         * modules/tanh-tests: New file.
49065         * tests/test-tanh.c: New file.
49067         Tests for module 'tan'.
49068         * modules/tan-tests: New file.
49069         * tests/test-tan.c: New file.
49071         Tests for module 'sqrt'.
49072         * modules/sqrt-tests: New file.
49073         * tests/test-sqrt.c: New file.
49075         Tests for module 'sinh'.
49076         * modules/sinh-tests: New file.
49077         * tests/test-sinh.c: New file.
49079         Tests for module 'sin'.
49080         * modules/sin-tests: New file.
49081         * tests/test-sin.c: New file.
49083         Tests for module 'rint'.
49084         * modules/rint-tests: New file.
49085         * tests/test-rint.c: New file.
49087         Tests for module 'remainder'.
49088         * modules/remainder-tests: New file.
49089         * tests/test-remainder.c: New file.
49091         Tests for module 'pow'.
49092         * modules/pow-tests: New file.
49093         * tests/test-pow.c: New file.
49095         Tests for module 'nextafter'.
49096         * modules/nextafter-tests: New file.
49097         * tests/test-nextafter.c: New file.
49099         Tests for module 'modf'.
49100         * modules/modf-tests: New file.
49101         * tests/test-modf.c: New file.
49103         Tests for module 'logb'.
49104         * modules/logb-tests: New file.
49105         * tests/test-logb.c: New file.
49107         Tests for module 'log1p'.
49108         * modules/log1p-tests: New file.
49109         * tests/test-log1p.c: New file.
49111         Tests for module 'log10'.
49112         * modules/log10-tests: New file.
49113         * tests/test-log10.c: New file.
49115         Tests for module 'log'.
49116         * modules/log-tests: New file.
49117         * tests/test-log.c: New file.
49119         Tests for module 'lgamma'.
49120         * modules/lgamma-tests: New file.
49121         * tests/test-lgamma.c: New file.
49123         Tests for module 'ldexp'.
49124         * modules/ldexp-tests: New file.
49125         * tests/test-ldexp.c: New file.
49127         Tests for module 'jn'.
49128         * modules/jn-tests: New file.
49129         * tests/test-jn.c: New file.
49131         Tests for module 'j1'.
49132         * modules/j1-tests: New file.
49133         * tests/test-j1.c: New file.
49135         Tests for module 'j0'.
49136         * modules/j0-tests: New file.
49137         * tests/test-j0.c: New file.
49139         Tests for module 'hypot'.
49140         * modules/hypot-tests: New file.
49141         * tests/test-hypot.c: New file.
49143         Tests for module 'fmod'.
49144         * modules/fmod-tests: New file.
49145         * tests/test-fmod.c: New file.
49147         Tests for module 'fabs'.
49148         * modules/fabs-tests: New file.
49149         * tests/test-fabs.c: New file.
49151         Tests for module 'exp'.
49152         * modules/exp-tests: New file.
49153         * tests/test-exp.c: New file.
49155         Tests for module 'erfc'.
49156         * modules/erfc-tests: New file.
49157         * tests/test-erfc.c: New file.
49159         Tests for module 'erf'.
49160         * modules/erf-tests: New file.
49161         * tests/test-erf.c: New file.
49163         Tests for module 'cosh'.
49164         * modules/cosh-tests: New file.
49165         * tests/test-cosh.c: New file.
49167         Tests for module 'cos'.
49168         * modules/cos-tests: New file.
49169         * tests/test-cos.c: New file.
49171         Tests for module 'copysign'.
49172         * modules/copysign-tests: New file.
49173         * tests/test-copysign.c: New file.
49175         Tests for module 'cbrt'.
49176         * modules/cbrt-tests: New file.
49177         * tests/test-cbrt.c: New file.
49179         Tests for module 'atan2'.
49180         * modules/atan2-tests: New file.
49181         * tests/test-atan2.c: New file.
49183         Tests for module 'atan'.
49184         * modules/atan-tests: New file.
49185         * tests/test-atan.c: New file.
49187         Tests for module 'asin'.
49188         * modules/asin-tests: New file.
49189         * tests/test-asin.c: New file.
49191         Tests for module 'acos'.
49192         * modules/acos-tests: New file.
49193         * tests/test-acos.c: New file.
49195 2010-01-24  Bruno Haible  <bruno@clisp.org>
49197         Fix tests for common <math.h> functions.
49198         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
49199         code snippet that references the function pointer, rather than merely
49200         calling the function. Substitute the FUNC_LIBM variable.
49201         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
49202         * modules/acos (configure.ac): Likewise.
49203         * modules/asin (configure.ac): Likewise.
49204         * modules/atan (configure.ac): Likewise.
49205         * modules/atan2 (configure.ac): Likewise.
49206         * modules/cbrt (configure.ac): Likewise.
49207         * modules/copysign (configure.ac): Likewise.
49208         * modules/cos (configure.ac): Likewise.
49209         * modules/cosh (configure.ac): Likewise.
49210         * modules/erf (configure.ac): Likewise.
49211         * modules/erfc (configure.ac): Likewise.
49212         * modules/exp (configure.ac): Likewise.
49213         * modules/fabs (configure.ac): Likewise.
49214         * modules/fmod (configure.ac): Likewise.
49215         * modules/hypot (configure.ac): Likewise.
49216         * modules/j0 (configure.ac): Likewise.
49217         * modules/j1 (configure.ac): Likewise.
49218         * modules/jn (configure.ac): Likewise.
49219         * modules/ldexp (configure.ac): Likewise.
49220         * modules/lgamma (configure.ac): Likewise.
49221         * modules/log (configure.ac): Likewise.
49222         * modules/log10 (configure.ac): Likewise.
49223         * modules/log1p (configure.ac): Likewise.
49224         * modules/logb (configure.ac): Likewise.
49225         * modules/modf (configure.ac): Likewise.
49226         * modules/nextafter (configure.ac): Likewise.
49227         * modules/pow (configure.ac): Likewise.
49228         * modules/remainder (configure.ac): Likewise.
49229         * modules/rint (configure.ac): Likewise.
49230         * modules/sin (configure.ac): Likewise.
49231         * modules/sinh (configure.ac): Likewise.
49232         * modules/tan (configure.ac): Likewise.
49233         * modules/tanh (configure.ac): Likewise.
49234         * modules/y0 (configure.ac): Likewise.
49235         * modules/y1 (configure.ac): Likewise.
49236         * modules/yn (configure.ac): Likewise.
49238 2010-01-24  Bruno Haible  <bruno@clisp.org>
49240         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
49241         * tests/test-acosl.c (x): New variable.
49242         (main): Store argument in x and fetch it from x.
49243         * tests/test-asinl.c (x): New variable.
49244         (main): Store argument in x and fetch it from x.
49245         * tests/test-atanl.c (x): New variable.
49246         (main): Store argument in x and fetch it from x.
49247         * tests/test-cosl.c (x): New variable.
49248         (main): Store argument in x and fetch it from x.
49249         * tests/test-expl.c (x): New variable.
49250         (main): Store argument in x and fetch it from x.
49251         * tests/test-logl.c (x): New variable.
49252         (main): Store argument in x and fetch it from x.
49253         * tests/test-sinl.c (x): New variable.
49254         (main): Store argument in x and fetch it from x.
49255         * tests/test-sqrtl.c (x): New variable.
49256         (main): Store argument in x and fetch it from x.
49257         * tests/test-tanl.c (x): New variable.
49258         (main): Store argument in x and fetch it from x.
49260 2010-01-24  Bruno Haible  <bruno@clisp.org>
49262         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
49263         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
49264         assignments to the initial TESTS_ENVIRONMENT.
49265         * doc/gnulib.texi (Unit test modules): Document it.
49266         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
49267         TESTS_ENVIRONMENT.
49268         * modules/btowc-tests (Makefile.am): Likewise.
49269         * modules/c-stack-tests (Makefile.am): Likewise.
49270         * modules/c-strcase-tests (Makefile.am): Likewise.
49271         * modules/copy-file-tests (Makefile.am): Likewise.
49272         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
49273         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
49274         * modules/mbrtowc-tests (Makefile.am): Likewise.
49275         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49276         * modules/mbscasestr-tests (Makefile.am): Likewise.
49277         * modules/mbschr-tests (Makefile.am): Likewise.
49278         * modules/mbscspn-tests (Makefile.am): Likewise.
49279         * modules/mbsinit-tests (Makefile.am): Likewise.
49280         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49281         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
49282         * modules/mbspbrk-tests (Makefile.am): Likewise.
49283         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49284         * modules/mbsrchr-tests (Makefile.am): Likewise.
49285         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
49286         * modules/mbsspn-tests (Makefile.am): Likewise.
49287         * modules/mbsstr-tests (Makefile.am): Likewise.
49288         * modules/nl_langinfo-tests (Makefile.am): Likewise.
49289         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
49290         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49291         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49292         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49293         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49294         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
49295         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49296         * modules/wcrtomb-tests (Makefile.am): Likewise.
49297         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
49298         * modules/wcsrtombs-tests (Makefile.am): Likewise.
49299         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
49300         assignments from TESTS_ENVIRONMENT.
49301         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
49302         augmentation.
49303         * modules/argp-version-etc-tests (Makefile.am): Likewise.
49304         * modules/atexit-tests (Makefile.am): Likewise.
49305         * modules/binary-io-tests (Makefile.am): Likewise.
49306         * modules/closein-tests (Makefile.am): Likewise.
49307         * modules/dprintf-posix-tests (Makefile.am): Likewise.
49308         * modules/exclude-tests (Makefile.am): Likewise.
49309         * modules/fflush-tests (Makefile.am): Likewise.
49310         * modules/fpending-tests (Makefile.am): Likewise.
49311         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49312         * modules/freadahead-tests (Makefile.am): Likewise.
49313         * modules/freadptr-tests (Makefile.am): Likewise.
49314         * modules/freadseek-tests (Makefile.am): Likewise.
49315         * modules/fseek-tests (Makefile.am): Likewise.
49316         * modules/fseeko-tests (Makefile.am): Likewise.
49317         * modules/ftell-tests (Makefile.am): Likewise.
49318         * modules/ftello-tests (Makefile.am): Likewise.
49319         * modules/idpriv-drop-tests (Makefile.am): Likewise.
49320         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
49321         * modules/lseek-tests (Makefile.am): Likewise.
49322         * modules/parse-duration-tests (Makefile.am): Likewise.
49323         * modules/perror-tests (Makefile.am): Likewise.
49324         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
49325         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
49326         * modules/pipe-tests (Makefile.am): Likewise.
49327         * modules/pread-tests (Makefile.am): Likewise.
49328         * modules/printf-posix-tests (Makefile.am): Likewise.
49329         * modules/select-tests (Makefile.am): Likewise.
49330         * modules/sigpipe-tests (Makefile.am): Likewise.
49331         * modules/tsearch-tests (Makefile.am): Likewise.
49332         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
49333         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
49334         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49335         * modules/uniwidth/width-tests (Makefile.am): Likewise.
49336         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
49337         * modules/version-etc-tests (Makefile.am): Likewise.
49338         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49339         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49340         * modules/xalloc-die-tests (Makefile.am): Likewise.
49341         * modules/xprintf-posix-tests (Makefile.am): Likewise.
49342         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49343         * modules/xstrtol-tests (Makefile.am): Likewise.
49344         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49345         * modules/yesno-tests (Makefile.am): Likewise.
49346         Suggested by Jim Meyering.
49348 2010-01-24  Bruno Haible  <bruno@clisp.org>
49350         More documentation.
49351         * doc/gnulib.texi (Writing modules): New chapter.
49352         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
49353         the new chapter.
49355 2010-01-24  Jim Meyering  <meyering@redhat.com>
49357         maint.mk: do not prepend "./" after filtering
49358         * top/maint.mk (_prepend_srcdir_prefix): New variable
49359         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
49360         "./" when $(srcdir) is ".".
49362         define STREQ(a,b) consistently, removing useless parentheses
49363         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
49364         since the only risk is that "a" or "b" contains an unparenthesized
49365         comma, but if either did that, STREQ would have 3 or more arguments.
49366         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
49367         * lib/fts.c (STREQ): Remove unnecessary parentheses.
49368         * lib/hash-triple.c (STREQ): Likewise.
49369         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
49370         * lib/getugroups.c (STREQ): Likewise.
49372 2010-01-23  Jim Meyering  <meyering@redhat.com>
49374         maint.mk: fix syntax-check in a non-srcdir build directory
49375         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
49376         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
49378 2010-01-22  Jim Meyering  <meyering@redhat.com>
49380         userspec: add unit tests
49381         * tests/test-userspec.c: New file.
49382         * modules/userspec-tests: Likewise.
49384 2010-01-21  Jim Meyering  <meyering@redhat.com>
49386         maint.mk: handle source file names containing "." robustly
49387         * top/maint.mk (_dot_escaped_srcdir): Define.
49388         (VC_LIST): Use it in LHS of sed substitution.
49390 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
49392         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
49393         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
49394         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
49395         from a non-srcdir build.
49397 2010-01-20  Eric Blake  <ebb9@byu.net>
49399         warn-on-use: use instead of link-warning
49400         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
49401         * modules/unistd (Depends-on, Makefile.am): Likewise.
49402         * modules/arpa_inet (Depends-on): Replace link-warning with
49403         warn-on-use.
49404         (Makefile.am): Update rules accordingly.
49405         * modules/ctype (Depends-on, Makefile.am): Likewise.
49406         * modules/dirent (Depends-on, Makefile.am): Likewise.
49407         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
49408         * modules/inttypes (Depends-on, Makefile.am): Likewise.
49409         * modules/langinfo (Depends-on, Makefile.am): Likewise.
49410         * modules/locale (Depends-on, Makefile.am): Likewise.
49411         * modules/math (Depends-on, Makefile.am): Likewise.
49412         * modules/search (Depends-on, Makefile.am): Likewise.
49413         * modules/signal (Depends-on, Makefile.am): Likewise.
49414         * modules/spawn (Depends-on, Makefile.am): Likewise.
49415         * modules/stdlib (Depends-on, Makefile.am): Likewise.
49416         * modules/string (Depends-on, Makefile.am): Likewise.
49417         * modules/strings (Depends-on, Makefile.am): Likewise.
49418         * modules/sys_file (Depends-on, Makefile.am): Likewise.
49419         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
49420         * modules/sys_select (Depends-on, Makefile.am): Likewise.
49421         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
49422         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
49423         * modules/sys_times (Depends-on, Makefile.am): Likewise.
49424         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
49425         * modules/wchar (Depends-on, Makefile.am): Likewise.
49426         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
49427         should be poisoned.
49428         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
49429         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
49430         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
49431         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49432         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
49433         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49434         * m4/math_h.m4 (gl_MATH_H): Likewise.
49435         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49436         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49437         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49438         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49439         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49440         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49441         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49442         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
49443         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
49444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49445         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49446         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49447         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49448         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49449         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49450         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49451         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
49452         GL_LINK_WARNING.
49453         * lib/ctype.in.h: Likewise.
49454         * lib/dirent.in.h: Likewise.
49455         * lib/fcntl.in.h: Likewise.
49456         * lib/inttypes.in.h: Likewise.
49457         * lib/langinfo.in.h: Likewise.
49458         * lib/locale.in.h: Likewise.
49459         * lib/math.in.h: Likewise.
49460         * lib/search.in.h: Likewise.
49461         * lib/signal.in.h: Likewise.
49462         * lib/spawn.in.h: Likewise.
49463         * lib/stdio.in.h: Likewise.
49464         * lib/stdlib.in.h: Likewise.
49465         * lib/string.in.h: Likewise.
49466         * lib/strings.in.h: Likewise.
49467         * lib/sys_file.in.h: Likewise.
49468         * lib/sys_ioctl.in.h: Likewise.
49469         * lib/sys_select.in.h: Likewise.
49470         * lib/sys_socket.in.h: Likewise.
49471         * lib/sys_stat.in.h: Likewise.
49472         * lib/sys_times.in.h: Likewise.
49473         * lib/sys_utsname.in.h: Likewise.
49474         * lib/unistd.in.h: Likewise.
49475         * lib/wchar.in.h: Likewise.
49477 2010-01-20  Bruno Haible  <bruno@clisp.org>
49479         Avoid duplicate -lm.
49480         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
49481         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
49482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
49483         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
49484         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
49485         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
49486         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
49487         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
49488         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
49489         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
49490         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
49491         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49492         Reported by Paolo Bonzini.
49494 2010-01-19  Bruno Haible  <bruno@clisp.org>
49496         langinfo, nl_langinfo: Relicense under LGPLv2+.
49497         * modules/langinfo (License): Change to LGPLv2+.
49498         * modules/nl_langinfo (License): Likewise.
49499         Patch by David Lutterkort <lutter@redhat.com>.
49501 2010-01-19  Bruno Haible  <bruno@clisp.org>
49503         Avoid compilation error with cc on OSF/1 5.1.
49504         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
49505         statement, not before.
49506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49508 2010-01-18  Bruno Haible  <bruno@clisp.org>
49510         Avoid a link error due to the __printf__ symbol.
49511         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
49512         and 2.6.x.
49513         (__format__, __printf__): Remove definitions.
49514         * lib/argp-fmtstream.h: Likewise.
49515         * lib/argp.h: Likewise.
49516         * lib/error.h: Likewise.
49517         * lib/vasnprintf.h: Likewise.
49518         * lib/xprintf.h: Likewise.
49519         * lib/xvasprintf.h: Likewise.
49520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49522 2010-01-18  Bruno Haible  <bruno@clisp.org>
49524         Tests for module 'tanl'.
49525         * modules/tanl-tests: New file.
49526         * tests/test-tanl.c: New file.
49528         Tests for module 'sqrtl'.
49529         * modules/sqrtl-tests: New file.
49530         * tests/test-sqrtl.c: New file.
49532         Tests for module 'sinl'.
49533         * modules/sinl-tests: New file.
49534         * tests/test-sinl.c: New file.
49536         Tests for module 'logl'.
49537         * modules/logl-tests: New file.
49538         * tests/test-logl.c: New file.
49540         Tests for module 'expl'.
49541         * modules/expl-tests: New file.
49542         * tests/test-expl.c: New file.
49544         Tests for module 'cosl'.
49545         * modules/cosl-tests: New file.
49546         * tests/test-cosl.c: New file.
49548         Tests for module 'atanl'.
49549         * modules/atanl-tests: New file.
49550         * tests/test-atanl.c: New file.
49552         Tests for module 'asinl'.
49553         * modules/asinl-tests: New file.
49554         * tests/test-asinl.c: New file.
49556         Tests for module 'acosl'.
49557         * modules/acosl-tests: New file.
49558         * tests/test-acosl.c: New file.
49560         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
49561         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
49562         tanl): Use the standard gnulib idiom.
49563         * lib/cosl.c: Don't include trigl.c and sincosl.c.
49564         * lib/sinl.c: Likewise.
49565         * lib/tanl.c: Don't include trigl.c.
49566         (kernel_tanl): Make static.
49567         * lib/sincosl.c: Include trigl.h first.
49568         * lib/trigl.c: Likewise.
49569         * m4/acosl.m4: New file.
49570         * m4/asinl.m4: New file.
49571         * m4/atanl.m4: New file.
49572         * m4/cosl.m4: New file.
49573         * m4/expl.m4: New file.
49574         * m4/logl.m4: New file.
49575         * m4/sinl.m4: New file.
49576         * m4/sqrtl.m4: New file.
49577         * m4/tanl.m4: New file.
49578         * m4/mathl.m4: Remove file.
49579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
49580         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
49581         Don't initialize GNULIB_MATHL.
49582         * modules/acosl: New file.
49583         * modules/asinl: New file.
49584         * modules/atanl: New file.
49585         * modules/cosl: New file.
49586         * modules/expl: New file.
49587         * modules/logl: New file.
49588         * modules/sinl: New file.
49589         * modules/sqrtl: New file.
49590         * modules/tanl: New file.
49591         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
49592         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
49593         substitute GNULIB_MATHL.
49594         * modules/mathl: Rewritten.
49595         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
49596         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
49597         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
49598         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
49599         * doc/posix-functions/expl.texi: Mention the 'expl' module.
49600         * doc/posix-functions/logl.texi: Mention the 'logl' module.
49601         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
49602         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
49603         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
49605 2010-01-18  Bruno Haible  <bruno@clisp.org>
49607         sqrt: Make gl_FUNC_SQRT requirable.
49608         * m4/sqrt.m4: New file.
49609         * modules/sqrt (Files): Add it.
49610         (configure.ac): Invoke gl_FUNC_SQRT.
49612 2010-01-18  Bruno Haible  <bruno@clisp.org>
49614         New modules for common <math.h> functions.
49615         * m4/mathfunc.m4: New file.
49616         * modules/acos: New file.
49617         * modules/asin: New file.
49618         * modules/atan: New file.
49619         * modules/atan2: New file.
49620         * modules/cbrt: New file.
49621         * modules/copysign: New file.
49622         * modules/cos: New file.
49623         * modules/cosh: New file.
49624         * modules/erf: New file.
49625         * modules/erfc: New file.
49626         * modules/exp: New file.
49627         * modules/fabs: New file.
49628         * modules/fmod: New file.
49629         * modules/hypot: New file.
49630         * modules/j0: New file.
49631         * modules/j1: New file.
49632         * modules/jn: New file.
49633         * modules/ldexp: New file.
49634         * modules/lgamma: New file.
49635         * modules/log: New file.
49636         * modules/log10: New file.
49637         * modules/log1p: New file.
49638         * modules/logb: New file.
49639         * modules/modf: New file.
49640         * modules/nextafter: New file.
49641         * modules/pow: New file.
49642         * modules/remainder: New file.
49643         * modules/rint: New file.
49644         * modules/sin: New file.
49645         * modules/sinh: New file.
49646         * modules/sqrt: New file.
49647         * modules/tan: New file.
49648         * modules/tanh: New file.
49649         * modules/y0: New file.
49650         * modules/y1: New file.
49651         * modules/yn: New file.
49652         * doc/posix-functions/acos.texi: Mention the 'acos' module.
49653         * doc/posix-functions/asin.texi: Mention the 'asin' module.
49654         * doc/posix-functions/atan.texi: Mention the 'atan' module.
49655         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
49656         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
49657         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
49658         * doc/posix-functions/cos.texi: Mention the 'cos' module.
49659         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
49660         * doc/posix-functions/erf.texi: Mention the 'erf' module.
49661         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
49662         * doc/posix-functions/exp.texi: Mention the 'exp' module.
49663         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
49664         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
49665         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
49666         * doc/posix-functions/j0.texi: Mention the 'j0' module.
49667         * doc/posix-functions/j1.texi: Mention the 'j1' module.
49668         * doc/posix-functions/jn.texi: Mention the 'jn' module.
49669         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
49670         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
49671         * doc/posix-functions/log.texi: Mention the 'log' module.
49672         * doc/posix-functions/log10.texi: Mention the 'log10' module.
49673         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
49674         * doc/posix-functions/logb.texi: Mention the 'logb' module.
49675         * doc/posix-functions/modf.texi: Mention the 'modf' module.
49676         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
49677         * doc/posix-functions/pow.texi: Mention the 'pow' module.
49678         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
49679         * doc/posix-functions/rint.texi: Mention the 'rint' module.
49680         * doc/posix-functions/sin.texi: Mention the 'sin' module.
49681         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
49682         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
49683         * doc/posix-functions/tan.texi: Mention the 'tan' module.
49684         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
49685         * doc/posix-functions/y0.texi: Mention the 'y0' module.
49686         * doc/posix-functions/y1.texi: Mention the 'y1' module.
49687         * doc/posix-functions/yn.texi: Mention the 'yn' module.
49689 2010-01-18  Jim Meyering  <meyering@redhat.com>
49691         ignore-value: relax license to LGPLv2+
49692         * modules/ignore-value (License): Relax to LGPLv2+.
49694         getdate: don't leak when TZ contains two or more '"'s
49695         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
49696         double quote in TZ after the first one.
49698         readtokens: do not leak internal token_lengths buffer
49699         * lib/readtokens.c (readtokens): Free the local, lengths,
49700         when the supplied "token_lengths" parameter is NULL.
49702 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49704         Fix a couple of missing LIBTHREAD link failures on AIX.
49705         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
49706         $(LIBTHREAD).
49707         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
49709         Link test-poll against INET_PTON_LIB.
49710         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
49711         for inet_pton on Solaris 10.
49713 2010-01-17  Bruno Haible  <bruno@clisp.org>
49715         unistdio/*-sprintf: Fix typo in module description.
49716         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
49717         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
49718         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
49719         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
49720         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
49721         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
49722         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
49723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49725 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49727         gnulib-tool: fix filelist for AIX, HP-UX ksh.
49728         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
49729         variables in shell case patterns, for AIX and HP-UX ksh.
49731         Split large sed scripts, for HP-UX sed.
49732         * modules/stdio: Split sed scripts around 50 sed commands,
49733         to avoid HP-UX limit of 99 commands, in the near future.
49734         * modules/string: Likewise.
49735         * modules/unistd: Likewise.
49737         gnulib-tool: avoid writing in the current directory.
49738         * gnulib-tool (func_emit_lib_Makefile_am)
49739         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
49740         not in the current directory, so concurrent gnulib-tool
49741         instances do not interfere.
49743 2010-01-16  Jim Meyering  <meyering@redhat.com>
49745         doc: update users.txt
49746         * users.txt: Add grep.
49747         (diffutils, gzip): Update URLs.
49749 2010-01-12  Bruno Haible  <bruno@clisp.org>
49751         posix_spawn: Avoid test failure on Cygwin.
49752         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
49753         characters.
49754         Reported by Simon Josefsson.
49756 2010-01-12  Bruno Haible  <bruno@clisp.org>
49758         * tests/test-cond.c (main): When skipping the test, show the reason.
49760 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49762         * lib/striconv.c (str_cd_iconv): Avoid if before free.
49764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49766         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
49767         VC_LIST_ALWAYS_EXCLUDE_REGEX.
49769 2010-01-12  Eric Blake  <ebb9@byu.net>
49771         build: guarantee AS_VAR_IF
49772         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
49773         (gl_AS_VAR_IF): Move...
49774         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
49775         Reported by Simon Josefsson.
49777 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49779         * lib/stdio.in.h: Fix typo.
49781 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49783         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
49784         libgpg-error.
49786 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49788         * tests/test-xalloc-die.sh: Use $EXEEXT.
49790 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49791             Bruno Haible  <bruno@clisp.org>
49793         getlogin, getlogin_r: Avoid test failure.
49794         * tests/test-getlogin.c: Include <stdio.h>.
49795         (main): Skip the test when the function fails because stdin is not a
49796         tty.
49797         * tests/test-getlogin_r.c: Include <stdio.h>.
49798         (main): Skip the test when the function fails because stdin is not a
49799         tty.
49801 2010-01-11  Eric Blake  <ebb9@byu.net>
49803         tests: avoid more large file warnings
49804         * tests/test-fflush.c: Avoid warning about ftell use.
49805         * tests/test-fseek.c: Avoid warning about fseek use.
49807 2010-01-10  Bruno Haible  <bruno@clisp.org>
49809         nproc: Work better on Linux when /proc and /sys are not mounted.
49810         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
49811         as lower bound when, on glibc/Linux systems,
49812         sysconf (_SC_NPROCESSORS_CONF) returns 1.
49813         Suggested by Pádraig Brady <P@draigbrady.com>.
49814         Reported by Dmitry V. Levin <ldv@altlinux.org>.
49816         nproc: Refactor.
49817         * lib/nproc.c (num_processors_via_affinity_mask): New function,
49818         extracted from num_processors.
49819         (num_processors): Call it.
49821 2010-01-11  Jim Meyering  <meyering@redhat.com>
49823         utimecmp: avoid new warning from upcoming gcc-4.5.0
49824         * lib/utimecmp.c (BILLION): Define using #define rather than an
49825         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
49827 2010-01-11  Eric Blake  <ebb9@byu.net>
49829         math: add portability warnings for classification macros
49830         * modules/math (Depends-on): Add warn-on-use.
49831         (Makefile.am): Provide new substitutions.
49832         * m4/math_h.m4 (gl_MATH_H): Require inline.
49833         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
49834         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
49835         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
49836         implement warnings.
49838         unistd: warn on use of environ without module
49839         * modules/unistd (Depends-on): Add warn-on-use.
49840         (Makefile.am): Provide new substitutions.
49841         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
49842         * lib/unistd.in.h (environ): Wrap with a warning helper function.
49844         stdio: warn on suspicious uses
49845         * modules/stdio (Depends-on): Add warn-on-use.
49846         (Makefile.am): Provide new substitutions.
49847         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
49848         fseeko.
49849         * lib/stdio.in.h (gets): Always warn on use.
49850         (fseek, ftell): Adjust when warnings are issued, and honor
49851         _GL_NO_LARGE_FILES as a way to silence the warning.
49852         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
49853         any warning about large file offsets.
49854         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
49855         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
49856         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
49857         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
49858         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
49859         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
49860         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
49861         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
49863         warn-on-use: new module
49864         * modules/warn-on-use: New file.
49865         * build-aux/warn-on-use.h: Likewise.
49866         * m4/warn-on-use.m4: Likewise.
49867         * MODULES.html.sh (Support for building): Mention it.
49869 2010-01-10  Bruno Haible  <bruno@clisp.org>
49871         Tests for module 'unistr/u32-strdup'.
49872         * modules/unistr/u32-strdup-tests: New file.
49873         * tests/unistr/test-u32-strdup.c: New file.
49875         Tests for module 'unistr/u16-strdup'.
49876         * modules/unistr/u16-strdup-tests: New file.
49877         * tests/unistr/test-u16-strdup.c: New file.
49879         Tests for module 'unistr/u8-strdup'.
49880         * modules/unistr/u8-strdup-tests: New file.
49881         * tests/unistr/test-u8-strdup.c: New file.
49882         * tests/unistr/test-strdup.h: New file.
49884         Tests for module 'unistr/u32-strncmp'.
49885         * modules/unistr/u32-strncmp-tests: New file.
49886         * tests/unistr/test-u32-strncmp.c: New file.
49888         Tests for module 'unistr/u16-strncmp'.
49889         * modules/unistr/u16-strncmp-tests: New file.
49890         * tests/unistr/test-u16-strncmp.c: New file.
49892         Tests for module 'unistr/u8-strncmp'.
49893         * modules/unistr/u8-strncmp-tests: New file.
49894         * tests/unistr/test-u8-strncmp.c: New file.
49895         * tests/unistr/test-strncmp.h: New file.
49897         Tests for module 'unistr/u32-strcoll'.
49898         * modules/unistr/u32-strcoll-tests: New file.
49899         * tests/unistr/test-u32-strcoll.c: New file.
49901         Tests for module 'unistr/u16-strcoll'.
49902         * modules/unistr/u16-strcoll-tests: New file.
49903         * tests/unistr/test-u16-strcoll.c: New file.
49905         Tests for module 'unistr/u8-strcoll'.
49906         * modules/unistr/u8-strcoll-tests: New file.
49907         * tests/unistr/test-u8-strcoll.c: New file.
49909         Tests for module 'unistr/u32-strcmp'.
49910         * modules/unistr/u32-strcmp-tests: New file.
49911         * tests/unistr/test-u32-strcmp.c: New file.
49912         * tests/unistr/test-u32-strcmp.h: New file.
49914         Tests for module 'unistr/u16-strcmp'.
49915         * modules/unistr/u16-strcmp-tests: New file.
49916         * tests/unistr/test-u16-strcmp.c: New file.
49917         * tests/unistr/test-u16-strcmp.h: New file.
49919         Tests for module 'unistr/u8-strcmp'.
49920         * modules/unistr/u8-strcmp-tests: New file.
49921         * tests/unistr/test-u8-strcmp.c: New file.
49922         * tests/unistr/test-u8-strcmp.h: New file.
49923         * tests/unistr/test-strcmp.h: New file.
49925         Tests for module 'unistr/u32-strncat'.
49926         * modules/unistr/u32-strncat-tests: New file.
49927         * tests/unistr/test-u32-strncat.c: New file.
49929         Tests for module 'unistr/u16-strncat'.
49930         * modules/unistr/u16-strncat-tests: New file.
49931         * tests/unistr/test-u16-strncat.c: New file.
49933         Tests for module 'unistr/u8-strncat'.
49934         * modules/unistr/u8-strncat-tests: New file.
49935         * tests/unistr/test-u8-strncat.c: New file.
49936         * tests/unistr/test-strncat.h: New file.
49938         Tests for module 'unistr/u32-strcat'.
49939         * modules/unistr/u32-strcat-tests: New file.
49940         * tests/unistr/test-u32-strcat.c: New file.
49942         Tests for module 'unistr/u16-strcat'.
49943         * modules/unistr/u16-strcat-tests: New file.
49944         * tests/unistr/test-u16-strcat.c: New file.
49946         Tests for module 'unistr/u8-strcat'.
49947         * modules/unistr/u8-strcat-tests: New file.
49948         * tests/unistr/test-u8-strcat.c: New file.
49949         * tests/unistr/test-strcat.h: New file.
49951         Tests for module 'unistr/u32-stpncpy'.
49952         * modules/unistr/u32-stpncpy-tests: New file.
49953         * tests/unistr/test-u32-stpncpy.c: New file.
49955         Tests for module 'unistr/u16-stpncpy'.
49956         * modules/unistr/u16-stpncpy-tests: New file.
49957         * tests/unistr/test-u16-stpncpy.c: New file.
49959         Tests for module 'unistr/u8-stpncpy'.
49960         * modules/unistr/u8-stpncpy-tests: New file.
49961         * tests/unistr/test-u8-stpncpy.c: New file.
49962         * tests/unistr/test-stpncpy.h: New file.
49964         Tests for module 'unistr/u32-strncpy'.
49965         * modules/unistr/u32-strncpy-tests: New file.
49966         * tests/unistr/test-u32-strncpy.c: New file.
49968         Tests for module 'unistr/u16-strncpy'.
49969         * modules/unistr/u16-strncpy-tests: New file.
49970         * tests/unistr/test-u16-strncpy.c: New file.
49972         Tests for module 'unistr/u8-strncpy'.
49973         * modules/unistr/u8-strncpy-tests: New file.
49974         * tests/unistr/test-u8-strncpy.c: New file.
49975         * tests/unistr/test-strncpy.h: New file.
49977         Tests for module 'unistr/u32-stpcpy'.
49978         * modules/unistr/u32-stpcpy-tests: New file.
49979         * tests/unistr/test-u32-stpcpy.c: New file.
49981         Tests for module 'unistr/u16-stpcpy'.
49982         * modules/unistr/u16-stpcpy-tests: New file.
49983         * tests/unistr/test-u16-stpcpy.c: New file.
49985         Tests for module 'unistr/u8-stpcpy'.
49986         * modules/unistr/u8-stpcpy-tests: New file.
49987         * tests/unistr/test-u8-stpcpy.c: New file.
49988         * tests/unistr/test-stpcpy.h: New file.
49990         Tests for module 'unistr/u32-strcpy'.
49991         * modules/unistr/u32-strcpy-tests: New file.
49992         * tests/unistr/test-u32-strcpy.c: New file.
49994         Tests for module 'unistr/u16-strcpy'.
49995         * modules/unistr/u16-strcpy-tests: New file.
49996         * tests/unistr/test-u16-strcpy.c: New file.
49998         Tests for module 'unistr/u8-strcpy'.
49999         * modules/unistr/u8-strcpy-tests: New file.
50000         * tests/unistr/test-u8-strcpy.c: New file.
50001         * tests/unistr/test-strcpy.h: New file.
50003         Tests for module 'unistr/u32-strnlen'.
50004         * modules/unistr/u32-strnlen-tests: New file.
50005         * tests/unistr/test-u32-strnlen.c: New file.
50007         Tests for module 'unistr/u16-strnlen'.
50008         * modules/unistr/u16-strnlen-tests: New file.
50009         * tests/unistr/test-u16-strnlen.c: New file.
50011         Tests for module 'unistr/u8-strnlen'.
50012         * modules/unistr/u8-strnlen-tests: New file.
50013         * tests/unistr/test-u8-strnlen.c: New file.
50014         * tests/unistr/test-strnlen.h: New file.
50016         Tests for module 'unistr/u32-strlen'.
50017         * modules/unistr/u32-strlen-tests: New file.
50018         * tests/unistr/test-u32-strlen.c: New file.
50020         Tests for module 'unistr/u16-strlen'.
50021         * modules/unistr/u16-strlen-tests: New file.
50022         * tests/unistr/test-u16-strlen.c: New file.
50024         Tests for module 'unistr/u8-strlen'.
50025         * modules/unistr/u8-strlen-tests: New file.
50026         * tests/unistr/test-u8-strlen.c: New file.
50028         Tests for module 'unistr/u32-prev'.
50029         * modules/unistr/u32-prev-tests: New file.
50030         * tests/unistr/test-u32-prev.c: New file.
50032         Tests for module 'unistr/u16-prev'.
50033         * modules/unistr/u16-prev-tests: New file.
50034         * tests/unistr/test-u16-prev.c: New file.
50036         Tests for module 'unistr/u8-prev'.
50037         * modules/unistr/u8-prev-tests: New file.
50038         * tests/unistr/test-u8-prev.c: New file.
50040         Tests for module 'unistr/u32-next'.
50041         * modules/unistr/u32-next-tests: New file.
50042         * tests/unistr/test-u32-next.c: New file.
50044         Tests for module 'unistr/u16-next'.
50045         * modules/unistr/u16-next-tests: New file.
50046         * tests/unistr/test-u16-next.c: New file.
50048         Tests for module 'unistr/u8-next'.
50049         * modules/unistr/u8-next-tests: New file.
50050         * tests/unistr/test-u8-next.c: New file.
50052         Tests for module 'unistr/u32-strmbtouc'.
50053         * modules/unistr/u32-strmbtouc-tests: New file.
50054         * tests/unistr/test-u32-strmbtouc.c: New file.
50056         Tests for module 'unistr/u16-strmbtouc'.
50057         * modules/unistr/u16-strmbtouc-tests: New file.
50058         * tests/unistr/test-u16-strmbtouc.c: New file.
50060         Tests for module 'unistr/u8-strmbtouc'.
50061         * modules/unistr/u8-strmbtouc-tests: New file.
50062         * tests/unistr/test-u8-strmbtouc.c: New file.
50064         Tests for module 'unistr/u32-strmblen'.
50065         * modules/unistr/u32-strmblen-tests: New file.
50066         * tests/unistr/test-u32-strmblen.c: New file.
50068         Tests for module 'unistr/u16-strmblen'.
50069         * modules/unistr/u16-strmblen-tests: New file.
50070         * tests/unistr/test-u16-strmblen.c: New file.
50072         Tests for module 'unistr/u8-strmblen'.
50073         * modules/unistr/u8-strmblen-tests: New file.
50074         * tests/unistr/test-u8-strmblen.c: New file.
50076         Tests for module 'unistr/u32-cpy-alloc'.
50077         * modules/unistr/u32-cpy-alloc-tests: New file.
50078         * tests/unistr/test-u32-cpy-alloc.c: New file.
50080         Tests for module 'unistr/u16-cpy-alloc'.
50081         * modules/unistr/u16-cpy-alloc-tests: New file.
50082         * tests/unistr/test-u16-cpy-alloc.c: New file.
50084         Tests for module 'unistr/u8-cpy-alloc'.
50085         * modules/unistr/u8-cpy-alloc-tests: New file.
50086         * tests/unistr/test-u8-cpy-alloc.c: New file.
50087         * tests/unistr/test-cpy-alloc.h: New file.
50089         Tests for module 'unistr/u32-mbsnlen'.
50090         * modules/unistr/u32-mbsnlen-tests: New file.
50091         * tests/unistr/test-u32-mbsnlen.c: New file.
50093         Tests for module 'unistr/u16-mbsnlen'.
50094         * modules/unistr/u16-mbsnlen-tests: New file.
50095         * tests/unistr/test-u16-mbsnlen.c: New file.
50097         Tests for module 'unistr/u8-mbsnlen'.
50098         * modules/unistr/u8-mbsnlen-tests: New file.
50099         * tests/unistr/test-u8-mbsnlen.c: New file.
50101         Tests for module 'unistr/u32-chr'.
50102         * modules/unistr/u32-chr-tests: New file.
50103         * tests/unistr/test-u32-chr.c: New file.
50105         Tests for module 'unistr/u16-chr'.
50106         * modules/unistr/u16-chr-tests: New file.
50107         * tests/unistr/test-u16-chr.c: New file.
50109         Tests for module 'unistr/u8-chr'.
50110         * modules/unistr/u8-chr-tests: New file.
50111         * tests/unistr/test-u8-chr.c: New file.
50112         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
50114         Tests for module 'unistr/u32-cmp2'.
50115         * modules/unistr/u32-cmp2-tests: New file.
50116         * tests/unistr/test-u32-cmp2.c: New file.
50118         Tests for module 'unistr/u16-cmp2'.
50119         * modules/unistr/u16-cmp2-tests: New file.
50120         * tests/unistr/test-u16-cmp2.c: New file.
50122         Tests for module 'unistr/u8-cmp2'.
50123         * modules/unistr/u8-cmp2-tests: New file.
50124         * tests/unistr/test-u8-cmp2.c: New file.
50125         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
50127         Tests for module 'unistr/u32-cmp'.
50128         * modules/unistr/u32-cmp-tests: New file.
50129         * tests/unistr/test-u32-cmp.c: New file.
50131         Tests for module 'unistr/u16-cmp'.
50132         * modules/unistr/u16-cmp-tests: New file.
50133         * tests/unistr/test-u16-cmp.c: New file.
50135         Tests for module 'unistr/u8-cmp'.
50136         * modules/unistr/u8-cmp-tests: New file.
50137         * tests/unistr/test-u8-cmp.c: New file.
50138         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
50140         Tests for module 'unistr/u32-set'.
50141         * modules/unistr/u32-set-tests: New file.
50142         * tests/unistr/test-u32-set.c: New file.
50144         Tests for module 'unistr/u16-set'.
50145         * modules/unistr/u16-set-tests: New file.
50146         * tests/unistr/test-u16-set.c: New file.
50148         Tests for module 'unistr/u8-set'.
50149         * modules/unistr/u8-set-tests: New file.
50150         * tests/unistr/test-u8-set.c: New file.
50151         * tests/unistr/test-set.h: New file.
50153         Tests for module 'unistr/u32-move'.
50154         * modules/unistr/u32-move-tests: New file.
50155         * tests/unistr/test-u32-move.c: New file.
50157         Tests for module 'unistr/u16-move'.
50158         * modules/unistr/u16-move-tests: New file.
50159         * tests/unistr/test-u16-move.c: New file.
50161         Tests for module 'unistr/u8-move'.
50162         * modules/unistr/u8-move-tests: New file.
50163         * tests/unistr/test-u8-move.c: New file.
50164         * tests/unistr/test-move.h: New file.
50166         Tests for module 'unistr/u32-cpy'.
50167         * modules/unistr/u32-cpy-tests: New file.
50168         * tests/unistr/test-u32-cpy.c: New file.
50170         Tests for module 'unistr/u16-cpy'.
50171         * modules/unistr/u16-cpy-tests: New file.
50172         * tests/unistr/test-u16-cpy.c: New file.
50174         Tests for module 'unistr/u8-cpy'.
50175         * modules/unistr/u8-cpy-tests: New file.
50176         * tests/unistr/test-u8-cpy.c: New file.
50177         * tests/unistr/test-cpy.h: New file.
50179 2010-01-09  Bruno Haible  <bruno@clisp.org>
50181         Tests for module 'unistr/u32-uctomb'.
50182         * modules/unistr/u32-uctomb-tests: New file.
50183         * tests/unistr/test-u32-uctomb.c: New file.
50185         Tests for module 'unistr/u16-uctomb'.
50186         * modules/unistr/u16-uctomb-tests: New file.
50187         * tests/unistr/test-u16-uctomb.c: New file.
50189         Tests for module 'unistr/u8-uctomb'.
50190         * modules/unistr/u8-uctomb-tests: New file.
50191         * tests/unistr/test-u8-uctomb.c: New file.
50193         Tests for module 'unistr/u32-mbtoucr'.
50194         * modules/unistr/u32-mbtoucr-tests: New file.
50195         * tests/unistr/test-u32-mbtoucr.c: New file.
50197         Tests for module 'unistr/u16-mbtoucr'.
50198         * modules/unistr/u16-mbtoucr-tests: New file.
50199         * tests/unistr/test-u16-mbtoucr.c: New file.
50201         Tests for module 'unistr/u8-mbtoucr'.
50202         * modules/unistr/u8-mbtoucr-tests: New file.
50203         * tests/unistr/test-u8-mbtoucr.c: New file.
50205         Tests for module 'unistr/u32-mbtouc'.
50206         * modules/unistr/u32-mbtouc-tests: New file.
50207         * tests/unistr/test-u32-mbtouc.c: New file.
50209         Tests for module 'unistr/u16-mbtouc'.
50210         * modules/unistr/u16-mbtouc-tests: New file.
50211         * tests/unistr/test-u16-mbtouc.c: New file.
50213         Tests for module 'unistr/u8-mbtouc'.
50214         * modules/unistr/u8-mbtouc-tests: New file.
50215         * tests/unistr/test-u8-mbtouc.c: New file.
50217         Tests for module 'unistr/u32-mbtouc-unsafe'.
50218         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
50219         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
50220         * tests/unistr/test-u32-mbtouc.h: New file.
50222         Tests for module 'unistr/u16-mbtouc-unsafe'.
50223         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
50224         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
50225         * tests/unistr/test-u16-mbtouc.h: New file.
50227         Tests for module 'unistr/u8-mbtouc-unsafe'.
50228         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
50229         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
50230         * tests/unistr/test-u8-mbtouc.h: New file.
50232         Tests for module 'unistr/u32-mblen'.
50233         * modules/unistr/u32-mblen-tests: New file.
50234         * tests/unistr/test-u32-mblen.c: New file.
50236         Tests for module 'unistr/u16-mblen'.
50237         * modules/unistr/u16-mblen-tests: New file.
50238         * tests/unistr/test-u16-mblen.c: New file.
50240         Tests for module 'unistr/u8-mblen'.
50241         * modules/unistr/u8-mblen-tests: New file.
50242         * tests/unistr/test-u8-mblen.c: New file.
50244         Tests for module 'unistr/u32-to-u16'.
50245         * modules/unistr/u32-to-u16-tests: New file.
50246         * tests/unistr/test-u32-to-u16.c: New file.
50248         Tests for module 'unistr/u32-to-u8'.
50249         * modules/unistr/u32-to-u8-tests: New file.
50250         * tests/unistr/test-u32-to-u8.c: New file.
50252         Tests for module 'unistr/u16-to-u32'.
50253         * modules/unistr/u16-to-u32-tests: New file.
50254         * tests/unistr/test-u16-to-u32.c: New file.
50256         Tests for module 'unistr/u16-to-u8'.
50257         * modules/unistr/u16-to-u8-tests: New file.
50258         * tests/unistr/test-u16-to-u8.c: New file.
50260         Tests for module 'unistr/u8-to-u32'.
50261         * modules/unistr/u8-to-u32-tests: New file.
50262         * tests/unistr/test-u8-to-u32.c: New file.
50264         Tests for module 'unistr/u8-to-u16'.
50265         * modules/unistr/u8-to-u16-tests: New file.
50266         * tests/unistr/test-u8-to-u16.c: New file.
50268         Tests for module 'unistr/u32-check'.
50269         * modules/unistr/u32-check-tests: New file.
50270         * tests/unistr/test-u32-check.c: New file.
50272         Tests for module 'unistr/u16-check'.
50273         * modules/unistr/u16-check-tests: New file.
50274         * tests/unistr/test-u16-check.c: New file.
50276         Tests for module 'unistr/u8-check'.
50277         * modules/unistr/u8-check-tests: New file.
50278         * tests/unistr/test-u8-check.c: New file.
50280         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
50281         (category_equals): New function.
50282         (main): Add more tests.
50283         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
50285         * tests/unictype/test-bidi_byname.c (main): Add more tests.
50287 2010-01-10  Bruno Haible  <bruno@clisp.org>
50289         unistr/u*-strcoll: Try harder to distinguish different strings.
50290         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
50291         compare s1 and s2 to see if they are different.
50293 2010-01-10  Bruno Haible  <bruno@clisp.org>
50295         unistr/u*-stpncpy: Fix the return value.
50296         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
50297         description of the return value consistent with stpncpy in glibc.
50298         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
50299         written non-NUL unit.
50301 2010-01-10  Bruno Haible  <bruno@clisp.org>
50303         unistr/u*-next: Add missing dependencies.
50304         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
50305         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
50306         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
50308 2010-01-10  Bruno Haible  <bruno@clisp.org>
50310         unistr/u8-mbsnlen: Fix return value for incomplete character.
50311         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
50312         u8_mblen.
50313         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
50314         Remove unistr/u8-mblen.
50315         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
50316         u16_mblen.
50317         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
50318         Remove unistr/u16-mblen.
50320 2010-01-10  Bruno Haible  <bruno@clisp.org>
50322         wchar: Fix compilation error when <wchar.h> is used from coreutils.
50323         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
50324         Reported by Brian Gough <bjg@gnu.org> and
50325         Chris Clayton <chris2553@googlemail.com> via
50326         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
50328 2010-01-09  Bruno Haible  <bruno@clisp.org>
50330         unistr/u16-to-u32: Reject invalid input.
50331         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
50332         u16_mbtouc.
50333         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
50334         Remove unistr/u16-mbtouc.
50336         unistr/u16-to-u8: Reject invalid input.
50337         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
50338         u16_mbtouc.
50339         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
50340         Remove unistr/u16-mbtouc.
50342         unistr/u8-to-u32: Reject invalid input.
50343         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
50344         u8_mbtouc.
50345         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
50346         Remove unistr/u8-mbtouc.
50348         unistr/u8-to-u16: Reject invalid input.
50349         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
50350         u8_mbtouc.
50351         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
50352         Remove unistr/u8-mbtouc.
50354 2010-01-09  Bruno Haible  <bruno@clisp.org>
50356         Tests for module 'getlogin'.
50357         * modules/getlogin-tests: New file.
50358         * tests/test-getlogin.c: New file.
50360         New module 'getlogin'.
50361         * lib/unistd.in.h (getlogin): New declaration.
50362         * lib/getlogin.c: New file.
50363         * m4/getlogin.m4: New file.
50364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
50365         HAVE_GETLOGIN.
50366         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
50367         HAVE_GETLOGIN.
50368         * modules/getlogin: New file.
50369         * doc/posix-functions/getlogin.texi: Mention the new module.
50370         Reported by John W. Eaton <jwe@gnu.org>.
50372 2010-01-09  Bruno Haible  <bruno@clisp.org>
50374         getlogin_r: Support for native Windows.
50375         * lib/getlogin_r.c: Include <windows.h>
50376         (getlogin_r): Implement for native Windows.
50377         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
50378         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
50379         via John W. Eaton <jwe@gnu.org>.
50381 2010-01-09  Bruno Haible  <bruno@clisp.org>
50383         getlogin_r: Small fixes.
50384         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
50385         succeeds.
50386         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
50387         before testing whether getlogin_r is declared. No need to set
50388         HAVE_DECL_GETLOGIN_R to 1.
50389         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
50391 2010-01-09  Bruno Haible  <bruno@clisp.org>
50393         * lib/unistd.in.h (getlogin_r): Add comment.
50395 2010-01-09  Bruno Haible  <bruno@clisp.org>
50397         Tests for module 'getlogin_r'.
50398         * modules/getlogin_r-tests: New file.
50399         * tests/test-getlogin_r.c: New file.
50401 2010-01-09  Jim Meyering  <meyering@redhat.com>
50403         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
50404         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
50405         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
50407 2010-01-08  Simon Josefsson  <simon@josefsson.org>
50409         * lib/dup2.c (rpl_dup2): Improve comment.
50411 2010-01-08  Eric Blake  <ebb9@byu.net>
50413         maint.mk: allow packages to add makefile @@ exceptions
50414         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
50415         (sc_makefile_check): Rename...
50416         (sc_makefile_at_at_check): ...to this, and use hook.
50418         dup2: work around mingw bug
50419         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
50420         Reported by Simon Josefsson.
50422 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
50424         glob: Fix C++ compilation.
50425         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
50426         C++.
50428 2010-01-07  Bruno Haible  <bruno@clisp.org>
50430         Fix indentation of wctype.in.h, broken since 2007-01-06.
50431         * lib/wctype.in.h: Fix indentation of preprocessor directives.
50433 2010-01-07  Bruno Haible  <bruno@clisp.org>
50435         mbslen: Avoid collision with system function.
50436         * lib/string.in.h [MirBSD]: Include <wchar.h>.
50437         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
50438         * m4/mbslen.m4: New file.
50439         * modules/mbslen (Files): Add it.
50440         (configure.ac): Invoke gl_MBSLEN.
50441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
50442         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
50443         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
50444         via Ian Beckwith <ianb@erislabs.net>.
50446 2010-01-07  Bruno Haible  <bruno@clisp.org>
50448         dirent: Document the last fix.
50449         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
50451 2010-01-07  Bruno Haible  <bruno@clisp.org>
50453         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
50454         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
50455         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
50456         va_list are defined.
50457         * doc/posix-headers/stdio.texi: Document the bug of missing types.
50458         Reported by Eric Blake.
50460 2010-01-07  Bruno Haible  <bruno@clisp.org>
50462         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
50463         * modules/xlist (Depends-on): Add 'list',
50464         * modules/xoset (Depends-on): Add 'oset'.
50465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50467 2010-01-07  Bruno Haible  <bruno@clisp.org>
50469         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
50470         * doc/posix-functions/strncasecmp.texi: Likewise.
50472 2010-01-07  Bruno Haible  <bruno@clisp.org>
50474         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
50476 2010-01-07  John W. Eaton  <jwe@octave.org>
50478         wctype: allow C++ use
50479         * lib/wctype.in.h: Add extern "C" block for C++.
50481 2010-01-06  Eric Blake  <ebb9@byu.net>
50483         maint.mk: detect incorrect GFDL usage
50484         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
50486 2010-01-06  Jim Meyering  <meyering@redhat.com>
50487         and Eric Blake  <ebb9@byu.net>
50489         maint.mk: ignore multi-line copyright in NEWS
50490         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
50492 2010-01-06  Eric Blake  <ebb9@byu.net>
50494         select: add missing dependency
50495         * modules/select-tests (Depends-on): Move sockets dependency...
50496         * modules/select (Depends-on): ...here.
50497         Reported by Ian Beckwith.
50499         doc: regenerate INSTALL
50500         * doc/INSTALL: Reflect recent autoconf update.
50501         * doc/INSTALL.ISO: Likewise.
50502         * doc/INSTALL.UTF-8: Likewise.
50504         pread: fix compilation on glibc
50505         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
50506         Reported by Ralf Wildenhues.
50508         dirent: fix test failure
50509         * lib/dirent.in.h (includes): Guarantee ino_t.
50510         Reported by Ralf Wildenhues.
50512 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
50514         linkat, renameat: avoid bad free
50515         * lib/at-func2.c (at_func2): Fix typo.
50516         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
50518 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50520         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
50521         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
50522         to avoid failure of symlink test later.
50524 2010-01-06  Eric Blake  <ebb9@byu.net>
50526         stdio, unistd: guarantee ssize_t
50527         * lib/unistd.in.h (includes): Ensure that types required by POSIX
50528         2008 are exposed when needed.
50529         * lib/stdio.in.h (includes): Likewise.
50530         Reported by Ralf Wildenhues.
50532 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
50534         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
50535         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
50536         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
50538 2010-01-06  Jim Meyering  <meyering@redhat.com>
50540         readtokens: this module *does* require xalloc.h
50541         It uses only functions that were omitted by the old syntax-check rule.
50542         * lib/readtokens.c: Include "xalloc.h" once again.
50543         * modules/readtokens (Depends-on): Add xalloc.
50544         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
50546 2010-01-05  Eric Blake  <ebb9@byu.net>
50548         maint: support 'make announcement' from a VPATH build
50549         * top/maint.mk (announcement): Look for correct NEWS file.
50551 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
50553         utimens (fdutimens): ignore a negative FD, per contract
50554         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
50555         when we have a valid file descriptor.  Otherwise, using a brand
50556         new glibc (with just-patched futimens that now fails with EBADF)
50557         would cause this function to fail with ENOSYS.
50558         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
50559         See also http://bugzilla.redhat.com/552320.
50561 2010-01-05  Eric Blake  <ebb9@byu.net>
50563         strcase: document what it provides
50564         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
50565         gnulib module.
50566         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
50567         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
50569 2010-01-05  Jim Meyering  <meyering@redhat.com>
50571         maint: remove useless inclusions of "xalloc.h"
50572         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
50573         * lib/readtokens.c: Likewise.
50574         * lib/same.c: Likewise.
50575         * modules/getloadavg (Depends-on): Remove xalloc.
50576         * modules/readtokens: Likewise.
50577         * modules/same: Likewise.
50579         maint.mk: include 4 more function names in alloca.h-checking regexp
50580         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
50581         regexp.  Before, we would give a false-positive (saying alloca.h
50582         is included unnecessarily) when the only uses involved omitted symbols.
50584         xalloc.h: use consistent formatting
50585         * lib/xalloc.h: Move declarations to start in the first column.
50587 2010-01-05  Eric Blake  <ebb9@byu.net>
50589         mkdir: avoid xalloc
50590         * lib/mkdir.c (includes): Drop unused header.
50591         Reported by John W. Eaton.
50593 2010-01-04  Jim Meyering  <meyering@redhat.com>
50595         nl_langinfo: avoid configure-time syntax error
50596         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
50597         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
50598         the empty string.  Don't let that provoke a shell syntax error.
50600         regcomp, regexec, fnmatch: avoid array bounds read error
50601         * lib/regcomp.c (build_equiv_class): From glibc:
50602         Use only the low 24 bits of a findidx return value as an index
50603         into the weights array.  Patch by Ulrich Drepper:
50604         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
50605         * lib/regexec.c (check_node_accept_bytes): Likewise.
50606         * lib/fnmatch_loop.c (FCT): Likewise.
50608         regcomp: skip collseq lookup when there are no rules
50609         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
50610         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
50612         regcomp: recognize ill-formed { } expressions
50613         * lib/regcomp.c (parse_dup_op): From glibc:
50614         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
50616         regcomp: fix typo in comment
50617         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
50618         s/satisfy/satisfies/.
50620         regcomp: sync from glibc: remove dead store
50621         * lib/regcomp.c (duplicate_node_closure): Remove useless
50622         search_duplicated_node call and dead store.
50624         regcomp: sync from glibc; always use nl_langinfo
50625         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
50626         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
50627         * modules/regex (Depends-on): Add nl_langinfo.
50629 2010-01-04  Eric Blake  <ebb9@byu.net>
50631         fdopendir: fix configure test
50632         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
50634 2010-01-01  Bruno Haible  <bruno@clisp.org>
50636         wchar: Remove unused configure check.
50637         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
50639 2010-01-01  Eric Blake  <ebb9@byu.net>
50641         headers: make check of system header explicit
50642         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
50643         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
50644         ourselves.
50645         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50646         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50647         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50648         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
50649         internals.
50650         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
50651         missing.
50652         Suggested by Bruno Haible.
50654 2010-01-01  Jim Meyering  <meyering@redhat.com>
50656         ChangeLog: tweak to eliminate unnecessary copyright line
50657         * ChangeLog: Remove a copyright line that was mistakenly updated
50658         by today's update-copyright run.  Reported by Eric Blake.
50660         test-update-copyright: don't let envvar setting cause test failure
50661         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
50663 2010-01-01  Bruno Haible  <bruno@clisp.org>
50665         localename: Avoid gcc warning.
50666         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
50667         function if it is not used.
50669 2010-01-01  Jim Meyering  <meyering@redhat.com>
50671         update nearly all FSF copyright year lists to include 2010
50672         Use the same procedure as for 2009, outlined in
50673         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
50675         version-etc: set COPYRIGHT_YEAR to 2010
50676         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
50678 2009-12-31  Eric Blake  <ebb9@byu.net>
50680         doc: correct availability of cygwin 1.5.x getopt
50681         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
50682         variables.
50683         * doc/posix-functions/opterr.texi (opterr): Likewise.
50684         * doc/posix-functions/optind.texi (optind): Likewise.
50685         * doc/posix-functions/optopt.texi (optopt): Likewise.
50686         * doc/posix-functions/tzname.texi (tzname): Likewise.
50688         openat: update maintainer
50689         * modules/openat (Maintainer): Add myself.
50691         utimens: avoid shadowing warning
50692         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
50693         buffers into one, to avoid shadowing, as well as avoiding a
50694         redundant stat.
50695         Reported by Jim Meyering.
50697         test-dup2: avoid compiler warning
50698         * tests/test-dup2.c (is_inheritable): Only define if used.
50700 2010-01-01  Bruno Haible  <bruno@clisp.org>
50702         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
50703         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
50704         defined, use wctomb instead of wcrtomb.
50706 2010-01-01  Bruno Haible  <bruno@clisp.org>
50708         iconv: Reject native Solaris iconv.
50709         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
50710         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
50712 2009-12-31  Bruno Haible  <bruno@clisp.org>
50714         * tests/test-signal.c (main): Remove test of 'SIG'.
50716 2009-12-31  Bruno Haible  <bruno@clisp.org>
50718         spawn: Fix incomplete fix.
50719         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
50720         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
50721         warnings for GNULIB_POSIXCHECK again.
50722         Reported by Eric Blake.
50724 2009-12-31  Bruno Haible  <bruno@clisp.org>
50726         Avoid namespace pollution on glibc systems.
50727         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
50728         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
50729         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
50730         glibc systems.
50732 2009-12-31  Bruno Haible  <bruno@clisp.org>
50734         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
50735         (gl_REPLACE_WCHAR_H): Turn into a no-op.
50736         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
50737         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
50738         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
50739         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
50740         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
50742 2009-12-31  Bruno Haible  <bruno@clisp.org>
50744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
50745         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
50746         afterwards.
50748 2009-12-31  Bruno Haible  <bruno@clisp.org>
50750         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
50751         SYS_UTSNAME_H.
50753 2009-12-31  Bruno Haible  <bruno@clisp.org>
50755         spawn: Fix misapplied patch.
50756         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
50757         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
50758         warnings for GNULIB_POSIXCHECK.
50760 2009-12-31  Bruno Haible  <bruno@clisp.org>
50762         times: Update after sys_times changed.
50763         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
50764         * modules/times (Files): Add it.
50765         (configure.ac): Invoke gl_FUNC_TIMES.
50767 2009-12-31  Bruno Haible  <bruno@clisp.org>
50769         Use AC_C_INLINE where necessary.
50770         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
50771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50773         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50774         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50775         * m4/mbiter.m4 (gl_MBITER): Likewise.
50776         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50777         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
50778         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
50779         * modules/u64 (configure.ac): Likewise.
50781 2009-12-31  Bruno Haible  <bruno@clisp.org>
50783         Use AC_C_INLINE instead of module 'inline' where possible.
50784         * modules/inline (Description): Clarify purpose.
50785         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
50786         * modules/count-one-bits (Depends-on): Remove inline.
50787         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
50788         * modules/openat (Depends-on): Remove inline.
50789         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
50790         instead of depending on module 'inline'.
50791         * modules/filevercmp (Depends-on, configure.ac): Likewise.
50792         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
50793         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
50794         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
50795         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
50796         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
50797         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
50798         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
50799         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
50800         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
50801         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
50802         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
50803         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
50804         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
50805         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
50806         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
50807         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
50808         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
50809         Likewise.
50810         * modules/unictype/property-ascii-hex-digit (Depends-on,
50811         configure.ac): Likewise.
50812         * modules/unictype/property-bidi-arabic-digit (Depends-on,
50813         configure.ac): Likewise.
50814         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
50815         configure.ac): Likewise.
50816         * modules/unictype/property-bidi-block-separator (Depends-on,
50817         configure.ac): Likewise.
50818         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
50819         configure.ac): Likewise.
50820         * modules/unictype/property-bidi-common-separator (Depends-on,
50821         configure.ac): Likewise.
50822         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
50823         Likewise.
50824         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
50825         configure.ac): Likewise.
50826         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
50827         configure.ac): Likewise.
50828         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
50829         configure.ac): Likewise.
50830         * modules/unictype/property-bidi-european-digit (Depends-on,
50831         configure.ac): Likewise.
50832         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
50833         configure.ac): Likewise.
50834         * modules/unictype/property-bidi-left-to-right (Depends-on,
50835         configure.ac): Likewise.
50836         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
50837         configure.ac): Likewise.
50838         * modules/unictype/property-bidi-other-neutral (Depends-on,
50839         configure.ac): Likewise.
50840         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
50841         Likewise.
50842         * modules/unictype/property-bidi-segment-separator (Depends-on,
50843         configure.ac): Likewise.
50844         * modules/unictype/property-bidi-whitespace (Depends-on,
50845         configure.ac): Likewise.
50846         * modules/unictype/property-combining (Depends-on, configure.ac):
50847         Likewise.
50848         * modules/unictype/property-composite (Depends-on, configure.ac):
50849         Likewise.
50850         * modules/unictype/property-currency-symbol (Depends-on,
50851         configure.ac): Likewise.
50852         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
50853         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
50854         Likewise.
50855         * modules/unictype/property-default-ignorable-code-point (Depends-on,
50856         configure.ac): Likewise.
50857         * modules/unictype/property-deprecated (Depends-on, configure.ac):
50858         Likewise.
50859         * modules/unictype/property-diacritic (Depends-on, configure.ac):
50860         Likewise.
50861         * modules/unictype/property-extender (Depends-on, configure.ac):
50862         Likewise.
50863         * modules/unictype/property-format-control (Depends-on, configure.ac):
50864         Likewise.
50865         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
50866         Likewise.
50867         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
50868         Likewise.
50869         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
50870         Likewise.
50871         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
50872         Likewise.
50873         * modules/unictype/property-hyphen (Depends-on, configure.ac):
50874         Likewise.
50875         * modules/unictype/property-id-continue (Depends-on, configure.ac):
50876         Likewise.
50877         * modules/unictype/property-id-start (Depends-on, configure.ac):
50878         Likewise.
50879         * modules/unictype/property-ideographic (Depends-on, configure.ac):
50880         Likewise.
50881         * modules/unictype/property-ids-binary-operator (Depends-on,
50882         configure.ac): Likewise.
50883         * modules/unictype/property-ids-trinary-operator (Depends-on,
50884         configure.ac): Likewise.
50885         * modules/unictype/property-ignorable-control (Depends-on,
50886         configure.ac): Likewise.
50887         * modules/unictype/property-iso-control (Depends-on, configure.ac):
50888         Likewise.
50889         * modules/unictype/property-join-control (Depends-on, configure.ac):
50890         Likewise.
50891         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
50892         Likewise.
50893         * modules/unictype/property-line-separator (Depends-on, configure.ac):
50894         Likewise.
50895         * modules/unictype/property-logical-order-exception (Depends-on,
50896         configure.ac): Likewise.
50897         * modules/unictype/property-lowercase (Depends-on, configure.ac):
50898         Likewise.
50899         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
50900         * modules/unictype/property-non-break (Depends-on, configure.ac):
50901         Likewise.
50902         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
50903         Likewise.
50904         * modules/unictype/property-numeric (Depends-on, configure.ac):
50905         Likewise.
50906         * modules/unictype/property-other-alphabetic (Depends-on,
50907         configure.ac): Likewise.
50908         * modules/unictype/property-other-default-ignorable-code-point
50909         (Depends-on, configure.ac): Likewise.
50910         * modules/unictype/property-other-grapheme-extend (Depends-on,
50911         configure.ac): Likewise.
50912         * modules/unictype/property-other-id-continue (Depends-on,
50913         configure.ac): Likewise.
50914         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
50915         Likewise.
50916         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
50917         Likewise.
50918         * modules/unictype/property-other-math (Depends-on, configure.ac):
50919         Likewise.
50920         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
50921         Likewise.
50922         * modules/unictype/property-paired-punctuation (Depends-on,
50923         configure.ac): Likewise.
50924         * modules/unictype/property-paragraph-separator (Depends-on,
50925         configure.ac): Likewise.
50926         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
50927         Likewise.
50928         * modules/unictype/property-pattern-white-space (Depends-on,
50929         configure.ac): Likewise.
50930         * modules/unictype/property-private-use (Depends-on, configure.ac):
50931         Likewise.
50932         * modules/unictype/property-punctuation (Depends-on, configure.ac):
50933         Likewise.
50934         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
50935         Likewise.
50936         * modules/unictype/property-radical (Depends-on, configure.ac):
50937         Likewise.
50938         * modules/unictype/property-sentence-terminal (Depends-on,
50939         configure.ac): Likewise.
50940         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
50941         Likewise.
50942         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
50943         * modules/unictype/property-terminal-punctuation (Depends-on,
50944         configure.ac): Likewise.
50945         * modules/unictype/property-titlecase (Depends-on, configure.ac):
50946         Likewise.
50947         * modules/unictype/property-unassigned-code-value (Depends-on,
50948         configure.ac): Likewise.
50949         * modules/unictype/property-unified-ideograph (Depends-on,
50950         configure.ac): Likewise.
50951         * modules/unictype/property-uppercase (Depends-on, configure.ac):
50952         Likewise.
50953         * modules/unictype/property-variation-selector (Depends-on,
50954         configure.ac): Likewise.
50955         * modules/unictype/property-white-space (Depends-on, configure.ac):
50956         Likewise.
50957         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
50958         Likewise.
50959         * modules/unictype/property-xid-start (Depends-on, configure.ac):
50960         Likewise.
50961         * modules/unictype/property-zero-width (Depends-on, configure.ac):
50962         Likewise.
50963         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
50964         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
50965         Likewise.
50967 2009-12-31  Bruno Haible  <bruno@clisp.org>
50969         Remove unnecessary AC_C_INLINE invocation.
50970         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
50971         since 2009-08-21.
50973 2009-12-31  Jim Meyering  <meyering@redhat.com>
50975         maint.mk: don't require explicit gpg_key_ID in cfg.mk
50976         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
50977         With this change, we can all remove the gpg_key_ID = ... definition
50978         from our respective cfg.mk files.
50980         maint.mk: create announcement template in ~/, not in /tmp
50981         * top/maint.mk (emit_upload_commands): Adjust.
50982         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
50983         Remove temporary file, .ci-msg.
50985 2009-12-31  Eric Blake  <ebb9@byu.net>
50987         link-warning: always build headers with link warnings
50988         * modules/arpa_inet (Makefile.am): Always build replacement
50989         header.
50990         * modules/ctype (Makefile.am): Likewise.
50991         * modules/dirent (Makefile.am): Likewise.
50992         * modules/inttypes (Makefile.am): Likewise.
50993         * modules/langinfo (Makefile.am): Likewise.
50994         * modules/locale (Makefile.am): Likewise.
50995         * modules/spawn (Makefile.am): Likewise.
50996         * modules/sys_file (Makefile.am): Likewise.
50997         * modules/sys_ioctl (Makefile.am): Likewise.
50998         * modules/sys_select (Makefile.am): Likewise.
50999         * modules/sys_socket (Makefile.am): Likewise.
51000         * modules/sys_times (Makefile.am): Likewise.
51001         * modules/sys_utsname (Makefile.am): Likewise.
51002         * modules/sys_wait (Makefile.am): Likewise.
51003         * modules/wchar (Makefile.am): Likewise.
51004         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
51005         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
51006         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
51007         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
51008         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
51009         Likewise.
51010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51012         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
51013         Likewise.
51014         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
51015         Likewise.
51016         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
51017         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
51018         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
51019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51020         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51021         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
51022         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
51023         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
51024         (gl_WCHAR_H_DEFAULTS): Likewise.
51026 2009-12-31  Eric Blake  <ebb9@byu.net>
51028         signal, spawn: use link warnings
51029         * lib/signal.in.h (sigset_t): Make unconditional.
51030         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
51031         (sigpending, sigprocmask, sigaction): Add link warnings.
51032         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
51033         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
51034         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
51035         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
51036         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
51037         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
51038         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
51039         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
51040         (posix_spawn_file_actions_destroy)
51041         (posix_spawn_file_actions_addopen)
51042         (posix_spawn_file_actions_addclose)
51043         (posix_spawn_file_actions_adddup2): Likewise.
51044         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
51045         * tests/test-signal.c (main): Enhance test.
51047         spawn: improve wrapper support
51048         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
51049         (gl_SPAWN_H_DEFAULTS): New defaults.
51050         * modules/spawn (Makefile.am): Substitute them.
51051         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
51052         Only declare if missing or broken.
51054         sys_times, sys_utsname: use include_next
51055         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
51056         header.
51057         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
51058         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
51059         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
51060         * modules/sys_times (Depends-on): Add include_next.
51061         (Makefile.am): Substitute additional values.
51062         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
51063         * lib/sys_times.in.h (includes): Include native header, if
51064         available.
51065         * lib/sys_utsname.in.h (includes): Likewise.
51066         * tests/test-sys_times.c (main): Enhance test.
51068         fdutimensat: revert prior patch
51069         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
51070         utimens.h.
51071         Reported by Bruno Haible.
51073 2009-12-30  Eric Blake  <ebb9@byu.net>
51075         sys_wait: drop link-warning dependency
51076         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
51077         link-warning efforts.
51078         * lib/sys_wait.in.h: Likewise.
51080         fdutimensat: remove bogus dependency
51081         * modules/fdutimensat (Depends-on): Drop inline.
51083         unistd: fix typo
51084         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
51086 2009-12-30  Bruno Haible  <bruno@clisp.org>
51088         Fix compilation error with Solaris cc.
51089         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
51090         * lib/unicase/u16-is-invariant.c: Likewise.
51091         * lib/unicase/u32-is-invariant.c: Likewise.
51092         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51094 2009-12-30  Bruno Haible  <bruno@clisp.org>
51096         Fix test crash.
51097         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
51098         locales.
51099         Reported by Simon Josefsson <simon@josefsson.org>.
51101 2009-12-30  Bruno Haible  <bruno@clisp.org>
51103         Fix compilation error on most platforms.
51104         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
51105         Reported by Simon Josefsson <simon@josefsson.org>
51106         and Nelson H. F. Beebe <beebe@math.utah.edu>.
51108 2009-12-30  Eric Blake  <ebb9@byu.net>
51110         futimens, utimensat: work around ntfs-3g bug
51111         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
51112         a ctime bug is present, and expand workaround to cover ntfs-3g.
51113         * lib/utimens.c (fdutimens, lutimens): Likewise.
51114         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
51115         (validate_timespec): Adjust return value.
51116         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
51117         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
51118         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
51120 2009-12-29  Eric Blake  <ebb9@byu.net>
51122         link-warning: make usage consistent
51123         * modules/ctype (Depends-on): Add link-warning.
51124         (Makefile.am): Update rules accordingly.
51125         * modules/langinfo (Depends-on, Makefile.am): Likewise.
51126         * modules/locale (Depends-on, Makefile.am): Likewise.
51127         * modules/sys_file (Makefile.am): Likewise.
51128         * modules/getopt-posix (Makefile.am): Delete unused link warning
51129         efforts.
51130         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
51131         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
51132         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
51133         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
51135         stdio: remove unused variables
51136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
51137         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
51138         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
51140         tests: test more substitute headers
51141         * modules/ctype-tests: New file.
51142         * modules/dirent-tests: Likewise.
51143         * modules/spawn-tests: Likewise.
51144         * modules/sys_file-tests: Likewise.
51145         * modules/sys_ioctl-tests: Likewise.
51146         * modules/sys_wait-tests: Likewise.
51147         * tests/test-ctype.c: Likewise.
51148         * tests/test-dirent.c: Likewise.
51149         * tests/test-spawn.c: Likewise.
51150         * tests/test-sys_file.c: Likewise.
51151         * tests/test-sys_ioctl.c: Likewise.
51152         * tests/test-sys_wait.c: Likewise.
51153         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
51154         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
51155         whether or not flock is in use.
51157         tests: remove License section from module
51158         * modules/arpa_inet-tests: Remove unneeded section.
51159         * modules/byteswap-tests: Likewise.
51160         * modules/ceilf-tests: Likewise.
51161         * modules/ceill-tests: Likewise.
51162         * modules/crypto/des-tests: Likewise.
51163         * modules/crypto/gc-arcfour-tests: Likewise.
51164         * modules/crypto/gc-arctwo-tests: Likewise.
51165         * modules/crypto/gc-des-tests: Likewise.
51166         * modules/crypto/gc-hmac-md5-tests: Likewise.
51167         * modules/crypto/gc-hmac-sha1-tests: Likewise.
51168         * modules/crypto/gc-md2-tests: Likewise.
51169         * modules/crypto/gc-md4-tests: Likewise.
51170         * modules/crypto/gc-md5-tests: Likewise.
51171         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
51172         * modules/crypto/gc-rijndael-tests: Likewise.
51173         * modules/crypto/gc-sha1-tests: Likewise.
51174         * modules/crypto/gc-tests: Likewise.
51175         * modules/crypto/md2-tests: Likewise.
51176         * modules/crypto/md4-tests: Likewise.
51177         * modules/fcntl-h-tests: Likewise.
51178         * modules/floorf-tests: Likewise.
51179         * modules/floorl-tests: Likewise.
51180         * modules/frexp-nolibm-tests: Likewise.
51181         * modules/frexp-tests: Likewise.
51182         * modules/frexpl-nolibm-tests: Likewise.
51183         * modules/frexpl-tests: Likewise.
51184         * modules/getaddrinfo-tests: Likewise.
51185         * modules/inttypes-tests: Likewise.
51186         * modules/isfinite-tests: Likewise.
51187         * modules/isinf-tests: Likewise.
51188         * modules/ldexpl-tests: Likewise.
51189         * modules/locale-tests: Likewise.
51190         * modules/math-tests: Likewise.
51191         * modules/netdb-tests: Likewise.
51192         * modules/netinet_in-tests: Likewise.
51193         * modules/printf-frexp-tests: Likewise.
51194         * modules/printf-frexpl-tests: Likewise.
51195         * modules/priv-set-tests: Likewise.
51196         * modules/random_r-tests: Likewise.
51197         * modules/round-tests: Likewise.
51198         * modules/roundf-tests: Likewise.
51199         * modules/roundl-tests: Likewise.
51200         * modules/search-tests: Likewise.
51201         * modules/select-tests: Likewise.
51202         * modules/signal-tests: Likewise.
51203         * modules/stdbool-tests: Likewise.
51204         * modules/stddef-tests: Likewise.
51205         * modules/stdint-tests: Likewise.
51206         * modules/stdio-tests: Likewise.
51207         * modules/stdlib-tests: Likewise.
51208         * modules/string-tests: Likewise.
51209         * modules/strings-tests: Likewise.
51210         * modules/sys_select-tests: Likewise.
51211         * modules/sys_socket-tests: Likewise.
51212         * modules/sys_stat-tests: Likewise.
51213         * modules/sys_time-tests: Likewise.
51214         * modules/sys_utsname-tests: Likewise.
51215         * modules/sysexits-tests: Likewise.
51216         * modules/time-tests: Likewise.
51217         * modules/trunc-tests: Likewise.
51218         * modules/truncf-tests: Likewise.
51219         * modules/truncl-tests: Likewise.
51220         * modules/tsearch-tests: Likewise.
51221         * modules/unistd-tests: Likewise.
51222         * modules/wchar-tests: Likewise.
51223         * modules/wctype-tests: Likewise.
51225         tests: fix license on several tests
51226         * tests/test-des.c: Update to GPLv3+.
51227         * tests/test-flock.c: Likewise.
51228         * tests/test-fsync.c: Likewise.
51229         * tests/test-futimens.h: Likewise.
51230         * tests/test-gc-arcfour.c: Likewise.
51231         * tests/test-gc-arctwo.c: Likewise.
51232         * tests/test-gc-des.c: Likewise.
51233         * tests/test-gc-hmac-md5.c: Likewise.
51234         * tests/test-gc-hmac-sha1.c: Likewise.
51235         * tests/test-gc-md2.c: Likewise.
51236         * tests/test-gc-md4.c: Likewise.
51237         * tests/test-gc-md5.c: Likewise.
51238         * tests/test-gc-pbkdf2-sha1.c: Likewise.
51239         * tests/test-gc-rijndael.c: Likewise.
51240         * tests/test-gc-sha1.c: Likewise.
51241         * tests/test-gc.c: Likewise.
51242         * tests/test-getcwd.c: Likewise.
51243         * tests/test-link.c: Likewise.
51244         * tests/test-link.h: Likewise.
51245         * tests/test-lutimens.h: Likewise.
51246         * tests/test-md2.c: Likewise.
51247         * tests/test-md4.c: Likewise.
51248         * tests/test-mkdir.h: Likewise.
51249         * tests/test-rename.c: Likewise.
51250         * tests/test-rename.h: Likewise.
51251         * tests/test-safe-alloc.c: Likewise.
51252         * tests/test-utimens-common.h: Likewise.
51253         * tests/test-utimens.h: Likewise.
51255         maint: sync license texts
51256         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
51257         * doc/gpl-3.0.texi: Revert copyright year update.
51258         * doc/lgpl-3.0.texi: Likewise.
51260 2009-12-29  Jim Meyering  <meyering@redhat.com>
51262         update nearly all FSF copyright year lists to include 2009
51263         The files named by the following are exempted:
51264             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
51265               test -f "$dst" && { echo "$dst"; continue; }
51266               test -d "$dst" || continue
51267               echo "$dst"/$(basename "$src")
51268             done > exempt
51269             git ls-files tests/unictype >> exempt
51270         In the remaining files, convert to all-interval notation if
51271         - there is already at least one year interval like 2000-2003
51272         - the file is maintained by me
51273         - the file is in lib/uni*/, where that style already prevails
51274         Otherwise, use update-copyright's default.
51276 2009-12-29  Simon Josefsson  <simon@josefsson.org>
51277         and Eric Blake  <ebb9@byu.net>
51279         tests: don't require debug system() to pass
51280         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
51281         * tests/test-rmdir.h (test_rmdir_func): Likewise.
51282         * tests/test-unlink.h (test_unlink_func): Likewise.
51283         * tests/test-fstatat.c (main): ...into callers.
51284         * tests/test-lstat.c (main): Likewise.
51285         * tests/test-rmdir.c (main): Likewise.
51286         * tests/test-unlink.c (main): Likewise.
51287         * tests/test-unlinkat.c (main): Likewise.
51288         * tests/test-areadlink-with-size.c (main): Don't require a
51289         debug-only system call to pass, aiding cross-testing to mingw.
51290         * tests/test-areadlink.c (main): Likewise.
51291         * tests/test-areadlinkat-with-size.c (main): Likewise.
51292         * tests/test-areadlinkat.c (main): Likewise.
51293         * tests/test-canonicalize-lgpl.c (main): Likewise.
51294         * tests/test-canonicalize.c (main): Likewise.
51295         * tests/test-chown.c (main): Likewise.
51296         * tests/test-fchownat.c (main): Likewise.
51297         * tests/test-lchown.c (main): Likewise.
51298         * tests/test-fdutimensat.c (main): Likewise.
51299         * tests/test-futimens.c (main): Likewise.
51300         * tests/test-link.c (main): Likewise.
51301         * tests/test-linkat.c (main): Likewise.
51302         * tests/test-mkdir.c (main): Likewise.
51303         * tests/test-mkdirat.c (main): Likewise.
51304         * tests/test-mkfifo.c (main): Likewise.
51305         * tests/test-mkfifoat.c (main): Likewise.
51306         * tests/test-mknod.c (main): Likewise.
51307         * tests/test-readlink.c (main): Likewise.
51308         * tests/test-remove.c (main): Likewise.
51309         * tests/test-rename.c (main): Likewise.
51310         * tests/test-renameat.c (main): Likewise.
51311         * tests/test-symlink.c (main): Likewise.
51312         * tests/test-symlinkat.c (main): Likewise.
51313         * tests/test-utimens.c (main): Likewise.
51314         * tests/test-utimensat.c (main): Likewise.
51316 2009-12-29  Simon Josefsson  <simon@josefsson.org>
51318         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
51319         on $(UNUSED_PARAMETER_H) to avoid build failure.
51321 2009-12-28  Jim Meyering  <meyering@redhat.com>
51323         update-copyright: you may specify a max. line length other than 72
51324         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
51326         maint: use consistent FSF copyright line syntax
51327         * lib/posixtm.c: Add missing comma in FSF copyright line.
51328         * lib/posixtm.h: Likewise.
51329         * lib/getugroups.c: Add missing ", Inc.".
51331         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
51332         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
51333         FSF copyright line.  Remove trailing blanks.
51335 2009-12-28  Eric Blake  <ebb9@byu.net>
51337         test-dup2: reduce dependencies
51338         * modules/cloexec (Configure.ac): Set witness.
51339         * modules/dup2-tests (Depends-on): Drop cloexec.
51340         * tests/test-dup2.c (main): Skip portion of test if cloexec module
51341         not present.
51342         Suggested by Bruno Haible.
51344 2009-12-26  Bruno Haible  <bruno@clisp.org>
51346         Remove an unneeded dependency.
51347         * modules/fseterr (Depends-on): Remove dup2.
51349 2009-12-26  Eric Blake  <ebb9@byu.net>
51351         tests: use macros.h in more places
51352         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
51353         (ASSERT_STREAM): Provide default of stderr.
51354         * tests/test-dirent-safer.c: Include macros.h, using alternate
51355         stream for assertions.
51356         * tests/test-dup-safer.c: Likewise.
51357         * tests/test-freopen-safer.c: Likewise.
51358         * tests/test-getopt.c: Likewise.
51359         * tests/test-openat-safer.c: Likewise.
51360         * tests/test-pipe.c: Likewise.
51361         * tests/test-popen-safer.c: Likewise.
51362         * modules/dirent-safer-tests (Files): Include macros.h.
51363         * modules/unistd-safer-tests (Files): Likewise.
51364         * modules/freopen-safer-tests (Files): Likewise.
51365         * modules/getopt-posix-tests (Files): Likewise.
51366         * modules/openat-safer-tests (Files): Likewise.
51367         * modules/pipe-tests (Files): Likewise.
51369 2009-12-26  Bruno Haible  <bruno@clisp.org>
51371         javacomp: Portability fix.
51372         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
51373         that it also works on Solaris.
51375 2009-12-26  Bruno Haible  <bruno@clisp.org>
51377         localename: Fix storage allocation of gl_locale_name_thread's result.
51378         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
51379         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
51380         all platforms that have 'uselocale'.
51381         (gl_locale_name_thread_unsafe): New function, extracted from
51382         gl_locale_name_thread.
51383         (gl_locale_name_thread): Call struniq on all platforms that have
51384         'uselocale'.
51385         * tests/test-localename.c (test_locale_name_thread): Check that the
51386         resulting strings are permanently allocated.
51387         * modules/localename-tests (Depends-on): Add strdup.
51389 2009-12-26  Bruno Haible  <bruno@clisp.org>
51391         * tests/test-localename.c (categories): Fill in the strings.
51393 2009-12-26  Jim Meyering  <meyering@redhat.com>
51395         isdir: complete the removal of m4/isdir.m4
51396         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
51398         isdir: clean up, since at least grep still uses it
51399         * lib/isdir.c: Include "isdir.h".
51400         (S_ISDIR): Remove now-unneeded definition.
51401         * modules/isdir (Files): Add lib/isdir.h.
51402         * lib/isdir.h: New file, with declaration.
51403         * m4/isdir.m4: Remove file -- unneeded.
51405 2009-12-25  Bruno Haible  <bruno@clisp.org>
51407         selinux-h: Make generated .h files standalone.
51408         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
51409         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
51410         * lib/se-selinux.in.h: Likewise.
51411         * modules/selinux-h (Depends-on): Add unused-parameter.
51412         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
51413         selinux/selinux.h and selinux/context.h.
51414         Suggested by Eric Blake.
51416 2009-12-25  Bruno Haible  <bruno@clisp.org>
51418         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
51419         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
51420         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
51421         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
51422         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
51424 2009-12-24  Bruno Haible  <bruno@clisp.org>
51426         openat: Fix warning.
51427         * lib/openat-proc.c: Include <unistd.h>.
51429 2009-12-24  Bruno Haible  <bruno@clisp.org>
51431         New module 'unused-parameter'.
51432         * build-aux/unused-parameter.h: New file, extracted from earlier
51433         gnulib-common.m4.
51434         * modules/unused-parameter: New file.
51435         * lib/unistr.h: Include unused-parameter.h.
51436         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
51437         _GL_UNUSED.
51438         * modules/unistr/base (Depends-on): Add unused-parameter.
51440 2009-12-24  Bruno Haible  <bruno@clisp.org>
51442         Add missing dependencies to 'extensions' module.
51443         * m4/extensions.m4: Add comment.
51444         * modules/accept4 (Depends-on): Add extensions.
51445         * modules/dup3 (Depends-on): Likewise.
51446         * modules/fcntl (Depends-on): Likewise.
51447         * modules/futimens (Depends-on): Likewise.
51448         * modules/mknod (Depends-on): Likewise.
51449         * modules/pipe2 (Depends-on): Likewise.
51450         * modules/stat-time (Depends-on): Likewise.
51451         * modules/strcasestr-simple (Depends-on): Likewise.
51452         * modules/strsignal (Depends-on): Likewise.
51453         * modules/utimensat (Depends-on): Likewise.
51454         * modules/localcharset (Depends-on): Likewise. Needed because of
51455         gl_FCNTL_O_FLAGS.
51456         * modules/wcrtomb (Depends-on): Likewise. Needed because of
51457         AC_TYPE_MBSTATE_T.
51458         * modules/wcsnrtombs (Depends-on): Likewise.
51459         * modules/wcsrtombs (Depends-on): Likewise.
51461 2009-12-24  Bruno Haible  <bruno@clisp.org>
51463         binary-io: Avoid gcc warning due to SET_BINARY.
51464         * lib/binary-io.h (SET_BINARY): Cast the result to void.
51465         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
51467 2009-12-24  Bruno Haible  <bruno@clisp.org>
51469         Avoid future namespace pollution on glibc systems.
51470         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
51471         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
51472         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
51473         glibc systems.
51475 2009-12-24  Bruno Haible  <bruno@clisp.org>
51477         Refactor common macros used in tests.
51478         * tests/macros.h: New file.
51479         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
51480         and/or <stdlib.h>, if appropriate.
51481         (ASSERT, SIZEOF): Remove macros.
51482         * tests/test-areadlink-with-size.c: Likewise.
51483         * tests/test-areadlinkat.c: Likewise.
51484         * tests/test-areadlinkat-with-size.c: Likewise.
51485         * tests/test-argmatch.c: Likewise.
51486         * tests/test-argv-iter.c: Likewise.
51487         * tests/test-array-mergesort.c: Likewise.
51488         * tests/test-array_list.c: Likewise.
51489         * tests/test-array_oset.c: Likewise.
51490         * tests/test-avltree_list.c: Likewise.
51491         * tests/test-avltree_oset.c: Likewise.
51492         * tests/test-avltreehash_list.c: Likewise.
51493         * tests/test-base64.c: Likewise.
51494         * tests/test-binary-io.c: Likewise.
51495         * tests/test-bitrotate.c: Likewise.
51496         * tests/test-btowc.c: Likewise.
51497         * tests/test-byteswap.c: Likewise.
51498         * tests/test-c-ctype.c: Likewise.
51499         * tests/test-c-stack.c: Likewise.
51500         * tests/test-c-strcasecmp.c: Likewise.
51501         * tests/test-c-strcasestr.c: Likewise.
51502         * tests/test-c-strncasecmp.c: Likewise.
51503         * tests/test-c-strstr.c: Likewise.
51504         * tests/test-canonicalize-lgpl.c: Likewise.
51505         * tests/test-canonicalize.c: Likewise.
51506         * tests/test-carray_list.c: Likewise.
51507         * tests/test-ceilf1.c: Likewise.
51508         * tests/test-ceilf2.c: Likewise.
51509         * tests/test-ceill.c: Likewise.
51510         * tests/test-chown.c: Likewise.
51511         * tests/test-cloexec.c: Likewise.
51512         * tests/test-copy-acl.c: Likewise.
51513         * tests/test-copy-file.c: Likewise.
51514         * tests/test-count-one-bits.c: Likewise.
51515         * tests/test-dprintf-posix.c: Likewise.
51516         * tests/test-dup2.c: Likewise.
51517         * tests/test-dup3.c: Likewise.
51518         * tests/test-duplocale.c: Likewise.
51519         * tests/test-fbufmode.c: Likewise.
51520         * tests/test-fchdir.c: Likewise.
51521         * tests/test-fchownat.c: Likewise.
51522         * tests/test-fcntl-safer.c: Likewise.
51523         * tests/test-fcntl.c: Likewise.
51524         * tests/test-fdopendir.c: Likewise.
51525         * tests/test-fdutimensat.c: Likewise.
51526         * tests/test-fflush2.c: Likewise.
51527         * tests/test-file-has-acl.c: Likewise.
51528         * tests/test-filevercmp.c: Likewise.
51529         * tests/test-flock.c: Likewise.
51530         * tests/test-floorf1.c: Likewise.
51531         * tests/test-floorf2.c: Likewise.
51532         * tests/test-floorl.c: Likewise.
51533         * tests/test-fnmatch.c: Likewise.
51534         * tests/test-fopen.h: Likewise.
51535         * tests/test-fpending.c: Likewise.
51536         * tests/test-fprintf-posix.c: Likewise.
51537         * tests/test-fpurge.c: Likewise.
51538         * tests/test-freadable.c: Likewise.
51539         * tests/test-freadahead.c: Likewise.
51540         * tests/test-freading.c: Likewise.
51541         * tests/test-freadptr.c: Likewise.
51542         * tests/test-freadptr2.c: Likewise.
51543         * tests/test-freadseek.c: Likewise.
51544         * tests/test-freopen.c: Likewise.
51545         * tests/test-frexp.c: Likewise.
51546         * tests/test-frexpl.c: Likewise.
51547         * tests/test-fseek.c: Likewise.
51548         * tests/test-fseeko.c: Likewise.
51549         * tests/test-fstatat.c: Likewise.
51550         * tests/test-fstrcmp.c: Likewise.
51551         * tests/test-fsync.c: Likewise.
51552         * tests/test-ftell.c: Likewise.
51553         * tests/test-ftello.c: Likewise.
51554         * tests/test-func.c: Likewise.
51555         * tests/test-futimens.c: Likewise.
51556         * tests/test-fwritable.c: Likewise.
51557         * tests/test-fwriting.c: Likewise.
51558         * tests/test-getcwd.c: Likewise.
51559         * tests/test-getdate.c: Likewise.
51560         * tests/test-getdelim.c: Likewise.
51561         * tests/test-getdtablesize.c: Likewise.
51562         * tests/test-getgroups.c: Likewise.
51563         * tests/test-getline.c: Likewise.
51564         * tests/test-getndelim2.c: Likewise.
51565         * tests/test-glob.c: Likewise.
51566         * tests/test-hash.c: Likewise.
51567         * tests/test-i-ring.c: Likewise.
51568         * tests/test-iconv-utf.c: Likewise.
51569         * tests/test-iconv.c: Likewise.
51570         * tests/test-idpriv-drop.c: Likewise.
51571         * tests/test-idpriv-droptemp.c: Likewise.
51572         * tests/test-inet_ntop.c: Likewise.
51573         * tests/test-inet_pton.c: Likewise.
51574         * tests/test-isblank.c: Likewise.
51575         * tests/test-isfinite.c: Likewise.
51576         * tests/test-isinf.c: Likewise.
51577         * tests/test-isnan.c: Likewise.
51578         * tests/test-isnand.h: Likewise.
51579         * tests/test-isnanf.h: Likewise.
51580         * tests/test-isnanl.h: Likewise.
51581         * tests/test-lchown.c: Likewise.
51582         * tests/test-ldexpl.c: Likewise.
51583         * tests/test-link.c: Likewise.
51584         * tests/test-linkat.c: Likewise.
51585         * tests/test-linked_list.c: Likewise.
51586         * tests/test-linkedhash_list.c: Likewise.
51587         * tests/test-localename.c: Likewise.
51588         * tests/test-lseek.c: Likewise.
51589         * tests/test-lstat.c: Likewise.
51590         * tests/test-mbmemcasecmp.c: Likewise.
51591         * tests/test-mbmemcasecoll.c: Likewise.
51592         * tests/test-mbrtowc.c: Likewise.
51593         * tests/test-mbscasecmp.c: Likewise.
51594         * tests/test-mbscasestr1.c: Likewise.
51595         * tests/test-mbscasestr2.c: Likewise.
51596         * tests/test-mbscasestr3.c: Likewise.
51597         * tests/test-mbscasestr4.c: Likewise.
51598         * tests/test-mbschr.c: Likewise.
51599         * tests/test-mbscspn.c: Likewise.
51600         * tests/test-mbsinit.c: Likewise.
51601         * tests/test-mbsncasecmp.c: Likewise.
51602         * tests/test-mbsnrtowcs.c: Likewise.
51603         * tests/test-mbspbrk.c: Likewise.
51604         * tests/test-mbspcasecmp.c: Likewise.
51605         * tests/test-mbsrchr.c: Likewise.
51606         * tests/test-mbsrtowcs.c: Likewise.
51607         * tests/test-mbsspn.c: Likewise.
51608         * tests/test-mbsstr1.c: Likewise.
51609         * tests/test-mbsstr2.c: Likewise.
51610         * tests/test-mbsstr3.c: Likewise.
51611         * tests/test-memchr.c: Likewise.
51612         * tests/test-memchr2.c: Likewise.
51613         * tests/test-memcmp.c: Likewise.
51614         * tests/test-memmem.c: Likewise.
51615         * tests/test-memrchr.c: Likewise.
51616         * tests/test-mkdir.c: Likewise.
51617         * tests/test-mkdirat.c: Likewise.
51618         * tests/test-mkfifo.c: Likewise.
51619         * tests/test-mkfifoat.c: Likewise.
51620         * tests/test-mknod.c: Likewise.
51621         * tests/test-nanosleep.c: Likewise.
51622         * tests/test-nl_langinfo.c: Likewise.
51623         * tests/test-obstack-printf.c: Likewise.
51624         * tests/test-open.c: Likewise.
51625         * tests/test-openat.c: Likewise.
51626         * tests/test-pipe-filter-gi1.c: Likewise.
51627         * tests/test-pipe-filter-gi2-main.c: Likewise.
51628         * tests/test-pipe-filter-ii1.c: Likewise.
51629         * tests/test-pipe-filter-ii2-main.c: Likewise.
51630         * tests/test-pipe2.c: Likewise.
51631         * tests/test-popen.h: Likewise.
51632         * tests/test-posixtm.c: Likewise.
51633         * tests/test-pread.c: Likewise.
51634         * tests/test-printf-frexp.c: Likewise.
51635         * tests/test-printf-frexpl.c: Likewise.
51636         * tests/test-printf-posix.c: Likewise.
51637         * tests/test-priv-set.c: Likewise.
51638         * tests/test-quotearg.c: Likewise.
51639         * tests/test-random_r.c: Likewise.
51640         * tests/test-rawmemchr.c: Likewise.
51641         * tests/test-rbtree_list.c: Likewise.
51642         * tests/test-rbtree_oset.c: Likewise.
51643         * tests/test-rbtreehash_list.c: Likewise.
51644         * tests/test-readlink.c: Likewise.
51645         * tests/test-remove.c: Likewise.
51646         * tests/test-rename.c: Likewise.
51647         * tests/test-renameat.c: Likewise.
51648         * tests/test-rmdir.c: Likewise.
51649         * tests/test-round1.c: Likewise.
51650         * tests/test-roundf1.c: Likewise.
51651         * tests/test-roundl.c: Likewise.
51652         * tests/test-safe-alloc.c: Likewise.
51653         * tests/test-sameacls.c: Likewise.
51654         * tests/test-set-mode-acl.c: Likewise.
51655         * tests/test-setenv.c: Likewise.
51656         * tests/test-sigaction.c: Likewise.
51657         * tests/test-signbit.c: Likewise.
51658         * tests/test-sleep.c: Likewise.
51659         * tests/test-snprintf-posix.c: Likewise.
51660         * tests/test-snprintf.c: Likewise.
51661         * tests/test-sprintf-posix.c: Likewise.
51662         * tests/test-stat-time.c: Likewise.
51663         * tests/test-stat.c: Likewise.
51664         * tests/test-strcasestr.c: Likewise.
51665         * tests/test-strchrnul.c: Likewise.
51666         * tests/test-strerror.c: Likewise.
51667         * tests/test-striconv.c: Likewise.
51668         * tests/test-striconveh.c: Likewise.
51669         * tests/test-striconveha.c: Likewise.
51670         * tests/test-strsignal.c: Likewise.
51671         * tests/test-strstr.c: Likewise.
51672         * tests/test-strtod.c: Likewise.
51673         * tests/test-strverscmp.c: Likewise.
51674         * tests/test-symlink.c: Likewise.
51675         * tests/test-symlinkat.c: Likewise.
51676         * tests/test-trunc1.c: Likewise.
51677         * tests/test-trunc2.c: Likewise.
51678         * tests/test-truncf1.c: Likewise.
51679         * tests/test-truncf2.c: Likewise.
51680         * tests/test-truncl.c: Likewise.
51681         * tests/test-uname.c: Likewise.
51682         * tests/test-unlink.c: Likewise.
51683         * tests/test-unlinkat.c: Likewise.
51684         * tests/test-unsetenv.c: Likewise.
51685         * tests/test-usleep.c: Likewise.
51686         * tests/test-utimens.c: Likewise.
51687         * tests/test-utimensat.c: Likewise.
51688         * tests/test-vasnprintf-posix.c: Likewise.
51689         * tests/test-vasnprintf-posix2.c: Likewise.
51690         * tests/test-vasnprintf.c: Likewise.
51691         * tests/test-vasprintf-posix.c: Likewise.
51692         * tests/test-vasprintf.c: Likewise.
51693         * tests/test-vdprintf-posix.c: Likewise.
51694         * tests/test-vfprintf-posix.c: Likewise.
51695         * tests/test-vprintf-posix.c: Likewise.
51696         * tests/test-vsnprintf-posix.c: Likewise.
51697         * tests/test-vsnprintf.c: Likewise.
51698         * tests/test-vsprintf-posix.c: Likewise.
51699         * tests/test-wcrtomb.c: Likewise.
51700         * tests/test-wcsnrtombs.c: Likewise.
51701         * tests/test-wcsrtombs.c: Likewise.
51702         * tests/test-wctype.c: Likewise.
51703         * tests/test-wcwidth.c: Likewise.
51704         * tests/test-xfprintf-posix.c: Likewise.
51705         * tests/test-xmemdup0.c: Likewise.
51706         * tests/test-xprintf-posix.c: Likewise.
51707         * tests/test-xvasprintf.c: Likewise.
51708         * tests/unicase/test-locale-language.c: Likewise.
51709         * tests/unicase/test-mapping-part1.h: Likewise.
51710         * tests/unicase/test-predicate-part1.h: Likewise.
51711         * tests/unicase/test-u8-casecmp.c: Likewise.
51712         * tests/unicase/test-u8-casecoll.c: Likewise.
51713         * tests/unicase/test-u8-casefold.c: Likewise.
51714         * tests/unicase/test-u8-is-cased.c: Likewise.
51715         * tests/unicase/test-u8-is-casefolded.c: Likewise.
51716         * tests/unicase/test-u8-is-lowercase.c: Likewise.
51717         * tests/unicase/test-u8-is-titlecase.c: Likewise.
51718         * tests/unicase/test-u8-is-uppercase.c: Likewise.
51719         * tests/unicase/test-u8-tolower.c: Likewise.
51720         * tests/unicase/test-u8-totitle.c: Likewise.
51721         * tests/unicase/test-u8-toupper.c: Likewise.
51722         * tests/unicase/test-u16-casecmp.c: Likewise.
51723         * tests/unicase/test-u16-casecoll.c: Likewise.
51724         * tests/unicase/test-u16-casefold.c: Likewise.
51725         * tests/unicase/test-u16-is-cased.c: Likewise.
51726         * tests/unicase/test-u16-is-casefolded.c: Likewise.
51727         * tests/unicase/test-u16-is-lowercase.c: Likewise.
51728         * tests/unicase/test-u16-is-titlecase.c: Likewise.
51729         * tests/unicase/test-u16-is-uppercase.c: Likewise.
51730         * tests/unicase/test-u16-tolower.c: Likewise.
51731         * tests/unicase/test-u16-totitle.c: Likewise.
51732         * tests/unicase/test-u16-toupper.c: Likewise.
51733         * tests/unicase/test-u32-casecmp.c: Likewise.
51734         * tests/unicase/test-u32-casecoll.c: Likewise.
51735         * tests/unicase/test-u32-casefold.c: Likewise.
51736         * tests/unicase/test-u32-is-cased.c: Likewise.
51737         * tests/unicase/test-u32-is-casefolded.c: Likewise.
51738         * tests/unicase/test-u32-is-lowercase.c: Likewise.
51739         * tests/unicase/test-u32-is-titlecase.c: Likewise.
51740         * tests/unicase/test-u32-is-uppercase.c: Likewise.
51741         * tests/unicase/test-u32-tolower.c: Likewise.
51742         * tests/unicase/test-u32-totitle.c: Likewise.
51743         * tests/unicase/test-u32-toupper.c: Likewise.
51744         * tests/unicase/test-ulc-casecmp.c: Likewise.
51745         * tests/unicase/test-ulc-casecoll.c: Likewise.
51746         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51747         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51748         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51749         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51750         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51751         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51752         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51753         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51754         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51755         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51756         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51757         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51758         * tests/unictype/test-bidi_byname.c: Likewise.
51759         * tests/unictype/test-bidi_name.c: Likewise.
51760         * tests/unictype/test-bidi_of.c: Likewise.
51761         * tests/unictype/test-bidi_test.c: Likewise.
51762         * tests/unictype/test-block_list.c: Likewise.
51763         * tests/unictype/test-block_of.c: Likewise.
51764         * tests/unictype/test-block_test.c: Likewise.
51765         * tests/unictype/test-categ_and.c: Likewise.
51766         * tests/unictype/test-categ_and_not.c: Likewise.
51767         * tests/unictype/test-categ_byname.c: Likewise.
51768         * tests/unictype/test-categ_name.c: Likewise.
51769         * tests/unictype/test-categ_none.c: Likewise.
51770         * tests/unictype/test-categ_of.c: Likewise.
51771         * tests/unictype/test-categ_or.c: Likewise.
51772         * tests/unictype/test-categ_test_withtable.c: Likewise.
51773         * tests/unictype/test-combining.c: Likewise.
51774         * tests/unictype/test-decdigit.c: Likewise.
51775         * tests/unictype/test-digit.c: Likewise.
51776         * tests/unictype/test-mirror.c: Likewise.
51777         * tests/unictype/test-numeric.c: Likewise.
51778         * tests/unictype/test-pr_byname.c: Likewise.
51779         * tests/unictype/test-pr_test.c: Likewise.
51780         * tests/unictype/test-predicate-part1.h: Likewise.
51781         * tests/unictype/test-scripts.c: Likewise.
51782         * tests/unictype/test-sy_c_ident.c: Likewise.
51783         * tests/unictype/test-sy_java_ident.c: Likewise.
51784         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
51785         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
51786         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
51787         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
51788         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
51789         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
51790         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
51791         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
51792         * tests/uninorm/test-canonical-decomposition.c: Likewise.
51793         * tests/uninorm/test-compat-decomposition.c: Likewise.
51794         * tests/uninorm/test-composition.c: Likewise.
51795         * tests/uninorm/test-decomposing-form.c: Likewise.
51796         * tests/uninorm/test-decomposition.c: Likewise.
51797         * tests/uninorm/test-u8-nfc.c: Likewise.
51798         * tests/uninorm/test-u8-nfd.c: Likewise.
51799         * tests/uninorm/test-u8-nfkc.c: Likewise.
51800         * tests/uninorm/test-u8-nfkd.c: Likewise.
51801         * tests/uninorm/test-u8-normcmp.c: Likewise.
51802         * tests/uninorm/test-u8-normcoll.c: Likewise.
51803         * tests/uninorm/test-u16-nfc.c: Likewise.
51804         * tests/uninorm/test-u16-nfd.c: Likewise.
51805         * tests/uninorm/test-u16-nfkc.c: Likewise.
51806         * tests/uninorm/test-u16-nfkd.c: Likewise.
51807         * tests/uninorm/test-u16-normcmp.c: Likewise.
51808         * tests/uninorm/test-u16-normcoll.c: Likewise.
51809         * tests/uninorm/test-u32-nfc.c: Likewise.
51810         * tests/uninorm/test-u32-nfd.c: Likewise.
51811         * tests/uninorm/test-u32-nfkc.c: Likewise.
51812         * tests/uninorm/test-u32-nfkd.c: Likewise.
51813         * tests/uninorm/test-u32-normalize-big.c: Likewise.
51814         * tests/uninorm/test-u32-normcmp.c: Likewise.
51815         * tests/uninorm/test-u32-normcoll.c: Likewise.
51816         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
51817         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51818         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51819         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51820         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51821         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51822         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51823         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51824         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51825         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51826         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51827         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51828         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51829         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51830         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51831         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51832         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51833         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51834         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51835         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51836         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51837         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51838         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51839         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51840         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51841         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51842         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51843         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51844         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51845         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
51846         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
51847         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
51848         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
51849         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51850         * tests/uniwidth/test-u8-width.c: Likewise.
51851         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51852         * tests/uniwidth/test-u16-width.c: Likewise.
51853         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51854         * tests/uniwidth/test-u32-width.c: Likewise.
51855         * tests/uniwidth/test-uc_width.c: Likewise.
51856         * tests/uniwidth/test-uc_width2.c: Likewise.
51857         * modules/acl-tests (Files): Add tests/macros.h.
51858         * modules/areadlink-tests (Files): Likewise.
51859         * modules/areadlink-with-size-tests (Files): Likewise.
51860         * modules/areadlinkat-tests (Files): Likewise.
51861         * modules/areadlinkat-with-size-tests (Files): Likewise.
51862         * modules/argmatch-tests (Files): Likewise.
51863         * modules/argv-iter-tests (Files): Likewise.
51864         * modules/array-list-tests (Files): Likewise.
51865         * modules/array-mergesort-tests (Files): Likewise.
51866         * modules/array-oset-tests (Files): Likewise.
51867         * modules/avltree-list-tests (Files): Likewise.
51868         * modules/avltree-oset-tests (Files): Likewise.
51869         * modules/avltreehash-list-tests (Files): Likewise.
51870         * modules/base64-tests (Files): Likewise.
51871         * modules/binary-io-tests (Files): Likewise.
51872         * modules/bitrotate-tests (Files): Likewise.
51873         * modules/btowc-tests (Files): Likewise.
51874         * modules/byteswap-tests (Files): Likewise.
51875         * modules/c-ctype-tests (Files): Likewise.
51876         * modules/c-stack-tests (Files): Likewise.
51877         * modules/c-strcase-tests (Files): Likewise.
51878         * modules/c-strcasestr-tests (Files): Likewise.
51879         * modules/c-strstr-tests (Files): Likewise.
51880         * modules/canonicalize-lgpl-tests (Files): Likewise.
51881         * modules/canonicalize-tests (Files): Likewise.
51882         * modules/carray-list-tests (Files): Likewise.
51883         * modules/ceilf-tests (Files): Likewise.
51884         * modules/ceill-tests (Files): Likewise.
51885         * modules/chown-tests (Files): Likewise.
51886         * modules/cloexec-tests (Files): Likewise.
51887         * modules/copy-file-tests (Files): Likewise.
51888         * modules/count-one-bits-tests (Files): Likewise.
51889         * modules/dprintf-posix-tests (Files): Likewise.
51890         * modules/dup2-tests (Files): Likewise.
51891         * modules/dup3-tests (Files): Likewise.
51892         * modules/duplocale-tests (Files): Likewise.
51893         * modules/fbufmode-tests (Files): Likewise.
51894         * modules/fchdir-tests (Files): Likewise.
51895         * modules/fcntl-safer-tests (Files): Likewise.
51896         * modules/fcntl-tests (Files): Likewise.
51897         * modules/fdopendir-tests (Files): Likewise.
51898         * modules/fdutimensat-tests (Files): Likewise.
51899         * modules/fflush-tests (Files): Likewise.
51900         * modules/filevercmp-tests (Files): Likewise.
51901         * modules/flock-tests (Files): Likewise.
51902         * modules/floorf-tests (Files): Likewise.
51903         * modules/floorl-tests (Files): Likewise.
51904         * modules/fnmatch-tests (Files): Likewise.
51905         * modules/fopen-safer-tests (Files): Likewise.
51906         * modules/fopen-tests (Files): Likewise.
51907         * modules/fpending-tests (Files): Likewise.
51908         * modules/fprintf-posix-tests (Files): Likewise.
51909         * modules/fpurge-tests (Files): Likewise.
51910         * modules/freadable-tests (Files): Likewise.
51911         * modules/freadahead-tests (Files): Likewise.
51912         * modules/freading-tests (Files): Likewise.
51913         * modules/freadptr-tests (Files): Likewise.
51914         * modules/freadseek-tests (Files): Likewise.
51915         * modules/freopen-tests (Files): Likewise.
51916         * modules/frexp-nolibm-tests (Files): Likewise.
51917         * modules/frexp-tests (Files): Likewise.
51918         * modules/frexpl-nolibm-tests (Files): Likewise.
51919         * modules/frexpl-tests (Files): Likewise.
51920         * modules/fseek-tests (Files): Likewise.
51921         * modules/fseeko-tests (Files): Likewise.
51922         * modules/fstrcmp-tests (Files): Likewise.
51923         * modules/fsync-tests (Files): Likewise.
51924         * modules/ftell-tests (Files): Likewise.
51925         * modules/ftello-tests (Files): Likewise.
51926         * modules/func-tests (Files): Likewise.
51927         * modules/futimens-tests (Files): Likewise.
51928         * modules/fwritable-tests (Files): Likewise.
51929         * modules/fwriting-tests (Files): Likewise.
51930         * modules/getcwd-tests (Files): Likewise.
51931         * modules/getdate-tests (Files): Likewise.
51932         * modules/getdelim-tests (Files): Likewise.
51933         * modules/getdtablesize-tests (Files): Likewise.
51934         * modules/getgroups-tests (Files): Likewise.
51935         * modules/getline-tests (Files): Likewise.
51936         * modules/getndelim2-tests (Files): Likewise.
51937         * modules/glob-tests (Files): Likewise.
51938         * modules/hash-tests (Files): Likewise.
51939         * modules/i-ring-tests (Files): Likewise.
51940         * modules/iconv-tests (Files): Likewise.
51941         * modules/iconv_open-utf-tests (Files): Likewise.
51942         * modules/idpriv-drop-tests (Files): Likewise.
51943         * modules/idpriv-droptemp-tests (Files): Likewise.
51944         * modules/inet_ntop-tests (Files): Likewise.
51945         * modules/inet_pton-tests (Files): Likewise.
51946         * modules/isblank-tests (Files): Likewise.
51947         * modules/isfinite-tests (Files): Likewise.
51948         * modules/isinf-tests (Files): Likewise.
51949         * modules/isnan-tests (Files): Likewise.
51950         * modules/isnand-nolibm-tests (Files): Likewise.
51951         * modules/isnand-tests (Files): Likewise.
51952         * modules/isnanf-nolibm-tests (Files): Likewise.
51953         * modules/isnanf-tests (Files): Likewise.
51954         * modules/isnanl-nolibm-tests (Files): Likewise.
51955         * modules/isnanl-tests (Files): Likewise.
51956         * modules/lchown-tests (Files): Likewise.
51957         * modules/ldexpl-tests (Files): Likewise.
51958         * modules/link-tests (Files): Likewise.
51959         * modules/linkat-tests (Files): Likewise.
51960         * modules/linked-list-tests (Files): Likewise.
51961         * modules/linkedhash-list-tests (Files): Likewise.
51962         * modules/localename-tests (Files): Likewise.
51963         * modules/lseek-tests (Files): Likewise.
51964         * modules/lstat-tests (Files): Likewise.
51965         * modules/mbmemcasecmp-tests (Files): Likewise.
51966         * modules/mbmemcasecoll-tests (Files): Likewise.
51967         * modules/mbrtowc-tests (Files): Likewise.
51968         * modules/mbscasecmp-tests (Files): Likewise.
51969         * modules/mbscasestr-tests (Files): Likewise.
51970         * modules/mbschr-tests (Files): Likewise.
51971         * modules/mbscspn-tests (Files): Likewise.
51972         * modules/mbsinit-tests (Files): Likewise.
51973         * modules/mbsncasecmp-tests (Files): Likewise.
51974         * modules/mbsnrtowcs-tests (Files): Likewise.
51975         * modules/mbspbrk-tests (Files): Likewise.
51976         * modules/mbspcasecmp-tests (Files): Likewise.
51977         * modules/mbsrchr-tests (Files): Likewise.
51978         * modules/mbsrtowcs-tests (Files): Likewise.
51979         * modules/mbsspn-tests (Files): Likewise.
51980         * modules/mbsstr-tests (Files): Likewise.
51981         * modules/memchr-tests (Files): Likewise.
51982         * modules/memchr2-tests (Files): Likewise.
51983         * modules/memcmp-tests (Files): Likewise.
51984         * modules/memmem-tests (Files): Likewise.
51985         * modules/memrchr-tests (Files): Likewise.
51986         * modules/mkdir-tests (Files): Likewise.
51987         * modules/mkfifo-tests (Files): Likewise.
51988         * modules/mkfifoat-tests (Files): Likewise.
51989         * modules/mknod-tests (Files): Likewise.
51990         * modules/nanosleep-tests (Files): Likewise.
51991         * modules/nl_langinfo-tests (Files): Likewise.
51992         * modules/obstack-printf-tests (Files): Likewise.
51993         * modules/open-tests (Files): Likewise.
51994         * modules/openat-tests (Files): Likewise.
51995         * modules/pipe-filter-gi-tests (Files): Likewise.
51996         * modules/pipe-filter-ii-tests (Files): Likewise.
51997         * modules/pipe2-tests (Files): Likewise.
51998         * modules/popen-safer-tests (Files): Likewise.
51999         * modules/popen-tests (Files): Likewise.
52000         * modules/posixtm-tests (Files): Likewise.
52001         * modules/pread-tests (Files): Likewise.
52002         * modules/printf-frexp-tests (Files): Likewise.
52003         * modules/printf-frexpl-tests (Files): Likewise.
52004         * modules/printf-posix-tests (Files): Likewise.
52005         * modules/priv-set-tests (Files): Likewise.
52006         * modules/quotearg-tests (Files): Likewise.
52007         * modules/random_r-tests (Files): Likewise.
52008         * modules/rawmemchr-tests (Files): Likewise.
52009         * modules/rbtree-list-tests (Files): Likewise.
52010         * modules/rbtree-oset-tests (Files): Likewise.
52011         * modules/rbtreehash-list-tests (Files): Likewise.
52012         * modules/readlink-tests (Files): Likewise.
52013         * modules/remove-tests (Files): Likewise.
52014         * modules/rename-tests (Files): Likewise.
52015         * modules/renameat-tests (Files): Likewise.
52016         * modules/rmdir-tests (Files): Likewise.
52017         * modules/round-tests (Files): Likewise.
52018         * modules/roundf-tests (Files): Likewise.
52019         * modules/roundl-tests (Files): Likewise.
52020         * modules/safe-alloc-tests (Files): Likewise.
52021         * modules/setenv-tests (Files): Likewise.
52022         * modules/sigaction-tests (Files): Likewise.
52023         * modules/signbit-tests (Files): Likewise.
52024         * modules/sleep-tests (Files): Likewise.
52025         * modules/snprintf-posix-tests (Files): Likewise.
52026         * modules/snprintf-tests (Files): Likewise.
52027         * modules/sprintf-posix-tests (Files): Likewise.
52028         * modules/stat-tests (Files): Likewise.
52029         * modules/stat-time-tests (Files): Likewise.
52030         * modules/strcasestr-tests (Files): Likewise.
52031         * modules/strchrnul-tests (Files): Likewise.
52032         * modules/strerror-tests (Files): Likewise.
52033         * modules/striconv-tests (Files): Likewise.
52034         * modules/striconveh-tests (Files): Likewise.
52035         * modules/striconveha-tests (Files): Likewise.
52036         * modules/strsignal-tests (Files): Likewise.
52037         * modules/strstr-tests (Files): Likewise.
52038         * modules/strtod-tests (Files): Likewise.
52039         * modules/strverscmp-tests (Files): Likewise.
52040         * modules/symlink-tests (Files): Likewise.
52041         * modules/symlinkat-tests (Files): Likewise.
52042         * modules/trunc-tests (Files): Likewise.
52043         * modules/truncf-tests (Files): Likewise.
52044         * modules/truncl-tests (Files): Likewise.
52045         * modules/uname-tests (Files): Likewise.
52046         * modules/unicase/cased-tests (Files): Likewise.
52047         * modules/unicase/ignorable-tests (Files): Likewise.
52048         * modules/unicase/locale-language-tests (Files): Likewise.
52049         * modules/unicase/tolower-tests (Files): Likewise.
52050         * modules/unicase/totitle-tests (Files): Likewise.
52051         * modules/unicase/toupper-tests (Files): Likewise.
52052         * modules/unicase/u8-casecmp-tests (Files): Likewise.
52053         * modules/unicase/u8-casecoll-tests (Files): Likewise.
52054         * modules/unicase/u8-casefold-tests (Files): Likewise.
52055         * modules/unicase/u8-is-cased-tests (Files): Likewise.
52056         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
52057         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
52058         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
52059         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
52060         * modules/unicase/u8-tolower-tests (Files): Likewise.
52061         * modules/unicase/u8-totitle-tests (Files): Likewise.
52062         * modules/unicase/u8-toupper-tests (Files): Likewise.
52063         * modules/unicase/u16-casecmp-tests (Files): Likewise.
52064         * modules/unicase/u16-casecoll-tests (Files): Likewise.
52065         * modules/unicase/u16-casefold-tests (Files): Likewise.
52066         * modules/unicase/u16-is-cased-tests (Files): Likewise.
52067         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
52068         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
52069         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
52070         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
52071         * modules/unicase/u16-tolower-tests (Files): Likewise.
52072         * modules/unicase/u16-totitle-tests (Files): Likewise.
52073         * modules/unicase/u16-toupper-tests (Files): Likewise.
52074         * modules/unicase/u32-casecmp-tests (Files): Likewise.
52075         * modules/unicase/u32-casecoll-tests (Files): Likewise.
52076         * modules/unicase/u32-casefold-tests (Files): Likewise.
52077         * modules/unicase/u32-is-cased-tests (Files): Likewise.
52078         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
52079         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
52080         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
52081         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
52082         * modules/unicase/u32-tolower-tests (Files): Likewise.
52083         * modules/unicase/u32-totitle-tests (Files): Likewise.
52084         * modules/unicase/u32-toupper-tests (Files): Likewise.
52085         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
52086         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
52087         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
52088         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
52089         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
52090         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
52091         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
52092         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
52093         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
52094         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
52095         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
52096         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
52097         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
52098         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
52099         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
52100         * modules/unictype/bidicategory-name-tests (Files): Likewise.
52101         * modules/unictype/bidicategory-of-tests (Files): Likewise.
52102         * modules/unictype/bidicategory-test-tests (Files): Likewise.
52103         * modules/unictype/block-list-tests (Files): Likewise.
52104         * modules/unictype/block-of-tests (Files): Likewise.
52105         * modules/unictype/block-test-tests (Files): Likewise.
52106         * modules/unictype/category-C-tests (Files): Likewise.
52107         * modules/unictype/category-Cc-tests (Files): Likewise.
52108         * modules/unictype/category-Cf-tests (Files): Likewise.
52109         * modules/unictype/category-Cn-tests (Files): Likewise.
52110         * modules/unictype/category-Co-tests (Files): Likewise.
52111         * modules/unictype/category-Cs-tests (Files): Likewise.
52112         * modules/unictype/category-L-tests (Files): Likewise.
52113         * modules/unictype/category-Ll-tests (Files): Likewise.
52114         * modules/unictype/category-Lm-tests (Files): Likewise.
52115         * modules/unictype/category-Lo-tests (Files): Likewise.
52116         * modules/unictype/category-Lt-tests (Files): Likewise.
52117         * modules/unictype/category-Lu-tests (Files): Likewise.
52118         * modules/unictype/category-M-tests (Files): Likewise.
52119         * modules/unictype/category-Mc-tests (Files): Likewise.
52120         * modules/unictype/category-Me-tests (Files): Likewise.
52121         * modules/unictype/category-Mn-tests (Files): Likewise.
52122         * modules/unictype/category-N-tests (Files): Likewise.
52123         * modules/unictype/category-Nd-tests (Files): Likewise.
52124         * modules/unictype/category-Nl-tests (Files): Likewise.
52125         * modules/unictype/category-No-tests (Files): Likewise.
52126         * modules/unictype/category-P-tests (Files): Likewise.
52127         * modules/unictype/category-Pc-tests (Files): Likewise.
52128         * modules/unictype/category-Pd-tests (Files): Likewise.
52129         * modules/unictype/category-Pe-tests (Files): Likewise.
52130         * modules/unictype/category-Pf-tests (Files): Likewise.
52131         * modules/unictype/category-Pi-tests (Files): Likewise.
52132         * modules/unictype/category-Po-tests (Files): Likewise.
52133         * modules/unictype/category-Ps-tests (Files): Likewise.
52134         * modules/unictype/category-S-tests (Files): Likewise.
52135         * modules/unictype/category-Sc-tests (Files): Likewise.
52136         * modules/unictype/category-Sk-tests (Files): Likewise.
52137         * modules/unictype/category-Sm-tests (Files): Likewise.
52138         * modules/unictype/category-So-tests (Files): Likewise.
52139         * modules/unictype/category-Z-tests (Files): Likewise.
52140         * modules/unictype/category-Zl-tests (Files): Likewise.
52141         * modules/unictype/category-Zp-tests (Files): Likewise.
52142         * modules/unictype/category-Zs-tests (Files): Likewise.
52143         * modules/unictype/category-and-not-tests (Files): Likewise.
52144         * modules/unictype/category-and-tests (Files): Likewise.
52145         * modules/unictype/category-byname-tests (Files): Likewise.
52146         * modules/unictype/category-name-tests (Files): Likewise.
52147         * modules/unictype/category-none-tests (Files): Likewise.
52148         * modules/unictype/category-of-tests (Files): Likewise.
52149         * modules/unictype/category-or-tests (Files): Likewise.
52150         * modules/unictype/category-test-withtable-tests (Files): Likewise.
52151         * modules/unictype/combining-class-tests (Files): Likewise.
52152         * modules/unictype/ctype-alnum-tests (Files): Likewise.
52153         * modules/unictype/ctype-alpha-tests (Files): Likewise.
52154         * modules/unictype/ctype-blank-tests (Files): Likewise.
52155         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
52156         * modules/unictype/ctype-digit-tests (Files): Likewise.
52157         * modules/unictype/ctype-graph-tests (Files): Likewise.
52158         * modules/unictype/ctype-lower-tests (Files): Likewise.
52159         * modules/unictype/ctype-print-tests (Files): Likewise.
52160         * modules/unictype/ctype-punct-tests (Files): Likewise.
52161         * modules/unictype/ctype-space-tests (Files): Likewise.
52162         * modules/unictype/ctype-upper-tests (Files): Likewise.
52163         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
52164         * modules/unictype/decimal-digit-tests (Files): Likewise.
52165         * modules/unictype/digit-tests (Files): Likewise.
52166         * modules/unictype/mirror-tests (Files): Likewise.
52167         * modules/unictype/numeric-tests (Files): Likewise.
52168         * modules/unictype/property-alphabetic-tests (Files): Likewise.
52169         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
52170         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
52171         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
52172         Likewise.
52173         * modules/unictype/property-bidi-block-separator-tests (Files):
52174         Likewise.
52175         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
52176         Likewise.
52177         * modules/unictype/property-bidi-common-separator-tests (Files):
52178         Likewise.
52179         * modules/unictype/property-bidi-control-tests (Files): Likewise.
52180         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
52181         Likewise.
52182         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
52183         Likewise.
52184         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
52185         Likewise.
52186         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
52187         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
52188         Likewise.
52189         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
52190         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
52191         Likewise.
52192         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
52193         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
52194         * modules/unictype/property-bidi-segment-separator-tests (Files):
52195         Likewise.
52196         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
52197         * modules/unictype/property-byname-tests (Files): Likewise.
52198         * modules/unictype/property-combining-tests (Files): Likewise.
52199         * modules/unictype/property-composite-tests (Files): Likewise.
52200         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
52201         * modules/unictype/property-dash-tests (Files): Likewise.
52202         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
52203         * modules/unictype/property-default-ignorable-code-point-tests (Files):
52204         Likewise.
52205         * modules/unictype/property-deprecated-tests (Files): Likewise.
52206         * modules/unictype/property-diacritic-tests (Files): Likewise.
52207         * modules/unictype/property-extender-tests (Files): Likewise.
52208         * modules/unictype/property-format-control-tests (Files): Likewise.
52209         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
52210         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
52211         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
52212         * modules/unictype/property-hex-digit-tests (Files): Likewise.
52213         * modules/unictype/property-hyphen-tests (Files): Likewise.
52214         * modules/unictype/property-id-continue-tests (Files): Likewise.
52215         * modules/unictype/property-id-start-tests (Files): Likewise.
52216         * modules/unictype/property-ideographic-tests (Files): Likewise.
52217         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
52218         * modules/unictype/property-ids-trinary-operator-tests (Files):
52219         Likewise.
52220         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
52221         * modules/unictype/property-iso-control-tests (Files): Likewise.
52222         * modules/unictype/property-join-control-tests (Files): Likewise.
52223         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
52224         * modules/unictype/property-line-separator-tests (Files): Likewise.
52225         * modules/unictype/property-logical-order-exception-tests (Files):
52226         Likewise.
52227         * modules/unictype/property-lowercase-tests (Files): Likewise.
52228         * modules/unictype/property-math-tests (Files): Likewise.
52229         * modules/unictype/property-non-break-tests (Files): Likewise.
52230         * modules/unictype/property-not-a-character-tests (Files): Likewise.
52231         * modules/unictype/property-numeric-tests (Files): Likewise.
52232         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
52233         * modules/unictype/property-other-default-ignorable-code-point-tests
52234         (Files): Likewise.
52235         * modules/unictype/property-other-grapheme-extend-tests (Files):
52236         Likewise.
52237         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
52238         * modules/unictype/property-other-id-start-tests (Files): Likewise.
52239         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
52240         * modules/unictype/property-other-math-tests (Files): Likewise.
52241         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
52242         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
52243         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
52244         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
52245         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
52246         * modules/unictype/property-private-use-tests (Files): Likewise.
52247         * modules/unictype/property-punctuation-tests (Files): Likewise.
52248         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
52249         * modules/unictype/property-radical-tests (Files): Likewise.
52250         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
52251         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
52252         * modules/unictype/property-space-tests (Files): Likewise.
52253         * modules/unictype/property-terminal-punctuation-tests (Files):
52254         Likewise.
52255         * modules/unictype/property-test-tests (Files): Likewise.
52256         * modules/unictype/property-titlecase-tests (Files): Likewise.
52257         * modules/unictype/property-unassigned-code-value-tests (Files):
52258         Likewise.
52259         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
52260         * modules/unictype/property-uppercase-tests (Files): Likewise.
52261         * modules/unictype/property-variation-selector-tests (Files): Likewise.
52262         * modules/unictype/property-white-space-tests (Files): Likewise.
52263         * modules/unictype/property-xid-continue-tests (Files): Likewise.
52264         * modules/unictype/property-xid-start-tests (Files): Likewise.
52265         * modules/unictype/property-zero-width-tests (Files): Likewise.
52266         * modules/unictype/scripts-tests (Files): Likewise.
52267         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
52268         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
52269         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
52270         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
52271         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
52272         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
52273         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
52274         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
52275         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
52276         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
52277         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
52278         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
52279         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
52280         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
52281         * modules/uninorm/composition-tests (Files): Likewise.
52282         * modules/uninorm/decomposing-form-tests (Files): Likewise.
52283         * modules/uninorm/decomposition-tests (Files): Likewise.
52284         * modules/uninorm/filter-tests (Files): Likewise.
52285         * modules/uninorm/nfc-tests (Files): Likewise.
52286         * modules/uninorm/nfd-tests (Files): Likewise.
52287         * modules/uninorm/nfkc-tests (Files): Likewise.
52288         * modules/uninorm/nfkd-tests (Files): Likewise.
52289         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
52290         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
52291         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
52292         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
52293         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
52294         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
52295         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
52296         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52297         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
52298         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
52299         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
52300         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
52301         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52302         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
52303         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
52304         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
52305         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
52306         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52307         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
52308         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
52309         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
52310         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
52311         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52312         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
52313         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
52314         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
52315         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
52316         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
52317         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
52318         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
52319         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
52320         * modules/uniwidth/u8-width-tests (Files): Likewise.
52321         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
52322         * modules/uniwidth/u16-width-tests (Files): Likewise.
52323         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
52324         * modules/uniwidth/u32-width-tests (Files): Likewise.
52325         * modules/uniwidth/width-tests (Files): Likewise.
52326         * modules/unlink-tests (Files): Likewise.
52327         * modules/unsetenv-tests (Files): Likewise.
52328         * modules/usleep-tests (Files): Likewise.
52329         * modules/utimens-tests (Files): Likewise.
52330         * modules/utimensat-tests (Files): Likewise.
52331         * modules/vasnprintf-posix-tests (Files): Likewise.
52332         * modules/vasnprintf-tests (Files): Likewise.
52333         * modules/vasprintf-posix-tests (Files): Likewise.
52334         * modules/vasprintf-tests (Files): Likewise.
52335         * modules/vdprintf-posix-tests (Files): Likewise.
52336         * modules/vfprintf-posix-tests (Files): Likewise.
52337         * modules/vprintf-posix-tests (Files): Likewise.
52338         * modules/vsnprintf-posix-tests (Files): Likewise.
52339         * modules/vsnprintf-tests (Files): Likewise.
52340         * modules/vsprintf-posix-tests (Files): Likewise.
52341         * modules/wcrtomb-tests (Files): Likewise.
52342         * modules/wcsnrtombs-tests (Files): Likewise.
52343         * modules/wcsrtombs-tests (Files): Likewise.
52344         * modules/wctype-tests (Files): Likewise.
52345         * modules/wcwidth-tests (Files): Likewise.
52346         * modules/xmemdup0-tests (Files): Likewise.
52347         * modules/xprintf-posix-tests (Files): Likewise.
52348         * modules/xvasprintf-tests (Files): Likewise.
52350 2009-12-24  Eric Blake  <ebb9@byu.net>
52352         test-nanosleep: fix typo
52353         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
52354         patch.
52355         Reported by Bruno Haible.
52357 2009-12-24  Bruno Haible  <bruno@clisp.org>
52359         Reduce namespace pollution on glibc systems.
52360         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
52361         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
52362         systems.
52363         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
52364         <getopt.h> on glibc systems.
52365         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
52366         systems.
52367         * lib/fcntl.c: Include <unistd.h> here instead.
52369 2009-12-24  Bruno Haible  <bruno@clisp.org>
52371         * lib/stdlib.in.h (includes): Fix typo in today's commit.
52373 2009-12-24  Eric Blake  <ebb9@byu.net>
52375         tests: add signature checks
52376         * tests/signature.h (SIGNATURE_CHECK): New file.
52377         * modules/atexit-tests (Files): Use it.
52378         * modules/btowc-tests (Files): Likewise.
52379         * modules/canonicalize-lgpl-tests (Files): Likewise.
52380         * modules/ceilf-tests (Files): Likewise.
52381         * modules/ceill-tests (Files): Likewise.
52382         * modules/chown-tests (Files): Likewise.
52383         * modules/dprintf-posix-tests (Files): Likewise.
52384         * modules/dup2-tests (Files): Likewise.
52385         * modules/dup3-tests (Files): Likewise.
52386         * modules/duplocale-tests (Files): Likewise.
52387         * modules/fchdir-tests (Files): Likewise.
52388         * modules/fcntl-tests (Files): Likewise.
52389         * modules/fdopendir-tests (Files): Likewise.
52390         * modules/fflush-tests (Files): Likewise.
52391         * modules/flock-tests (Files): Likewise.
52392         * modules/floorf-tests (Files): Likewise.
52393         * modules/floorl-tests (Files): Likewise.
52394         * modules/fnmatch-tests (Files): Likewise.
52395         * modules/fopen-tests (Files): Likewise.
52396         * modules/fprintf-posix-tests (Files): Likewise.
52397         * modules/freopen-tests (Files): Likewise.
52398         * modules/frexp-nolibm-tests (Files): Likewise.
52399         * modules/frexp-tests (Files): Likewise.
52400         * modules/frexpl-nolibm-tests (Files): Likewise.
52401         * modules/frexpl-tests (Files): Likewise.
52402         * modules/fseek-tests (Files): Likewise.
52403         * modules/fseeko-tests (Files): Likewise.
52404         * modules/fsync-tests (Files): Likewise.
52405         * modules/ftell-tests (Files): Likewise.
52406         * modules/ftello-tests (Files): Likewise.
52407         * modules/futimens-tests (Files): Likewise.
52408         * modules/getaddrinfo-tests (Files): Likewise.
52409         * modules/getcwd-tests (Files): Likewise.
52410         * modules/getdelim-tests (Files): Likewise.
52411         * modules/getdtablesize-tests (Files): Likewise.
52412         * modules/getgroups-tests (Files): Likewise.
52413         * modules/gethostname-tests (Files): Likewise.
52414         * modules/getline-tests (Files): Likewise.
52415         * modules/getopt-posix-tests (Files): Likewise.
52416         * modules/gettimeofday-tests (Files): Likewise.
52417         * modules/glob-tests (Files): Likewise.
52418         * modules/iconv-tests (Files): Likewise.
52419         * modules/inet_ntop-tests (Files): Likewise.
52420         * modules/inet_pton-tests (Files): Likewise.
52421         * modules/isblank-tests (Files): Likewise.
52422         * modules/lchown-tests (Files): Likewise.
52423         * modules/ldexpl-tests (Files): Likewise.
52424         * modules/link-tests (Files): Likewise.
52425         * modules/linkat-tests (Files): Likewise.
52426         * modules/lseek-tests (Files): Likewise.
52427         * modules/lstat-tests (Files): Likewise.
52428         * modules/mbrtowc-tests (Files): Likewise.
52429         * modules/mbsinit-tests (Files): Likewise.
52430         * modules/mbsnrtowcs-tests (Files): Likewise.
52431         * modules/mbsrtowcs-tests (Files): Likewise.
52432         * modules/memchr-tests (Files): Likewise.
52433         * modules/memcmp-tests (Files): Likewise.
52434         * modules/memmem-tests (Files): Likewise.
52435         * modules/memrchr-tests (Files): Likewise.
52436         * modules/mkdir-tests (Files): Likewise.
52437         * modules/mkfifo-tests (Files): Likewise.
52438         * modules/mkfifoat-tests (Files): Likewise.
52439         * modules/mknod-tests (Files): Likewise.
52440         * modules/nanosleep-tests (Files): Likewise.
52441         * modules/nl_langinfo-tests (Files): Likewise.
52442         * modules/obstack-printf-tests (Files): Likewise.
52443         * modules/open-tests (Files): Likewise.
52444         * modules/openat-tests (Files): Likewise.
52445         * modules/perror-tests (Files): Likewise.
52446         * modules/pipe2-tests (Files): Likewise.
52447         * modules/poll-tests (Files): Likewise.
52448         * modules/popen-tests (Files): Likewise.
52449         * modules/posix_spawn-tests (Files): Likewise.
52450         * modules/posix_spawnp-tests (Files): Likewise.
52451         * modules/pread-tests (Files): Likewise.
52452         * modules/printf-posix-tests (Files): Likewise.
52453         * modules/pty-tests (Files): Likewise.
52454         * modules/random_r-tests (Files): Likewise.
52455         * modules/rawmemchr-tests (Files): Likewise.
52456         * modules/readlink-tests (Files): Likewise.
52457         * modules/remove-tests (Files): Likewise.
52458         * modules/rename-tests (Files): Likewise.
52459         * modules/renameat-tests (Files): Likewise.
52460         * modules/rmdir-tests (Files): Likewise.
52461         * modules/round-tests (Files): Likewise.
52462         * modules/roundf-tests (Files): Likewise.
52463         * modules/roundl-tests (Files): Likewise.
52464         * modules/select-tests (Files): Likewise.
52465         * modules/setenv-tests (Files): Likewise.
52466         * modules/sigaction-tests (Files): Likewise.
52467         * modules/sleep-tests (Files): Likewise.
52468         * modules/snprintf-posix-tests (Files): Likewise.
52469         * modules/snprintf-tests (Files): Likewise.
52470         * modules/sprintf-posix-tests (Files): Likewise.
52471         * modules/stat-tests (Files): Likewise.
52472         * modules/strcasestr-tests (Files): Likewise.
52473         * modules/strchrnul-tests (Files): Likewise.
52474         * modules/strerror-tests (Files): Likewise.
52475         * modules/strsignal-tests (Files): Likewise.
52476         * modules/strstr-tests (Files): Likewise.
52477         * modules/strtod-tests (Files): Likewise.
52478         * modules/strverscmp-tests (Files): Likewise.
52479         * modules/symlink-tests (Files): Likewise.
52480         * modules/symlinkat-tests (Files): Likewise.
52481         * modules/times-tests (Files): Likewise.
52482         * modules/trunc-tests (Files): Likewise.
52483         * modules/truncf-tests (Files): Likewise.
52484         * modules/truncl-tests (Files): Likewise.
52485         * modules/tsearch-tests (Files): Likewise.
52486         * modules/uname-tests (Files): Likewise.
52487         * modules/unlink-tests (Files): Likewise.
52488         * modules/unsetenv-tests (Files): Likewise.
52489         * modules/usleep-tests (Files): Likewise.
52490         * modules/utimensat-tests (Files): Likewise.
52491         * modules/vasprintf-tests (Files): Likewise.
52492         * modules/vdprintf-posix-tests (Files): Likewise.
52493         * modules/vfprintf-posix-tests (Files): Likewise.
52494         * modules/vprintf-posix-tests (Files): Likewise.
52495         * modules/vsnprintf-posix-tests (Files): Likewise.
52496         * modules/vsnprintf-tests (Files): Likewise.
52497         * modules/vsprintf-posix-tests (Files): Likewise.
52498         * modules/wcrtomb-tests (Files): Likewise.
52499         * modules/wcsnrtombs-tests (Files): Likewise.
52500         * modules/wcsrtombs-tests (Files): Likewise.
52501         * modules/wcwidth-tests (Files): Likewise.
52502         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
52503         * tests/test-isinf.c (isinf): Likewise.
52504         * tests/test-isnan.c (isnan): Likewise.
52505         * tests/test-signbit.c (signbit): Likewise.
52506         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
52507         declaration, either as macro or with correct signature.
52508         (select): Ensure function under test is declared with correct
52509         signature in correct header.
52510         * tests/test-atexit.c (atexit): Likewise.
52511         * tests/test-btowc.c (btowc): Likewise.
52512         * tests/test-canonicalize-lgpl.c (realpath)
52513         (canonicalize_file_name): Likewise.
52514         * tests/test-ceilf1.c (ceilf): Likewise.
52515         * tests/test-ceill.c (ceill): Likewise.
52516         * tests/test-chown.c (chown): Likewise.
52517         * tests/test-dprintf-posix.c (dprintf): Likewise.
52518         * tests/test-dup2.c (dup2): Likewise.
52519         * tests/test-dup3.c (dup3): Likewise.
52520         * tests/test-duplocale.c (duplocale): Likewise.
52521         * tests/test-fchdir.c (fchdir): Likewise.
52522         * tests/test-fchownat.c (fchownat): Likewise.
52523         * tests/test-fcntl.c (fcntl): Likewise.
52524         * tests/test-fdopendir.c (fdopendir): Likewise.
52525         * tests/test-fflush.c (fflush): Likewise.
52526         * tests/test-flock.c (flock): Likewise.
52527         * tests/test-floorf1.c (floorf): Likewise.
52528         * tests/test-floorl.c (floorl): Likewise.
52529         * tests/test-fnmatch.c (fnmatch): Likewise.
52530         * tests/test-fopen.c (fopen): Likewise.
52531         * tests/test-fprintf-posix.c (fprintf): Likewise.
52532         * tests/test-freopen.c (freopen): Likewise.
52533         * tests/test-frexp.c (frexp): Likewise.
52534         * tests/test-frexpl.c (frexpl): Likewise.
52535         * tests/test-fseek.c (fseek): Likewise.
52536         * tests/test-fseeko.c (fseeko): Likewise.
52537         * tests/test-fstatat.c (fstatat): Likewise.
52538         * tests/test-fsync.c (fsync): Likewise.
52539         * tests/test-ftell.c (ftell): Likewise.
52540         * tests/test-ftello.c (ftello): Likewise.
52541         * tests/test-futimens.c (futimens): Likewise.
52542         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
52543         (gai_strerror): Likewise.
52544         * tests/test-getcwd.c (getcwd): Likewise.
52545         * tests/test-getdelim.c (getdelim): Likewise.
52546         * tests/test-getdtablesize.c (getdtablesize): Likewise.
52547         * tests/test-getgroups.c (getgroups): Likewise.
52548         * tests/test-gethostname.c (gethostname): Likewise.
52549         * tests/test-getline.c (getline): Likewise.
52550         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
52551         Likewise.
52552         * tests/test-gettimeofday.c (gettimeofday): Likewise.
52553         * tests/test-glob.c (glob, globfree): Likewise.
52554         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
52555         * tests/test-inet_ntop.c (inet_ntop): Likewise.
52556         * tests/test-inet_pton.c (inet_pton): Likewise.
52557         * tests/test-isblank.c (isblank): Likewise.
52558         * tests/test-lchown.c (lchown): Likewise.
52559         * tests/test-ldexpl.c (ldexpl): Likewise.
52560         * tests/test-link.c (link): Likewise.
52561         * tests/test-linkat.c (linkat): Likewise.
52562         * tests/test-lseek.c (lseek): Likewise.
52563         * tests/test-lstat.c (lstat): Likewise.
52564         * tests/test-mbrtowc.c (mbrtowc): Likewise.
52565         * tests/test-mbsinit.c (mbsinit): Likewise.
52566         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
52567         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
52568         * tests/test-memchr.c (memchr): Likewise.
52569         * tests/test-memcmp.c (memcmp): Likewise.
52570         * tests/test-memmem.c (memmem): Likewise.
52571         * tests/test-memrchr.c (memrchr): Likewise.
52572         * tests/test-mkdir.c (mkdir): Likewise.
52573         * tests/test-mkdirat.c (mkdirat): Likewise.
52574         * tests/test-mkfifo.c (mkfifo): Likewise.
52575         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
52576         * tests/test-mknod.c (mknod): Likewise.
52577         * tests/test-nanosleep.c (nanosleep): Likewise.
52578         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
52579         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
52580         Likewise.
52581         * tests/test-open.c (open): Likewise.
52582         * tests/test-openat.c (openat): Likewise.
52583         * tests/test-perror.c (perror): Likewise.
52584         * tests/test-pipe2.c (pipe2): Likewise.
52585         * tests/test-poll.c (poll): Likewise.
52586         * tests/test-popen.c (popen, pclose): Likewise.
52587         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
52588         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
52589         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
52590         (posix_spawn_file_actions_destroy)
52591         (posix_spawn_file_actions_addclose)
52592         (posix_spawn_file_actions_addopen)
52593         (posix_spawn_file_actions_adddup2): Likewise.
52594         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
52595         * tests/test-pread.c (pread): Likewise.
52596         * tests/test-printf-posix.c (printf): Likewise.
52597         * tests/test-pty.c (openpty, forkpty): Likewise.
52598         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
52599         (random_r): Likewise.
52600         * tests/test-rawmemchr.c (rawmemchr): Likewise.
52601         * tests/test-readlink.c (readlink): Likewise.
52602         * tests/test-remove.c (remove): Likewise.
52603         * tests/test-rename.c (rename): Likewise.
52604         * tests/test-renameat.c (renameat): Likewise.
52605         * tests/test-rmdir.c (rmdir): Likewise.
52606         * tests/test-round1.c (round): Likewise.
52607         * tests/test-roundf1.c (roundf): Likewise.
52608         * tests/test-roundl.c (roundl): Likewise.
52609         * tests/test-setenv.c (setenv): Likewise.
52610         * tests/test-sigaction.c (sigaction): Likewise.
52611         * tests/test-sleep.c (sleep): Likewise.
52612         * tests/test-snprintf.c (snprintf): Likewise.
52613         * tests/test-sprintf-posix.c (sprintf): Likewise.
52614         * tests/test-stat.c (stat): Likewise.
52615         * tests/test-stpncpy.c (stpncpy): Likewise.
52616         * tests/test-strcasestr.c (strcasestr): Likewise.
52617         * tests/test-strchrnul.c (strchrnul): Likewise.
52618         * tests/test-strerror.c (strerror): Likewise.
52619         * tests/test-strsignal.c (strsignal): Likewise.
52620         * tests/test-strstr.c (strstr): Likewise.
52621         * tests/test-strtod.c (strtod): Likewise.
52622         * tests/test-strverscmp.c (strverscmp): Likewise.
52623         * tests/test-symlink.c (symlink): Likewise.
52624         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
52625         * tests/test-times.c (times): Likewise.
52626         * tests/test-trunc1.c (trunc): Likewise.
52627         * tests/test-truncf1.c (truncf): Likewise.
52628         * tests/test-truncl.c (truncl): Likewise.
52629         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
52630         Likewise.
52631         * tests/test-uname.c (uname): Likewise.
52632         * tests/test-unlink.c (unlink): Likewise.
52633         * tests/test-unlinkat.c (unlinkat): Likewise.
52634         * tests/test-unsetenv.c (unsetenv): Likewise.
52635         * tests/test-usleep.c (usleep): Likewise.
52636         * tests/test-utimensat.c (utimensat): Likewise.
52637         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
52638         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
52639         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
52640         * tests/test-vprintf-posix.c (vprintf): Likewise.
52641         * tests/test-vsnprintf.c (vsnprintf): Likewise.
52642         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
52643         * tests/test-wcrtomb.c (wcrtomb): Likewise.
52644         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
52645         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
52646         * tests/test-wcwidth.c (wcwidth): Likewise.
52648         build: pull in conditional headers during GNULIB_POSIXCHECK
52649         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
52650         definitions from any conditionally-included headers.
52651         * lib/stdlib.in.h (includes): Likewise.
52652         * lib/unistd.in.h (includes): Likewise.
52654 2009-12-24  Bruno Haible  <bruno@clisp.org>
52656         * tests/test-argv-iter.c: Include header file being tested immediately
52657         after config.h.
52658         * tests/test-base64.c: Likewise.
52659         * tests/test-flock.c: Likewise.
52660         * tests/test-fsync.c: Likewise.
52661         * tests/test-getdate.c: Likewise.
52662         * tests/test-getndelim2.c: Likewise.
52663         * tests/test-isfinite.c: Likewise.
52664         * tests/test-isinf.c: Likewise.
52665         * tests/test-strerror.c: Likewise.
52666         * tests/test-strsignal.c: Likewise.
52668 2009-12-23  Eric Blake  <ebb9@byu.net>
52670         unistd: work around cygwin bug
52671         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
52672         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
52673         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
52675 2009-12-23  Bruno Haible  <bruno@clisp.org>
52677         localename: More tests.
52678         * tests/test-localename.c (SIZEOF): New macro.
52679         (categories): New variable.
52680         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
52681         test_locale_name_default): Add test w.r.t. thread locale.
52682         (test_locale_name_thread): New function.
52683         (main): Invoke it.
52685         localename: Make aware of thread locale.
52686         * lib/localename.h (gl_locale_name_thread): New declaration.
52687         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
52688         behaviour with respect to thread locale.
52689         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
52690         <langinfo.h>, glthread/lock.h.
52691         (SIZE_BITS): New macro.
52692         (string_hash): New function.
52693         (struct hash_node): New type.
52694         (HASH_TABLE_SIZE): New macro.
52695         (struniq_hash_table, struniq_lock): New variables.
52696         (struniq): New function.
52697         (gl_locale_name_thread): New function.
52698         (gl_locale_name): Invoke it.
52699         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
52700         * modules/localename (Depends-on): Add lock.
52701         Reported by Mike Gran <spk121@yahoo.com>.
52703 2009-12-23  Eric Blake  <ebb9@byu.net>
52705         va-args: new module
52706         * modules/va-args: New file.
52707         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
52708         * MODULES.html.sh (Core language properties): Mention it.
52710         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
52711         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
52712         named alias for __attribute__((__unused__)).
52713         * lib/chown.c: Update client.
52714         * lib/fchmodat.c: Likewise.
52715         * lib/fts.c: Likewise.
52716         * lib/getdate.y: Likewise.
52717         * lib/getgroups.c: Likewise.
52718         * lib/getopt.c: Likewise.
52719         * lib/getugroups.c: Likewise.
52720         * lib/mkdir.c: Likewise.
52721         * lib/mkfifo.c: Likewise.
52722         * lib/mkfifoat.c: Likewise.
52723         * lib/mknod.c: Likewise.
52724         * lib/mknodat.c: Likewise.
52725         * lib/readlink.c: Likewise.
52726         * lib/se-context.in.h: Likewise.
52727         * lib/se-selinux.in.h: Likewise.
52728         * lib/sockets.c: Likewise.
52729         * lib/symlink.c: Likewise.
52730         * lib/symlinkat.c: Likewise.
52731         * lib/unicodeio.c: Likewise.
52732         * lib/unistr.h: Likewise.
52733         * tests/test-areadlink.c: Likewise.
52734         * tests/test-areadlinkat.c: Likewise.
52735         * tests/test-filenamecat.c: Likewise.
52736         * tests/test-fseeko.c: Likewise.
52737         * tests/test-ftello.c: Likewise.
52738         * tests/test-getdate.c: Likewise.
52739         * tests/test-getgroups.c: Likewise.
52740         * tests/test-gethostname.c: Likewise.
52741         * tests/test-quotearg.c: Likewise.
52742         * tests/test-version-etc.c: Likewise.
52743         * tests/test-xalloc-die.c: Likewise.
52744         * tests/test-xfprintf-posix.c: Likewise.
52745         * tests/test-xprintf-posix.c: Likewise.
52746         * tests/test-xvasprintf.c: Likewise.
52748         tests: avoid compiler warnings
52749         * tests/test-fcntl.c (main): Delete unused parameters.
52750         * tests/test-freopen-safer.c (main): Likewise.
52751         * tests/test-xalloc-die.c (main): Mark unused parameters.
52752         * tests/test-fseeko.c (main): Likewise.
52753         * tests/test-ftello.c (main): Likewise.
52754         * tests/test-nanosleep.c (main): Avoid declaration warning.
52755         * tests/test-sleep.c (main): Likewise.
52756         * tests/test-unsetenv.c (main): Silence warning about string
52757         literal.
52758         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
52760 2009-12-23  Bruno Haible  <bruno@clisp.org>
52762         * tests/test-localename.c (test_locale_name): New function, extracted
52763         from main. Also test mixed situations.
52764         (test_locale_name_posix, test_locale_name_environ,
52765         test_locale_name_default): New functions.
52766         (main): Invoke them all.
52767         * modules/localename-tests (configure.ac): Test for newlocale.
52769 2009-12-23  Bruno Haible  <bruno@clisp.org>
52771         unistd: Ensure getcwd gets declared before being overridden.
52772         * lib/unistd.in.h: Conditionally include <io.h>.
52774 2009-12-22  Bruno Haible  <bruno@clisp.org>
52776         wchar: Diagnose broken combination of glibc and gcc versions and flags.
52777         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
52778         (gl_WCHAR_H): Invoke it.
52779         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
52780         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
52781         Reported by Karl Berry <karl@freefriends.org>.
52783 2009-12-22  Eric Blake  <ebb9@byu.net>
52785         math, unistd: avoid redundant includes
52786         * lib/math.in.h (isnan): No need to re-include <math.h>.
52787         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
52789         getsubopt: work around cygwin bug
52790         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
52791         avoid conflicting with system getsubopt.
52792         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
52793         bug.
52795         getopt: synchronize from glibc
52796         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
52797         parameter order.  Adjust all callers.
52798         (_getopt_internal_r, main): Adjust quoting in error messages.
52799         Drop considerations for outdated POSIX 1003.2 error message.
52800         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
52801         callers.
52802         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
52804         test-getopt: test stderr behavior
52805         * modules/getopt-posix-tests (Depends-on): Add dup2.
52806         * tests/test-getopt.c (ASSERT): Avoid stderr.
52807         (main): Move stderr to a temporary file.
52808         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
52809         Instead, add parameter to inform caller if output occurred.
52810         (test_getopt): Adjust all existing tests to expect silence, and
52811         add new tests of leading ":".
52812         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
52813         glibc shortcomings with leading "-:" or "+:" in optstring.
52814         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52815         Likewise.
52816         * doc/posix-functions/getopt.texi (getopt): Likewise.
52818         test-getopt: enhance test
52819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
52820         supports optind=0.
52821         * tests/test-getopt.c (OPTIND_MIN): Move...
52822         * tests/test-getopt.h (OPTIND_MIN): ...here.
52823         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
52824         Require that optind=0 works, since modern BSD supports it in
52825         addition to optreset, and since coreutils expects it.
52826         (test_getopt_long_only): New test.
52827         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
52828         glibc shortcomings with 'W;', and enforcement of optind=0.
52829         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52830         Likewise.
52832 2009-12-21  Bruno Haible  <bruno@clisp.org>
52834         localename: Improvements for MacOS X and Cygwin.
52835         * lib/localename.h (gl_locale_name_environ): New declaration.
52836         * lib/localename.c (gl_locale_name_environ): New function, extracted from
52837         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
52838         (gl_locale_name_posix): Invoke it.
52839         (gl_locale_name_default): Add comments. Use Windows native API also on
52840         Cygwin.
52842 2009-12-21  Bruno Haible  <bruno@clisp.org>
52844         Update list of Win32 locale ids.
52845         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
52846         (LANG_SAMI): Renamed from LANG_SAAMI.
52847         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
52848         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
52849         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
52850         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
52851         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
52852         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
52853         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
52854         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
52855         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
52856         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
52857         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
52858         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
52859         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
52860         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
52861         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
52862         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
52863         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
52864         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
52865         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
52866         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
52867         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
52868         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
52869         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
52870         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
52871         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
52872         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
52873         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
52874         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
52875         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
52876         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
52877         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
52878         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
52879         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
52880         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
52881         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
52882         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
52883         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
52884         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
52885         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
52886         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
52887         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
52888         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
52889         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
52890         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
52891         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
52892         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
52893         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
52894         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
52895         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
52896         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
52897         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
52898         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
52899         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
52900         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
52901         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
52902         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
52903         Add more languages and countries for Sami, Sorbian. Add more countries
52904         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
52905         for Pashto. Change country for Syriac, Tswana.
52907 2009-12-21  Eric Blake  <ebb9@byu.net>
52909         test-utimens: avoid spurious failure
52910         * tests/test-chown.h (nap): Factor...
52911         * tests/nap.h: ...into new file.
52912         * tests/test-lchown.h (nap): Avoid duplication.
52913         * tests/test-utimens-common.h (nap): Use shared implementation,
52914         necessary on file systems with 1-second resolution.
52915         * modules/chown-tests (Files): Include new file.
52916         * modules/fdutimensat-tests (Files): Likewise.
52917         * modules/futimens-tests (Files): Likewise.
52918         * modules/lchown-tests (Files): Likewise.
52919         * modules/openat-tests (Files): Likewise.
52920         * modules/utimens-tests (Files): Likewise.
52921         * modules/utimensat-tests (Files): Likewise.
52923 2009-12-19  Eric Blake  <ebb9@byu.net>
52925         futimens, utimensat: work around Linux bug
52926         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
52927         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52928         * lib/utimensat.c (rpl_utimensat): Work around it.
52929         * lib/futimens.c (rpl_futimens): Adjust comment.
52931         utimens: work around Linux ctime bug
52932         * lib/utimens.c (detect_ctime_bug): New helper function.
52933         (update_timespec): Differentiate between workaround needed for
52934         this bug vs. what is needed for systems that lack utimensat.
52935         (fdutimens, lutimens): Work around bug.
52937         utimens: check for ctime update
52938         * tests/test-utimens-common.h (check_ctime): Define.
52939         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
52940         * tests/test-futimens.h (test_futimens): Likewise.
52941         * tests/test-lutimens.h (test_lutimens): Likewise.
52942         * doc/posix-functions/futimens.texi (futimens): Document the bug.
52943         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
52945 2009-12-19  Bruno Haible  <bruno@clisp.org>
52947         dprintf-posix: Check against memory leak fixed on 2009-12-15.
52948         * tests/test-dprintf-posix2.sh: New file.
52949         * tests/test-dprintf-posix2.c: New file.
52950         * modules/dprintf-posix-tests (Files): Add them.
52951         (configure.ac): Check for getrlimit and setrlimit.
52952         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
52954 2009-12-19  Bruno Haible  <bruno@clisp.org>
52956         fprintf-posix: Check against memory leak fixed on 2009-12-15.
52957         * tests/test-fprintf-posix3.sh: New file.
52958         * tests/test-fprintf-posix3.c: New file.
52959         * modules/fprintf-posix-tests (Files): Add them.
52960         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
52962 2009-12-19  Eric Blake  <ebb9@byu.net>
52964         dirfd: fix prototype
52965         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
52966         * lib/dirfd.c (dirfd): Likewise.
52968         canonicalize: reduce memory usage
52969         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
52970         allocation to size.
52971         Reported by Solar Designer <solar@openwall.com>.
52973 2009-12-19  Bruno Haible  <bruno@clisp.org>
52975         New module attribute 'Applicability'.
52976         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
52977         * gnulib-tool: New option --extract-applicability.
52978         (func_usage): Document it.
52979         (sed_extract_prog): Recognize it.
52980         (func_get_applicability): New function.
52981         (func_import): Generalize handling of 'link-warning' module.
52982         * modules/link-warning (Applicability): New section.
52983         * modules/arg-nonnull (Applicability): New section.
52984         Repoted by Simon Josefsson <simon@josefsson.org>.
52986 2009-12-19  Bruno Haible  <bruno@clisp.org>
52988         fflush: tweak
52989         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
52990         * lib/fseeko.c (rpl_fseeko): Likewise.
52992 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
52994         * lib/gl_list.h: Fix typo in comment.
52996 2009-12-16  Eric Blake  <ebb9@byu.net>
52998         fcntl: use to simplify other modules
52999         * modules/cloexec (Depends-on): Add fcntl.
53000         * modules/fchdir (Depends-on): Likewise.
53001         * modules/fd-safer-flag (Depends-on): Likewise.
53002         * modules/unistd-safer (Depends-on): Likewise.
53003         * modules/dup3 (configure.ac): Set module indicator.
53004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
53005         missing.
53006         * lib/fchdir.c (_gl_register_dup): Fix comment.
53007         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
53008         * lib/dup-safer.c (dup_safer): Likewise.
53009         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
53010         * lib/dup3.c (dup3): Likewise.
53011         * tests/test-fchdir.c (main): Enhance test.
53012         Fixes a dup_cloexec bug reported by Ondřej Vašík.
53014         fcntl: port portions of fcntl to mingw
53015         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
53016         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
53017         replacement for mingw.
53018         * modules/fcntl (Description): Update.
53019         (Depends-on): Add dup2.
53020         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
53021         * modules/fcntl-h (Makefile.am): Substitute it.
53022         * lib/fcntl.in.h (fcntl): Update declaration.
53023         (F_DUPFD, F_GETFD): New macros, when needed.
53024         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
53025         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
53026         * tests/test-fcntl.c (check_flags, main): Enhance test for items
53027         we now guarantee.
53029         fcntl: work around cygwin bug in F_DUPFD
53030         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
53031         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
53032         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
53033         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
53034         * doc/posix-functions/fcntl.texi (fcntl): Document it.
53036         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
53037         * modules/fcntl (Files): List new files.
53038         (configure.ac): Run a test.
53039         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
53040         * lib/fcntl.c (rpl_fcntl): Likewise.
53041         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
53042         (gl_FCNTL_H): Always replace fcntl.h.
53043         * modules/fcntl-h (Makefile.am): Substitute witnesses.
53044         * lib/fcntl.in.h (fcntl): Declare replacement.
53045         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
53046         needed, plus a witness.
53047         * doc/posix-functions/fcntl.texi (fcntl): Document this.
53048         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
53049         * tests/test-fcntl.c: New file.
53050         * modules/fcntl-tests: Likewise.
53052         binary-io: avoid potential compilation warning
53053         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
53054         directives.
53056         fflush: avoid compilation error on NetBSD
53057         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
53058         between off_t and fpos_t, since the latter is sometimes a struct.
53059         * lib/fseeko.c (rpl_fseeko): Likewise.
53060         Reported by Alexander Nasonov <alnsn@yandex.ru>.
53062 2009-12-15  Eric Blake  <ebb9@byu.net>
53064         fcntl-h, stdio, sys_ioctl: fix declarations
53065         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
53066         function must not take arguments.
53067         * lib/sys_ioctl.in.h (ioctl): Likewise.
53068         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
53069         (open): Add a link warning.
53071 2009-12-15  Jim Meyering  <meyering@redhat.com>
53073         areadlink, areadlink-with-size: relax license to LGPLv2+
53074         * modules/areadlink (License): Relax to LGPLv2+.
53075         * modules/areadlink-with-size (License): Likewise.
53077 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
53078             Bruno Haible  <bruno@clisp.org>
53080         *printf: Fix memory leak.
53081         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
53082         * lib/vfprintf.c (vfprintf): Likewise.
53083         * lib/dprintf.c (dprintf): Likewise.
53084         * lib/vdprintf.c (vdprintf): Likewise.
53086 2009-12-14  Eric Blake  <ebb9@byu.net>
53088         accept4: adjust module dependencies
53089         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
53091         utimens: one more try at avoiding compiler warning
53092         * lib/utimens.c (lutimens): Lower scope of result.
53094 2009-12-13  Bruno Haible  <bruno@clisp.org>
53096         Move the malloc checking from module 'list' to new module 'xlist'.
53097         * modules/xlist: New file.
53098         * lib/gl_xlist.h: New file.
53099         * lib/gl_xlist.c: New file.
53100         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
53101         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
53102         gl_list_add_last, gl_list_add_before, gl_list_add_after,
53103         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
53104         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
53105         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
53106         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
53107         gl_sortedlist_nx_add): New declarations.
53108         (struct gl_list_implementation): Rename and change methods accordingly.
53109         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
53110         (gl_list_nx_create): Renamed from gl_list_create.
53111         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
53112         (gl_list_nx_set_at): Renamed from gl_list_set_at.
53113         (gl_list_nx_add_first): Renamed from gl_list_add_first.
53114         (gl_list_nx_add_last): Renamed from gl_list_add_last.
53115         (gl_list_nx_add_before): Renamed from gl_list_add_before.
53116         (gl_list_nx_add_after): Renamed from gl_list_add_after.
53117         (gl_list_nx_add_at): Renamed from gl_list_add_at.
53118         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
53119         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
53120         gl_list_create_empty.
53121         (gl_list_nx_create): Renamed from gl_list_create.
53122         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
53123         (gl_list_nx_set_at): Renamed from gl_list_set_at.
53124         (gl_list_nx_add_first): Renamed from gl_list_add_first.
53125         (gl_list_nx_add_last): Renamed from gl_list_add_last.
53126         (gl_list_nx_add_before): Renamed from gl_list_add_before.
53127         (gl_list_nx_add_after): Renamed from gl_list_add_after.
53128         (gl_list_nx_add_at): Renamed from gl_list_add_at.
53129         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
53130         * lib/gl_array_list.c: Don't include xalloc.h.
53131         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
53132         NULL upon out-of-memory.
53133         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
53134         out-of-memory.
53135         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
53136         Change return type to 'int'.
53137         (gl_array_nx_set_at): Renamed from gl_array_set_at.
53138         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
53139         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
53140         upon out-of-memory.
53141         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
53142         upon out-of-memory.
53143         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
53144         upon out-of-memory.
53145         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
53146         upon out-of-memory.
53147         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
53148         out-of-memory.
53149         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
53150         Update.
53151         (gl_array_list_implementation): Update.
53152         * lib/gl_carray_list.c: Don't include xalloc.h.
53153         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
53154         Return NULL upon out-of-memory.
53155         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
53156         out-of-memory.
53157         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
53158         Change return type to 'int'.
53159         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
53160         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
53161         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
53162         upon out-of-memory.
53163         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
53164         upon out-of-memory.
53165         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
53166         out-of-memory.
53167         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
53168         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
53169         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
53170         Update.
53171         (gl_carray_list_implementation): Update.
53172         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
53173         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
53174         gl_linked_create_empty. Return NULL upon out-of-memory.
53175         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
53176         out-of-memory.
53177         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
53178         Change return type to 'int'. Return -1 upon out-of-memory.
53179         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
53180         out-of-memory.
53181         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
53182         upon out-of-memory.
53183         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
53184         upon out-of-memory.
53185         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
53186         NULL upon out-of-memory.
53187         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
53188         upon out-of-memory.
53189         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
53190         out-of-memory.
53191         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
53192         Update.
53193         * lib/gl_linked_list.c: Don't include xalloc.h.
53194         (gl_linked_list_implementation): Update.
53195         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
53196         (add_to_bucket): Change return type to 'int'.
53197         (gl_linkedhash_list_implementation): Update.
53198         * lib/gl_anytree_list1.h (free_subtree): New function.
53199         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
53200         gl_tree_create_empty. Return NULL upon out-of-memory.
53201         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
53202         Change return type to 'int'. Return -1 upon out-of-memory.
53203         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
53204         out-of-memory.
53205         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
53206         (gl_tree_remove_node): New function, moved here from
53207         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
53208         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
53209         Update.
53210         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
53211         malloc, not xmalloc. Return NULL upon out-of-memory.
53212         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
53213         out-of-memory.
53214         (gl_tree_remove_node_from_tree): New function, extracted from
53215         gl_tree_remove_node.
53216         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
53217         upon out-of-memory.
53218         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
53219         out-of-memory.
53220         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
53221         upon out-of-memory.
53222         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
53223         upon out-of-memory.
53224         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
53225         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
53226         not xmalloc. Return NULL upon out-of-memory.
53227         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
53228         out-of-memory.
53229         (gl_tree_remove_node_from_tree): New function, extracted from
53230         gl_tree_remove_node.
53231         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
53232         upon out-of-memory.
53233         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
53234         out-of-memory.
53235         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
53236         upon out-of-memory.
53237         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
53238         upon out-of-memory.
53239         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
53240         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
53241         gl_anytree_list1.h before gl_anyavltree_list2.h.
53242         (gl_avltree_list_implementation): Update.
53243         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
53244         gl_anytree_list1.h before gl_anyavltree_list2.h.
53245         (gl_rbtree_list_implementation): Update.
53246         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
53247         Change return type to 'int'. Return -1 upon out-of-memory. Use
53248         __builtin_expect.
53249         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
53250         (gl_avltreehash_list_implementation): Update.
53251         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
53252         (gl_rbtreehash_list_implementation): Update.
53253         * modules/array-list (Depends-on): Remove xalloc.
53254         * modules/carray-list (Depends-on): Likewise.
53255         * modules/linked-list (Depends-on): Likewise.
53256         * modules/linkedhash-list (Depends-on): Likewise.
53257         * modules/avltree-list (Depends-on): Likewise.
53258         * modules/rbtree-list (Depends-on): Likewise.
53259         * modules/avltreehash-list (Depends-on): Likewise.
53260         * modules/rbtreehash-list (Depends-on): Likewise.
53262         * modules/xsublist: New file.
53263         * lib/gl_xsublist.h: New file.
53264         * lib/gl_xsublist.c: New file.
53265         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
53266         (gl_sublist_nx_create): New declaration.
53267         * lib/gl_sublist.c: Don't include xalloc.h.
53268         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
53269         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
53270         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
53271         Change return type to 'int'. Return -1 upon out-of-memory.
53272         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
53273         upon out-of-memory.
53274         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
53275         NULL upon out-of-memory.
53276         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
53277         upon out-of-memory.
53278         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
53279         NULL upon out-of-memory.
53280         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
53281         NULL upon out-of-memory.
53282         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
53283         upon out-of-memory.
53284         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
53285         (gl_sublist_list_implementation): Update.
53286         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
53287         upon out-of-memory.
53288         * modules/sublist (Depends-on): Remove xalloc.
53290         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
53291         * tests/test-carray_list.c: Likewise.
53292         * tests/test-linked_list.c: Likewise.
53293         * tests/test-linkedhash_list.c: Likewise.
53294         * tests/test-avltree_list.c: Likewise.
53295         * tests/test-rbtree_list.c: Likewise.
53296         * tests/test-avltreehash_list.c: Likewise.
53297         * tests/test-rbtreehash_list.c: Likewise.
53298         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
53299         * modules/carray-list-tests (Makefile.am): Likewise.
53300         * modules/linked-list-tests (Makefile.am): Likewise.
53301         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53302         * modules/avltree-list-tests (Makefile.am): Likewise.
53303         * modules/rbtree-list-tests (Makefile.am): Likewise.
53304         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53305         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53307         * NEWS: Mention the changes.
53309         * lib/clean-temp.c: Include gl_xlist.h.
53310         * modules/clean-temp (Depends-on): Add xlist.
53312         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
53313         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
53315         * tests/test-array_oset.c: Include gl_xlist.h.
53316         * modules/array-oset-tests (Depends-on): Add xlist.
53318         Reported by José E. Marchesi <jemarch@gnu.org>.
53320 2009-12-13  Bruno Haible  <bruno@clisp.org>
53322         Move the malloc checking from module 'oset' to new module 'xoset'.
53323         * modules/xoset: New file.
53324         * lib/gl_xoset.h: New file.
53325         * lib/gl_xoset.c: New file.
53326         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
53327         declarations.
53328         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
53329         (struct gl_oset_implementation): Rename and change methods accordingly.
53330         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
53331         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
53332         'int'. Mark as __warn_unused_result__.
53333         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
53334         gl_oset_create_empty.
53335         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
53336         'int'.
53337         * lib/gl_array_oset.c: Don't include xalloc.h.
53338         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
53339         malloc, not xmalloc.
53340         (grow): Change return type to 'int'. Don't call xalloc_die.
53341         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
53342         to 'int'.
53343         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
53344         'int'.
53345         (gl_array_oset_implementation): Update.
53346         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
53347         gl_tree_create_empty.
53348         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
53349         'int'.
53350         * lib/gl_avltree_oset.c: Don't include xalloc.h.
53351         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
53352         xmalloc.
53353         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
53354         not xmalloc.
53355         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
53356         xmalloc.
53357         (gl_avltree_oset_implementation): Update.
53358         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
53359         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
53360         xmalloc.
53361         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
53362         not xmalloc.
53363         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
53364         xmalloc.
53365         (gl_rbtree_oset_implementation): Update.
53366         * modules/array-oset (Depends-on): Remove xalloc.
53367         * modules/avltree-oset (Depends-on): Likewise.
53368         * modules/rbtree-oset (Depends-on): Likewise.
53369         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
53370         * tests/test-avltree_oset.c: Likewise.
53371         * tests/test-rbtree_oset.c: Likewise.
53372         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53373         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
53374         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53375         * NEWS: Mention the change.
53377 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
53379         maint.mk: allow a project to override release-prep commands
53380         * top/maint.mk (alpha, beta, stable): Move release-preparatory
53381         commands into a new rule.
53382         (release-prep): New rule.
53383         (release-prep-hook): New overridable variable.
53385 2009-12-13  Bruno Haible  <bruno@clisp.org>
53387         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
53389 2009-12-13  Jim Meyering  <meyering@redhat.com>
53391         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
53392         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
53394 2009-12-12  Bruno Haible  <bruno@clisp.org>
53396         duplocale: Tweak.
53397         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
53399 2009-12-12  Karl Berry  <karl@gnu.org>
53401         * config/srclist.txt (strtoll.c): tab changes, no more sync.
53403 2009-12-12  Bruno Haible  <bruno@clisp.org>
53405         * m4/po.m4: Undo incorrect untabification.
53407 2009-12-12  Bruno Haible  <bruno@clisp.org>
53409         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
53410         * modules/c-strtod (Depends-on): Add locale.
53411         * modules/c-strtold (Depends-on): Likewise.
53413 2009-12-12  Bruno Haible  <bruno@clisp.org>
53415         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
53417 2009-12-11  Eric Blake  <ebb9@byu.net>
53419         setenv: relax requirement in light of POSIX ruling
53420         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
53421         not NULL.
53422         * tests/test-setenv.c (main): Relax test.
53423         * tests/test-unsetenv.c (main): Likewise.
53424         * doc/posix-functions/setenv.texi (setenv): Document this.
53425         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
53427 2009-12-11  Bruno Haible  <bruno@clisp.org>
53429         New module 'fd-safer-flag'.
53430         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
53431         * lib/dup-safer.c (dup_safer_flag): Remove function.
53432         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
53433         * lib/fd-safer.c (fd_safer_flag): Remove function.
53434         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
53435         * modules/cloexec (configure.ac): Drop indicator macro.
53436         * modules/fd-safer-flag: New file.
53437         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
53438         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
53439         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
53441 2009-12-11  Bruno Haible  <bruno@clisp.org>
53443         Tests for module 'nl_langinfo'.
53444         * modules/nl_langinfo-tests: New file.
53445         * tests/test-nl_langinfo.sh: New file.
53446         * tests/test-nl_langinfo.c: New file.
53448         New module 'nl_langinfo'.
53449         * lib/nl_langinfo.c: New file.
53450         * m4/nl_langinfo.m4: New file.
53451         * modules/nl_langinfo: New file.
53452         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
53454 2009-12-11  Bruno Haible  <bruno@clisp.org>
53456         Tests for module 'langinfo'.
53457         * modules/langinfo-tests: New file.
53458         * tests/test-langinfo.c: New file.
53460         New module 'langinfo'.
53461         * lib/langinfo.in.h: New file.
53462         * m4/langinfo_h.m4: New file.
53463         * modules/langinfo: New file.
53464         * doc/posix-headers/langinfo.texi: Mention the new module.
53466 2009-12-11  Bruno Haible  <bruno@clisp.org>
53468         * lib/config.charset: Untabify.
53470 2009-12-11  Bruno Haible  <bruno@clisp.org>
53472         * modules/unistd-safer (configure.ac): Drop indicator macro.
53474 2009-12-11  Bruno Haible  <bruno@clisp.org>
53476         Move pipe2-safer code to its own file.
53477         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
53478         * lib/pipe-safer.c (pipe2_safer): Remove function.
53479         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
53480         (Makefile.am): Add it to lib_SOURCES.
53482 2009-12-10  Bruno Haible  <bruno@clisp.org>
53484         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
53486 2009-12-10  Bruno Haible  <bruno@clisp.org>
53488         Declare which arguments expect non-NULL values, for GCC and clang.
53489         * build-aux/arg-nonnull.h: New file.
53490         * modules/arg-nonnull: New file.
53491         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
53492         (inet_ntop, inet_pton): Use it.
53493         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
53494         (closedir, dirfd, opendir, scandir, alphasort): Use it.
53495         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
53496         (open, openat): Use it.
53497         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
53498         (fnmatch): Use it.
53499         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
53500         (getopt, getopt_long, getopt_long_only): Use it.
53501         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
53502         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
53503         Use it.
53504         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
53505         (iconv_open): Use it.
53506         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
53507         (strtoimax, strtoumax): Use it.
53508         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
53509         (duplocale): Use it.
53510         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
53511         (frexp, frexpl): Use it.
53512         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
53513         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
53514         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
53515         (tsearch, tfind, tdelete, twalk): Use it.
53516         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
53517         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
53518         sigpending): Use it.
53519         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
53520         (posix_spawn, posix_spawnp, posix_spawnattr_init,
53521         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
53522         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
53523         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
53524         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
53525         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
53526         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
53527         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
53528         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
53529         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
53530         Use it.
53531         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
53532         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
53533         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
53534         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
53535         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
53536         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
53537         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
53538         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
53539         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
53540         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
53541         strtoull, unsetenv): Use it.
53542         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
53543         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
53544         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
53545         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
53546         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
53547         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
53548         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
53549         (strcasecmp, strncasecmp): Use it.
53550         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
53551         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
53552         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
53553         rpl_setsockopt): Use it.
53554         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
53555         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
53556         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
53557         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
53558         (gettimeofday): Use it.
53559         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
53560         (times): Use it.
53561         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
53562         (uname): Use it.
53563         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
53564         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
53565         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
53566         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
53567         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
53568         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
53569         unlinkat, write): Use it.
53570         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
53571         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
53572         * lib/argv-iter.h: Include arg-nonnull.h.
53573         (_ATTRIBUTE_NONNULL_): Remove macro.
53574         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
53575         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
53576         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
53577         optimization.
53578         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
53579         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
53580         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
53581         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
53582         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
53583         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
53584         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
53585         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
53586         * modules/arpa_inet (Depends-on): Add arg-nonnull.
53587         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
53588         * modules/dirent (Depends-on): Add arg-nonnull.
53589         (Makefile.am): Insert arg-nonnull.h into dirent.h.
53590         * modules/fcntl-h (Depends-on): Add arg-nonnull.
53591         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
53592         * modules/fnmatch (Depends-on): Add arg-nonnull.
53593         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
53594         * modules/getopt-posix (Depends-on): Add arg-nonnull.
53595         (Makefile.am): Insert arg-nonnull.h into getopt.h.
53596         * modules/glob (Depends-on): Add arg-nonnull.
53597         (Makefile.am): Insert arg-nonnull.h into glob.h.
53598         * modules/iconv_open (Depends-on): Add arg-nonnull.
53599         (Makefile.am): Insert arg-nonnull.h into iconv.h.
53600         * modules/inttypes (Depends-on): Add arg-nonnull.
53601         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
53602         * modules/locale (Depends-on): Add arg-nonnull.
53603         (Makefile.am): Insert arg-nonnull.h into locale.h.
53604         * modules/math (Depends-on): Add arg-nonnull.
53605         (Makefile.am): Insert arg-nonnull.h into math.h.
53606         * modules/netdb (Depends-on): Add arg-nonnull.
53607         (Makefile.am): Insert arg-nonnull.h into netdb.h.
53608         * modules/search (Depends-on): Add arg-nonnull.
53609         (Makefile.am): Insert arg-nonnull.h into search.h.
53610         * modules/signal (Depends-on): Add arg-nonnull.
53611         (Makefile.am): Insert arg-nonnull.h into signal.h.
53612         * modules/spawn (Depends-on): Add arg-nonnull.
53613         (Makefile.am): Insert arg-nonnull.h into spawn.h.
53614         * modules/stdio (Depends-on): Add arg-nonnull.
53615         (Makefile.am): Insert arg-nonnull.h into stdio.h.
53616         * modules/stdlib (Depends-on): Add arg-nonnull.
53617         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
53618         * modules/string (Depends-on): Add arg-nonnull.
53619         (Makefile.am): Insert arg-nonnull.h into string.h.
53620         * modules/strings (Depends-on): Add arg-nonnull.
53621         (Makefile.am): Insert arg-nonnull.h into strings.h.
53622         * modules/sys_socket (Depends-on): Add arg-nonnull.
53623         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
53624         * modules/sys_stat (Depends-on): Add arg-nonnull.
53625         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
53626         * modules/sys_time (Depends-on): Add arg-nonnull.
53627         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
53628         * modules/sys_times (Depends-on): Add arg-nonnull.
53629         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
53630         * modules/sys_utsname (Depends-on): Add arg-nonnull.
53631         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
53632         * modules/time (Depends-on): Add arg-nonnull.
53633         (Makefile.am): Insert arg-nonnull.h into time.h.
53634         * modules/unistd (Depends-on): Add arg-nonnull.
53635         (Makefile.am): Insert arg-nonnull.h into unistd.h.
53636         * modules/wchar (Depends-on): Add arg-nonnull.
53637         (Makefile.am): Insert arg-nonnull.h into wchar.h.
53638         * modules/argv-iter (Depends-on): Add arg-nonnull.
53639         * tests/test-canonicalize.c (null_ptr): New function.
53640         (main): Use it.
53641         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
53642         (main): Use it.
53643         * tests/test-memmem.c (null_ptr): New function.
53644         (main): Use it.
53645         Reported by Jim Meyering.
53647 2009-12-10  Bruno Haible  <bruno@clisp.org>
53649         Use spaces for indentation, not tabs.
53650         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
53651         * m4/*.m4: Untabify.
53652         * build-aux/*.h: Untabify.
53653         * tests/**/*.[hc]: Untabify.
53654         * README: New section "Indent with spaces, not TABs", based on
53655         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
53656         * NEWS: Mention the change.
53658 2009-12-10  Bruno Haible  <bruno@clisp.org>
53660         pty test: Fix link error.
53661         * modules/pty-tests (Makefile.am): Add the default LDADD value to
53662         test_pty_LDADD.
53664 2009-12-07  Simon Josefsson  <simon@josefsson.org>
53666         * modules/pty: New file.
53667         * modules/pty-tests: New file.
53668         * m4/pty.m4: New file.
53669         * tests/test-pty.c: New file.
53670         * doc/glibc-headers/pty.texi: Modified.
53671         * doc/glibc-functions/forkpty.texi: Modified.
53672         * doc/glibc-functions/openpty.texi: Modified.
53674 2009-12-10  Bruno Haible  <bruno@clisp.org>
53676         Avoid syntax error in C++ mode.
53677         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
53679 2009-12-10  Bruno Haible  <bruno@clisp.org>
53681         Use sed with option -e.
53682         * gnulib-tool (func_version, func_emit_copyright_notice,
53683         func_emit_initmacro_end, func_import, func_create_testdir): Pass
53684         option -e to sed.
53685         * modules/link-warning (Makefile.am): Likewise.
53687 2009-12-10  Jim Meyering  <meyering@redhat.com>
53689         mgetgroups: do not write bytes beyond end of malloc'd buffer
53690         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
53691         username, we call getgroups with a one-element-shorter buffer,
53692         but still told it the length was original, max_n_groups.
53694 2009-12-09  Eric Blake  <ebb9@byu.net>
53696         cloexec: relax license
53697         * modules/cloexec (Maintainer): Add myself.
53698         (License): Use LGPL, not GPL.
53700         link-warning: optimize generation
53701         * modules/link-warning (Makefile.am): Reduce process usage.
53703 2009-12-09  Bruno Haible  <bruno@clisp.org>
53705         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
53706         workaround was added on 2009-11-17.
53708 2009-12-09  Jim Meyering  <meyering@redhat.com>
53709             Bruno Haible  <bruno@clisp.org>
53711         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
53712         * modules/link-warning (Makefile.am): Make the comment-removing sed
53713         command more robust in the face of bootstrap-prepended comment lines.
53715 2009-12-09  Bruno Haible  <bruno@clisp.org>
53717         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
53718         most one group.
53720 2009-12-09  Simon Josefsson <simon@josefsson.org>
53721             Bruno Haible  <bruno@clisp.org>
53723         * build-aux/link-warning.h: Add copyright notice.
53724         * modules/link-warning (Makefile.am): Generate link-warning.h from
53725         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
53726         * NEWS: Mention change in link-warning module.
53727         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
53728         * modules/dirent (Makefile.am): Add dependency to dirent.h.
53729         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
53730         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
53731         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
53732         * modules/math (Makefile.am): Add dependency to math.h.
53733         * modules/search (Makefile.am): Add dependency to search.h.
53734         * modules/signal (Makefile.am): Add dependency to signal.h.
53735         * modules/spawn (Makefile.am): Add dependency to spawn.h.
53736         * modules/stdio (Makefile.am): Add dependency to stdio.h.
53737         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
53738         * modules/string (Makefile.am): Add dependency to string.h.
53739         * modules/strings (Makefile.am): Add dependency to strings.h.
53740         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
53741         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
53742         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
53743         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
53744         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
53745         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
53746         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
53747         * modules/unistd (Makefile.am): Add dependency to unistd.h.
53748         * modules/wchar (Makefile.am): Add dependency to wchar.h.
53750 2009-12-09  Bruno Haible  <bruno@clisp.org>
53752         fchdir: Optimize away rpl_fstat when possible.
53753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
53754         REPLACE_OPEN_DIRECTORY.
53755         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
53757 2009-12-09  Bruno Haible  <bruno@clisp.org>
53759         * lib/fchdir.c: Update comment.
53761 2009-12-09  Bruno Haible  <bruno@clisp.org>
53763         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
53765 2009-12-08  Eric Blake  <ebb9@byu.net>
53767         fchdir: avoid memory leak on re-registration.
53768         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
53770 2009-12-08  Jim Meyering  <meyering@redhat.com>
53772         init.sh: avoid Solaris 10 /bin/sh portability problem
53773         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
53774         sourced script:
53775           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
53776           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
53777           bar
53778         tests/init.sh relied on that, accepting a --set-path=DIR argument,
53779         and two tests used that idiom.
53780         * tests/init.sh: Update suggested usage comments.
53781         (path_prepend_): New function, to be used in place
53782         of the --src-path=DIR option.
53783         (setup_): Move PATH-prepending code into path_prepend_.
53784         * tests/test-pread.sh: Adapt to new usage.
53785         * tests/test-xalloc-die.sh: Likewise.
53787 2009-12-08  Simon Josefsson  <simon@josefsson.org>
53789         * doc/gnulib.texi (Glibc pty.h): Add.
53790         * doc/glibc-functions/forkpty.texi: Add.
53791         * doc/glibc-functions/openpty.texi: Add.
53792         Suggested by Bruno Haible.
53794 2009-12-08  Eric Blake  <ebb9@byu.net>
53796         fchdir: fix logic bugs
53797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
53798         * tests/test-fchdir.c (main): Enhance test.
53799         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
53800         is in use.
53802         dup2: fix logic bugs
53803         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
53804         REPLACE_DUP2 to decide when rpl_dup2 is needed.
53805         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
53806         exists.
53807         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
53809 2009-12-07  Eric Blake  <ebb9@byu.net>
53811         unlink: fix m4 detection
53812         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
53814         unistd-safer: add unit test
53815         * modules/unistd-safer-tests: New file.
53816         * tests/test-dup-safer.c: Likewise.
53817         * tests/test-cloexec.c (setmode): Avoid compiler warning.
53818         * tests/test-dup2.c (setmode): Likewise.
53819         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
53821         cloexec: preserve text vs. binary across dup_cloexec
53822         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
53823         mode.
53824         * modules/dup2-tests (Depends-on): Add binary-io.
53825         * modules/cloexec-tests (Depends-on): Likewise.
53826         * tests/test-dup2.c (setmode, is_mode): New helpers.
53827         (main): Add tests that translation mode is preserved.
53828         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
53829         Reported by Bruno Haible.
53831         mgetgroups: reduce duplicate listings
53832         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
53833         resulting array.
53834         * tests/test-chown.h (test_chown): Simplify client.
53835         * tests/test-lchown.h (test_lchown): Likewise.
53837 2009-12-06  Bruno Haible  <bruno@clisp.org>
53839         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
53840         value.
53842 2009-12-06  Bruno Haible  <bruno@clisp.org>
53844         * lib/progname.c: Include stdio.h, stdlib.h.
53845         (set_program_name): Reject a NULL argument.
53847 2009-12-05  Eric Blake  <ebb9@byu.net>
53849         pipe2-safer: new module
53850         * modules/pipe2-safer: New file.
53851         * lib/unistd-safer.h (pipe2_safer): New prototype.
53852         * lib/unistd--.h (pipe2): New wrapper.
53853         * lib/pipe-safer.c (pipe2_safer): New function.
53854         * modules/pipe (Depends-on): Add pipe2-safer.
53855         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
53857         stdlib-safer: preserve cloexec flag for mkostemp[s]
53858         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
53859         fd_safer_flag.
53861         unistd-safer: allow preservation of cloexec status via flag
53862         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
53863         prototypes.
53864         * lib/dup-safer.c (dup_safer_flag): New function.
53865         * lib/fd-safer.c (fd_safer_flag): Likewise.
53866         * modules/cloexec (configure.ac): Set witness.
53868         test-dup2: enhance test
53869         * modules/dup2-tests (Depends-on): Add cloexec.
53870         * tests/test-dup2.c (main): Enhance test.
53872         cloexec: add dup_cloexec
53873         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
53874         header and comments.
53875         * lib/cloexec.c (set_cloexec_flag): Add comments.
53876         (dup_cloexec): New function, with mingw implementation borrowed
53877         from...
53878         * lib/w32spawn.h (dup_noinherit): ...here.
53879         * modules/execute (Depends-on): Add cloexec.
53880         * modules/pipe (Depends-on): Likewise.
53881         * modules/cloexec (Depends-on): Add dup2.
53882         * modules/cloexec-tests (Files): New file.
53883         * tests/test-cloexec.c: Likewise.
53885         test-xalloc-die: fix test for mingw
53886         * modules/xalloc-die-tests (Files): Add tests/init.sh.
53887         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
53888         directory and .exe suffix off argv[0] output.
53890         test-fseeko: fix test for mingw
53891         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
53892         than undefining fseek, so test will pass on mingw.
53894 2009-12-05  Bruno Haible  <bruno@clisp.org>
53896         * lib/progname.h (set_program_name): Clarify specification.
53897         * lib/progname.c (set_program_name): Likewise.
53898         Reported by Jim Meyering.
53900 2009-12-05  Jim Meyering  <meyering@redhat.com>
53902         maint.mk: backslash-escape parens in default regexp
53903         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
53904         backslash-escape the literal parentheses.
53906         maint.mk: news-date-check: use grep -E
53907         * top/maint.mk (today): Define a Make variable, not a...
53908         (news-date-check): ...shell variable.
53909         (news-date-regexp): Use the Make variable.
53910         Use grep's -E option.  Change the failing diagnostic to mention
53911         the variable, $(news-date-regexp).
53913 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
53915         maintainer-makefile: allow customization of NEWS entry format
53916         * top/maint.mk (news-date-regexp): New overridable variable.
53917         (news-date-check): Use it.
53919 2009-12-04  Eric Blake  <ebb9@byu.net>
53921         mgetgroups: add xgetgroups, and avoid ENOSYS failures
53922         * lib/mgetgroups.h (xgetgroups): New prototype.
53923         * lib/mgetgroups.c (xgetgroups): New wrapper.
53924         (mgetgroups): Handle ENOSYS.
53925         * modules/mgetgroups (Depends-on): Add realloc.
53926         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
53928         mgetgroups: avoid argument promotion issues with -1
53929         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
53930         for invalid gid_t.
53931         * tests/test-chown.h (getegid, test_chown): Likewise.
53932         * tests/test-lchown.h (getegid, test_lchown): Likewise.
53934 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
53936         exclude: Fix header file problems.
53937         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
53939 2009-12-01  Jim Meyering  <meyering@redhat.com>
53941         fts: fts_open: do not let an empty string cause immediate failure
53942         This is required in support of GNU rm, for which the command
53943         "rm A '' B" must process and remove both A and B, in spite of
53944         the empty string argument.
53945         * lib/fts.c (fts_open): Do not let the presence of an empty string
53946         cause fts_open to fail immediately.  Most fts-using tools must be
53947         able to process all arguments, in order, and can be expected to
53948         diagnose such arguments themselves.
53950 2009-11-30  Eric Blake  <ebb9@byu.net>
53952         utimens: fix compilation error
53953         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
53954         Declare variable at right scope.
53956 2009-11-29  Jim Meyering  <meyering@redhat.com>
53958         bootstrap: handle perl-5.11's changed --version output
53959         * build-aux/bootstrap (get_version): Handle perl separately,
53960         since perl-5.11's --version output is different.
53962 2009-11-28  Jim Meyering  <meyering@redhat.com>
53964         userspec: depend on the inttostr module, too
53965         * modules/userspec (Depends-on): Add inttostr.
53967         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
53968         * lib/userspec.c (parse_with_separator): Do not accept a user ID
53969         number of MAXUID when it evaluates to (uid_t) -1.
53970         Likewise for group ID.  Reported by Matt McCutchen in
53971         <http://savannah.gnu.org/bugs/?28113>
53973         userspec: reformat to use spaces, not TABs
53974         * lib/userspec.c: Expand TABs to spaces.
53975         Add Emacs' "indent-tabs-mode: nil" hint.
53977 2009-11-27  Eric Blake  <ebb9@byu.net>
53979         getopt-gnu: flush out another BSD bug
53980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
53981         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
53982         flush out BSD bug.
53983         * tests/test-getopt.h (test_getopt): End lists with NULL.
53984         * tests/test-getopt_long.h (test_getopt_long): Likewise.
53985         (test_getopt_long_posix): Enhance test.
53986         * modules/getopt-posix-tests (Depends-on): Add stdbool.
53987         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
53988         getopt-gnu.
53989         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53990         Likewise.
53992 2009-11-27  Simon Josefsson  <simon@josefsson.org>
53994         * modules/idpriv-droptemp-tests (Notice): Fix text.
53996 2009-11-27  Jim Meyering  <meyering@redhat.com>
53998         test-xalloc-die: avoid spurious failure due to libtool argv difference
53999         In a libtool-enabled project, this test would fail due to a difference
54000         in the emitted program name, e.g.,
54001         -test-xalloc-die: memory exhausted
54002         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
54003         Use program to avoid that.
54004         * modules/xalloc-die-tests (Depends-on): Add progname.
54005         * tests/test-xalloc-die.c: Include progname.h".
54006         (program_name): Remove decl.
54007         (main): Call set_program_name.
54008         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
54010 2009-11-26  Richard Jones  <rjones@redhat.com>
54012         w32sock: leave win32 error in place.
54013         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
54015 2009-11-26  Eric Blake  <ebb9@byu.net>
54017         init.sh: suggest to use skip_ and fail_ functions in comments
54018         * tests/init.sh: Add a sentence.
54020 2009-11-25  Bruno Haible  <bruno@clisp.org>
54022         init.sh: add documentation in comments
54023         * tests/init.sh: Add some developer and user documentation.
54025 2009-11-26  Jim Meyering  <meyering@redhat.com>
54027         init.sh: accommodate even those who specify bogus srcdir manually
54028         * tests/init.sh: Normally, srcdir is guaranteed by automake and
54029         configure-time tests to be sanitized, so that there is no need to
54030         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
54031         (with no double quotes) suffices.  However, since tests may be
54032         invoked manually, and since you may explicitly set srcdir to the
54033         name of a directory containing spaces, do quote its uses here.
54034         * tests/test-pread.sh: Likewise.
54035         Suggested by Bruno Haible.
54037         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
54038         * tests/test-pread.sh: Write no data into the pipe, because
54039         test-pread actually reads none.  This avoids a diagnostic,
54040         "bash: echo: write error: Broken pipe", that arises in the unusual
54041         event something is ignoring SIGPIPE, and might be interpreted
54042         as some sort of failure.  Reported by Bruno Haible.
54044 2009-11-25  Jim Meyering  <meyering@redhat.com>
54046         test-pread: cover failure with ESPIPE and EINVAL
54047         * tests/test-pread.c (main): Test for failure, too.
54048         * tests/test-pread.sh: Invoke with stdin on a pipe.
54049         Suggested by Eric Blake.
54051         pread: improvement and fix
54052         * modules/pread (Depends-on): Depend on lseek, for portability to
54053         e.g., mingw.  Suggested by Eric Blake.
54054         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
54056         unistd.in.h: correct declaration of pread
54057         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
54058         Reported by Richard W.M. Jones.
54060         test-pread.sh: distribute the test script
54061         * modules/pread-tests (Files): Include test-pread.sh.
54063         test-pread.sh: clean up
54064         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
54065         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
54066         That is unnecessary, since it's always ".".
54067         Suggestion from Eric Blake.
54069         test-pread.sh: make executable
54070         * tests/test-pread.sh: Set executable bit.
54071         Reported by Eric Blake.
54073         correct typo in test-pread.sh
54074         * tests/test-pread.sh: Add #! line.
54076         test pread
54077         * tests/test-pread.c: New file.
54078         * tests/test-pread.sh: Likewise.
54079         * modules/pread-tests: Likewise.
54081         pread: new module
54082         * modules/pread: New file.
54083         * lib/unistd.in.h (pread): Define/declare.
54084         * lib/pread.c (pread): New file.
54085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
54086         * modules/unistd (Makefile.am): Substitute witnesses.
54087         * doc/posix-functions/pread.texi (pread): Update.
54088         * MODULES.html.sh: Add pread.
54090 2009-11-25  Jim Meyering  <meyering@redhat.com>
54092         tests/init.sh: new file to be used via most *.sh tests
54093         * tests/init.sh: New file.
54095 2009-11-25  Eric Blake  <ebb9@byu.net>
54097         utimens: work around older Linux failure with symlinks
54098         * lib/utimens.c (lutimensat_works_really): New variable.
54099         (fdutimens, lutimens): Use it to manage kernels that support
54100         nanosecond times on files, but not on symlinks.
54101         Reported by Ondřej Vašík.
54103         utimes: fix configure grammar
54104         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
54106 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
54108         regex: Fix fastmap for multibyte character ranges.
54109         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
54110         characters when a multibyte character range is included.
54112 2009-11-22  Andy Wingo  <wingo@pobox.com>
54114         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
54115         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
54117 2009-11-24  Bruno Haible  <bruno@clisp.org>
54119         doc: Most *_l functions exist in MacOS X 10.5.
54120         * doc/posix-functions/duplocale.texi: Update platforms list.
54121         * doc/posix-functions/freelocale.texi: Likewise.
54122         * doc/posix-functions/newlocale.texi: Likewise.
54123         * doc/posix-functions/uselocale.texi: Likewise.
54124         * doc/posix-functions/isalnum_l.texi: Likewise.
54125         * doc/posix-functions/isalpha_l.texi: Likewise.
54126         * doc/posix-functions/isblank_l.texi: Likewise.
54127         * doc/posix-functions/iscntrl_l.texi: Likewise.
54128         * doc/posix-functions/isdigit_l.texi: Likewise.
54129         * doc/posix-functions/isgraph_l.texi: Likewise.
54130         * doc/posix-functions/islower_l.texi: Likewise.
54131         * doc/posix-functions/isprint_l.texi: Likewise.
54132         * doc/posix-functions/ispunct_l.texi: Likewise.
54133         * doc/posix-functions/isspace_l.texi: Likewise.
54134         * doc/posix-functions/isupper_l.texi: Likewise.
54135         * doc/posix-functions/iswalnum_l.texi: Likewise.
54136         * doc/posix-functions/iswalpha_l.texi: Likewise.
54137         * doc/posix-functions/iswblank_l.texi: Likewise.
54138         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54139         * doc/posix-functions/iswctype_l.texi: Likewise.
54140         * doc/posix-functions/iswdigit_l.texi: Likewise.
54141         * doc/posix-functions/iswgraph_l.texi: Likewise.
54142         * doc/posix-functions/iswlower_l.texi: Likewise.
54143         * doc/posix-functions/iswprint_l.texi: Likewise.
54144         * doc/posix-functions/iswpunct_l.texi: Likewise.
54145         * doc/posix-functions/iswspace_l.texi: Likewise.
54146         * doc/posix-functions/iswupper_l.texi: Likewise.
54147         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54148         * doc/posix-functions/isxdigit_l.texi: Likewise.
54149         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
54150         * doc/posix-functions/strcasecmp_l.texi: Likewise.
54151         * doc/posix-functions/strcoll_l.texi: Likewise.
54152         * doc/posix-functions/strfmon_l.texi: Likewise.
54153         * doc/posix-functions/strftime_l.texi: Likewise.
54154         * doc/posix-functions/strncasecmp_l.texi: Likewise.
54155         * doc/posix-functions/strxfrm_l.texi: Likewise.
54156         * doc/posix-functions/tolower_l.texi: Likewise.
54157         * doc/posix-functions/toupper_l.texi: Likewise.
54158         * doc/posix-functions/towctrans_l.texi: Likewise.
54159         * doc/posix-functions/towlower_l.texi: Likewise.
54160         * doc/posix-functions/towupper_l.texi: Likewise.
54161         * doc/posix-functions/wcscoll_l.texi: Likewise.
54162         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54163         * doc/posix-functions/wctrans_l.texi: Likewise.
54164         * doc/posix-functions/wctype_l.texi: Likewise.
54165         * doc/glibc-functions/strptime_l.texi: Likewise.
54166         * doc/glibc-functions/strtod_l.texi: Likewise.
54167         * doc/glibc-functions/strtof_l.texi: Likewise.
54168         * doc/glibc-functions/strtol_l.texi: Likewise.
54169         * doc/glibc-functions/strtold_l.texi: Likewise.
54170         * doc/glibc-functions/strtoll_l.texi: Likewise.
54171         * doc/glibc-functions/strtoul_l.texi: Likewise.
54172         * doc/glibc-functions/strtoull_l.texi: Likewise.
54173         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54174         * doc/glibc-functions/wcstod_l.texi: Likewise.
54175         * doc/glibc-functions/wcstof_l.texi: Likewise.
54176         * doc/glibc-functions/wcstol_l.texi: Likewise.
54177         * doc/glibc-functions/wcstold_l.texi: Likewise.
54178         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54179         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54180         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54182 2009-11-24  Bruno Haible  <bruno@clisp.org>
54184         duplocale: Fix logic bug.
54185         * lib/duplocale.c: Don't include <langinfo.h>.
54186         (_NL_LOCALE_NAME): Remove macro.
54187         (rpl_duplocale): Use setlocale instead of nl_langinfo.
54188         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
54190 2009-11-23  Jim Meyering  <meyering@redhat.com>
54192         test-update-copyright: don't hard-code /usr/bin/perl
54193         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
54194         perl to print the current year.  Gilles Espinasse reported that
54195         the replaced use of perl was hard-coded as /usr/bin/perl.
54197 2009-11-23  Bruno Haible  <bruno@clisp.org>
54199         duplocale: Add support for glibc 2.3.x.
54200         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
54202 2009-11-22  Bruno Haible  <bruno@clisp.org>
54204         vasnprintf: Tiny optimization.
54205         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
54206         MacOS X.
54208 2009-11-22  Bruno Haible  <bruno@clisp.org>
54210         Tests for module 'duplocale'.
54211         * modules/duplocale-tests: New file.
54212         * tests/test-duplocale.c: New file.
54214         New module 'duplocale'.
54215         * m4/duplocale.m4: New file.
54216         * lib/locale.in.h (duplocale): New declaration.
54217         * lib/duplocale.c: New file.
54218         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
54219         gl_LOCALE_H_DEFAULTS): New macros.
54220         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
54221         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
54222         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
54223         REPLACE_DUPLOCALE.
54224         * modules/duplocale: New file.
54225         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
54227 2009-11-22  Bruno Haible  <bruno@clisp.org>
54229         * modules/locale-tests (configure.ac): Test for newlocale function.
54230         * tests/test-locale.c: When the system has extended locale functions,
54231         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
54233         locale: Make locale_t available when possible.
54234         * lib/locale.in.h: Include <xlocale.h> when it exists.
54235         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
54236         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
54237         * modules/locale (Depends-on): Add extensions.
54238         (Makefile.am): Also substitute HAVE_XLOCALE_H.
54239         * doc/posix-headers/locale.texi: Document the problem with locale_t.
54241 2009-11-22  Bruno Haible  <bruno@clisp.org>
54243         Add comments.
54244         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
54245         invocation.
54246         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54247         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54248         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54250 2009-11-22  Bruno Haible  <bruno@clisp.org>
54252         error: account for the possibility of freopen (stdout).
54253         * lib/error.c: Include <unistd.h>.
54254         (flush_stdout): New function, extracted from error and error_at_line.
54255         Determine stdout's fd dynamically.
54256         (error, error_at_line): Invoke flush_stdout.
54257         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
54258         * modules/error (Depends-on): Add unistd.
54260 2009-11-22  Bruno Haible  <bruno@clisp.org>
54262         diffseq: Add comment.
54263         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
54265 2009-11-22  Jim Meyering  <meyering@redhat.com>
54267         c-stack: avoid defining an unused static function
54268         * lib/c-stack.c (find_stack_direction): Do not define this function
54269         when it will not be used.
54271         diffseq: avoid spurious gcc warnings
54272         * lib/diffseq.h (IF_LINT2): Define.
54273         (compareseq): Use it to initialize two members of "part".
54274         This avoids two used-uninitialized warnings.
54276 2009-11-21  Jim Meyering  <meyering@redhat.com>
54278         c-stack: avoid "ignoring return value of `write'" warning
54279         * lib/c-stack.c: Include "ignore-value.h".
54280         (die): Explicitly ignore each write return value.
54281         * modules/c-stack (Depends-on): Add ignore-value.
54283 2009-11-21  Bruno Haible  <bruno@clisp.org>
54285         diffseq: reduce scope of variable 'best'.
54286         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
54287         variable, earlier used for two different purposes.
54289 2009-11-21  Jim Meyering  <meyering@redhat.com>
54291         diffseq: remove useless assignment to "best"
54292         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
54293         assignment.  At that point "best" is already guaranteed to be zero.
54295 2009-11-20  Eric Blake  <ebb9@byu.net>
54297         build: mention ftp redirector in release announcements
54298         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
54299         values that used to come from cfg.mk; mention FTP redirect URL.
54300         * build-aux/announce-gen: Mention the mirror list.
54301         Suggested by Karl Berry.
54303         nanosleep: improve port to mingw
54304         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
54305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
54306         LIB_NANOSLEEP, but only when needed.
54307         * modules/select (Link): Document LIBSOCKET.
54308         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
54309         enough.
54311         nanosleep: work around cygwin bug
54312         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
54313         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
54314         bug.
54315         (getnow): Delete, not needed.
54316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
54317         LIB_CLOCK_GETTIME.
54318         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
54319         clock-time, gettime.
54320         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
54321         bug.
54322         * modules/nanosleep-tests: New test.
54323         * tests/test-nanosleep.c: New file.
54325         sleep: work around cygwin bug
54326         * lib/sleep.c (rpl_sleep): Work around the bug.
54327         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
54328         (gl_PREREQ_SLEEP): Delete unused macro.
54329         * modules/sleep (Depends-on): Add verify.
54330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
54331         * modules/unistd (Makefile.am): Substitute witness.
54332         * lib/unistd.in.h (sleep): Update prototype.
54333         * doc/posix-functions/sleep.texi (sleep): Document the bug.
54334         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
54335         * modules/sleep-tests (Depends-on): Check for alarm.
54337 2009-11-20  Jim Meyering  <meyering@redhat.com>
54339         maint.mk: improve sc_prohibit_magic_number_exit
54340         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
54341         so it does not match uses like System.exit(1).
54342         Add comments showing how to correct all offenders.
54344 2009-11-19  Eric Blake  <ebb9@byu.net>
54346         xalloc-die-tests: add missing library
54347         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
54349         test-xvasprintf: silence compiler warnings
54350         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
54351         empty string from gcc.
54353 2009-11-19  Jim Meyering  <meyering@redhat.com>
54355         xfreopen: new module, from coreutils
54356         * modules/xfreopen: New module.
54357         * lib/xfreopen.c: New file.
54358         * lib/xfreopen.h: New file.
54359         * MODULES.html.sh (File stream based Input/Output"): Add it.
54361 2009-11-19  Eric Blake  <ebb9@byu.net>
54363         manywarnings: depend on warnings
54364         * modules/manywarnings (Depends-on): Add warnings.
54366         build: avoid compiler warnings
54367         * lib/select.c (rpl_select): Delete unused variable.
54368         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
54370 2009-11-18  Eric Blake  <ebb9@byu.net>
54372         tests: avoid false negative with --with-packager
54373         * tests/test-version-etc.sh: Discard packager information.
54374         * tests/test-argp-version-etc-1.sh: Likewise.
54375         Reported by Mike Frysinger.
54377         utimens: fix regression on Solaris
54378         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
54379         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
54380         can only change fd timestamps via futimesat.  Instead, use an
54381         additional witness macro to avoid BSD bug.
54382         Reported by Jim Meyering.
54384 2009-11-17  Eric Blake  <ebb9@byu.net>
54386         usleep: use it to simplify tests
54387         * modules/stat-time-tests (Depends-on): Add usleep.
54388         (configure.ac): Drop usleep check.
54389         * modules/chown-tests (Depends-on, configure.ac): Likewise.
54390         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
54391         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
54392         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
54393         * modules/openat-tests (Depends-on, configure.ac): Likewise.
54394         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
54395         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
54396         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
54397         Likewise.
54398         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
54399         * tests/test-lchown.h (nap): Likewise.
54400         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
54401         * tests/test-stat-time.c (nap): Likewise.
54402         * tests/test-utimens-common.h (nap): Update comments.
54404         usleep: new module
54405         * modules/usleep: New file.
54406         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
54407         * lib/usleep.c (usleep): Likewise.
54408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
54409         * modules/unistd (Makefile.am): Substitute witnesses.
54410         * lib/unistd.in.h (usleep): Add declaration.
54411         * doc/pastposix-functions/usleep.texi (usleep): Document this.
54412         * MODULES.html.sh (Date and time): Likewise.
54413         * modules/usleep-tests (Depends-on): New test.
54414         * tests/test-usleep.c: New file.
54416         chown: work around OpenBSD bug
54417         * lib/chown.c (rpl_chown): Work around the bug.
54418         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
54419         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
54420         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
54421         * modules/chown (Depends-on): Add stdbool.
54422         * modules/lchown (Depends-on): Likewise.
54423         * doc/posix-functions/chown.texi (chown): Document the bug.
54424         * doc/posix-functions/lchown.texi (lchown): Likewise.
54425         * tests/test-lchown.h (test_chown): Relax test.
54427         mkstemp: avoid conflict with C++ keyword template
54428         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
54429         * lib/mkostemp.c (mkostemp): Likewise.
54430         * lib/mkostemps.c (mkostemps): Likewise.
54431         * lib/mkstemp.c (mkstemp): Likewise.
54432         * lib/mkstemps.c (mkstemps): Likewise.
54434         xalloc-die-tests: optimize
54435         * tests/test-xalloc-die.sh: Reduce number of processes.
54437 2009-11-17  Simon Josefsson  <simon@josefsson.org>
54439         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
54440         patch from ludo@gnu.org (Ludovic Courtès).
54442 2009-11-17  Jim Meyering  <meyering@redhat.com>
54444         version-etc: use proper license string
54445         * modules/version-etc (License): Use LGPL, not LGPLv3+.
54446         * modules/version-etc-fsf: Likewise.
54448 2009-11-17  Simon Josefsson  <simon@josefsson.org>
54450         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
54451         printed to stdout.  Deal with EOL differences.
54453 2009-11-17  Eric Blake  <ebb9@byu.net>
54455         unsetenv: work around Solaris bug
54456         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
54457         * lib/unsetenv.c (rpl_unsetenv): Work around it.
54458         Reported by Jim Meyering.
54460         vasnprintf: avoid compiler warnings
54461         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
54462         variables.
54463         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
54465 2009-11-17  Simon Josefsson  <simon@josefsson.org>
54467         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
54468         settings since xalloc-die is no longer the self test,
54469         xalloc-die.sh is.
54471 2009-11-17  Jim Meyering  <meyering@redhat.com>
54473         test-xalloc-die.sh: make the code agree with the commit log
54474         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
54475         at the end, just in case you happen to have a test-xalloc-die
54476         program in some other PATH directory.
54478         test-xalloc-die.sh: fix a portability bug
54479         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
54480         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
54481         Otherwise, argv[0] (as often seen in diagnostics) would be too
54482         system-dependent, sometimes with, and sometimes without the leading "./".
54484         version-etc-fsf: relax license to LGPLv3+
54485         * modules/version-etc-fsf (License): Relax license.
54487 2009-11-16  Eric Blake  <ebb9@byu.net>
54489         xalloc-die-tests: avoid printing null pointer
54490         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
54491         shell script.
54492         * tests/test-xalloc-die.c (program_name): Declare.
54493         * tests/test-xalloc-die.sh (tmpfiles): New file.
54495         setenv, unsetenv: work around various bugs
54496         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
54497         (setenv) [HAVE_SETENV]: Work around bugs.
54498         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
54499         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
54500         for bugs.
54501         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
54502         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
54503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
54504         * modules/stdlib (Makefile.am): Update substitutions.
54505         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
54506         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
54507         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
54508         * modules/setenv-tests: New test.
54509         * modules/unsetenv-tests: Likewise.
54510         * tests/test-setenv.c: New file.
54511         * tests/test-unsetenv.c: Likewise.
54513 2009-11-16  Jim Meyering  <meyering@redhat.com>
54515         version-etc: relax license to LGPLv3+
54516         * modules/version-etc (License): Relax license.
54518         better AC_REQUIRE expanded-before-required-warning avoidance
54519         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
54520         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
54521         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
54522         which is no longer needed.
54524 2009-11-16  Eric Blake  <ebb9@byu.net>
54526         test-freading: clean up temporary file
54527         * tests/test-freading.c (main): Remove file on success, and use
54528         ASSERT more liberally.
54529         Reported by Jim Meyering.
54531 2009-11-16  Jim Meyering  <meyering@redhat.com>
54533         avoid new AC_REQUIRE expanded-before-required warnings
54534         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
54535         merely using it.
54536         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
54537         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
54539 2009-11-15  Simon Josefsson  <simon@josefsson.org>
54541         * tests/test-xalloc-die.c: New file.
54542         * modules/xalloc-die-tests: New file.
54543         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
54544         XFAIL_TESTS so it can be appended by modules.
54546 2009-11-15  Simon Josefsson  <simon@josefsson.org>
54548         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
54549         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
54551 2009-11-14  Eric Blake  <ebb9@byu.net>
54553         fnmatch: avoid compiler warning
54554         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
54555         to silence compiler warning about mismatch signedness in ?:.
54556         Reported by Robert Millan.
54558         intprops: add double-inclusion guard
54559         * lib/intprops.h: Allow idempotent includes.
54560         Suggested by Bruce Korb.
54562         openat: detect Solaris fchownat bug
54563         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
54564         penalizing glibc chownat when only lchownat is broken.
54565         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
54566         trailing slash bugs.
54567         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
54568         * modules/openat-tests (Files): Include more files.
54569         (Depends-on): Add mgetgroups, sleep, stat-time.
54570         (configure.ac): Add additional checks.
54571         (Makefile.am): Build new test.
54572         * tests/test-fchownat.c: New file.
54574         lchown: detect Solaris and FreeBSD bug
54575         * lib/lchown.c (rpl_lchown): Work around bug.
54576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
54577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
54578         * modules/unistd (Makefile.am): Populate it.
54579         * lib/unistd.in.h (lchown): Update declaration.
54580         * doc/posix-functions/lchown.texi (lchown): Document the bug.
54581         * modules/lchown-tests: New file.
54582         * tests/test-lchown.h (test_lchown): Likewise.
54583         * tests/test-lchown.c (main): Likewise.
54585         chown: detect Solaris and FreeBSD bug
54586         * lib/chown.c (rpl_chown): Work around bug.
54587         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
54588         (gl_PREREQ_CHOWN): Delete.
54589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
54590         * modules/unistd (Makefile.am): Populate it.
54591         * lib/unistd.in.h (chown): Update declaration.
54592         * lib/lchown.c (chown): Update client.
54593         * modules/lchown (Depends-on): Add lstat.
54594         * doc/posix-functions/chown.texi (chown): Document the bug.
54595         * doc/posix-functions/getgroups.texi (getgroups): Document
54596         getgroups pitfall.
54597         * modules/chown-tests: New file.
54598         * tests/test-chown.h (test_chown): Likewise.
54599         * tests/test-chown.c (main): Likewise.
54601 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
54603         gnulib-tool: correctly detect absence of m4 directories
54604         * gnulib-tool: Avoid extra newline on data passed to wc -l.
54606 2009-11-14  Jim Meyering  <meyering@redhat.com>
54608         maint.mk: Prohibit inclusion of "xalloc.h" without use.
54609         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
54611 2009-11-14  John W. Eaton  <jwe@gnu.org>
54613         strftime.h: wrap function declaration in extern "C" block
54614         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
54616 2009-11-13  Eric Blake  <ebb9@byu.net>
54618         getgroups: avoid compiler warning
54619         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
54621         getgroups: work around FreeBSD bug
54622         * lib/getgroups.c (rpl_getgroups): Work around the bug.
54623         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
54624         * doc/posix-functions/getgroups.texi (getgroups): Document it.
54625         * tests/test-getgroups.c (main): Fix buffer overrun.
54627         getgroups: avoid compilation failure
54628         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
54629         * modules/getgroups (Depends-on): Add stdint.
54631 2009-11-13  Jim Meyering  <meyering@redhat.com>
54633         test-getgroups: avoid compilation failure
54634         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
54636 2009-11-13  Eric Blake  <ebb9@byu.net>
54638         mgetgroups: new module, taken from coreutils
54639         * modules/mgetgroups: New file.
54640         * lib/mgetgroups.h: Likewise.
54641         * lib/mgetgroups.c (mgetgroups): Likewise.
54642         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
54643         * MODULES.html.sh (Users and groups): Mention it.
54645         getgroups: don't expose GETGROUPS_T to user
54646         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
54647         an element at a time if GETGROUPS_T is wrong size.
54648         * lib/getugroups.h (getugroups): Change signature.
54649         * lib/unistd.in.h (getgroups): Likewise.
54650         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
54651         signature needs fixing.
54652         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
54653         AC_TYPE_GETGROUPS.
54654         * modules/group-member (Depends-on): Add getgroups.
54655         * lib/group-member.c (group_info, get_group_info): Use gid_t.
54656         (group_member): Rely on getgroups replacement.
54657         * lib/getugroups.c (getugroups): Use gid_t.
54658         * tests/test-getgroups.c (main): Likewise.
54659         * NEWS: Mention the signature change.
54660         * doc/posix-functions/getgroups.texi (getgroups): Mention the
54661         problem with signature.
54662         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
54663         GETGROUPS_T is still useful for setgroups.
54665         getgroups, getugroups: provide stubs for mingw
54666         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
54667         * lib/getugroups.c (getugroups): Likewise.
54668         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
54669         function.  Modernize replacement scheme.
54670         (gl_PREREQ_GETGROUPS): Delete.
54671         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
54672         * modules/getgroups (configure.ac): Declare witness.
54673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
54674         * modules/unistd (Depends-on): Substitute witness.
54675         * lib/unistd.in.h (getgroups): Declare replacement.
54677         getgroups: avoid calling exit
54678         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
54679         drop xalloc.
54680         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
54681         dependencies.
54682         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
54683         exiting, in the rare case of malloc failure.
54685         getgroups: fix logic error
54686         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
54687         has more than 20 groups.
54688         * modules/getgroups-tests: New test.
54689         * tests/test-getgroups.c: New file.
54691 2009-11-13  Simon Josefsson  <simon@josefsson.org>
54693         * tests/test-base64.c: Improve.
54695 2009-11-13  Simon Josefsson  <simon@josefsson.org>
54697         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
54698         Blake <ebb9@byu.net>.
54700 2009-11-13  Simon Josefsson  <simon@josefsson.org>
54702         * tests/test-xvasprintf.c: Add %s%s related checks.
54704 2009-11-12  Eric Blake  <ebb9@byu.net>
54706         version-etc: match standards.texi style
54707         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
54708         and use <> only for URLs.
54710 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
54712         fts: do not fail on a submount during traversal
54713         * lib/fts.c (fts_build): Read the stat info again after opening
54714         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
54715         Original report at http://bugzilla.redhat.com/501848.
54717 2009-11-12  Jim Meyering  <meyering@redhat.com>
54719         bootstrap: sync from coreutils
54720         * build-aux/bootstrap (bootstrap_epilogue): New function.
54721         Use git_modules_config in one more place.  This make bootstrap's
54722         --gnulib-srcdir option more useful for testing.
54724         bootstrap: generalize autoheader check
54725         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
54726         AC_CONFIG_HEADERS.
54728 2009-11-11  Eric Blake  <ebb9@byu.net>
54730         mkfifoat: use new modules for Solaris and BSD bugs
54731         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
54732         * lib/mkfifoat.c (mknodat): Split...
54733         * lib/mknodat.c (mknodat): ...into new file.
54734         * modules/mkfifoat (Files): Ship new file.
54735         (Depends-on): Add mkfifo, mknod.
54736         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
54737         (Depends-on): Add symlink.
54738         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
54739         redundant with test_mkfifo.h.
54740         (do_mkfifoat, do_mknodat): New helpers.
54742         mknod: new module
54743         * modules/mknod: New file.
54744         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
54745         * lib/mknod.c (mknod): Likewise.
54746         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
54747         defaults.
54748         * modules/sys_stat (Makefile.am): Substitute them.
54749         * lib/sys_stat.in.h (mknod): Declare replacement.
54750         * MODULES.html.sh (Support for systems lacking POSIX:2008):
54751         Document it.
54752         * doc/posix-functions/mknod.texi (mknod): Likewise.
54753         * modules/mknod-tests: New test.
54754         * tests/test-mknod.c: Likewise.
54756         mkfifo: new module
54757         * modules/mkfifo: New file.
54758         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
54759         * lib/mkfifo.c (mkfifo): Likewise.
54760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
54761         defaults.
54762         * modules/sys_stat (Makefile.am): Substitute them.
54763         * lib/sys_stat.in.h (mkfifo): Declare replacement.
54764         * MODULES.html.sh (Support for systems lacking POSIX:2008):
54765         Document it.
54766         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
54767         * modules/mkfifo-tests: New test.
54768         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
54769         from test-mkfifoat.c.
54770         * tests/test-mkfifo.c: New file.
54772         readlink: detect FreeBSD bug
54773         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
54774         slash on symlink.
54775         * doc/posix-functions/readlink.texi (readlink): Document the bug.
54776         * tests/test-readlink.h (test_readlink): Enhance test.
54778         symlink: detect FreeBSD bug
54779         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
54780         slash on symlink.
54781         * doc/posix-functions/symlink.texi (symlink): Document the bug.
54782         * tests/test-symlink.h (test_symlink): Enhance test.
54784 2009-11-10  Eric Blake  <ebb9@byu.net>
54786         link: detect FreeBSD bug
54787         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
54788         symlink.
54789         * doc/posix-functions/link.texi (link): Document the bug.
54790         * tests/test-link.h (test_link): Enhance test.
54791         * tests/test-linkat.c (main): Update caller.
54793         unlink, remove: detect FreeBSD bug
54794         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
54795         slash on symlink.
54796         * doc/posix-functions/unlink.texi (unlink): Document the bug.
54797         * doc/posix-functions/remove.texi (remove): Likewise.
54798         * tests/test-unlink.h (test_unlink): Enhance test.
54799         * tests/test-remove.c (main): Likewise.
54801 2009-11-09  Eric Blake  <ebb9@byu.net>
54803         rename: detect FreeBSD bug
54804         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
54805         slash on symlink.
54806         * modules/renameat-tests (Depends-on): Add filenamecat.
54807         * tests/test-rename.h (test_rename): Allow one more errno.
54808         * tests/test-renameat.c (main): Likewise.
54809         * doc/posix-functions/rename.texi (rename): Document the bug.
54811         open: detect FreeBSD bug
54812         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
54813         symlink.
54814         * doc/posix-functions/open.texi (open): Document the bug.
54815         * doc/posix-functions/utimes.texi (utimes): Likewise.
54816         * tests/test-open.h (test_open): Add parameters, and test symlink
54817         handling.
54818         * tests/test-open.c (main): Adjust caller.
54819         * tests/test-fcntl-safer.c (main): Likewise.
54820         * modules/open-tests (Depends-on): Add stdbool, symlink.
54821         * modules/fcntl-safer-tests (Depends-on): Likewise.
54822         * tests/test-openat.c (main): Add test-open tests.
54824         stat: detect FreeBSD bug
54825         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
54826         symlink.
54827         * doc/posix-functions/stat.texi (stat): Document the bug.
54828         * tests/test-stat.h (test_stat_func): Add argument.
54829         * tests/test-stat.c (main): Adjust caller.
54830         * tests/test-fstatat.c (main): Likewise.
54831         * modules/stat-tests (Depends-on): Add stdbool, symlink.
54832         Reported by Jim Meyering.
54834 2009-11-09  James Youngman  <jay@gnu.org>
54836         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
54837         * lib/strftime.c: Correct placement of #include "ignore-value.h".
54839 2009-11-08  Jim Meyering  <meyering@redhat.com>
54841         utimens: remove invalid futimesat call
54842         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
54843         It used the file descriptor of the target file as the DIR_FD
54844         parameter and NULL as the file name.  That caused failure with
54845         errno == EFAULT on FreeBSD-8.0-rc2
54847 2009-11-07  Eric Blake  <ebb9@byu.net>
54849         fflush, freadseek: use fseeko, not fseek
54850         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
54851         (clear_ungetc_buffer): Avoid potential problems on large files.
54852         * lib/freadseek.c (freadseek): Likewise.
54853         * modules/freadseek (Depends-on): Add fseeko.
54854         * modules/fseek (configure.ac): Set a witness.
54855         * tests/test-fflush.c (main): Use fseeko.
54856         * tests/test-fpurge.c (fseek): Disable link warning.
54857         * tests/test-freadable.c (fseek): Likewise.
54858         * tests/test-freading.c (fseek): Likewise.
54859         * tests/test-fseeko.c (fseek): Likewise.
54860         * tests/test-ftell.c (fseek): Likewise.
54861         * tests/test-ftello.c (fseek): Likewise.
54862         * tests/test-fwritable.c (fseek): Likewise.
54863         * tests/test-fwriting.c (fseek): Likewise.
54865 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54867         * modules/memchr (Depends-on): Drop getpagesize dependency.
54869 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54871         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
54872         Reported by Ludovic Courtès.
54873         * build-aux/pmccabe2html: Improve example usage.
54874         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
54876 2009-11-06  Jim Meyering  <meyering@redhat.com>
54878         do-release-commit-and-tag: New module.
54879         Automate the release-commit and tag process.
54880         * build-aux/do-release-commit-and-tag: New script, from coreutils.
54881         * modules/do-release-commit-and-tag: New file.
54882         * MODULES.html.sh (Support for maintaining and releasing): Add it.
54884 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54886         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
54887         because test-select.c uses inet_pton.
54889 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54891         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
54892         GETADDRINFO_LIB.  Bump serial number.
54893         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
54894         Suggested by Eric Blake <ebb9@byu.net>.
54896 2009-11-05  Eric Blake  <ebb9@byu.net>
54898         strtod: detect darwin bug
54899         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
54900         Reported by Leo Davis.
54902         freopen-safer: new module
54903         * modules/freopen-safer: New module.
54904         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
54905         * lib/freopen-safer.c (freopen_safer): New file.
54906         * lib/stdio-safer.h (freopen_safer): New declaration.
54907         * lib/stdio--.h (freopen): New override.
54908         * MODULES.html.sh (File stream based Input/Output): Mention it.
54909         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
54910         freopen-safer module.
54911         * doc/posix-functions/stderr.texi (stderr): Likewise.
54912         * doc/posix-functions/stdin.texi (stdin): Likewise.
54913         * doc/posix-functions/stdout.texi (stdout): Likewise.
54914         * modules/freopen-safer-tests: New test.
54915         * tests/test-reopen-safer.c: New file.
54917 2009-11-05  Jim Meyering  <meyering@redhat.com>
54919         maint.mk: Prohibit inclusion of "close-stream.h" without use.
54920         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
54922 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54924         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
54926 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54928         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
54930 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54932         Fix link error.
54933         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
54934         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54936 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54938         * tests/test-func.c: Also test value of __func__.
54940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54942         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
54943         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
54945 2009-11-05  Bruno Haible  <bruno@clisp.org>
54947         Fix link error.
54948         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
54949         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54950         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
54952 2009-11-05  Bruno Haible  <bruno@clisp.org>
54954         Tests for module 'inet_pton'.
54955         * modules/inet_pton-tests: New file.
54956         * tests/test-inet_pton.c: New file.
54958 2009-11-05  Bruno Haible  <bruno@clisp.org>
54960         Tests for module 'inet_ntop'.
54961         * modules/inet_ntop-tests: New file.
54962         * tests/test-inet_ntop.c: New file.
54964 2009-11-04  Eric Blake  <ebb9@byu.net>
54966         stdlib-safer: wrap all mkstemp variants
54967         * modules/mkostemp (configure.ac): Set witness.
54968         * modules/mkostemps (configure.ac): Likewise.
54969         * modules/mkstemps (configure.ac): Likewise.
54970         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
54971         (mkstemps_safer): Wrap more functions.
54972         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
54973         wrapping.
54974         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
54975         (mkstemps_safer): Implement the wrappers.
54977         mkstemps, mkostemps: new modules
54978         * modules/mkostemps: New module.
54979         * modules/mkstemps: Likewise.
54980         * lib/mkostemps.c (mkostemps): New file.
54981         * lib/mkstemps.c (mkstemps): Likewise.
54982         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
54983         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
54984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
54985         * modules/stdlib (Makefile.am): Substitute them.
54986         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
54987         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
54988         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
54989         * doc/gnulib.texi (Glibc stdlib.h): Include them.
54990         * MODULES.html.sh (File system functions): Mention them.
54992         tempname: resync from glibc
54993         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
54994         same values for __GT_FILE as glibc.  Abort even when assertions
54995         are disabled.
54996         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
54997         match its value otherwise.  Allow idempotent inclusion.
54998         * lib/mkdtemp.c (mkdtemp): Adjust caller.
54999         * lib/mkostemp.c (mkostemp): Likewise.
55000         * lib/mkstemp.c (mkstemp): Likewise.
55001         * lib/tmpfile.c (tmpfile): Likewise.
55002         * NEWS: Document this.
55004         utimens: fix use of futimens on older Linux
55005         * lib/utimens.c (fdutimens): Use updated, rather than original,
55006         timespec to avoid bug in older Linux kernel.
55007         Reported by Simon Josefsson.
55009 2009-11-04  Bruno Haible  <bruno@clisp.org>
55011         Make num_processors more flexible and consistent.
55012         * lib/nproc.h (enum nproc_query): New type.
55013         (num_processors): Add a 'query' argument.
55014         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
55015         (num_processors): Add a 'query' argument. Test the value of the
55016         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
55017         mingw, count the number of CPUs available for the current process.
55018         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
55019         Check for sched_getaffinity and sched_getaffinity_np.
55020         * modules/nproc (Depends-on): Add c-ctype, extensions.
55021         * NEWS: Mention the change.
55023 2009-11-03  Bruno Haible  <bruno@clisp.org>
55025         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
55027 2009-11-03  Jim Meyering  <meyering@redhat.com>
55029         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
55030         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
55031         if it is defined.
55033 2009-11-02  Eric Blake  <ebb9@byu.net>
55035         mktime, timegm: share common declaration
55036         * lib/mktime-internal.h: New file.
55037         * lib/mktime.c: Use it rather than open-coding a declaration.
55038         * lib/timegm.c: Likewise.
55039         * modules/mktime (Files): Ship it.
55040         * modules/timegm (Files): Likewise.
55041         Suggested by Bruno Haible.
55043         test-update-copyright: update test to match script changes
55044         * tests/test-update-copyright.sh: Avoid hard-coding perl
55045         location.  Don't update *.bak created by earlier runs.
55047 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55048             Simon Josefsson  <simon@josefsson.org>
55049             Bruno Haible  <bruno@clisp.org>
55051         Fix link error on Solaris 8.
55052         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
55053         also in libnsl. Define also INET_PTON_LIB.
55054         * modules/inet_pton (Link): New section.
55056 2009-11-02  Simon Josefsson  <simon@josefsson.org>
55057             Bruno Haible  <bruno@clisp.org>
55059         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
55060         * modules/inet_ntop (Link): New section.
55061         Reported by Boyan Kasarov <bkasarov@gmail.com>.
55063 2009-11-02  Eric Blake  <ebb9@byu.net>
55065         maint: avoid compiler warnings in m4 macros
55066         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
55067         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
55069 2009-11-02  Simon Josefsson  <simon@josefsson.org>
55071         * m4/pmccabe2html.m4: Remove file.
55072         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
55073         function.  Change maintainer.
55074         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
55075         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
55076         Courtès).
55078 2009-10-31  Eric Blake  <ebb9@byu.net>
55080         fseeko: fix m4 regression
55081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
55082         regression from 2009-10-27.
55083         Reported by Ralf Wildenhues.
55085 2009-10-31  Jim Meyering  <meyering@redhat.com>
55087         inttostr: aesthetics and improved (compile-time) safety
55088         Define inttype_is_signed rather than inttype_is_unsigned,
55089         since the sole use is via "#if inttype_is_signed".
55090         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
55091         inttype_is_unsigned.
55092         * lib/offtostr.c (inttype_is_signed): Likewise.
55093         * lib/uinttostr.c (inttype_is_signed): Likewise.
55094         * lib/umaxtostr.c (inttype_is_signed): Likewise.
55095         * lib/inttostr.c (inttostr): Use verify to cross-check the
55096         inttype_is_signed value and the signedness of the actual type.
55097         * modules/inttostr (Depends-on): Add verify.
55099 2009-10-30  Eric Blake  <ebb9@byu.net>
55101         build: avoid compiler warnings
55102         * lib/fchmodat.c (lchmod): Mark unused variables.
55103         * lib/getopt.c (_getopt_initialize): Likewise.
55104         * lib/mktime.c (__mktime_internal): Provide prototype.
55105         * lib/inttostr.c (inttostr): Avoid compiler warning even with
55106         older gcc that do not understand #pragma GCC diagnostic.
55107         * lib/uinttostr.c (inttype_is_unsigned): Define.
55108         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
55110 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
55112         stat: fix compilation on AIX
55113         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
55114         only see struct stat64.
55116 2009-10-30  Eric Blake  <ebb9@byu.net>
55118         exclude: make more robust
55119         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
55120         rather than masking a coding bug.
55121         Suggested by Bruno Haible.
55123 2009-10-30  Jim Meyering  <meyering@redhat.com>
55125         perl scripts: remove #!/usr/bin/perl in favor of more portable...
55126         Rather than putting #!/usr/bin/perl on the first line,
55127         start with a variant of what's recommended by "man perlrun" that
55128         invokes the first "perl" program from your shell's search path.
55129         * build-aux/gitlog-to-changelog: Replace #!... as above.
55130         Add a "Local Variables" perl mode setting.
55131         Prompted by a patch from Ludovic Courtès.
55132         Improved by Eric Blake.
55133         * build-aux/useless-if-before-free: Likewise.
55134         * build-aux/announce-gen: Likewise.
55135         * build-aux/update-copyright: Likewise.
55137 2009-10-29  Eric Blake  <ebb9@byu.net>
55139         filenamecat-lgpl: adjust clients
55140         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
55141         filenamecat.
55142         * modules/renameat (Depends-on): Likewise.
55144         filenamecat: split into filenamecat-lgpl
55145         * modules/filenamecat-lgpl: New module.
55146         * modules/filenamecat (Files): Move library-safe files into
55147         filenamecat-lgpl.
55148         (Depends-on): Add filenamecat-lgpl.
55149         (configure.ac): Declare witness.
55150         * lib/filenamecat.h (file_name_concat): Only declare when using
55151         GPL module.
55152         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
55153         Move...
55154         * lib/filenamecat-lgpl.c: ...into new file.
55155         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
55156         (gl_FILE_NAME_CONCAT): Use it.
55157         * MODULES.html.sh (File system functions): Mention new module.
55159         argp: avoid memory leak
55160         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
55161         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
55162         base_name, since the latter malloc()s and can call exit().
55163         Leak introduced 2006-07-03.
55165         dirname-lgpl: adjust clients that don't need full dirname
55166         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
55167         * modules/filenamecat (Depends-on): Likewise.
55168         * modules/linkat (Depends-on): Likewise.
55169         * modules/mkancesdirs (Depends-on): Likewise.
55170         * modules/mkdir (Depends-on): Likewise.
55171         * modules/openat (Depends-on): Likewise.
55172         * modules/savewd (Depends-on): Likewise.
55173         * modules/rename (Depends-on): Likewise.
55174         (License): Relax license.
55175         * modules/mkdir-tests (Depends-on): Drop progname.
55176         (Makefile.am): Delete unneeded LDADD.
55177         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
55179         dirname: split into dirname-lgpl
55180         * modules/dirname-lgpl: New module.
55181         * modules/dirname (Files): Move library-safe files into
55182         dirname-lgpl.
55183         (Depends-on): Add dirname-lgpl.
55184         (configure.ac): Declare witness.
55185         * modules/double-slash-root (License): Relax license.
55186         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
55187         module.
55188         * lib/dirname.c (dir_len, mdir_name): Move...
55189         * lib/dirname-lgpl.c: ...into new file.
55190         * lib/basename.c (last_component, base_len): Move...
55191         * lib/basename-lgpl.c: ...into new file.
55192         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
55193         (gl_DIRNAME): Use it.
55194         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
55195         Mention new module.
55196         * modules/dirname-tests (Depends-on): Add progname.
55197         * tests/test-dirname.c (program_name): Delete.
55199         mkdir: make safe for libraries
55200         * modules/mkdir (Depends-on): Drop xalloc.
55201         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
55202         exit.
55204         tests: avoid some compiler warnings
55205         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
55206         literals.
55207         * tests/test-memchr.c (main): Avoid type mismatch.
55208         * tests/test-arpa_inet.c (main): Avoid unused parameters.
55209         * tests/test-base64.c (main): Likewise.
55210         * tests/test-getdelim.c (main): Likewise.
55211         * tests/test-gethostname.c (main): Likewise.
55212         * tests/test-getline.c (main): Likewise.
55213         * tests/test-netinet_in.c (main): Likewise.
55214         * tests/test-select.c (open_server_socket, main): Likewise.
55215         * tests/test-select-stdin.c (main): Likewise.
55216         * tests/test-sockets.c (main): Likewise.
55217         * tests/test-strsignal.c (main): Likewise.
55218         * tests/test-sys_select.c (main): Likewise.
55219         * tests/test-sys_socket.c (main): Likewise.
55220         * tests/test-u64.c (main): Likewise.
55221         * tests/test-xfprintf-posix.c (main): Likewise.
55222         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
55224         sockets: avoid compiler warning
55225         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
55227         maint: detect usage(1) and other suspicious exits
55228         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
55230 2009-10-29  Jim Meyering  <meyering@redhat.com>
55232         timespec: long-to-int truncation could make timespec_cmp malfunction
55233         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
55234         a multiple of 2^32 nanoseconds as no difference.
55236 2009-10-28  Jim Meyering  <meyering@redhat.com>
55238         fprintftime: wrap macro code argument in "do {...} while(0)"
55239         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
55240         cpy macro must be a statement that can be followed by a semicolon.
55241         Now that the else clause contains a comment and is hence longer
55242         than one line, I require curly braces.  That in turn requires
55243         that we wrap this code block in the standard do...while(0).
55245         fprintftime: remove stray semicolon from previous change
55246         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
55248         fprintftime: avoid a warning about ignored fwrite return value
55249         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
55250         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
55251         that is unsafe.
55252         * modules/fprintftime (Depends-on): Add ignore-value.
55254         exclude: avoid an unwarranted warning
55255         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
55257 2009-10-27  Eric Blake  <ebb9@byu.net>
55259         fseek: avoid compilation failure when fflush is replaced
55260         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
55261         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
55262         module is in use.
55263         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
55264         module is not in use; since REPLACE_FSEEK worked otherwise.
55265         (GNULIB_FTELLO): Likewise for ftell.
55266         Reported by Ian Beckwith and others.
55268 2009-10-27  Bruno Haible  <bruno@clisp.org>
55270         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
55271         Reported by Jim Meyering.
55273 2009-10-27  Jim Meyering  <jim@meyering.net>
55274             Bruno Haible  <bruno@clisp.org>
55276         Avoid warning despite dropping the return value of fwrite.
55277         * lib/unicodeio.c: Include ignore-value.h.
55278         (fwrite_success_callback): Explicitly ignore fwrite's return value.
55279         * modules/unicodeio (Depends-on): Add ignore-value.
55281 2009-10-26  Eric Blake  <ebb9@byu.net>
55283         areadlinkat: fix fallback path
55284         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
55285         pointer and zero.
55287 2009-10-22  Pádraig Brady  <P@draigBrady.com>
55289         Use a better IO block size for modern systems
55290         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
55291         * lib/md2.c: Likewise.
55292         * lib/md4.c: Likewise.
55293         * lib/md5.c: Likewise.
55294         * lib/sha1.c: Likewise.
55295         * lib/sha256.c: Likewise.
55296         * lib/sha512.c: Likewise.
55298 2009-10-22  Eric Blake  <ebb9@byu.net>
55300         tests: avoid several compiler warnings
55301         * tests/test-getcwd.c (main): Avoid buffer underflow.
55302         * tests/test-getdate.c (main): String literals are not safe with
55303         putenv, so use setenv.  Declare unused argument.
55304         * modules/getdate-tests (Depends-on): Add setenv.
55305         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
55306         problems with string literals in char *.
55307         * tests/test-hash.c (main): Avoid shadowing declaration.
55308         (insert_new): Treat string literals as char const *.
55309         * tests/test-getopt.h (test_getopt): Likewise.
55310         (getopt_loop): Alter types to minimize casting elsewhere.
55311         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
55312         (test_getopt_long_posix): Likewise.
55313         (do_getopt_long): Add wrapper to minimize casting.
55314         * tests/test-atexit.c (clear_temp_file): Use void.
55315         * tests/test-areadlink-with-size.c (main): Declare unused
55316         arguments.
55317         * tests/test-areadlink.c (main): Likewise.
55318         * tests/test-areadlinkat-with-size.c (main): Likewise.
55319         * tests/test-areadlinkat.c (main): Likewise.
55320         * tests/test-canonicalize-lgpl.c (main): Likewise.
55321         * tests/test-canonicalize.c (main): Likewise.
55322         * tests/test-dirent-safer.c (main): Likewise.
55323         * tests/test-dirname.c (main): Likewise.
55324         * tests/test-dup2.c (main): Likewise.
55325         * tests/test-fchdir.c (main): Likewise.
55326         * tests/test-fcntl-h.c (main): Likewise.
55327         * tests/test-fcntl-safer.c (main): Likewise.
55328         * tests/test-fdopendir.c (main): Likewise.
55329         * tests/test-fdutimensat.c (main): Likewise.
55330         * tests/test-fflush.c (main): Likewise.
55331         * tests/test-filenamecat.c (main): Likewise.
55332         * tests/test-filevercmp.c (main): Likewise.
55333         * tests/test-fopen-safer.c (main): Likewise.
55334         * tests/test-fopen.c (main): Likewise.
55335         * tests/test-fpending.c (main): Likewise.
55336         * tests/test-fpurge.c (main): Likewise.
55337         * tests/test-freading.c (main): Likewise.
55338         * tests/test-fstatat.c (main): Likewise.
55339         * tests/test-fsync.c (main): Likewise.
55340         * tests/test-futimens.c (main): Likewise.
55341         * tests/test-getndelim2.c (main): Likewise.
55342         * tests/test-gettimeofday.c (main): Likewise.
55343         * tests/test-getopt.c (main): Likewise.
55344         * tests/test-i-ring.c (main): Likewise.
55345         * tests/test-inttypes.c (main): Likewise.
55346         * tests/test-link.c (main): Likewise.
55347         * tests/test-lstat.c (main): Likewise.
55348         * tests/test-math.c (main): Likewise.
55349         * tests/test-md5.c (main): Likewise.
55350         * tests/test-memchr2.c (main): Likewise.
55351         * tests/test-memrchr.c (main): Likewise.
55352         * tests/test-mkdir.c (main): Likewise.
55353         * tests/test-mkdirat.c (main): Likewise.
55354         * tests/test-mkfifoat.c (main): Likewise.
55355         * tests/test-open.c (main): Likewise.
55356         * tests/test-openat-safer.c (main): Likewise.
55357         * tests/test-openat.c (main): Likewise.
55358         * tests/test-quotearg.c (main): Likewise.
55359         * tests/test-rawmemchr.c (main): Likewise.
55360         * tests/test-readlink.c (main): Likewise.
55361         * tests/test-remove.c (main): Likewise.
55362         * tests/test-rename.c (main): Likewise.
55363         * tests/test-renameat.c (main): Likewise.
55364         * tests/test-rmdir.c (main): Likewise.
55365         * tests/test-sha1.c (main): Likewise.
55366         * tests/test-signal.c (main): Likewise.
55367         * tests/test-sigaction.c (main): Likewise.
55368         * tests/test-stat.c (main): Likewise.
55369         * tests/test-stat-time.c (main): Likewise.
55370         * tests/test-stddef.c (main): Likewise.
55371         * tests/test-stdint.c (main): Likewise.
55372         * tests/test-stdio.c (main): Likewise.
55373         * tests/test-stdlib.c (main): Likewise.
55374         * tests/test-strchrnul.c (main): Likewise.
55375         * tests/test-strerror.c (main): Likewise.
55376         * tests/test-string.c (main): Likewise.
55377         * tests/test-strtod.c (main): Likewise.
55378         * tests/test-strverscmp.c (main): Likewise.
55379         * tests/test-symlink.c (main): Likewise.
55380         * tests/test-symlinkat.c (main): Likewise.
55381         * tests/test-sys_stat.c (main): Likewise.
55382         * tests/test-sys_time.c (main): Likewise.
55383         * tests/test-time.c (main): Likewise.
55384         * tests/test-unistd.c (main): Likewise.
55385         * tests/test-unlink.c (main): Likewise.
55386         * tests/test-unlinkat.c (main): Likewise.
55387         * tests/test-utimens.c (main): Likewise.
55388         * tests/test-utimensat.c (main): Likewise.
55389         * tests/test-version-etc.c (main): Likewise.
55390         * tests/test-wchar.c (main): Likewise.
55391         * tests/test-wctype.c (main): Likewise.
55392         * tests/test-xprintf-posix.c (main): Likewise.
55393         * tests/test-posixtm.c (main): Likewise.
55394         (STREQ): Delete unused macro.
55395         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
55396         shadowed variables.
55397         * tests/test-memchr.c (main): Likewise.
55399 2009-10-21  Eric Blake  <ebb9@byu.net>
55401         areadlinkat: avoid failure on older glibc
55402         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
55403         rather than mis-comparing 0 against FUNC_RESULT of char*.
55405 2009-10-21  Bruno Haible  <bruno@clisp.org>
55407         * modules/stpncpy (License): Relicense under LGPLv2+.
55408         Reported by David Lutterkort <lutter@redhat.com>.
55410 2009-10-20  Eric Blake  <ebb9@byu.net>
55412         utimensat: work around Solaris 9 bug
55413         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
55414         has trailing slash bugs.
55415         * tests/test-lutimens.h (test_lutimens): Enhance test.
55416         * tests/test-utimens.h (test_utimens): Likewise.
55417         * doc/posix-functions/utime.texi (utime): Enhance documentation.
55418         * doc/posix-functions/utimes.texi (utimes): Likewise.
55419         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
55420         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
55421         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
55422         * doc/posix-functions/futimens.texi (futimens): Likewise.
55424         fdutimensat: new module
55425         * modules/fdutimensat: New file.
55426         * lib/fdutimensat.c (fdutimensat): Likewise.
55427         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
55428         * MODULES.html.sh (File system functions): Mention module.
55429         * modules/fdutimensat-tests: New test.
55430         * tests/test-fdutimensat.c: Likewise.
55432         doc: regenerate INSTALL
55433         * doc/INSTALL: Reflect recent autoconf update.
55434         * doc/INSTALL.ISO: Likewise.
55435         * doc/INSTALL.UTF-8: Likewise.
55437 2009-10-20  Pádraig Brady  <P@draigBrady.com>
55439         acl: warn if ACL support is not detected
55440         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
55442 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
55444         * lib/nproc.h: Add extern "C" block for C++.
55446 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
55447             Bruno Haible  <bruno@clisp.org>
55449         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
55450         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
55451         * doc/posix-functions/isalpha.texi: Likewise.
55452         * doc/posix-functions/isblank.texi: Likewise.
55453         * doc/posix-functions/iscntrl.texi: Likewise.
55454         * doc/posix-functions/isdigit.texi: Likewise.
55455         * doc/posix-functions/isgraph.texi: Likewise.
55456         * doc/posix-functions/islower.texi: Likewise.
55457         * doc/posix-functions/isprint.texi: Likewise.
55458         * doc/posix-functions/ispunct.texi: Likewise.
55459         * doc/posix-functions/isspace.texi: Likewise.
55460         * doc/posix-functions/isupper.texi: Likewise.
55461         * doc/posix-functions/isxdigit.texi: Likewise.
55463 2009-10-18  Bruno Haible  <bruno@clisp.org>
55465         Tests for module 'isblank'.
55466         * modules/isblank-tests: New file.
55467         * tests/test-isblank.c: New file.
55469         New module 'isblank'.
55470         * lib/isblank.c: New file.
55471         * m4/isblank.m4: New file.
55472         * modules/isblank: New file.
55473         * doc/posix-functions/isblank.texi: Mention the new module.
55475 2009-10-18  Bruno Haible  <bruno@clisp.org>
55477         New module 'ctype'.
55478         * lib/ctype.in.h: New file.
55479         * m4/ctype.m4: New file.
55480         * modules/ctype: New file.
55481         * doc/posix-headers/ctype.texi: Mention the new module.
55483 2009-10-18  Jim Meyering  <meyering@redhat.com>
55485         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
55486         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
55487         right after its initialization, rather than farther down.
55488         Keeping these in close proximity makes it easier to ensure
55489         that each such variable is initialized.  E.g.,
55491             LIB_CLOCK_GETTIME=
55492             AC_SUBST([LIB_CLOCK_GETTIME])
55494         This change also increments these serial numbers.
55495         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
55496         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55499 2009-10-18  Bruno Haible  <bruno@clisp.org>
55501         Don't let environment variables perturb build.
55502         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
55503         (gl_PREREQ_GETHRXTIME): ... not here.
55505 2009-10-18  Bruno Haible  <bruno@clisp.org>
55507         Avoid symlink attack in localcharset module.
55508         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
55509         (O_NOFOLLOW): Define fallback.
55510         (get_charset_aliases): Don't open the file if it is a symbolic link.
55511         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
55512         gl_FCNTL_H.
55513         (gl_FCNTL_H): Require it.
55514         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
55515         * modules/localcharset (Files): Add m4/fcntl_h.m4.
55516         Reported by Fergal Glynn <fglynn@veracode.com>.
55518 2009-10-18  Bruno Haible  <bruno@clisp.org>
55520         Implement nproc for mingw.
55521         * lib/nproc.c: Include <windows.h>
55522         (num_processors): On native Windows platforms, try GetSystemInfo.
55524 2009-10-18  Bruno Haible  <bruno@clisp.org>
55526         Implement nproc for IRIX.
55527         * lib/nproc.c: Include <sys/sysmp.h>.
55528         (num_processors): On IRIX systems, try sysmp.
55529         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
55531 2009-10-18  Bruno Haible  <bruno@clisp.org>
55533         Implement nproc for HP-UX.
55534         * lib/nproc.c: Include <sys/pstat.h>
55535         (num_processors): On HP-UX systems, try pstat_getdynamic.
55536         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
55537         pstat_getdynamic.
55539 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
55540             Bruno Haible  <bruno@clisp.org>
55542         Implement nproc for NetBSD, OpenBSD.
55543         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
55544         (ARRAY_SIZE): New macro.
55545         (num_processors): On BSD systems, try sysctl of HW_NCPU.
55546         * m4/nproc.m4: New file.
55547         * modules/nproc (Files): Add m4/nproc.m4.
55548         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
55549         (Makefile.am): Instead, augment lib_SOURCES.
55551 2009-10-18  Bruno Haible  <bruno@clisp.org>
55553         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
55554         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
55555         sys/param.h.
55557 2009-10-16  Eric Blake  <ebb9@byu.net>
55559         utimensat: new module
55560         * modules/utimensat: New file.
55561         * lib/utimensat.c (utimensat): Likewise.
55562         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55563         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
55564         so we can work around Linux bugs.
55565         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
55566         * modules/sys_stat (Makefile.am): Substitute them.
55567         * lib/sys_stat.in.h (utimensat): Declare it.
55568         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55569         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
55570         * modules/utimensat-tests: New test.
55571         * tests/test-utimensat.c: Likewise.
55573         utimens: let lutimens work on non-symlinks
55574         * lib/utimens.c (lutimens): Fall back to utimens rather than
55575         failing with ENOSYS, when file is not a symlink.
55576         (utimens): Reduce redirection.
55577         * tests/test-lutimens.h (test_lutimens): Update test to cover
55578         non-symlinks.
55579         * tests/test-utimens.h (test_utimens): Update test to cover
55580         symlinks.
55581         * tests/test-utimens.c (main): Update caller.
55583         utimens: cache whether utimensat syscall works
55584         * lib/utimens.c (utimensat_works_really): New cache variable.
55585         (fdutimens, lutimens): Use it to avoid failing syscall.
55587         test-stat-time, test-utimens: improve portability
55588         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
55589         ext4 on alpha, and for cygwin.
55590         * tests/test-utimens-common.h: New file.
55591         (nap): Factor delays into single function.
55592         * tests/test-lutimens.h (test_lutimens): Use new header.
55593         * tests/test-futimens.h (test_futimens): Likewise.
55594         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
55595         timestamps to occur from same machine, as was done previously for
55596         test_utimens.
55597         * modules/utimens-tests (Files): Ship new file.
55598         * modules/futimens-tests (Files): Likewise.
55599         Reported in part by Jim Meyering.
55601         sys_stat: sort replacement declarations
55602         * lib/sys_stat.in.h: Sort declarations.
55603         * lib/futimens.c (futimens): Fix typo.
55605 2009-10-15  Jim Meyering  <meyering@redhat.com>
55607         don't let environment settings perturb build
55608         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
55609         could cause a configure-time and/or build-time malfunction.
55610         Typically, a configure-time function-in-library test is performed
55611         via code like this:
55613           LIB_VAR=
55614           AC_SUBST([LIB_VAR])
55615           prefix_saved_LIBS=$LIBS
55616             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
55617                        [test "$ac_cv_search_FUNC" = "none required" ||
55618                         LIB_VAR=$ac_cv_search_FUNC])
55619           LIBS=$prefix_saved_LIBS
55621         However, in each of the files affected by this change, the LIB_VAR=
55622         initialization was omitted.  Thus, when set in the environment, its
55623         value would propagate into generated Makefiles when FUNC is not found
55624         in LIB_NAME.
55625         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
55626         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55629 2009-10-14  Eric Blake  <ebb9@byu.net>
55631         fchdir: avoid infinite recursion in mingw
55632         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
55633         recursing.
55635         test-stat-time: port to mingw
55636         * tests/test-stat-time.c (force_unlink): Return a value.
55637         (test_ctime) [W32]: Fix compilation error.
55638         (nap): Don't call usleep with too large an argument.  Use
55639         force_unlink.
55640         * doc/pastposix-functions/usleep.texi (usleep): Document the
55641         portability issue.
55643 2009-10-13  Jim Meyering  <meyering@redhat.com>
55645         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
55646         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
55647         * modules/pipe-filter-ii: Likewise.
55648         * modules/sys_socket-tests: Likewise.
55649         * modules/tsearch-tests: Likewise.
55650         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
55651         (check): Depend on it.
55653 2009-10-12  Eric Blake  <ebb9@byu.net>
55655         utimens-tests: port to NFS file systems
55656         * tests/test-utimens.h (test_utimens): Refactor utimecmp
55657         comparisons to avoid spurious failures from timestamp drift
55658         between NFS machines.
55660 2009-10-12  Eric Blake  <ebb9@byu.net>
55662         stat-time-tests: minor cleanups
55663         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
55664         * tests/test-stat-time.c (nap): Separate assignment from call.
55665         Suggested by Paolo Bonzini and Bruno Haible.
55667         sys_stat: guarantee struct timespec
55668         * lib/sys_stat.in.h (includes): Always include <time.h>
55669         * modules/sys_stat (Depends-on): Add time.
55670         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
55671         mode_t permission values.
55672         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
55673         get at subsecond timestamps.
55675 2009-10-10  Eric Blake  <ebb9@byu.net>
55677         futimens: new module
55678         * modules/futimens: New file.
55679         * lib/futimens.c (futimens): Likewise.
55680         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
55681         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
55682         we can work around Linux bugs.
55683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
55684         * modules/sys_stat (Makefile.am): Substitute them.
55685         * lib/sys_stat.in.h (futimens): Declare it.
55686         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55687         * doc/posix-functions/futimens.texi (futimens): Likewise.
55688         * modules/futimens-tests: New test.
55689         * tests/test-futimens.c: Likewise.
55691         utimens: introduce fdutimens
55692         * lib/utimens.h (fdutimens): New prototype.
55693         * lib/utimens.c (gl_futimens): Move guts...
55694         (fdutimens): ...to new interface.
55695         * tests/test-utimens.c (do_fdutimens): Use it.
55697         utimens: add UTIME_NOW and UTIME_OMIT support
55698         * lib/utimens.c (validate_timespec, update_timespec): New helper
55699         functions.
55700         (gl_futimens, lutimens): Use them.
55701         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
55702         stdbool, sys_stat.
55703         (Link): Mention resulting library dependency.
55704         * modules/utimecmp (Link): Likewise.
55705         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
55706         (Makefile.am): Pick up library dependency.
55707         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
55708         definition.
55709         * tests/test-sys_stat.c: Test the definitions.
55710         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
55711         * NEWS: Document library dependency.
55713         utimecmp: support symlink timestamps
55714         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
55715         hashing when possible.  Use pathconf when available.
55716         (SYSCALL_RESOLUTION): Recognize tighter resolution.
55717         * modules/utimecmp (Depends-on): Add lstat.
55719         utimens: add lutimens interface
55720         * lib/utimens.c (lutimens): New function.
55721         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
55722         * lib/utimens.h (lutimens): Declare new interface.
55723         * tests/test-utimens.c (main): Enhance test.
55724         * tests/test-lutimens.h (test_lutimens): New file.
55725         * modules/utimens-tests (Files): Distribute it.
55726         (Depends-on): Add symlink.
55727         (configure.ac): Check for usleep.
55729         utimens: validate futimens usage
55730         * lib/utimens.c (gl_futimens): Require valid fd up front, using
55731         fewer syscalls on failure later on.  Avoid compiler warning on
55732         mingw.
55733         * modules/utimens (Depends-on): Add dup2.
55735         utimens: add test
55736         * modules/utimens-tests: New test.
55737         * tests/test-utimens.h: New file.
55738         * tests/test-futimens.h: Likewise.
55739         * tests/test-utimens.c: Likewise.
55741         doc: mention timestamp portability issues
55742         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
55743         instead.
55744         * doc/posix-functions/utime.texi (utime): Likewise.
55745         * doc/posix-functions/utimes.texi (utimes): Likewise.
55746         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
55747         instead.
55748         * doc/posix-functions/futimens.texi (futimens): Mention utimens
55749         module.
55750         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
55751         Mention weakness with symlink timestamps.
55752         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
55753         to utimensat/futimens instead.
55754         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
55756         test-dup2: enhance test
55757         * tests/test-dup2.c (main): Also check AT_FDCWD.
55759         test-stat-time: avoid more spurious failures
55760         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
55761         xfs; and avoid race if the two timestamps cross quantization edge.
55763         relocatable: prefer 'file system' over 'filesystem'
55764         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
55765         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
55766         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
55767         * doc/relocatable.texi (Enabling Relocatability): Likewise.
55768         * lib/relocatable.c (compute_curr_prefix): Likewise.
55770 2009-10-10  Jim Meyering  <meyering@redhat.com>
55772         stat-time-tests: check for the usleep function
55773         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
55775 2009-10-10  Bruno Haible  <bruno@clisp.org>
55777         * modules/xnanosleep: Put the Link section after the Include section.
55779 2009-10-09  Eric Blake  <ebb9@byu.net>
55781         dup2: work around FreeBSD 6.1 bug
55782         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
55783         * doc/posix-functions/dup2.texi (dup2): Document it.
55784         Reported by Nelson H. F. Beebe and Jim Meyering.
55786         test-stat-time: port to buggy NFS clients
55787         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
55788         (test_ctime): Also skip test if mtime and ctime are skewed.
55790         maint: prefer 'file system' over 'filesystem'
55791         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
55792         * doc/posix-functions/lstat.texi (lstat): Likewise.
55793         * lib/file-has-acl.c (file_has_acl): Likewise.
55794         * lib/fwriteerror.c [TEST]: Likewise.
55795         * tests/test-areadlink.h (test_areadlink): Likewise.
55796         * tests/test-areadlinkat-with-size.c (main): Likewise.
55797         * tests/test-areadlinkat.c (main): Likewise.
55798         * tests/test-canonicalize-lgpl.c (main): Likewise.
55799         * tests/test-canonicalize.c (main): Likewise.
55800         * tests/test-fstatat.c (main): Likewise.
55801         * tests/test-linkat.c (main): Likewise.
55802         * tests/test-lstat.h (test_lstat_func): Likewise.
55803         * tests/test-mkdir.h (test_mkdir): Likewise.
55804         * tests/test-readlink.h (test_readlink): Likewise.
55805         * tests/test-remove.c (main): Likewise.
55806         * tests/test-rename.h (test_rename): Likewise.
55807         * tests/test-renameat.c (main): Likewise.
55808         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55809         * tests/test-symlink.h (test_symlink): Likewise.
55810         * tests/test-symlinkat.c (main): Likewise.
55811         * tests/test-unlink.h (test_unlink_func): Likewise.
55812         * tests/test-unlinkat.c (main): Likewise.
55814         maint: make realtime library usage explicit
55815         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
55816         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
55817         * modules/settime (Link): Likewise.
55818         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
55820         test-stat-time: speed up execution
55821         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
55822         warning on mingw.
55823         (nap): New helper function.
55824         (prepare_test): Use it to reduce sleep time.
55825         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
55826         execution.
55827         * modules/stat-time-tests (configure.ac): Check for usleep.
55829 2009-10-09  Jim Meyering  <meyering@redhat.com>
55831         selinux-h: always use getfilecon wrappers
55832         * lib/getfilecon.c: New file.
55833         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
55834         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
55835         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
55836         (fgetfilecon): Provide a stub.
55837         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
55838         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
55839         file unconditionally.
55840         When <selinux/selinux.h> is found, arrange to use wrappers.
55841         * modules/selinux-h (Files): Add getfilecon.c.
55842         (Makefile.am): Substitute include-next-related bits
55843         into the now-always-generated selinux/selinux.h file.
55844         * doc/glibc-functions/lgetfilecon.texi: New file.
55845         * doc/glibc-functions/fgetfilecon.texi: New file.
55846         * doc/glibc-functions/getfilecon.texi: New file.
55847         * doc/glibc-functions/getfilecon-desc.texi: New file.
55848         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
55849         which to pull in the new files.
55850         * MODULES.html.sh (Misc): Add selinux-h.
55852 2009-10-08  Jim Meyering  <meyering@redhat.com>
55854         unistd: fix comment typo
55855         * lib/unistd.in.h (euidaccess): Fix a comment typo.
55857 2009-10-08  Eric Blake  <ebb9@byu.net>
55859         areadlink: use SIZE_MAX consistently
55860         * modules/areadlink (Depends-on): Add stdint.
55861         * modules/areadlink-with-size (Depends-on): Likewise.
55862         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
55863         gives NULL; drop sys/types, since unistd gives size_t; and add
55864         stdint for SIZE_MAX.
55865         (SIZE_MAX): Rely on headers.
55866         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
55867         and add stdint.
55868         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
55869         (SIZE_MAX): Likewise.
55870         (INITIAL_BUF_SIZE): Turn into enum.
55871         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
55873 2009-10-08  Jim Meyering  <meyering@redhat.com>
55875         areadlinkat: avoid compilation failure
55876         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
55877         Fix typo in comment.
55879 2009-10-07  Eric Blake  <ebb9@byu.net>
55881         areadlinkat-with-size: new module
55882         * modules/areadlinkat-with-size: New module.
55883         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
55884         * lib/areadlink.h (areadlinkat): Declare it.
55885         * MODULES.html.sh (File system functions): Mention it.
55886         * modules/areadlinkat-with-size-tests: New test.
55887         * tests/test-areadlinkat-with-size.c: New file.
55889         xreadlinkat: new module
55890         * modules/xreadlinkat: New module.
55891         * lib/xreadlinkat.c (xreadlinkat): New file.
55892         * lib/xreadlink.h (xreadlinkat): Declare it.
55893         * MODULES.html.sh (File system functions): Mention it.
55895         areadlinkat: new module
55896         * lib/at-func.c (FUNC_FAIL): New define.
55897         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
55898         * modules/areadlinkat: New module.
55899         * lib/linkat.c (areadlinkat): Move...
55900         * lib/areadlinkat.c (areadlinkat): ...to new file.
55901         * lib/areadlink.h (areadlinkat): Declare it.
55902         * modules/linkat (Depends-on): Add areadlinkat.
55903         * MODULES.html.sh (File system functions): Mention it.
55904         * modules/areadlinkat-tests: New test.
55905         * tests/test-areadlinkat.c: New file.
55907         areadlink, areadlink-with-size: add tests
55908         * modules/areadlink-tests: New test.
55909         * modules/areadlink-with-size-tests: Likewise.
55910         * tests/test-areadlink.h: New file.
55911         * tests/test-areadlink.c: Likewise.
55912         * tests/test-areadlink-with-size.c: Likewise.
55914         maint: minor cleanups
55915         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
55916         _UNUSED_PARAMETER_ instead.
55917         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
55918         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
55919         * modules/linkat-tests (Files): Distribute test-link.h.
55921         openat, utimens: whitespace cleanup
55922         * lib/openat.c: Prefer space throughout, rather than mix of 8
55923         spaces vs. tabs.
55924         * lib/at-func.c: Likewise.
55925         * lib/utimens.c: Likewise.
55927         openat: avoid using wrong fd
55928         * lib/openat.c (openat_permissive): Reject user's fd if saving the
55929         working directory chooses same fd.
55930         * lib/at-func.c (AT_FUNC_NAME): Likewise.
55932         mkdir, mkdirat: fix cygwin 1.5.x bug
55933         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
55934         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
55935         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
55936         bug.
55937         (gl_PREREQ_MKDIR): Delete unused macro.
55938         * modules/mkdir (Files): Track file rename.
55939         (configure.ac): Update macro name.
55940         * modules/openat (Depends-on): Add mkdir.
55941         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
55943         mkdir, mkdirat: add tests
55944         * modules/mkdir-tests: New test.
55945         * tests/test-mkdir.h: New file.
55946         * tests/test-mkdir.c: Likewise.
55947         * tests/test-mkdirat.c: Likewise.
55948         * modules/openat-tests (Files): Add new files.
55949         (Makefile.am): Run new test.
55951 2009-10-06  Eric Blake  <ebb9@byu.net>
55953         doc: tweak *at function documentation
55954         * doc/posix-functions/faccessat.texi (faccessat): Mention
55955         known issue with replacement.
55956         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
55957         * doc/posix-functions/linkat.texi (linkat): Likewise.
55958         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
55959         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
55960         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55961         * doc/posix-functions/renameat.texi (renameat): Likewise.
55962         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55964         openat: fix GNU/Hurd bug in unlinkat
55965         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
55966         broken.
55967         * doc/posix-functions/unlink.texi (unlink): Document this.
55968         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
55970         fdopendir: fix GNU/Hurd bug
55971         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
55972         allowing non-directory fds.
55973         * lib/fdopendir.c (rpl_fdopendir): Work around it.
55974         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
55975         * modules/dirent (Makefile.am): Substitute it.
55976         * lib/dirent.in.h (fdopendir): Declare replacement.
55977         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
55978         * tests/test-fdopendir.c (main): Test something other than
55979         /dev/null, since on Hurd that behaves like a directory.
55981         test-symlink: port to GNU/Hurd
55982         * tests/test-symlink.h (test_symlink): Relax expected errno.
55984         doc: tweak more cygwin information
55985         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
55986         now compatible with glibc.
55987         * doc/posix-functions/getopt.texi (getopt): Likewise.
55989         getopt-gnu: add another test
55990         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
55991         guarantee behavior relied on by m4.
55992         * tests/test-getopt.c (main): Use it.
55993         * modules/getopt-posix-tests (Depends-on): Add setenv.
55994         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
55996         getopt: fix compilation on darwin
55997         * lib/getopt.in.h (includes): Leave breadcrumbs during system
55998         include.
55999         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
56000         Reported by Ludovic Courtès.
56002 2009-10-06  Bruno Haible  <bruno@clisp.org>
56004         * modules/size_max (Description): Discourage its use.
56005         Reported by Simon Josefsson.
56007 2009-10-06  Jim Meyering  <meyering@redhat.com>
56009         linkat: avoid compilation failure
56010         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
56012 2009-10-05  Eric Blake  <ebb9@byu.net>
56014         linkat: support Linux 2.6.17
56015         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
56016         linkat on Linux, but allow cache variable override.
56017         * lib/linkat.c (rpl_linkat): Define override.
56018         * modules/linkat (Depends-on): Add symlinkat.
56019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
56020         * modules/unistd (Makefile.am): Substitute it.
56021         * lib/unistd.in.h (linkat): Declare replacement.
56022         Reported by Pádraig Brady.
56024         quotearg: port test to systems with C.UTF-8 locale
56025         * tests/test-quotearg.c (struct result_strings): Add another
56026         member, differentiating between C.ASCII and C.UTF-8 handling.
56027         (compare_strings): Add parameter.
56028         (main): Adjust all callers.
56030         getopt: avoid clash with FreeBSD _getopt_internal
56031         * lib/getopt.in.h (_getopt_internal): Override the name.
56032         * lib/getopt_int.h (includes): Pick up any overrides.
56033         Reported by Reuben Thomas.
56035         hash: allow C89 compilation
56036         * lib/hash.c (check_tuning): Move declaration before statement.
56037         Reported by Reuben Thomas.
56039 2009-10-05  Karl Berry  <karl@gnu.org>
56041         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
56043 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
56044             Bruno Haible  <bruno@clisp.org>
56046         * lib/uname.c (uname): Use a table-driven algorithm to compute
56047         Windows NT versions.
56049 2009-10-04  Bruno Haible  <bruno@clisp.org>
56051         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
56052         program_invocation_short_name.
56053         * modules/progname (configure.ac): Test for presence of
56054         program_invocation_short_name.
56055         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
56057 2009-10-04  Bruno Haible  <bruno@clisp.org>
56059         * lib/progname.c (set_program_name): Fix comment.
56060         Reported by Jim Meyering.
56062 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
56063             Bruno Haible  <bruno@clisp.org>
56065         * lib/uname.c: Include <string.h>.
56066         (uname): Do only one call to GetVersionEx in the common case.
56068 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
56069             Bruno Haible  <bruno@clisp.org>
56071         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
56072         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
56073         (uname): Add support for Windows CE and various non-x86 CPU types.
56075 2009-10-03  Bruno Haible  <bruno@clisp.org>
56077         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
56078         invocation to tests/configure.ac.
56079         Reported by Ian Beckwith <ianb@erislabs.net>.
56081 2009-10-02  Eric Blake  <ebb9@byu.net>
56083         fchdir: avoid compiler warning
56084         * lib/fchdir.c (canonicalize_file_name)
56085         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
56087         test-open: support mingw errno values
56088         * tests/test-open.h (test_open): Relax test.
56089         * tests/test-fopen.h (test_fopen): Likewise.
56090         * tests/test-openat-safer.c (main): Likewise.
56092         open: fix opening directory on mingw
56093         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
56095         test-open: on GNU/Hurd, /dev/null is a directory
56096         * tests/test-fopen.h (main): Rename...
56097         (test_fopen): ...to this.  Use a guaranteed non-directory when
56098         confirming open behavior on trailing slash.
56099         * tests/test-openat-safer.c (main): Likewise.
56100         * tests/test-open.h (main): Likewise....
56101         (test_open): ...to this.
56102         * tests/test-fopen.c (main): Adjust caller.
56103         * tests/test-fopen-safer.c (main): Likewise.
56104         * tests/test-open.c (main): Likewise.
56105         * tests/test-fcntl-safer.c (main): Likewise.
56106         Reported by Samuel Thibault.
56108         rename, fchdir: don't ignore chdir failure
56109         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
56110         * lib/rename.c (rpl_rename) [W32]: Likewise.
56111         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
56112         an empty destination directory if source cannot be renamed,
56113         although there is still possibility for failure.
56114         * doc/posix-functions/rename.texi (rename): Document the race.
56115         Reported by Jim Meyering.
56117         maint: cleanup whitespace in recent commits
56118         * lib/rename.c (rpl_rename): Remove tabs.
56119         * tests/test-link.h (test_link): Likewise.
56120         * lib/fchdir.c (get_name): Likewise.
56121         Reported by Jim Meyering.
56123 2009-10-02  Ben Pfaff  <blp@gnu.org>
56125         relocatable-prog-wrapper: Add missing dependency on
56126         double-slash-root.
56127         * modules/relocatable-prog-wrapper: Add dependency.
56128         Reported by Ian Beckwith <ianb@erislabs.net>.
56130 2009-10-02  Eric Blake  <ebb9@byu.net>
56132         renameat: fix Solaris bugs
56133         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
56134         needed fixing.
56135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
56136         * modules/stdio (Makefile.am): Substitute it.
56137         * lib/stdio.in.h (renameat): Declare replacement.
56138         * lib/renameat.c (rpl_renameat): Implement fix.
56140         renameat: new module
56141         * modules/renameat: New file.
56142         * lib/renameat.c (renameat): Likewise.
56143         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
56144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
56145         * modules/stdio (Makefile.am): Substitute them.
56146         * lib/stdio.in.h (renameat): Declare it.
56147         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56148         * doc/posix-functions/renameat.texi (renameat): Likewise.
56149         * modules/renameat-tests: New test.
56150         * tests/test-renameat.c: Likewise.
56152         rename: fix mingw bugs
56153         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
56154         directory overwrite bugs.
56156         rename: fix another cygwin 1.5 bug
56157         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
56158         checks.
56159         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
56160         unnecessary cygwin workarounds.  Also work around bug with moving
56161         full directory onto an empty one.
56162         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
56164         rename-dest-slash: merge into rename module
56165         * modules/rename-dest-slash (Status): Mark obsolete.
56166         (Depends-on): Add rename.
56167         (Files): Let rename do it all.
56168         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
56169         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
56170         * m4/rename-dest-slash.m4: ...so this file can be deleted.
56171         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
56172         * lib/rename.c (rpl_rename): Update comments.
56174         rename: fix cygwin 1.5.x bugs
56175         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
56176         * lib/rename.c (rpl_rename): Work around them.
56177         * modules/rename (Depends-on): Add same-inode.
56179         rename: fix Solaris 10 bug
56180         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
56181         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
56182         was the only bug.
56184         rename: fix Solaris 9 bug
56185         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
56186         on non-directory.  Avoid calling exit.
56187         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
56188         strdup.
56189         * modules/rename-tests (Depends-on): Drop lstat.
56190         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
56191         (gl_PREREQ_RENAME): Delete unused macro.
56193         rename-dest-slash: fix NetBSD bug
56194         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
56195         links.
56196         * modules/rename-dest-slash (Depends-on): Add same-inode.
56198         rename-tests: new test, exposes several platform bugs
56199         * modules/rename-tests: New file.
56200         * tests/test-rename.h: Likewise.
56201         * tests/test-rename.c: Likewise.
56202         * doc/posix-functions/rename.texi (rename): Improve documentation,
56203         including bugs that will eventually be fixed in gnulib.
56205 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
56207         * lib/uname.c: Include <stdlib.h>
56208         (uname): Assume version info is available.
56210 2009-10-02  Jim Meyering  <meyering@redhat.com>
56212         gnu-web-doc-update: correct --help output
56213         * build-aux/gnu-web-doc-update: Make --help output relevant.
56215         gnu-web-doc-update: add standard options
56216         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
56218         gnu-web-doc-update: New module.
56219         Use this script to automatically update the on-line web documentation
56220         for your GNU project at http://www.gnu.org/software/$pkg/manual/
56221         * modules/gnu-web-doc-update: New file, from coreutils.
56222         * build-aux/gnu-web-doc-update: New script.
56224 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
56226         link: LoadLibrary is not needed.
56227         * lib/link.c: Use GetModuleHandle.
56229 2009-10-01  Eric Blake  <ebb9@byu.net>
56231         getopt: bump serial number
56232         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
56233         change.
56235         tests: tighten link, rmdir, and remove tests
56236         * tests/test-link.h (includes): No need to use <config.h> here.
56237         Clean up if directory hard link was created, otherwise test for
56238         trailing '.'.
56239         * tests/test-linkat.c (main): Simplify.
56240         * tests/test-remove.c (main): Enhance test for trailing '.'.
56241         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56243 2009-10-01  Jim Meyering  <meyering@redhat.com>
56245         maint.mk: requiring "make major" was annoying, for a "minor" release.
56246         What is intended is "stable", to contrast with alpha and beta,
56247         so require "make stable", not "make major".
56248         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
56249         (get_tool_versions): Likewise.
56250         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
56252 2009-09-30  Ben Pfaff  <blp@gnu.org>
56254         Fix broken build of replacement for Windows tmpfile().
56255         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
56256         flags argument added along with the 'mkostemp' module.
56258 2009-09-28  Bruno Haible  <bruno@clisp.org>
56260         Avoid identifier clash with POSIX function 'remove' defined as a macro.
56261         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
56262         to 'remove_elt'.
56263         (gl_list_remove): Update.
56264         * lib/gl_list.c (gl_list_remove): Update.
56265         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
56266         to 'remove_elt'.
56267         (gl_oset_remove): Update.
56268         * lib/gl_list.c (gl_oset_remove): Update.
56269         Reported by Eric Blake.
56271 2009-09-28  Eric Blake  <ebb9@byu.net>
56273         doc: mention yet more cygwin 1.7 status
56274         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
56275         cygwin.
56276         * doc/glibc-functions/execvpe.texi (execvpe): New file.
56277         * doc/gnulib.texi (Glibc unistd.h): Mention it.
56279         argp: fix test failure
56280         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
56281         that are not upper-case.  Pass correct range to tolower.
56283 2009-09-27  Jim Meyering  <meyering@redhat.com>
56285         test-yesno: work around sparc-dash here-document infelicity
56286         Without this change, the literal \177 byte in a here document
56287         would make dash 0.5.5.1-3 access uninitialized memory.
56288         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
56289         Instead, use a marker, "@", and filter through tr to create the desired
56290         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
56292 2009-09-27  Bruno Haible  <bruno@clisp.org>
56294         Disable untested support for new flavours of ACLs on AIX.
56295         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
56296         progress.
56297         * lib/set-mode-acl.c (qset_acl): Likewise.
56299 2008-12-07  Bruno Haible  <bruno@clisp.org>
56301         Add support for new flavours of ACLs on AIX. (Untested.)
56302         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
56303         (file_has_acl): Add support for newer AIX.
56304         * lib/set-mode-acl.c (qset_acl): Likewise.
56305         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
56306         Rainer Tammer <tammer@tammer.net>.
56308 2009-09-26  Eric Blake  <ebb9@byu.net>
56310         argp: fix compilation of getopt
56311         * lib/getopt.in.h (includes): Use different guard than glibc.
56312         Reported by Sergey Poznyakoff.
56314         doc: mention more cygwin 1.7 status
56315         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
56316         bug.
56317         * doc/posix-functions/execl.texi (execl): Likewise.
56318         * doc/posix-functions/execle.texi (execle): Likewise.
56319         * doc/posix-functions/execlp.texi (execlp): Likewise.
56320         * doc/posix-functions/execv.texi (execv): Likewise.
56321         * doc/posix-functions/execve.texi (execve): Likewise.
56322         * doc/posix-functions/execvp.texi (execvp): Likewise.
56323         * doc/glibc-functions/canonicalize_file_name.texi
56324         (canonicalize_file_name): Cygwin 1.7 now provides this.
56325         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
56326         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
56327         on AT_SYMLINK_NOFOLLOW.
56329 2009-09-24  Eric Blake  <ebb9@byu.net>
56331         test-linkat: make test more robust
56332         * tests/test-linkat.c (main): Avoid collision with EEXIST.
56334         getopt: fix inclusion guards for cygwin
56335         * modules/getopt-posix (Depends-on): Add include-next.
56336         (Makefile.am): Substitute more items in replacement header.
56337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
56338         <getopt.h>.
56339         * lib/getopt.in.h (includes): Use split inclusion guard, and
56340         prefer <getopt.h> over include <unistd.h> when one is present.
56341         (option): Also override name of 'struct option'.
56343         same-inode: revert prior change; it is not yet ready
56344         * NEWS: Undo mention of this change.
56345         * lib/same-inode.h (same-inode.h): Undo tri-state change.
56346         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
56347         * lib/cycle-check.c (cycle_check): Likewise.
56348         * lib/same.c (same_name): Likewise.
56349         * lib/at-func2.c (at_func2): Likewise.
56351 2009-09-23  Eric Blake  <ebb9@byu.net>
56353         linkat: new module
56354         * modules/linkat: New file.
56355         * lib/at-func2.c (at_func2): Likewise.
56356         * lib/linkat.c (linkat): Likewise.
56357         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
56358         * lib/openat-priv.h (at_func2): Add declaration.
56359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
56360         * modules/unistd (Makefile.am): Substitute them.
56361         * lib/unistd.in.h (linkat): Declare it.
56362         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56363         * doc/posix-functions/linkat.texi (linkat): Likewise.
56364         * doc/posix-functions/link.texi (link): Tweak wording.
56365         * tests/test-link.c (main): Move guts...
56366         * tests/test-link.h (test_link): ...into new file.
56367         * modules/linkat-tests: New test.
56368         * tests/test-linkat.c: Likewise.
56369         * modules/link-tests (Files): Ship new file.
56370         (Depends-on): Add stdbool.
56372         dirname: add library-safe mdir_name
56373         * lib/dirname.h (mdir_name): New prototype.
56374         * lib/dirname.c (dir_name): Move guts...
56375         (mdir_name): ...to new function that avoids xalloc_die.
56377         fchdir: another mingw fix
56378         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
56379         * lib/fchdir.c (get_name): New helper method; skips canonicalize
56380         on mingw (where it has not yet been ported), and make it optional
56381         elsewhere.
56382         (_gl_register_fd): Use it.
56384         same-inode: make SAME_INODE tri-state, to port to mingw
56385         * NEWS: Mention this change.
56386         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
56387         st_ino always being 0.
56388         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
56389         * lib/cycle-check.c (cycle_check): Likewise.
56390         * lib/same.c (same_name): Likewise.
56392         lstat: avoid mingw compilation error
56393         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
56394         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
56395         lstat ourselves.
56396         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
56397         was adequate.
56398         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
56399         the checks for lstat.
56400         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
56402         link: fix test failure on Solaris 9
56403         * lib/link.c (rpl_link): Don't assume link will catch bogus
56404         trailing slash on source.
56406         test-symlinkat: enhance test
56407         * tests/test-readlink.c (main): Move guts...
56408         * tests/test-readlink.h (test_readlink): ...into new file.
56409         * tests/test-symlink.c (main): Move guts...
56410         * tests/test-symlink.h (test_symlink): ...into new file.
56411         * tests/test-symlinkat.c (main): Use new files for further
56412         coverage.
56413         (do_symlink, do_readlink): New helper functions.
56414         * modules/symlink-tests (Files): Ship new file.
56415         (Depends-on): Add stdbool.
56416         * modules/readlink-tests (Files): Ship new file.
56417         (Depends-on): Add stdbool.
56418         * modules/symlinkat-tests (Files): Use new files.
56420 2009-09-23  Eric Blake  <ebb9@byu.net>
56422         readlink: document portability issue with symlink length
56423         * doc/posix-functions/lstat.texi (lstat): Mention that some file
56424         systems have bogus st_size on symlinks, and mention the
56425         areadlink-with-size module.
56426         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
56427         * doc/posix-functions/readlink.texi (readlink): Mention the
56428         areadlink module, and ERANGE failure.
56429         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
56430         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
56432         readlink: fix Solaris 9 bug with trailing slash
56433         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
56434         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
56435         * doc/posix-functions/readlink.texi (readlink): Document this.
56436         * modules/readlink-tests: New test.
56437         * tests/test-readlink.c: Likewise.
56439         readlink: fix cygwin 1.5.x bug with return type
56440         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
56441         * lib/unistd.in.h (readlink): Use ssize_t.
56442         * lib/readlink.c (readlink): Likewise.
56443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56444         * modules/unistd (Makefile.am): Substitute it.
56445         * lib/unistd.in.h (readlink): Declare replacement.
56446         * doc/posix-functions/readlink.texi (readlink): Document this.
56448         symlink: use throughout gnulib
56449         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
56450         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
56451         symlink is not used.
56452         * modules/symlinkat (Depends-on): Add symlink.
56453         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56454         * modules/canonicalize-tests (Depends-on): Likewise.
56455         * modules/lstat-tests (Depends-on): Likewise.
56456         * modules/openat-tests (Depends-on): Likewise.
56457         * modules/remove-tests (Depends-on): Likewise.
56458         * modules/rmdir-tests (Depends-on): Likewise.
56459         * modules/unlink-tests (Depends-on): Likewise.
56460         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
56461         * tests/test-canonicalize.c (symlink): Likewise.
56462         * tests/test-fstatat.c (symlink): Likewise.
56463         * tests/test-lstat.c (symlink): Likewise.
56464         * tests/test-remove.c (symlink): Likewise.
56465         * tests/test-rmdir.c (symlink): Likewise.
56466         * tests/test-unlink.c (symlink): Likewise.
56467         * tests/test-unlinkat.c (symlink): Likewise.
56469         symlink: new module, for Solaris 9 bug
56470         * modules/symlink: New file.
56471         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
56472         * lib/symlink.c: Likewise.
56473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
56474         * modules/unistd (Makefile.am): Substitute them.
56475         * lib/unistd.in.h (symlink): Declare replacement.
56476         * MODULES.html.sh (File system functions): Mention it.
56477         * doc/posix-functions/symlink.texi (symlink): Likewise.
56478         * modules/symlink-tests: New test.
56479         * tests/test-symlink.c: Likewise.
56481 2009-09-23  Bruno Haible  <bruno@clisp.org>
56483         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
56484         when needed.
56485         Test case: gnulib-tool --import --with-tests atexit inttypes.
56486         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
56488 2009-09-23  Bruno Haible  <bruno@clisp.org>
56490         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
56491         subcommand, not in a subshell.
56493 2009-09-22  Eric Blake  <ebb9@byu.net>
56495         unistd: sort replacement declarations
56496         * lib/unistd.in.h: Sort declarations.
56498         open, openat: minor optimization
56499         * lib/open.c (open): If open succeeded, len is non-zero.
56500         * lib/openat.c (rpl_openat): Likewise.
56502         link-follow: ensure correct result
56503         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
56504         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
56505         distinguish between possible failures.
56507 2009-09-21  Eric Blake  <ebb9@byu.net>
56509         fts: avoid compiler warning
56510         * lib/fts.c (dirent_inode_sort_may_be_useful)
56511         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
56513 2009-09-19  Bruno Haible  <bruno@clisp.org>
56515         * lib/progreloc.c (canonicalize_file_name): New declaration.
56517 2009-09-19  Eric Blake  <ebb9@byu.net>
56519         link: fix quoting
56520         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
56522         openat: fix openat bugs on Solaris 9
56523         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
56524         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
56525         * modules/openat (Depends-on): Add open.
56526         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
56527         * modules/fcntl-h (Makefile.am): Substitute it.
56528         * lib/fcntl.in.h (openat): Declare replacement.
56529         * doc/posix-functions/openat.texi (openat): Document this.
56531         openat: move fstatat and unlinkat into correct files
56532         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
56533         compiled.
56534         * lib/openat.c (fstatat, unlinkat): Move...
56535         * lib/fstatat.c (fstatat): ...into correct files.
56536         * lib/unlinkat.c (unlinkat): Likewise.
56538         openat: fix unlinkat bugs on Solaris 9
56539         * lib/unlinkat.c (unlinkat): New file.
56540         * modules/openat (Depends-on): Add unlink.
56541         (Files): Distribute it.
56542         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
56543         trailing slash behavior is broken.
56544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56545         * modules/unistd (Makefile.am): Substitute it.
56546         * lib/unistd.in.h (unlinkat): Declare replacement.
56547         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
56549         openat: fix fstatat bugs on Solaris 9
56550         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
56551         stat.
56552         * doc/posix-functions/fstatat.texi (fstatat): Document this.
56554         test-unlinkat: enhance test, to expose Solaris 9 bug
56555         * tests/test-unlink.c (main): Factor guts...
56556         * tests/test-unlink.h (test_rmdir_func): ...into new file.
56557         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
56558         * tests/test-rmdir.c (main): Adjust caller.
56559         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
56560         (unlinker): New helper function.
56561         (rmdirat): Enhance check.
56562         * modules/rmdir-tests (Depends-on): Add stdbool.
56563         * modules/unlink-tests (Depends-on): Likewise.
56564         (Files): Add test-unlink.h.
56565         * modules/openat-tests (Files): Likewise.
56566         (Depends-on): Add unlinkdir.
56568         test-fstatat: new test, to expose Solaris 9 bugs
56569         * tests/test-stat.c (main): Factor guts...
56570         * tests/test-stat.h (test_stat_func): ...into new file.
56571         * tests/test-lstat.c (main): Factor guts...
56572         * tests/test-lstat.h (test_lstat_func): ...into new file.
56573         * tests/test-fstatat.c: New file.
56574         * modules/stat-tests (Files): Add test-stat.h.
56575         * modules/lstat-tests (Files): Add test-lstat.h.
56576         (Depends-on): Add stdbool.
56577         * modules/openat-tests (Depends-on): Add pathmax.
56578         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
56579         (Makefile.am): Run new test.
56581         remove: new module, for mingw and Solaris 9 bugs
56582         * modules/remove: New file.
56583         * lib/remove.c: Likewise.
56584         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
56585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
56586         * modules/stdio (Makefile.am): Use them.
56587         * lib/stdio.in.h (remove): Declare replacement.
56588         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56589         * doc/posix-functions/remove.texi (remove): Likewise.
56590         * modules/remove-tests: New test.
56591         * tests/test-remove.c: Likewise.
56593         unlink: new module, for Solaris 9 bug
56594         * modules/unlink: New file.
56595         * lib/unlink.c: Likewise.
56596         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
56597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
56598         * modules/unistd (Makefile.am): Use them.
56599         * lib/unistd.in.h (stat): Declare replacement.
56600         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56601         * doc/posix-functions/unlink.texi (unlink): Likewise.
56602         * modules/unlink-tests: New test.
56603         * tests/test-unlink.c: Likewise.
56605         lstat: fix Solaris 9 bug
56606         * lib/lstat.c (lstat): Also check for trailing slash on
56607         non-symlink, non-directories.  Use stat module to simplify logic.
56608         * doc/posix-functions/lstat.texi (lstat): Document it.
56609         * modules/lstat-tests (Depends-on): Add errno, same-inode.
56610         (configure.ac): Check for symlink.
56611         * tests/test-lstat.c (main): Add more tests.
56613         stat: add as dependency to other modules
56614         * modules/chown (Depends-on): Add stat.
56615         * modules/euidaccess (Depends-on): Likewise.
56616         * modules/fchdir (Depends-on): Likewise.
56617         * modules/isdir (Depends-on): Likewise.
56618         * modules/link (Depends-on): Likewise.
56619         * modules/lstat (Depends-on): Likewise.
56620         * modules/mkdir-p (Depends-on): Likewise.
56621         * modules/modechange (Depends-on): Likewise.
56622         * modules/open (Depends-on): Likewise.
56623         * modules/readlink (Depends-on): Likewise.
56624         * modules/same (Depends-on): Likewise.
56626         stat: fix Solaris 9 bug
56627         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
56628         slash.
56629         * lib/stat.c (rpl_stat): Work around it.
56630         * doc/posix-functions/stat.texi (stat): Update documentation.
56632         stat: new module, for mingw bug
56633         * modules/stat: New file.
56634         * lib/stat.c: Likewise.
56635         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
56636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56637         * modules/sys_stat (Makefile.am): Use them.
56638         * lib/sys_stat.in.h (stat): Declare replacement.
56639         * lib/openat.c (fstatat): Deal with lstat and stat being function
56640         macros.
56641         * modules/openat (Depends-on): Add inline.
56642         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56643         * doc/posix-functions/stat.texi (stat): Likewise.
56644         * modules/stat-tests: New test.
56645         * tests/test-stat.c: Likewise.
56647 2009-09-19  Jim Meyering  <meyering@redhat.com>
56649         syntax-check: detect unnecessary inclusion of canonicalize.h
56650         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
56652 2009-09-19  Eric Blake  <ebb9@byu.net>
56654         canonicalize-lgpl: adjust clients to use correct header
56655         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
56656         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
56657         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
56658         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
56659         * lib/progreloc.c (includes): Likewise.
56661 2009-09-19  Jim Meyering  <meyering@redhat.com>
56663         test-posixtm.c: correct a comment
56664         * tests/test-posixtm.c: Correct first-line comment.
56665         Spotted by Eric Blake.
56667 2009-09-16  Jim Meyering  <meyering@redhat.com>
56669         posixtm-tests: make T const-correct; add a test case
56670         * tests/test-posixtm.c (T): Declare const.
56671         Add a test for -(2^31+1).
56672         Remove useless can-succeed-only-in-2002 test.
56674         posixtm-tests: adjust the sole failing test
56675         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
56676         expected output matches what mktime now produces.  Cross-checked via
56677         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
56679         posixtm: move #ifdef'd tests into a new module
56680         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
56681         * tests/test-posixtm.c: ... this new file.
56682         * modules/posixtm-tests: New module.
56684 2009-09-19  Eric Blake  <ebb9@byu.net>
56686         openat: simplify use of at-func.c
56687         * lib/at-func.c (includes): Include prerequisites here, to
56688         simplify requirements on client files.
56689         * lib/openat-priv.h: Add double-inclusion guard.
56690         * lib/faccessat.c (includes): Simplify.
56691         * lib/fchmodat.c (includes): Likewise.
56692         * lib/fchownat.c (includes): Likewise.
56693         * lib/mkdirat.c (includes): Likewise.
56694         * lib/mkfifoat.c (includes): Likewise.
56695         * lib/symlinkat.c (includes): Likewise.
56697         openat: allow return of fd 0
56698         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
56699         * modules/save-cwd (Depends-on): Replace fcntl-safer with
56700         unistd-safer.
56701         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
56702         <fcntl.h>; this module does not leak fds.
56703         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
56704         must be allowed to return 0, leaving openat_safer to add the
56705         safety.
56706         (openat_permissive): Avoid writing to just-opened fd 2 if
56707         restoring the current directory fails.
56708         * lib/openat-die.c (openat_restore_fail): Add comment.
56709         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
56710         (save_cwd): Guarantee safe fd, but without use of open_safer.
56711         * tests/test-openat.c: New test.
56712         * modules/openat-tests (Files, Makefile.am): Distribute and build
56713         new file.
56715         relocatable-prog-wrapper: fix build
56716         * modules/relocatable-prog-wrapper (Files): Update name of
56717         canonicalize m4 file, broken on 2009-09-17.
56718         Reported by emad hajjar <aleppos@hotmail.com>.
56720 2009-09-19  Bruno Haible  <bruno@clisp.org>
56722         * lib/safe-alloc.h: Use the standard header with GPL copyright.
56723         * lib/safe-alloc.c: Likewise.
56724         Reported by Ian Beckwith <ianb@erislabs.net>.
56726 2009-09-18  Bruno Haible  <bruno@clisp.org>
56728         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
56729         Reported by <erobles@sensacd.com.mx>.
56731 2009-09-17  Eric Blake  <ebb9@byu.net>
56733         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
56734         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
56735         slashes when checking if last component is missing.
56736         * tests/test-canonicalize.c (main): Test this.
56738         canonicalize, canonicalize-lgpl: honor // if distinct from /
56739         * modules/canonicalize (Files): Add double-slash-root.m4.
56740         * modules/canonicalize-lgpl (Files): Likewise.
56741         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
56742         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
56743         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
56744         fallback definition.
56745         (canonicalize_filename_mode): Use it to protect //.
56746         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
56747         (__realpath): Likewise.
56748         * tests/test-canonicalize.c (main): Test this.
56749         * tests/test-canonicalize-lgpl.c (main): Likewise.
56750         * modules/canonicalize-tests (Depends-on): Add same-inode.
56751         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56753         canonicalize-lgpl: fix glibc bug with trailing slash
56754         * m4/canonicalize-lgpl.m4: Move contents...
56755         * m4/canonicalize.m4: ...here.
56756         (gl_CANONICALIZE_LGPL): Factor realpath check...
56757         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
56758         glibc 2.3.5 bug, fixed 2005-04-27.
56759         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
56760         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
56761         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
56762         * modules/canonicalize-lgpl (Files): Manage file rename.
56763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
56764         * modules/stdlib (Makefile.am): Substitute witness.
56765         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
56766         is needed.
56767         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
56768         replacement is required.
56769         * lib/canonicalize.c (canonicalize_file_name): Likewise.
56770         * doc/glibc-functions/canonicalize_file_name.texi
56771         (canonicalize_file_name): Document this.
56772         * doc/posix-functions/realpath.texi (realpath): Likewise.
56774         canonicalize-lgpl: reject non-directory with trailing slash
56775         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
56776         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
56777         catches failures in glibc 2.3.5.
56778         * tests/test-canonicalize.c (main): Likewise.
56780         canonicalize-lgpl: use native realpath if it works
56781         * lib/canonicalize-lgpl.c (realpath): Guard with
56782         FUNC_REALPATH_WORKS.
56783         * lib/stdlib.in.h (realpath): Make declaration optional based on
56784         HAVE_REALPATH.
56785         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
56786         native realpath works.
56787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
56788         * modules/stdlib (Makefile.am): Substitute witness.
56790         canonicalize, canonicalize-lgpl: use <stdlib.h>
56791         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
56792         (Include): Mention <stdlib.h>.
56793         (configure.ac): Mention functions we provide.
56794         * modules/canonicalize (configure.ac): Likewise.
56795         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
56796         realpath if canonicalize_file_name is missing.
56797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
56798         * modules/stdlib (Makefile.am): Substitute witnesses.
56799         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
56800         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
56801         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
56802         * NEWS: Document this.
56803         * doc/glibc-functions/canonicalize_file_name.texi
56804         (canonicalize_file_name): Likewise.
56805         * doc/posix-functions/realpath.texi (realpath): Likewise.
56806         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
56808         test-canonicalize: consolidate into single C program
56809         * tests/test-canonicalize.sh: Delete; move setup into...
56810         * tests/test-canonicalize.c (main): ...the program, making it
56811         easier to run in debugger.  Add some tests.
56812         * modules/canonicalize-tests (Files): Remove unused file.
56813         (Depends-on): Add progname.
56814         (configure.ac, Makefile.am): Simplify.
56816         test-canonicalize-lgpl: consolidate into single C program
56817         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
56818         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
56819         easier to run in debugger.  Add some tests.
56820         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
56821         (configure.ac, Makefile.am): Simplify.
56823         canonicalize: avoid resolvepath
56824         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
56825         unnecessary checks.
56826         * lib/canonicalize.c (includes): Simplify.
56827         (canonicalize_file_name): Drop resolvepath implementation.
56828         * modules/canonicalize (Depends-on): Drop filenamecat.
56830         canonicalize: don't lose errno
56831         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
56832         over calls to free.
56834         canonicalize: simplify errno handling
56835         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
56836         assignment.
56838         canonicalize, canonicalize-lgpl: update module dependencies
56839         * modules/canonicalize (Depends-on): Add extensions, lstat,
56840         pathmax, stdlib.
56841         (Files): Drop pathmax.h.
56842         (configure.ac): Adjust macro name.
56843         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
56844         lstat, stdlib, sys_stat.
56845         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
56846         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
56847         extensions.
56848         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
56849         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
56850         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
56851         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
56852         declaration, if available.
56853         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
56854         we can rely on the readlink module.
56855         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
56856         (includes): Use <unistd.h> unconditionally.
56858 2009-09-17  Eric Blake  <ebb9@byu.net>
56860         maint: make Include sections of modules consistent
56861         * modules/alloca: Use only header name; no need to list #include.
56862         * modules/alloca-opt: Likewise.
56863         * modules/arpa_inet: Likewise.
56864         * modules/canon-host: Likewise.
56865         * modules/configmake: Likewise.
56866         * modules/dirent: Likewise.
56867         * modules/eealloc: Likewise.
56868         * modules/environ: Likewise.
56869         * modules/fchdir: Likewise.
56870         * modules/fcntl: Likewise.
56871         * modules/fcntl-h: Likewise.
56872         * modules/gethrxtime: Likewise.
56873         * modules/gettime: Likewise.
56874         * modules/ignore-value: Likewise.
56875         * modules/inet_ntop: Likewise.
56876         * modules/inet_pton: Likewise.
56877         * modules/inttypes: Likewise.
56878         * modules/isnand-nolibm: Likewise.
56879         * modules/isnanf-nolibm: Likewise.
56880         * modules/mbchar: Likewise.
56881         * modules/mbfile: Likewise.
56882         * modules/mbiter: Likewise.
56883         * modules/mbuiter: Likewise.
56884         * modules/netdb: Likewise.
56885         * modules/netinet_in: Likewise.
56886         * modules/nproc: Likewise.
56887         * modules/pagealign_alloc: Likewise.
56888         * modules/poll: Likewise.
56889         * modules/printf-frexp: Likewise.
56890         * modules/pthread: Likewise.
56891         * modules/putenv: Likewise.
56892         * modules/random_r: Likewise.
56893         * modules/relocatable-prog: Likewise.
56894         * modules/search: Likewise.
56895         * modules/select: Likewise.
56896         * modules/selinux-h: Likewise.
56897         * modules/settime: Likewise.
56898         * modules/signal: Likewise.
56899         * modules/size_max: Likewise.
56900         * modules/socklen: Likewise.
56901         * modules/ssize_t: Likewise.
56902         * modules/stdarg: Likewise.
56903         * modules/stdbool: Likewise.
56904         * modules/stddef: Likewise.
56905         * modules/stdint: Likewise.
56906         * modules/stdio: Likewise.
56907         * modules/stdlib: Likewise.
56908         * modules/string: Likewise.
56909         * modules/strings: Likewise.
56910         * modules/sys_file: Likewise.
56911         * modules/sys_ioctl: Likewise.
56912         * modules/sys_select: Likewise.
56913         * modules/sys_socket: Likewise.
56914         * modules/sys_stat: Likewise.
56915         * modules/sys_time: Likewise.
56916         * modules/sys_times: Likewise.
56917         * modules/sys_utsname: Likewise.
56918         * modules/sys_wait: Likewise.
56919         * modules/sysexits: Likewise.
56920         * modules/time: Likewise.
56921         * modules/times: Likewise.
56922         * modules/tmpfile: Likewise.
56923         * modules/trim: Likewise.
56924         * modules/unistd: Likewise.
56925         * modules/wchar: Likewise.
56926         * modules/wctype: Likewise.
56928 2009-09-17  Bruno Haible  <bruno@clisp.org>
56930         Make getdate.y compile on QNX and NetBSD 5 / i386.
56931         * m4/getdate.m4 (gl_GETDATE): Conditionally define
56932         TIME_T_FITS_IN_LONG_INT.
56933         * lib/getdate.y (long_time_t): New type.
56934         (relative_time): Change type of 'seconds' field to long_time_t.
56935         (get_date): Update types of local variables. Check against overflow
56936         during conversion from long_time_t to time_t.
56937         Reported by Matt Kraai <kraai@ftbfs.org>
56938         and Hasso Tepper <hasso@netbsd.org>.
56940 2009-09-17  Bruno Haible  <bruno@clisp.org>
56942         * modules/COPYING: Update copyright years.
56943         * modules/README: Likeiwse.
56944         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
56945         Reported by Ian Beckwith <ianb@erislabs.net>.
56947 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
56949         * users.txt: Update references for gnuit package.
56951 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
56953         * m4/getdelim.m4: Fix typo in copyright line.
56955 2009-09-17  Bruno Haible  <bruno@clisp.org>
56957         * lib/atoll.c: Use the standard header with GPL copyright.
56958         * lib/argz.in.h: Likewise.
56959         * lib/glob.c: Likewise.
56960         * lib/glob-libc.h: Likewise.
56961         * lib/random_r.c: Likewise.
56962         * lib/siglist.h: Likewise.
56963         * lib/strsignal.c: Likewise.
56964         Reported by Ian Beckwith <ianb@erislabs.net>.
56966 2009-09-17  Eric Blake  <ebb9@byu.net>
56968         rmdir: ensure correct dependency order
56969         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
56971 2009-09-17  Bruno Haible  <bruno@clisp.org>
56973         Disable assertion that fails on NetBSD 5 / i386.
56974         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
56975         Reported by Sam Steingold <sds@gnu.org>
56976         and Hasso Tepper <hasso@netbsd.org>.
56978 2009-09-16  Eric Blake  <ebb9@byu.net>
56980         unlinkdir: port to mingw
56981         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
56982         on which no one can unlink a directory.
56984         stdlib: sort witness names
56985         * modules/stdlib (Makefile.am): Sort replacements.
56986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56987         * lib/stdlib.in.h: Likewise.
56989         parse-duration-tests: avoid link failure
56990         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
56991         LIBINTL.
56992         Reported by Tom G. Christensen.
56994         openat-tests: ensure unlinkat behaves like rmdir
56995         * tests/test-rmdir.c (main): Factor guts...
56996         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
56997         * modules/rmdir-tests (Files): Ship new file.
56998         * modules/openat-tests: New test.
56999         * tests/test-unlinkat.c: Likewise.
57001         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
57002         * modules/rmdir-errno (Status, Notice): Now obsolete.
57004         rmdir: work around cygwin 1.5.x and mingw bugs
57005         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
57006         * lib/rmdir.c (rmdir): Work around it.
57007         * modules/rmdir (Status, Notice): No longer obsolete.
57008         (Files): Add dos.m4.
57009         (Depends-on): Add unistd.
57010         (configure.ac): Set witnesses.
57011         (License): Relax to LGPLv2+.
57012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
57013         * modules/unistd (Makefile.am): Substitute witnesses.
57014         * lib/unistd.in.h (rmdir): Declare replacement.
57015         * doc/posix-functions/rmdir.texi (rmdir): Document this.
57016         * modules/rmdir-tests: New tests.
57017         * tests/test-rmdir.c: Likewise.
57019 2009-09-15  Eric Blake  <ebb9@byu.net>
57021         fchdir: improve use of replacement functions
57022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
57023         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
57024         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
57025         REPLACE_CLOSEDIR.
57026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
57027         * modules/sys_stat (Makefile.am): Substitute correct witness.
57028         * modules/dirent (Makefile.am): Likewise.
57029         * modules/unistd (Makefile.am): Likewise.
57030         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
57031         * lib/unistd.in.h (dup): Likewise.
57032         * lib/sys_stat.in.h (fstat): Likewise.
57034         maint: ignore gnulib-tool temp files
57035         * .gitignore: Ignore files created during gnulib-tool --test.
57037 2009-09-13  Jim Meyering  <meyering@redhat.com>
57039         posixtm: don't reject a time that specify "60" as the number of seconds
57040         * lib/posixtm.c (posixtime): The code to reject invalid dates
57041         would also reject a time specified with the .60 suffix.
57042         But POSIX allows that, in order to accommodate leap seconds.
57043         So don't reject it.
57044         (main): Adjust tests accordingly.
57045         * modules/posixtm (Depends-on): Add stpcpy.
57047 2009-09-11  Jim Meyering  <meyering@redhat.com>
57049         announce-gen: include [$release_type] in emitted Subject:
57050         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
57051         e.g., [stable] in the emitted Subject: line.
57053 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57055         Remove obsolete macros from several modules.
57056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
57057         obsolete Autoconf macros with their modern counterparts.
57058         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
57059         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
57060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
57061         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57062         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
57063         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57065         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
57066         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
57067         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
57068         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
57069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
57070         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
57071         * m4/sockets.m4 (gl_SOCKETS): Likewise.
57072         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
57073         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
57074         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57075         * m4/time_r.m4 (gl_TIME_R): Likewise.
57076         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
57077         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
57078         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57080         Fix copyright header in build-aux scripts.
57081         * build-aux/git-version-gen: Fix copyright header to match GPLv3
57082         recommendation.
57083         * build-aux/ncftpput-ftp: Likewise.
57084         * build-aux/update-copyright: Likewise.
57086 2009-09-09  Eric Blake  <ebb9@byu.net>
57088         test-link: allow Linux choice of errno
57089         * tests/test-link.c (main): Relax test for alternate error.
57091         strndup: fix improper m4 caching
57092         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
57093         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
57094         (gl_PREREQ_STRNDUP): Delete.
57095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
57096         * modules/string (Makefile.am): Substitute it.
57097         * lib/string.in.h (strndup): Modernize prototype.
57099         getcwd: port to mingw
57100         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
57101         different from the POSIX assumptions made throughout the getcwd
57102         module; fortunately, the mingw getcwd does not need replacement.
57103         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
57104         * modules/getcwd-tests: New test.
57105         * tests/test-getcwd.c: Likewise.
57107         link: fix platform bugs
57108         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
57109         * lib/link.c (link): Work around them.  Fix related mingw bug.
57110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
57111         * modules/unistd (Makefile.am): Substitute it.
57112         * lib/unistd.in.h (link): Declare replacement.
57113         * doc/posix-functions/link.texi (link): Document this.
57114         * modules/link (Depends-on): Add strdup-posix, sys_stat.
57116         test-link: consolidate into single C program, test more cases
57117         * tests/test-link.sh: Delete.
57118         * tests/test-link.c: Test more error conditions.  Exposes bugs on
57119         at least Cygwin and Solaris.
57120         * modules/link-tests (Files): Remove unused file.
57121         (Depends-on): Add errno, sys_stat.
57122         (Makefile.am): Simplify.
57124 2009-09-08  Bruno Haible  <bruno@clisp.org>
57126         Work around towlower, towupper bug on mingw.
57127         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
57128         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
57129         * doc/posix-functions/towlower.texi: Mention the mingw bug.
57130         * doc/posix-functions/towupper.texi: Likewise.
57131         Reported by Eric Blake.
57133 2009-09-08  Jim Meyering  <meyering@redhat.com>
57135         build: don't try to run autoheader if we don't use it
57136         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
57137         is not used in configure.ac.
57139 2009-09-08  Eric Blake  <ebb9@byu.net>
57141         euidaccess: fix compilation error
57142         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
57144         rawmemchr: relax license
57145         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
57146         okay.
57147         Reported by Jim Meyering.
57149         mkfifoat: new module
57150         * modules/mkfifoat: New file.
57151         * lib/mkfifoat.c: Likewise.
57152         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
57153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57154         * modules/sys_stat (Makefile.am): Use them.
57155         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
57156         * MODULES.html.sh (File system functions): Mention module.
57157         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
57158         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
57159         * modules/mkfifoat-tests: New test.
57160         * tests/test-mkfifoat.c: Likewise.
57162         strchrnul: relax license
57163         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
57164         okay.
57165         Reported by Jim Meyering.
57167 2009-09-08  Eric Blake  <ebb9@byu.net>
57169         fstatat: fix compilation on Solaris
57170         * lib/fstatat.c (includes): Add fcntl.h.
57171         Reported by Pádraig Brady.
57173 2009-09-07  Eric Blake  <ebb9@byu.net>
57175         rename: modernize replacement
57176         * modules/rename (Depends-on): Add stdio.
57177         (configure.ac): Declare witness.
57178         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
57179         stdio take care of replacement.
57180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57181         * modules/stdio (Makefile.am): Substitute them.
57182         * lib/stdio.in.h (rename): Declare replacement.
57183         * lib/rename.c (includes): Allow cross-compilation to non-windows
57184         machines.
57185         * doc/posix-functions/rename.texi (rename): Improve
57186         documentation.
57188         stdio: sort witness names
57189         * modules/stdio (Makefile.am): Sort replacements.
57190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57191         * lib/stdio.in.h: Likewise.
57193         getcwd: minor cleanups
57194         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
57195         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
57197         openat: provide more convenience names
57198         * modules/faccessat (configure.ac): Add C witness.
57199         * lib/unistd.in.h (readlinkat): Fix typo.
57200         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
57201         convenience wrappers.
57202         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
57203         wrappers in syntax checks.
57205 2009-09-06  Eric Blake  <ebb9@byu.net>
57207         doc: fix comments in recent patches
57208         * lib/faccessat.c: Mention correct function.
57209         * lib/fchmodat.c: Likewise.
57210         * lib/fchownat.c: Likewise.
57211         * lib/symlinkat.c: Likewise.
57212         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
57213         constants.
57215         faccessat, symlinkat: continue cleanup of previous patch
57216         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
57217         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
57218         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
57219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
57220         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
57221         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
57222         set.
57224 2009-09-06  Bruno Haible  <bruno@clisp.org>
57226         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
57227         (fstatat): Declare if GNULIB_FSTATAT is set.
57228         (mkdirat): Declare if GNULIB_MKDIRAT is set.
57229         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
57230         (unlinkat): Declare if GNULIB_UNLINKAT is set.
57231         * modules/fcntl-h (Files): Remove m4/openat.m4.
57232         * modules/sys_stat (Files): Remove m4/openat.m4.
57233         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
57234         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
57235         * modules/unistd (Files): Remove m4/openat.m4.
57236         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
57237         GNULIB_OPENAT.
57238         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
57239         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
57240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
57241         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
57242         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
57243         gl_OPENAT_DEFAULTS.
57244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
57245         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
57246         Don't require gl_OPENAT_DEFAULTS.
57247         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
57248         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
57249         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
57250         (gl_OPENAT_DEFAULTS): Remove macro.
57252 2009-09-06  Bruno Haible  <bruno@clisp.org>
57254         * modules/openat (configure.ac): Remove unneeded witness.
57256 2009-09-06  Bruno Haible  <bruno@clisp.org>
57258         Set errno to ENOSYS when a function is entirely unsupported.
57259         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
57260         EOPNOTSUPP.
57261         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
57262         * modules/chown (Depends-on): Remove errno.
57264 2009-09-06  Bruno Haible  <bruno@clisp.org>
57266         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
57268 2009-09-06  Bruno Haible  <bruno@clisp.org>
57270         * lib/sys_stat.in.h: Fix preprocessor command indentation.
57272 2009-09-06  Ben Pfaff  <blp@gnu.org>
57273             Bruno Haible  <bruno@clisp.org>
57275         Work around a glibc bug in strtok_r.
57276         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
57277         Undefine if UNDEFINE_STRTOK_R is set.
57278         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
57279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57280         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
57281         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
57282         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
57283         UNDEFINE_STRTOK_R.
57284         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
57286 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
57288         exclude: minor fix
57289         * lib/exclude.c: Include wctype.h
57291 2009-09-06  Akim Demaille  <demaille@gostai.com>
57293         bootstrap: improve error message
57294         * build-aux/bootstrap (find_tool): Upon failure, report the list
57295         of candidates.
57296         Honor the initial value of the envvar.
57298 2009-09-05  Eric Blake  <ebb9@byu.net>
57300         symlinkat: new module
57301         * modules/symlinkat: New file.
57302         * lib/symlinkat.c: Likewise.
57303         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
57304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
57305         * modules/unistd (Makefile.am): Use them.
57306         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
57307         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
57308         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
57309         * MODULES.html.sh (File system functions): Mention module.
57310         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57311         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57312         * modules/symlinkat-tests: New test.
57313         * tests/test-symlinkat.c: Likewise.
57315         test-openat-safer: add more checks
57316         * tests/test-openat-safer.c (main): Check more code paths.
57318 2009-09-05  Jim Meyering  <meyering@redhat.com>
57320         syntax-check: detect unnecessary inclusion of openat.h
57321         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
57323 2009-09-05  Bruno Haible  <bruno@clisp.org>
57325         Support towlower, towupper.
57326         * doc/posix-functions/towlower.texi: Mention module wctype.
57327         * doc/posix-functions/towupper.texi: Likewise.
57328         * lib/wctype.in.h (towlower, towupper): New functions.
57329         * tests/test-wctype.c: Include stdio.h, stdlib.h.
57330         (ASSERT): New macro.
57331         (e): New variable.
57332         (main): Test also towlower, towupper. Test WEOF argument.
57333         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
57335 2009-09-05  Bruno Haible  <bruno@clisp.org>
57337         Fix conversion behaviour when the input is invalid.
57338         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
57339         mark occurring in first pass of indirect conversion.
57340         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
57341         input.
57342         Found by clang's static analyzer.
57344 2009-09-05  Bruno Haible  <bruno@clisp.org>
57346         * tests/test-striconveh.c (main): Test indirect conversion on platforms
57347         where direct conversion is possible.
57349 2009-09-04  Eric Blake  <ebb9@byu.net>
57351         openat: fail with ENOENT on empty name
57352         * lib/openat-proc.c (openat_proc_name): Special-case the empty
57353         buffer.
57355         link-follow: fix logic bug in prior patch
57356         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
57357         reversed sense of yes and no in prior patch.  Avoid confusing
57358         compilation failure with desired semantics.
57360         link-follow: accommodate mingw and cross-compilation
57361         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
57362         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
57363         cross-compilation results to -1, to make linkat easier to
57364         implement when cross-compiling.  Trivially support mingw.
57365         * modules/link-follow (configure.ac): Call new name.
57366         * NEWS: Mention this.
57368 2009-09-03  Eric Blake  <ebb9@byu.net>
57370         faccessat: compile replacement
57371         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
57372         needed.
57374         fts: fix compilation error
57375         * lib/fts.c (includes): Re-add "openat.h", for
57376         openat_needs_fchdir.
57378         faccessat: new module
57379         * modules/faccessat: New file.
57380         * lib/faccessat.c: Likewise.
57381         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
57382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57383         * modules/unistd (Makefile.am): Use it.
57384         * lib/unistd.in.h (faccessat): Declare it.
57385         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
57386         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
57387         * MODULES.html.sh (File system functions): Mention it.
57388         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
57389         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
57391         euidaccess: prefer POSIX over non-standard implementation
57392         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
57393         * lib/euidaccess.c (euidaccess): Use it if available.
57395         openat: make template easier to use
57396         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
57397         AT_FUNC_F2 to be undefined.
57398         (VALIDATE_FLAG): New macro; use it to reject bad flags.
57399         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
57400         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
57401         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
57402         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
57403         Likewise.
57404         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
57405         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
57406         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
57407         Likewise.
57409         openat: declare in POSIX headers
57410         * NEWS: Mention this.
57411         * modules/openat (configure.ac): Declare witnesses.
57412         (Depends-on): Add fcntl-h, sys_stat, unistd.
57413         (Include): Mention correct headers.
57414         * modules/fcntl-h (Depends-on): Add link-warning.
57415         (Files): Add openat.m4.
57416         (Makefile.am): Substitute witnesses.
57417         * modules/sys_stat (Files, Makefile.am): Likewise.
57418         * modules/unistd (Files, Makefile.am): Likewise.
57419         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
57420         (gl_OPENAT_DEFAULTS): New macro.
57421         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
57422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
57423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
57424         (SYS_STAT_H): Remove unused variable.
57425         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
57426         * lib/fcntl--.h (includes): Remove unneeded header.
57427         * lib/openat-safer.c (includes): Likewise.
57428         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
57429         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
57430         appropriate headers.
57431         (__OPENAT_PREFIX): Delete.
57432         * lib/fcntl.in.h (openat): Provide declaration.
57433         (AT_FDCWD): Fix Solaris bug.
57434         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
57435         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
57436         * lib/fchmodat.c (includes):  Adjust to find declaration.
57437         * lib/fchownat.c (includes): Likewise.
57438         * lib/mkdirat.c (includes): Likewise.
57439         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
57440         still visible.
57442 2009-09-02  Eric Blake  <ebb9@byu.net>
57444         errno: use consistently
57445         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
57446         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
57447         * lib/canonicalize.c (ELOOP): Likewise.
57448         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
57449         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
57450         * lib/lchown.c (EOPNOTSUPP): Likewise.
57451         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
57452         * lib/savewd.c (ESTALE): Likewise.
57453         * lib/settime.c (ENOSYS): Likewise.
57454         * lib/utimens.c (ENOSYS): Likewise.
57455         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
57456         * lib/chdir-safer.c (ELOOP): Likewise.
57457         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
57458         * modules/c-stack (Depends-on): Add errno.
57459         * modules/canonicalize (Depends-on): Likewise.
57460         * modules/chdir-safer (Depends-on): Likewise.
57461         * modules/fdopendir (Depends-on): Likewise.
57462         * modules/inet_ntop (Depends-on): Likewise.
57463         * modules/inet_pton (Depends-on): Likewise.
57464         * modules/lchown (Depends-on): Likewise.
57465         * modules/openat (Depends-on): Likewise.
57466         * modules/savewd (Depends-on): Likewise.
57467         * modules/settime (Depends-on): Likewise.
57468         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
57470         fts: avoid leaking fds
57471         * modules/fts (Depends-on): Add cloexec.
57472         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
57473         flag.
57475         fts: make directory fds more robust
57476         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
57477         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
57479         backupfile, chdir-long, fts, savedir: make safer
57480         * lib/backupfile.c (includes): Use "dirent--.h", since
57481         numbered_backup can write to stderr during readdir.
57482         * lib/savedir.c (includes): Likewise.
57483         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
57484         emulation can write to stderr on failure.
57485         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
57486         * lib/getcwd.c: Document why opendir_safer is unused.
57487         * lib/glob.c: Likewise.
57488         * lib/scandir.c: Likewise.
57489         * lib/openat-proc.c: Likewise, for open_safer.
57490         * modules/backupfile (Depends-on): Add dirent-safer.
57491         * modules/savedir (Depends-on): Likewise.
57492         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
57493         * modules/chdir-long (Depends-on): Add openat-safer.
57495         openat-safer: new module
57496         * modules/openat-safer: New file.
57497         * lib/openat-safer.c: Likewise.
57498         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
57499         * lib/fcntl-safer.h (openat_safer): Declare.
57500         * lib/fcntl--.h (openat): Override.
57501         * MODULES.html.sh (File descriptor based I/O): Mention it.
57502         * lib/openat.h: Add double-inclusion guards.
57503         * lib/openat.c (includes): Only include "fcntl-safer.h", not
57504         "fcntl--.h", so we can implement openat.
57505         * modules/openat-safer-tests: New test.
57506         * tests/test-openat-safer.c: New file.
57508         dirent-safer: new module
57509         * modules/dirent-safer: New file.
57510         * lib/dirent--.h: Likewise.
57511         * lib/dirent-safer.h: Likewise.
57512         * lib/opendir-safer.c: Likewise.
57513         * m4/dirent-safer.m4: Likewise.
57514         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
57515         * modules/dirent-safer-tests: New test.
57516         * tests/test-dirent-safer.c: New file.
57517         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
57519         fdopendir: optimize on mingw
57520         * lib/unistd.in.h (_gl_directory_name): New prototype.
57521         * lib/fchdir.c (_gl_directory_name): Implement it.
57522         (fchdir): Use it to simplify implementation.
57523         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
57524         fchdir, when available, to avoid calling [f]chdir().
57526         fdopendir: split into its own module
57527         * lib/openat.c (fdopendir): Move...
57528         * lib/fdopendir.c: ...into new file.
57529         * modules/fdopendir: New module.
57530         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
57531         * modules/openat (Depends-on): Add fdopendir.
57532         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
57533         fdopendir here.
57534         * modules/savedir (Depends-on): Only need fdopendir, not full
57535         openat.
57536         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
57537         * lib/openat.h (fdopendir): Drop prototype.
57538         * lib/dirent.in.h (fdopendir): Provide prototype.
57539         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
57540         * modules/dirent (Makefile.am): Substitute them.
57541         * MODULES.html.sh (File system functions): Mention it.
57542         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
57543         * modules/fdopendir-tests: New file.
57544         * tests/test-fdopendir.c: Likewise.
57546         fchdir: use more consistent macro convention
57547         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
57548         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
57549         REPLACE_FCHDIR, rather than relying on config.h macros.
57550         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
57551         inside a single make-time REPLACE_FCHDIR block, rather than using
57552         the config.h FCHDIR_REPLACEMENT.
57553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
57554         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
57555         Manage fstat replacement.
57556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
57557         REPLACE_FCHDIR.
57558         * modules/sys_stat (Files): Add m4/unistd_h.m4.
57559         (Makefile.am): Substitute REPLACE_FCHDIR.
57560         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
57561         FCHDIR_REPLACEMENT.
57562         * lib/dup-safer.c (dup_safer): Likewise.
57563         * lib/dup2.c (rpl_dup2): Likewise.
57564         * lib/dup3.c (rpl_dup3): Likewise.
57565         * lib/open.c (rpl_open): Likewise.
57567         fchdir: simplify error handling, and support dup3
57568         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
57569         stdbool, malloc-posix, realloc-posix.
57570         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
57571         (ensure_dirs_slot): Return false on allocation failure.
57572         (rpl_dup2): Delete.
57573         (_gl_register_dup): New function.
57574         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
57575         (_gl_register_fd): Close fd on allocation failure.
57576         * lib/fcntl.in.h (_gl_register_fd): Update signature.
57577         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
57578         prototype.
57579         (rpl_dup2_fchdir): Delete prototype.
57580         * lib/open.c (open): Update caller.
57581         * lib/dup2.c (dup2): Track fchdir metadata.
57582         * lib/dup3.c (dup3): Likewise.
57583         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
57584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
57586 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57588         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
57589         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
57590         don't pass arguments to AC_OUTPUT.
57592 2009-09-02  Bruno Haible  <bruno@clisp.org>
57594         * modules/mkdtemp (License): Relicense under LGPLv2+.
57595         Reported by Paolo Bonzini.
57597 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57599         Replace uses of obsolete autoconf macros in Jim's modules.
57600         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
57601         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
57602         can evoke a warning from autoconf when run with -Wobsolete
57603         enabled.  They were declared obsolete for good reasons (see
57604         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
57605         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
57606         should not continue using the deprecated macros.
57607         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
57608         obsolete Autoconf macros with modern counterparts.
57609         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57610         * m4/dos.m4 (gl_AC_DOS): Likewise.
57611         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
57612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
57613         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
57614         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
57615         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
57616         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
57617         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
57618         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
57619         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57620         Likewise.
57621         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
57622         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
57623         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
57624         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
57625         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57626         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
57628 2009-09-01  Eric Blake  <ebb9@byu.net>
57630         fchdir: fix off-by-one bug in previous patch
57631         * lib/fchdir.c (rpl_fstat): Use correct bounds.
57632         (_gl_unregister_fd): Delete useless if.
57634 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
57636         maint.mk: sort the list of syntax-check rules
57637         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
57638         easier to get a sense of progress when the rules are run sequentially
57639         and take a long time.
57641 2009-09-01  Simon Josefsson  <simon@josefsson.org>
57643         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
57644         * modules/netinet_in: Likewise.
57645         * modules/sys_file: Likewise.
57646         * modules/sys_ioctl: Likewise.
57647         * modules/sys_select: Likewise.
57648         * modules/sys_socket: Likewise.
57649         * modules/sys_stat: Likewise.
57650         * modules/sys_time: Likewise.
57651         * modules/sys_times: Likewise.
57652         * modules/sys_utsname: Likewise.
57653         * modules/sys_wait: Likewise.
57655 2009-09-01  Jim Meyering  <meyering@redhat.com>
57657         fts: help ensure that return values are not ignored
57658         * lib/fts_.h (__GNUC_PREREQ): Define.
57659         (__attribute_warn_unused_result__): Define.
57660         (fts_children, fts_close, fts_open, fts_read): Declare with
57661         __attribute_warn_unused_result__.
57663         fts: fts_close now fails also when closing a dir file descriptor fails
57664         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
57665         and propagate to caller, along with errno.
57667         announce-gen: correct formatting in --help output
57668         * build-aux/announce-gen (usage): Move the one-line description in
57669         --help output "up", to where it belongs, just after Usage:.
57671 2009-08-31  Eric Blake  <ebb9@byu.net>
57673         fchdir: port to mingw
57674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
57675         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
57676         opened, then use a substitute.
57677         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
57678         replacement.
57679         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
57680         (_gl_register_fd): No need to check stat if open already filters
57681         all directories.
57682         (fchdir): Fix error condition to match POSIX.
57683         * modules/fchdir (Depends-on): Add sys_stat.
57684         * doc/posix-functions/open.texi (open): Document the limitation.
57685         * modules/fchdir-tests: New file.
57686         * tests/test-fchdir.c: Likewise.
57688         canonicalize: allow cross-testing from cygwin to mingw
57689         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
57690         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
57691         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
57692         Likewise.
57693         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
57694         target does not support symlinks.
57695         * tests/test-canonicalize-lgpl.sh: Likewise.
57697         chown: avoid compilation warning on mingw
57698         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
57699         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
57700         mingw.
57701         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
57702         * modules/chown (Depends-on): Add errno.
57704 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57706         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
57707         command.
57709 2009-08-31  Jim Meyering  <meyering@redhat.com>
57711         canonicalize: remove useless initialization
57712         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
57713         initialization of local, "end".
57715 2009-08-30  Bruno Haible  <bruno@clisp.org>
57717         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
57718         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
57719         ENOSYS.
57721 2009-08-30  Bruno Haible  <bruno@clisp.org>
57723         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
57724         /usr/xpg4/bin/tr when it exists.
57725         * tests/test-pipe-filter-gi1.sh: Likewise.
57727 2009-08-30  Bruno Haible  <bruno@clisp.org>
57729         Work around deficient /usr/bin/id program on Solaris.
57730         * tests/test-file-has-acl.sh (ID): New variable.
57731         * tests/test-set-mode-acl.sh (ID): Likewise.
57732         * tests/test-copy-acl.sh (ID): Likewise.
57733         * tests/test-copy-file.sh (ID): Likewise.
57735 2009-08-30  Bruno Haible  <bruno@clisp.org>
57737         New module 'xstriconveh'.
57738         * lib/xstriconveh.h: New file.
57739         * lib/xstriconveh.c: New file.
57740         * modules/xstriconveh: New file.
57742 2009-08-30  Bruno Haible  <bruno@clisp.org>
57744         Make it easier to use mem_cd_iconveh.
57745         * lib/striconveh.h (iconveh_t): New type.
57746         (iconveh_open, iconveh_close): New declarations.
57747         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
57748         with a single 'const iconveh_t *' argument.
57749         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
57750         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
57751         with a single 'const iconveh_t *' argument.
57752         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
57753         * tests/test-striconveh.c (main): Update.
57754         * NEWS: Mention the change.
57756 2009-08-30  Bruno Haible  <bruno@clisp.org>
57758         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
57759         problem.
57761 2009-08-30  Bruno Haible  <bruno@clisp.org>
57763         Work around iconv_open problem on Solaris.
57764         * lib/iconv_open-solaris.gperf: New file.
57765         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
57766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
57767         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
57768         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
57769         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
57770         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
57772 2009-08-29  Jim Meyering  <meyering@redhat.com>
57774         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
57775         * top/maint.mk (cvs-check): Remove target; it was just an alias
57776         to the better-named vc-diff-check.
57777         (maintainer-distcheck): Remove rule.  It was used only from
57778         the (alpha/beta/major) target, and all of its commands but one
57779         were coreutils-specific.
57780         (vc-dist): Remove rule.
57781         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
57782         Run vc-diff-check, not vc-dist.
57783         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
57785 2009-08-27  Bruno Haible  <bruno@clisp.org>
57787         * tests/test-bitrotate.c (main): Remove test that uses a shift count
57788         of 0.
57790 2009-08-27  Bruno Haible  <bruno@clisp.org>
57792         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
57793         compilers.
57794         * doc/func.texi: Document the SunPRO C bug.
57796 2009-08-27  Bruno Haible  <bruno@clisp.org>
57798         Fix link error on Solaris.
57799         * tests/test-parse-duration.c (xstrdup): Remove function.
57801 2009-08-26  Pádraig Brady  <P@draigbrady.com>
57803         ignore-value: handle pointer types, too
57804         * lib/ignore-value.h (__attribute__): Remove definition.
57805         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
57806         of a more concise and more-often effective "(void) i" statement.
57807         (ignore_ptr): New function to suppress warnings from functions that
57808         return pointers, and to make it explicit that one function doesn't
57809         handle all cases.
57811 2009-08-25  Bruno Haible  <bruno@clisp.org>
57813         dup2: work around a Linux bug.
57814         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
57815         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
57816         * doc/posix-functions/dup2.texi: Mention the Linux bug.
57817         Reported by Simon Josefsson.
57819 2009-08-25  Jim Meyering  <meyering@redhat.com>
57821         libguestfs uses gnulib
57822         * users.txt: Add libguestfs.
57824 2009-08-24  Eric Blake  <ebb9@byu.net>
57826         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
57827         * lib/pipe2.c (includes): Add binary-io.h.
57828         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
57830 2009-08-24  Bruno Haible  <bruno@clisp.org>
57832         Tolerate declared but missing accept4 syscall.
57833         * lib/accept4.c (accept4): Invoke original accept4 function first, if
57834         available.
57835         * lib/sys_socket.in.h (accept4): If the function is already present,
57836         override it.
57837         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
57838         * modules/accept4 (Makefile.am): Compile accept4.c always.
57839         Reported by Paolo Bonzini and Eric Blake.
57841 2009-08-23  Bruno Haible  <bruno@clisp.org>
57843         New module 'accept4'.
57844         * lib/sys_socket.in.h (accept4): New declaration.
57845         * lib/accept4.c: New file.
57846         * m4/accept4.m4: New file.
57847         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
57848         GNULIB_ACCEPT4, HAVE_ACCEPT4.
57849         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
57850         HAVE_ACCEPT4.
57851         * modules/accept4: New file.
57852         * doc/glibc-functions/accept4.texi: Mention the new module.
57854 2009-08-24  Jim Meyering  <meyering@redhat.com>
57856         progname: also set global program_invocation_name, when possible
57857         Before this change, a libtool-enabled program that calls glibc's
57858         error function would report the program name as
57859         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
57860         * modules/progname (configure.ac): Check for a declaration of
57861         program_invocation_name.
57862         * lib/progname.c:  Include <errno.h>.
57863         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
57864         Set program_invocation_name.
57866 2009-08-23  Bruno Haible  <bruno@clisp.org>
57868         * lib/dup3.c: Include <string.h>.
57870 2009-08-23  Bruno Haible  <bruno@clisp.org>
57872         * lib/dup3.c (dup3): Test only once whether the system actually exists.
57873         * lib/pipe2.c (pipe2): Likewise.
57874         Suggested by Eric Blake.
57876 2009-08-23  Bruno Haible  <bruno@clisp.org>
57878         Tolerate declared but missing dup3 syscall.
57879         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
57880         * lib/unistd.in.h (dup3): If the function is already present,
57881         override it.
57882         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
57883         * modules/dup3 (Makefile.am): Compile dup3.c always.
57884         Reported by Paolo Bonzini.
57886 2009-08-23  Bruno Haible  <bruno@clisp.org>
57888         Tolerate declared but missing pipe2 syscall.
57889         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
57890         available.
57891         * lib/unistd.in.h (pipe2): If the function is already present,
57892         override it.
57893         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
57894         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
57895         Reported by Paolo Bonzini.
57897 2009-08-23  Bruno Haible  <bruno@clisp.org>
57899         * lib/pipe2.c (pipe2): Move #ifs inside function.
57901 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
57903         quotearg: document limitations of quote_these_too
57904         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
57905         those limitations are created.
57906         * lib/quotearg.h (set_char_quoting): Document that digits and
57907         letters that are special after backslash are not permitted.
57908         (quotearg_char): Cross-reference set_char_quoting documentation.
57910 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
57912         quotearg: implement custom_quoting_style
57913         * lib/quotearg.c: (struct quoting_options): Add left_quote and
57914         right_quote fields.
57915         (set_custom_quoting): New public function.
57916         (quotearg_buffer_restyled): Add left_quote and right_quote
57917         arguments, handle them very much like locale quoting, and update
57918         all uses.
57919         (quotearg_n_custom): New public function.
57920         (quotearg_n_custom_mem): New public function.
57921         (quotearg_custom): New public function.
57922         (quotearg_custom_mem): New public function.
57923         * lib/quotearg.h: Prototype and document new public functions.
57924         (enum quoting_style): For escape_quoting_style and
57925         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
57926         ignored even though they're otherwise like c_quoting_style.
57927         Add custom_quoting_style member and document with comparison to
57928         clocale_quoting_style.
57929         * tests/test-quotearg.c (custom_quotes): New array.
57930         (custom_results): New array.
57931         (main): Extend to test custom quoting.
57933 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
57935         quotearg: fix right quote escaping when it's in quote_these_too
57936         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
57937         quote, be sure to prepend only one backslash.
57938         * tests/test-quotearg.c (use_quote_double_quotes): New function.
57939         (main): Test it.
57941 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
57943         quotearg-tests: test escaping of embedded locale quotes
57944         * tests/test-quotearg.c (struct result_strings): Add member for
57945         new input.
57946         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
57947         (inputs): Add new input.
57948         (results_g): Add expected results.
57949         (flag_results): Likewise.
57950         (locale_results): Likewise.
57951         (compare_strings): Check those.
57953 2009-08-23  Bruno Haible  <bruno@clisp.org>
57955         Tests for module 'dup3'.
57956         * modules/dup3-tests: New file.
57957         * tests/test-dup3.c: New file.
57959         New module 'dup3'.
57960         * lib/unistd.in.h (dup3): New declaration.
57961         * lib/dup3.c: New file.
57962         * m4/dup3.m4: New file.
57963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
57964         HAVE_DUP3.
57965         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
57966         * modules/dup3: New file.
57967         * doc/glibc-functions/dup3.texi: Mention the new module.
57969 2009-08-23  Bruno Haible  <bruno@clisp.org>
57971         Tweak the dup2 test.
57972         * tests/test-dup2.c (main): Create the test file empty. Verify that an
57973         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
57974         the test file is still empty. Fix argument order of lseek.
57976 2009-08-23  Bruno Haible  <bruno@clisp.org>
57978         Avoid test link errors when the modules getopt-gnu, gettext are used.
57979         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
57980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57982 2009-08-23  Bruno Haible  <bruno@clisp.org>
57984         Fix getdtablesize() on mingw.
57985         * lib/getdtablesize.c (getdtablesize): Implement differently.
57986         * lib/unistd.in.h (getdtablesize): Improve comment.
57988 2009-08-23  Bruno Haible  <bruno@clisp.org>
57990         New module 'mkostemp'.
57991         Based on Ulrich Drepper's 2007-08-10 change in glibc.
57992         * lib/stdlib.in.h (mksotemp): New declaration.
57993         * lib/mkostemp.c: New file, from glibc with modifications.
57994         * lib/tempname.h (GT_FILE): Remove outdated comment.
57995         (gen_tempname): Add flags argument.
57996         * lib/tempname.c (__GT_BIGFILE): Remove macro.
57997         (__GT_FILE): Map to 1.
57998         (small_open, large_open): Remove macros.
57999         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
58000         * lib/mkstemp.c (mkstemp): Update.
58001         * lib/mkdtemp.c (mkdtemp): Likewise.
58002         * m4/mkostemp.m4: New file.
58003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
58004         HAVE_MKOSTEMP.
58005         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
58006         HAVE_MKOSTEMP.
58007         * modules/mkostemp: New file, based on modules/mkstemp.
58008         * doc/glibc-functions/mkostemp.texi: Mention the new module.
58009         * NEWS: Mention the change.
58011 2009-08-23  Bruno Haible  <bruno@clisp.org>
58013         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
58014         Reported by Eric Blake.
58016 2009-08-23  Bruno Haible  <bruno@clisp.org>
58018         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
58019         Reported by Eric Blake.
58021 2009-08-23  Bruno Haible  <bruno@clisp.org>
58023         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
58024         * modules/pipe2 (Depends-on): Likewise.
58026 2009-08-23  Eric Blake  <ebb9@byu.net>
58028         fcntl-h: add O_TTY_INIT support
58029         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
58030         * tests/test-fcntl-h.c (o): Test it.
58031         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58033         fcntl-h: rename from fcntl, in preparation for fcntl(2)
58034         * modules/fcntl: Move <fcntl.h> header replacement...
58035         * modules/fcntl-h: ...to new name, so as not to collide with
58036         like-named function.
58037         * tests/test-fcntl.c: Rename...
58038         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
58039         * modules/fcntl-tests: Rename...
58040         * modules/fcntl-h-tests: ...to this.  Update test file name.
58041         * modules/chdir-long (Depends-on): Update clients.
58042         * modules/chdir-safer (Depends-on): Likewise.
58043         * modules/fcntl-safer (Depends-on): Likewise.
58044         * modules/fts (Depends-on): Likewise.
58045         * modules/mkancesdirs (Depends-on): Likewise.
58046         * modules/mkdir-p (Depends-on): Likewise.
58047         * modules/open (Depends-on): Likewise.
58048         * modules/savewd (Depends-on): Likewise.
58049         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
58050         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58052 2009-08-22  Bruno Haible  <bruno@clisp.org>
58054         * modules/binary-io (License): Relicense under LGPL.
58055         * modules/pipe2 (License): Likewise.
58057 2009-08-22  Bruno Haible  <bruno@clisp.org>
58059         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
58060         return value.
58061         * lib/pipe-filter-gi.c (filter_init): Likewise.
58062         Reported by Eric Blake.
58064 2009-08-22  Bruno Haible  <bruno@clisp.org>
58066         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
58067         * modules/pipe (Depends-on): Add pipe2.
58069 2009-08-22  Bruno Haible  <bruno@clisp.org>
58071         Tests for module 'pipe2'.
58072         * modules/pipe2-tests: New file.
58073         * tests/test-pipe2.c: New file.
58075         New module 'pipe2'.
58076         * lib/unistd.in.h (pipe2): New declaration.
58077         * lib/pipe2.c: New file.
58078         * m4/pipe2.m4: New file.
58079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
58080         HAVE_PIPE2.
58081         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
58082         * modules/pipe2: New file.
58083         * doc/glibc-functions/pipe2.texi: Mention the new module.
58085 2009-08-22  Bruno Haible  <bruno@clisp.org>
58087         Reference some new glibc functions.
58088         * doc/glibc-functions/accept4.texi: New file.
58089         * doc/glibc-functions/dup3.texi: New file.
58090         * doc/glibc-functions/mkostemp.texi: New file.
58091         * doc/glibc-functions/pipe2.texi: New file.
58092         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
58093         (Glibc sys/socket.h): Refer to accept4.
58094         (Glibc unistd.h): Refer to dup3, pipe2.
58095         Reported by Eric Blake.
58097 2009-08-22  Jim Meyering  <meyering@redhat.com>
58098             Bruno Haible  <bruno@clisp.org>
58100         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
58101         This makes it so packages using automake-1.11's silent-rules option
58102         can print e.g., a single "GEN    configmake.h" line, rather than
58103         the 30+ statements that perform the job.  If you want to see the
58104         actual commands, you can still run "make V=1".
58105         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
58106         so that make output is abbreviated when those variables are defined
58107         appropriately.
58108         * modules/argz: Likewise.
58109         * modules/arpa_inet: Likewise.
58110         * modules/byteswap: Likewise.
58111         * modules/configmake: Likewise.
58112         * modules/dirent: Likewise.
58113         * modules/errno: Likewise.
58114         * modules/fcntl: Likewise.
58115         * modules/float: Likewise.
58116         * modules/fnmatch: Likewise.
58117         * modules/getopt-posix: Likewise.
58118         * modules/glob: Likewise.
58119         * modules/iconv_open: Likewise.
58120         * modules/inttypes: Likewise.
58121         * modules/localcharset: Likewise.
58122         * modules/locale: Likewise.
58123         * modules/math: Likewise.
58124         * modules/netdb: Likewise.
58125         * modules/netinet_in: Likewise.
58126         * modules/poll: Likewise.
58127         * modules/posix_spawnp-tests: Likewise.
58128         * modules/sched: Likewise.
58129         * modules/search: Likewise.
58130         * modules/selinux-h: Likewise.
58131         * modules/signal: Likewise.
58132         * modules/spawn: Likewise.
58133         * modules/stdarg: Likewise.
58134         * modules/stdbool: Likewise.
58135         * modules/stddef: Likewise.
58136         * modules/stdint: Likewise.
58137         * modules/stdio: Likewise.
58138         * modules/stdlib: Likewise.
58139         * modules/string: Likewise.
58140         * modules/strings: Likewise.
58141         * modules/sys_file: Likewise.
58142         * modules/sys_ioctl: Likewise.
58143         * modules/sys_select: Likewise.
58144         * modules/sys_socket: Likewise.
58145         * modules/sys_stat: Likewise.
58146         * modules/sys_time: Likewise.
58147         * modules/sys_times: Likewise.
58148         * modules/sys_utsname: Likewise.
58149         * modules/sys_wait: Likewise.
58150         * modules/sysexits: Likewise.
58151         * modules/time: Likewise.
58152         * modules/unistd: Likewise.
58153         * modules/wchar: Likewise.
58154         * modules/wctype: Likewise.
58156 2009-08-22  Jim Meyering  <meyering@redhat.com>
58158         announce-gen: detect write failure
58159         * build-aux/announce-gen: Add Coda at end.
58160         Remove equivalent-but-more-verbose block at top.
58162 2009-08-19  Akim Demaille  <demaille@gostai.com>
58164         bootstrap: --help to stdout.
58165         * bootstrap (usage): Don't send --help to stderr.
58166         Use a here doc instead of a long string.
58168 2009-08-21  Eric Blake  <ebb9@byu.net>
58170         test-popen-safer: split from test-popen
58171         * tests/test-popen.c (main): Move...
58172         * tests/test-popen.h: ...into new file.
58173         * tests/test-popen-safer2.c: New file.
58174         * modules/popen-tests (Files): Add test-popen.h.
58175         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
58176         Suggested by Bruno Haible.
58178         test-fcntl-safer: split from test-open
58179         * tests/test-open.c (main): Move...
58180         * tests/test-open.h: ...into new file.
58181         * tests/test-fcntl-safer.c: New file.
58182         * modules/open-tests (Files): Add test-open.h.
58183         * modules/fcntl-safer-tests: New file.
58184         Suggested by Bruno Haible.
58186         test-fopen-safer: split from test-fopen
58187         * tests/test-fopen.c (main): Move...
58188         * tests/test-fopen.h: ...into new file.
58189         * tests/test-fopen-safer.c: New file.
58190         * modules/fopen-tests (Files): Add test-fopen.h.
58191         * modules/fopen-safer-tests: New file.
58192         Suggested by Bruno Haible.
58194 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
58196         popen-safer: test O_CLOEXEC at run-time.
58197         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
58199 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
58201         fcntl: move more flags to the header
58202         * lib/cloexec.c: Do not define FD_CLOEXEC here.
58203         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
58204         * lib/fcntl.in.h: Do both things here.
58206 2009-08-21  Jim Meyering  <meyering@redhat.com>
58208         consistently remove $@-t before redirecting to it
58209         * modules/argz: Remove $@-t and $@ before redirecting to the former.
58210         * modules/alloca-opt: Likewise.
58211         * modules/byteswap: Likewise.
58212         * modules/fnmatch: Likewise.
58213         * modules/getopt-posix: Likewise.
58214         * modules/glob: Likewise.
58215         * modules/poll: Likewise.
58216         * modules/posix_spawnp-tests: Likewise.
58217         * modules/sys_socket: Likewise.
58218         * modules/sysexits: Likewise.
58220 2009-08-21  Eric Blake  <ebb9@byu.net>
58222         popen: simplify access to original popen
58223         * lib/popen.c (rpl_popen): No need to worry about popen being a
58224         macro.
58225         Reported by Bruno Haible.
58227 2009-08-20  Eric Blake  <ebb9@byu.net>
58229         build: avoid some compiler warnings
58230         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
58231         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
58232         type.
58233         (new_exclude_segment, excluded_file_pattern_p)
58234         (excluded_file_name_p): Reduce scope.
58235         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
58236         old-style declaration.
58238 2009-08-20  Simon Josefsson  <simon@josefsson.org>
58240         * tests/test-exclude1.sh: Handle Windows EOL.
58241         * tests/test-exclude2.sh: Likewise.
58242         * tests/test-exclude3.sh: Likewise.
58243         * tests/test-exclude4.sh: Likewise.
58244         * tests/test-exclude5.sh: Likewise.
58245         * tests/test-exclude6.sh: Likewise.
58246         * tests/test-exclude7.sh: Likewise.
58248 2009-08-19  Akim Demaille  <demaille@gostai.com>
58250         bootstrap: find sha1sum when named gsha1sum.
58251         * bootstrap (find_tool): New.
58252         ($SHA1SUM): New.
58253         Use it.
58255 2009-08-20  Jim Meyering  <meyering@redhat.com>
58257         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
58258         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
58259         expression that converts "." in a file name to "\." in the resulting
58260         regexp.  Start with a dummy statement, so that prior shell variable
58261         definitions are expanded portably.  Reported by Simon Josefsson.
58263 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
58265         Fix polling for writeability of a screen buffer.
58266         * lib/poll.c: Distinguish input and screen buffers for the
58267         Win32 implementation.
58268         * lib/select.c: Likewise.
58270 2009-08-19  Eric Blake  <ebb9@byu.net>
58272         popen-safer: prevent popen from clobbering std descriptors
58273         * modules/popen-safer: New file.
58274         * lib/popen-safer.c: Likewise.
58275         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
58276         * lib/stdio--.h (popen): Provide override.
58277         * lib/stdio-safer.h (popen_safer): Provide declaration.
58278         * tests/test-popen.c (includes): Partially test this.
58279         * modules/popen-safer-tests: New file, for more tests.
58280         * tests/test-popen-safer.c: Likewise.
58281         * MODULES.html.sh (file stream based Input/Output): Mention it.
58283         tests: test some of the *-safer modules
58284         * modules/fopen-safer (Depends-on): Add fopen.
58285         * modules/fcntl-safer (Depends-on): Add fcntl.
58286         * modules/stdlib-safer (Depends-on): Add stdlib.
58287         (configure.ac): Set indicator.
58288         * modules/unistd-safer (configure.ac): Likewise.
58289         * modules/tmpfile-safer (configure.ac): Likewise.
58290         (Depends-on): Add tmpfile.
58291         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
58292         active.
58293         * tests/test-fopen.c (includes): Test safer versions when they are
58294         in use.
58295         * tests/test-open.c (includes): Likewise.
58297         popen: fix cygwin 1.5 bug when stdin closed
58298         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
58299         * modules/popen: New file.
58300         * modules/popen-tests: Likewise.
58301         * tests/test-popen.c: Likewise.
58302         * m4/popen.m4: Likewise.
58303         * lib/popen.c: Likewise.
58304         * lib/stdio.in.h (popen): New declaration.
58305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
58306         * modules/stdio (Makefile.am): Likewise.
58307         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
58309 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
58311         maint.mk: give full control over update-copyright exclusions
58312         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
58313         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
58314         (update-copyright): Don't force inclusion of top-level
58315         ChangeLog.  Don't force exclusion of all COPYING files, but make
58316         them the default exclusion instead.
58318 2009-08-16  Bruno Haible  <bruno@clisp.org>
58320         Fix test failures on Solaris 10.
58321         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
58322         tests when Solaris iconv() is used.
58323         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58324         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58325         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58326         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58327         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58329 2009-08-16  Bruno Haible  <bruno@clisp.org>
58331         Fix test failures on Solaris 10.
58332         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
58333         'tr' program and pass it as first argument.
58334         * tests/test-pipe-filter-gi1.sh: Likewise.
58335         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
58336         program as first argument.
58337         * tests/test-pipe-filter-gi1.c (main): Likewise.
58339 2009-08-16  Eric Blake  <ebb9@byu.net>
58341         fpurge: fix previous commits
58342         * modules/fpurge (Makefile.am): Make replacement conditional,
58343         partially reverting 2007-04-29 change; missed in previous
58344         attempt.
58345         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
58346         is missing.
58348 2009-08-16  Bruno Haible  <bruno@clisp.org>
58350         Clarify fpurge's effect on the file position.
58351         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
58352         * tests/test-fpurge.c (main): Make a second pass for checking the file
58353         position.
58355 2009-08-16  Bruno Haible  <bruno@clisp.org>
58357         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
58358         declaration of fpurge is missing.
58359         * tests/test-fpurge.c (main): Check that the file has not more contents
58360         than expected. Close the file before removing it.
58362 2009-08-15  Eric Blake  <ebb9@byu.net>
58364         fpurge: don't wrap working cygwin implementation
58365         * lib/fpurge.c (fpurge): Fix comment typo.
58366         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
58367         1.7 to avoid replacement.
58368         * tests/test-fpurge.c (main): Enhance test.
58370 2009-08-15  Eric Blake  <ebb9@byu.net>
58371         and Jim Meyering  <meyering@redhat.com>
58373         test-update-copyright: skip if perl is insufficient
58374         * tests/test-update-copyright.sh: Failure to run maintainer tool
58375         should not cause testsuite failure on cygwin 1.5.
58377 2009-08-14  Eric Blake  <ebb9@byu.net>
58379         doc: mention more functions added in cygwin 1.7.0
58380         * doc/posix-headers/limits.texi (limits.h): Update for recent
58381         cygwin additions.
58382         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
58383         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
58384         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
58385         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
58386         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
58388 2009-08-14  Eric Blake  <ebb9@byu.net>
58390         maint.mk: simplify update-copyright rule
58391         * top/maint.mk (update-copyright-local): Delete, and document how
58392         to do it in cfg.mk instead.
58393         (update-copyright-exclude-regexp): Delete, and document how to do
58394         it in .x-update-copyright instead.
58395         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
58396         exclude ChangeLog.
58398 2009-08-14  Bruno Haible  <bruno@clisp.org>
58400         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
58402 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
58404         maint.mk: support update-copyright-env
58405         * top/maint.mk (update-copyright-env): Define place-holder.
58406         (update-copyright): Expand $(update-copyright-env) before
58407         invoking update-copyright.
58409 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
58411         update-copyright: implement forced reformatting
58412         * build-aux/update-copyright: Implement and document
58413         UPDATE_COPYRIGHT_FORCE.
58414         * tests/test-update-copyright.sh: Test it.
58416 2009-08-14  Eric Blake  <ebb9@byu.net>
58417         and Bruno Haible  <bruno@clisp.org>
58419         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
58420         * tests/test-locale.c: Revert previous patch related to NULL.
58421         * tests/test-stdio.c: Likewise.
58422         * tests/test-stdlib.c: Likewise.
58423         * tests/test-string.c: Likewise.
58424         * tests/test-unistd.c: Likewise.
58425         * modules/time-tests (Depends-on): Add verify.
58426         * modules/wchar-tests (Depends-on): Likewise.
58427         * tests/test-time.c: Test for NULL compliance.
58428         * tests/test-wchar.c: Likewise.
58429         * modules/locale (Depends-on): Add stddef.
58430         * modules/stdio (Depends-on): Likewise.
58431         * modules/stdlib (Depends-on): Likewise.
58432         * modules/string (Depends-on): Likewise.
58433         * modules/time (Depends-on): Likewise.
58434         * modules/unistd (Depends-on): Likewise.
58435         * modules/wchar (Depends-on): Likewise.
58436         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
58437         * lib/stdlib.in.h (includes): Likewise.
58438         * lib/string.in.h (includes): Likewise.
58439         * lib/time.in.h (includes): Likewise.
58440         * lib/unistd.in.h (includes): Likewise.
58441         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
58442         replaced.
58443         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58444         * m4/stddef_h.m4: New file.
58445         * modules/stddef: Likewise.
58446         * lib/stddef.in.h: Likewise.
58447         * modules/stddef-tests: Likewise.
58448         * tests/test-stddef.c: Likewise.
58449         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
58450         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
58451         * doc/posix-headers/locale.texi (locale.h): Likewise.
58452         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
58453         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
58454         * doc/posix-headers/string.texi (string.h): Likewise.
58455         * doc/posix-headers/time.texi (time.h): Likewise.
58456         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
58457         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
58459 2009-08-14  Eric Blake  <ebb9@byu.net>
58461         doc: improve git diff of texinfo files
58462         * .gitattributes: Add rule for *.texi files, with hint on how to
58463         use it.
58464         Copied from m4, and based on a report by Bruno Haible.
58466 2009-08-14  Bruno Haible  <bruno@clisp.org>
58468         Disable multithread support by default on Cygwin 1.5.x for real.
58469         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
58471 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
58473         update-copyright: much ado about intervals
58474         * build-aux/update-copyright: Implement and document
58475         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
58476         of copyright year intervals.
58477         Also, document UPDATE_COPYRIGHT_YEAR.
58478         * tests/test-update-copyright.sh: Test it.
58480         update-copyright: convert 2-digit to 4-digit years
58481         * build-aux/update-copyright: Implement and document.
58482         * tests/test-update-copyright.sh: Update.
58484 2009-08-14  Jim Meyering  <meyering@redhat.com>
58486         test-exclude: avoid coreutils "make check" failure
58487         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
58488         just as in test-argmatch.c.
58490 2009-08-13  Eric Blake  <ebb9@byu.net>
58492         test-dup2: fix bad assumption
58493         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
58494         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
58496         test-version-etc: fix CRLF portability issue
58497         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
58498         recognize \r.
58499         * tests/test-argp-version-etc-1.sh: Likewise.
58501         getopt: update client modules
58502         * modules/argp (Depends-on): Use getopt-gnu.
58503         * modules/git-merge-changelog (Depends-on): Likewise.
58504         * modules/long-options (Depends-on): Likewise.
58505         * modules/xstrtol (Depends-on): Likewise.
58507 2009-08-13  Simon Josefsson  <simon@josefsson.org>
58509         * tests/test-version-etc.sh: Don't fail on different
58510         project/version.  Don't fail on CRLF differences.  Rewrite to use
58511         multiple -e instead of multiple sed forks, suggested by Eric Blake
58512         <ebb9@byu.net>.
58513         * tests/test-argp-version-etc-1.sh: Likewise.
58515 2009-08-13  Simon Josefsson  <simon@josefsson.org>
58517         * tests/test-version-etc.sh: Don't fail on different
58518         project/version.
58520 2009-08-12  Bruno Haible  <bruno@clisp.org>
58522         Tests for modules 'getopt-posix', 'getopt-gnu'.
58523         * modules/getopt-posix-tests: New file.
58524         * tests/test-getopt.c: New file.
58525         * tests/test-getopt.h: New file.
58526         * tests/test-getopt_long.h: New file.
58528         New modules 'getopt-posix', 'getopt-gnu'.
58529         * modules/getopt-gnu: New file, renamed from modules/getopt.
58530         * modules/getopt-posix: New file.
58531         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
58532         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
58533         (gl_GETOPT): Remove macro.
58534         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
58535         Disable the test against BSD systems that declare optreset. Test
58536         against mingw bug. Test against lack of support of optional arguments
58537         on many platforms.
58538         * doc/glibc-headers/getopt.texi: Update module name and list of
58539         relevant platforms.
58540         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
58541         'getopt-gnu' and more portability problems.
58542         * NEWS: Mention the changes.
58544 2009-08-12  Bruno Haible  <bruno@clisp.org>
58546         Ensure that optarg etc. get declared by <unistd.h>.
58547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
58548         AC_USE_SYSTEM_EXTENSIONS.
58549         * modules/getopt (Depends-on): Add 'extensions'.
58551 2009-08-12  Bruno Haible  <bruno@clisp.org>
58553         Avoid test link errors.
58554         * modules/pipe-filter-ii-tests (Makefile.am): Define
58555         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
58556         * modules/pipe-filter-gi-tests (Makefile.am): Define
58557         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
58558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58560 2009-08-12  Bruno Haible  <bruno@clisp.org>
58562         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
58563         gl_GETOPT_SUBSTITUTE before.
58564         (gl_GETOPT): Use it.
58565         * m4/argp.m4 (gl_ARGP): Update.
58566         Reported by Sergey Poznyakoff.
58568         * m4/getopt.m4: Reorder macros.
58569         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
58570         (gl_GETOPT_SUBSTITUTE): Remove macro.
58572 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58574         Minor improvement in gitlog-to-changelog
58576         * build-aux/gitlog-to-changelog: New option `--format' makes
58577         output format string configurable.
58579 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58581         Optimize exclude: use hash tables for non-wildcard patterns.
58583         * lib/exclude.c: Include hash.h and mbuiter.h
58584         (struct exclude_pattern, exclude_segment): New data types.
58585         (struct exclude): Rewrite.
58586         (fnmatch_pattern_has_wildcards): New function.
58587         (new_exclude_segment, free_exclude_segment): New functions.
58588         (excluded_file_pattern_p, excluded_file_name_p): New functions.
58589         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
58590         * lib/exclude.h (is_fnmatch_pattern): New prototype.
58591         * modules/exclude: Depend on hash and mbuiter.
58593         * modules/exclude-tests: New file.
58594         * tests/test-exclude.c: New file.
58595         * tests/test-exclude1.sh: New file.
58596         * tests/test-exclude2.sh: New file.
58597         * tests/test-exclude3.sh: New file.
58598         * tests/test-exclude4.sh: New file.
58599         * tests/test-exclude5.sh: New file.
58600         * tests/test-exclude6.sh: New file.
58601         * tests/test-exclude7.sh: New file.
58603 2009-08-12  Bruno Haible  <bruno@clisp.org>
58605         Ensure that getopt() gets declared by <unistd.h>.
58606         * lib/unistd.in.h: Conditionally include getopt.h.
58607         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
58608         Set GNULIB_UNISTD_H_GETOPT.
58609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58610         GNULIB_UNISTD_H_GETOPT.
58611         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
58613 2009-08-12  Bruno Haible  <bruno@clisp.org>
58615         Clarify logic.
58616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
58617         gl_replace_getopt instead of GETOPT_H.
58619 2009-08-12  Bruno Haible  <bruno@clisp.org>
58621         * m4/getopt.m4: Add comments.
58623 2009-08-12  Bruno Haible  <bruno@clisp.org>
58625         Disable multithread support by default on Cygwin 1.5.x.
58626         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
58627         set gl_use_threads=no if not specified otherwise.
58629 2009-08-11  Bruno Haible  <bruno@clisp.org>
58631         Avoid compilation error on NetBSD 5.0.
58632         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
58633         * tests/test-stdio.c: Likewise.
58634         * tests/test-stdlib.c: Likewise.
58635         * tests/test-string.c: Likewise.
58636         * tests/test-unistd.c: Likewise.
58637         Reported by Greg Troxel <gdt@ir.bbn.com>
58638         at <https://savannah.gnu.org/support/?106973>.
58640 2009-08-11  Bruno Haible  <bruno@clisp.org>
58642         * modules/dup2-tests (Depends-on): Remove close.
58644         Undo 2009-07-19 commit.
58645         * modules/acl-tests (Depends-on): Remove close.
58646         * modules/binary-io-tests (Depends-on): Likewise.
58647         * modules/closein-tests (Depends-on): Likewise.
58648         * modules/flock-tests (Depends-on): Likewise.
58649         * modules/fsync-tests (Depends-on): Likewise.
58650         * modules/lseek-tests (Depends-on): Likewise.
58651         * modules/pipe-tests (Depends-on): Likewise.
58652         * modules/posix_spawn-tests (Depends-on): Likewise.
58653         * modules/posix_spawnp-tests (Depends-on): Likewise.
58654         * modules/stat-time-tests (Depends-on): Likewise.
58655         * modules/yesno-tests (Depends-on): Likewise.
58657 2009-08-10  Bruno Haible  <bruno@clisp.org>
58659         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
58661 2009-08-10  Bruno Haible  <bruno@clisp.org>
58663         Fix a gcc warning.
58664         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
58666 2009-08-10  Bruno Haible  <bruno@clisp.org>
58668         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
58669         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
58670         not only the first time.
58671         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
58672         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
58673         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
58674         is 1, not only the the first time.
58676 2009-08-10  Bruno Haible  <bruno@clisp.org>
58678         Make it possible to use module 'gethostname' without module 'close'.
58679         * lib/unistd.in.h (close): Evoke a link error only if
58680         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
58681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58682         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58683         * modules/unistd (Makefile.am): Substitute
58684         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58685         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
58686         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
58687         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
58688         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58689         * modules/sys_ioctl (Makefile.am): Substitute
58690         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58691         * modules/socket (configure.ac): On native Windows, set
58692         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
58693         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58694         Reported by Sam Steingold <sds@gnu.org>.
58696 2009-08-10  Bruno Haible  <bruno@clisp.org>
58698         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
58699         * modules/ioctl (configure.ac): Likewise.
58701 2009-08-10  Bruno Haible  <bruno@clisp.org>
58703         Avoid collision between gnulib wrapper and libintl wrapper.
58704         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
58705         already defined in intl/printf.c.
58706         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
58707         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
58709 2009-08-09  Bruno Haible  <bruno@clisp.org>
58711         Make <sys/select.h> really self-contained, also on Solaris 10.
58712         * lib/sys_select.in.h: Include <string.h>.
58713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
58714         Solaris 10 problem.
58715         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
58716         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
58717         Reported by Jim Meyering.
58719 2009-08-09  Bruno Haible  <bruno@clisp.org>
58721         Avoid warnings from 'aclocal' that are due to a use of macro name
58722         AM_XGETTEXT_OPTION that is not defined in automake.
58723         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
58724         automake.
58725         * modules/error (configure.ac): Likewise.
58726         * modules/propername (configure.ac): Likewise.
58727         * modules/vasprintf (configure.ac): Likewise.
58728         * modules/verror (configure.ac): Likewise.
58729         * modules/xprintf (configure.ac): Likewise.
58730         * modules/xvasprintf (configure.ac): Likewise.
58732 2009-08-08  Bruno Haible  <bruno@clisp.org>
58734         Avoid compilation error in C++ mode.
58735         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
58736         Reported by Sam Steingold <sds@gnu.org>.
58738 2009-08-08  Bruno Haible  <bruno@clisp.org>
58740         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
58741         for the various Unix platforms.
58742         * doc/posix-headers/limits.texi: Update platforms list regarding
58743         HOST_NAME_MAX.
58744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58746 2009-08-07  Jim Meyering  <meyering@redhat.com>
58748         selinux-at: fix typo in a comment
58749         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
58750         Spotted by Paolo Bonzini.
58752         selinux-at: remove redundant m4 code, add documentation
58753         * modules/selinux-at (configure.ac): Remove redundant code.
58754         LIB_SELINUX is already set via the dependent module, selinux-h.
58755         (Include): Add quotes around selinux-at.h.
58756         * lib/selinux-at.h: Add documentation.
58757         Reported by Bruno Haible in
58758         http://marc.info/?l=gnulib-bug&m=124958988300749
58760 2009-08-07  Bruno Haible  <bruno@clisp.org>
58762         Avoid link error on MacOS X 10.3 and 10.4.
58763         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
58764         on non-ELF systems.
58765         * lib/argp-pv.c (argp_program_version): Likewise.
58766         Reported by Simon Josefsson.
58768 2009-08-07  Simon Josefsson  <simon@josefsson.org>
58770         * tests/test-version-etc.sh: Use $EXEEXT.
58772 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
58774         update-copyright: update documentation to point to maint.mk
58775         * build-aux/update-copyright: Here.
58777 2009-08-06  Jim Meyering  <meyering@redhat.com>
58779         maint.mk: support update-copyright-local
58780         * top/maint.mk (update-copyright-local): Define place-holder.
58781         (update-copyright): Depend on $(update-copyright-local).
58783 2009-08-06  Jim Meyering  <meyering@redhat.com>
58785         selinux-at: new module
58786         Initially written for coreutils, this module will soon be
58787         used by findutils, too.
58788         * MODULES.html.sh [Misc]: Add selinux-at.
58789         * lib/selinux-at.h: New file, from coreutils.
58790         * lib/selinux-at.c: Likewise.
58791         * modules/selinux-at: Likewise.
58792         (License): Change from LGPL to GPL, since it depends
58793         on the GPL'd openat module.
58795         doc: update README
58796         * README: Remove references to cogito.
58797         Remove cvs-repo-updating instructions from 2007.
58798         Don't imply that CVS is better if you have limited disk space.
58800 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58802         update-copyright: support C-style comments
58803         * build-aux/update-copyright: Implement and document.
58804         * tests/test-update-copyright.sh: Test.
58806 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58808         update-copyright: support omitted "(C)"
58809         * build-aux/update-copyright: Implement and document.  Also,
58810         allow variable whitespace before "(C)".
58811         * tests/test-update-copyright.sh: Test.
58813 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58815         update-copyright: don't trip on non-FSF copyright statements
58816         * build-aux/update-copyright: Fix so that the first correctly
58817         formatted FSF copyright statement is recognized no matter what
58818         appears before it.  Update documentation.
58819         * tests/test-update-copyright.sh: Test that.
58821 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58823         update-copyright: clean up code a little
58824         * build-aux/update-copyright: Append "_re" to the name of any
58825         variable holding a regular expression.
58826         Replace "old" and "new" with "stmt" in variable names.
58827         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
58828         handled correctly.
58829         Format code more consistently.
58831 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58833         update-copyright-tests: improve portability
58834         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
58835         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
58837 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
58839         update-copyright: support @copyright{} and &copy;
58840         * build-aux/update-copyright: Implement and document.
58841         * tests/test-update-copyright.sh: Test.
58843 2009-08-04  Jim Meyering  <meyering@redhat.com>
58845         update-copyright-tests: correctly test EOL=\r\n handling
58846         * tests/test-update-copyright.sh: Put \r at the end of some lines
58847         for the dos-eol tests.  Based on a patch by Joel E. Denny.
58849         maint.mk: make update-copyright exclusion list more configurable
58850         * top/maint.mk (update-copyright): Default to excluding COPYING,
58851         but allow an override, in case someone does want to update that file.
58853         maint.mk: don't update copyright date in COPYING
58854         * top/maint.mk (update-copyright): Exclude COPYING.
58856         maint.mk: add a copyright-updating rule
58857         * top/maint.mk (update-copyright): New rule.
58858         Derived from coreutils/Makefile.am.
58860         update-copyright: rename some variables
58861         * build-aux/update-copyright: Rename a few variables for clarity.
58862         Tweak syntax.  List Joel E. Denny as coauthor.
58864 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
58866         update-copyright: fix bug for 2-digit last year and add tests
58867         * build-aux/update-copyright: Fix bug.
58868         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
58869         specified.
58870         * modules/update-copyright-tests: New
58871         * tests/test-update-copyright.sh: New.
58873 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
58875         update-copyright: handle leading tabs in line prefix
58876         * build-aux/update-copyright: Count leading tabs as 8 spaces
58877         when computing margin.  This helps with the formatting of
58878         ChangeLogs, for example.
58879         Fix documentation a little.
58881 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
58883         update-copyright: support EOL=\r\n
58884         * build-aux/update-copyright: Implement that.
58886 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
58888         update-copyright: automatically format copyright statements
58889         * build-aux/update-copyright: Implement that.
58890         Also, be a little more predictable and safer by always failing
58891         when the full copyright format is not perfectly recognized as an
58892         unbroken whole.  Discussed at
58893         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
58894         Rewrite documentation.
58896 2009-08-03  Bruno Haible  <bruno@clisp.org>
58898         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
58900 2009-08-02  Bruno Haible  <bruno@clisp.org>
58902         Tests for module 'uname'.
58903         * modules/uname-tests: New file.
58904         * tests/test-uname.c: New file.
58906         New module 'uname'.
58907         * lib/uname.c: New file.
58908         * m4/uname.m4: New file.
58909         * modules/uname: New file.
58910         * doc/posix-functions/uname.texi: Mention the new module.
58912 2009-08-02  Bruno Haible  <bruno@clisp.org>
58914         Tests for module 'sys_utsname'.
58915         * modules/sys_utsname-tests: New file.
58916         * tests/test-sys_utsname.c: New file.
58918         New module 'sys_utsname'.
58919         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
58920         * m4/sys_utsname_h.m4: New file.
58921         * modules/sys_utsname: New file.
58922         * doc/posix-headers/sys_utsname.texi: Mention the new module.
58924 2009-08-02  Bruno Haible  <bruno@clisp.org>
58926         Implicitly initialize the sockets library.
58927         * lib/gethostname.c: Include sockets.h.
58928         (rpl_gethostname): Invoke gl_sockets_startup.
58929         * lib/socket.c: Include sockets.h.
58930         (rpl_socket): Invoke gl_sockets_startup.
58931         * modules/gethostname (Depends-on): Add sockets.
58932         * modules/socket (Depends-on): Likewise.
58933         * tests/test-poll.c: Don't include sockets.h.
58934         (main): Don't invoke gl_sockets_startup.
58935         * tests/test-select.c: Don't include sockets.h.
58936         (main): Don't invoke gl_sockets_startup.
58938 2009-08-02  Bruno Haible  <bruno@clisp.org>
58940         Allow multiple calls to gl_sockets_startup.
58941         * lib/sockets.c (initialized_sockets_version): New variable.
58942         (gl_sockets_startup): Do nothing if already called for this or a higher
58943         version.
58944         (gl_sockets_cleanup): Reset initialized_sockets_version.
58946 2009-08-03  Simon Josefsson  <simon@josefsson.org>
58948         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
58949         different project/version.
58951 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
58952             Bruno Haible  <bruno@clisp.org>
58954         Tests for module 'pipe-filter-gi'.
58955         * modules/pipe-filter-gi-tests: New file.
58956         * tests/test-pipe-filter-gi1.sh: New file.
58957         * tests/test-pipe-filter-gi1.c: New file.
58958         * tests/test-pipe-filter-gi2.sh: New file.
58959         * tests/test-pipe-filter-gi2-main.c: New file.
58960         * tests/test-pipe-filter-gi2-child.c: New file.
58962         New module 'pipe-filter-gi'.
58963         * lib/pipe-filter-gi.c: New file.
58964         * modules/pipe-filter-gi: New file.
58966 2009-08-02  Bruno Haible  <bruno@clisp.org>
58967             Paolo Bonzini  <bonzini@gnu.org>
58969         Tests for module 'pipe-filter-ii'.
58970         * modules/pipe-filter-ii-tests: New file.
58971         * tests/test-pipe-filter-ii1.sh: New file.
58972         * tests/test-pipe-filter-ii1.c: New file.
58973         * tests/test-pipe-filter-ii2.sh: New file.
58974         * tests/test-pipe-filter-ii2-main.c: New file.
58975         * tests/test-pipe-filter-ii2-child.c: New file.
58977         New module 'pipe-filter-ii'.
58978         * lib/pipe-filter.h: New file.
58979         * lib/pipe-filter-ii.c: New file.
58980         * lib/pipe-filter-aux.h: New file.
58981         * modules/pipe-filter-ii: New file.
58983 2009-08-02  Simon Josefsson  <simon@josefsson.org>
58985         * lib/gc-libgcrypt.c: Change copyright to FSF.
58986         * lib/gc-gnulib.c: Likewise.
58988 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
58990         * lib/gethostname.c: Include limits.h.
58992 2009-08-02  Simon Josefsson  <simon@josefsson.org>
58993             Bruno Haible  <bruno@clisp.org>
58995         Ensure HOST_NAME_MAX as part of the gethostname module.
58996         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
58997         define also HOST_NAME_MAX.
58998         * tests/test-gethostname.c: Include <limits.h>.
58999         (main): Check also HOST_NAME_MAX.
59000         * doc/posix-headers/limits.texi: Document the mingw problem.
59002 2009-08-02  Bruno Haible  <bruno@clisp.org>
59004         * lib/gethostname.c (gethostname): Fix handling of large len argument.
59005         Add comments.
59007 2009-03-31  Simon Josefsson  <simon@josefsson.org>
59009         * lib/gethostname.c: Add Windows wrapper.
59010         * m4/gethostname.m4: Look for gethostname in -lws2_32.
59011         * modules/gethostname: Depend on sys_socket & errno, for also
59012         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
59013         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
59015 2009-07-31  Jim Meyering  <meyering@redhat.com>
59017         getloadavg: fix symbol name in comment
59018         * lib/getloadavg.c: Correct a typo I introduced when adding
59019         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
59020         Matt Kraai spotted the problem.
59022 2009-07-29  Matt Kraai  <mkraai@beckman.com>
59024         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
59025         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
59026         code also if ! defined N_NAME_POINTER.
59027         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
59028         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
59029         but the n_name member is a 12-byte array.
59031 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
59033         update-copyright: generalize comment handling
59034         * build-aux/update-copyright: Handle copyright statements
59035         within more comment styles.
59036         Document usage.
59037         Report any file with an external copyright holder or parse failure.
59039 2009-07-29  Jim Meyering  <meyering@redhat.com>
59041         mktime: correct setting of REPLACE_MKTIME
59042         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
59044         update-copyright: new module
59045         * modules/update-copyright: New file.
59046         * build-aux/update-copyright: New file.
59047         * MODULES.html.sh (maint+release support): Add update-copyright.
59049 2009-07-27  Bruno Haible  <bruno@clisp.org>
59051         Fix compilation error when <ctime> is used and mktime is replaced.
59052         * lib/time.in.h (mktime): New declaration.
59053         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
59054         REPLACE_MKTIME instead of defining mktime in config.h.
59055         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
59056         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
59057         Reported by Ross McFarland <rwmcfa1@neces.com>.
59059 2009-07-27  Bruno Haible  <bruno@clisp.org>
59061         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
59062         Reported by Matt Kraai <mkraai@beckman.com>.
59064 2009-07-25  Jim Meyering  <meyering@redhat.com>
59066         maint.mk: avoid warnings about missing files
59067         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
59068         diagnostic when .prev-version does not exist.
59069         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
59070         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
59071         nonexistent cfg.mk.
59072         Suggestions from Simon Josefsson.
59074 2009-07-25  Bruno Haible  <bruno@clisp.org>
59076         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
59077         defined as macros. Needed on QNX 6.4.1.
59078         Reported by Matt Kraai <mkraai@beckman.com>.
59080 2009-07-23  Jim Meyering  <meyering@redhat.com>
59082         maint.mk: invoke "make dist" with a working value of XZ_OPT
59083         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
59085 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
59087         Make fseeko.c compile on QNX.
59088         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
59090 2009-07-22  Peter Simons  <simons@cryp.to>
59092         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
59093         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
59094         * lib/md4.h: Likewise.
59095         * lib/md5.h: Likewise.
59096         * lib/sha1.h: Likewise.
59097         * lib/sha256.h: Likewise.
59098         * lib/sha512.h: Likewise.
59100         tests-sha1: don't assign literal string to 'char *' variable
59101         * tests/test-sha1.c (main): Declare locals with "const" to match
59102         attributes of the right hand side.
59104 2009-07-21  Eric Blake  <ebb9@byu.net>
59106         dup2: fix more mingw problems
59107         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
59108         fd to itself.
59109         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59110         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
59111         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
59112         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
59113         care of mingw bugs.
59115 2009-07-21  Jim Meyering  <meyering@redhat.com>
59117         vc-list-files: avoid failure when /bin/sh is dash
59118         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
59119         On some Debian based systems, /bin/sh is a symlink to dash, and running
59120         this command would omit the "/" following each 'tests' prefix:
59121           dash -x build-aux/vc-list-files -C . tests
59122         That is because bash and dash work differently:
59123           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
59124           bash ok
59125           dash odd
59127 2009-07-21  Eric Blake  <ebb9@byu.net>
59129         dup2-tests: test previous patch
59130         * modules/dup2-tests: New file.
59131         * tests/test-dup2.c: Likewise.
59132         * tests/test-open.c (main): Avoid unspecified behavior.
59133         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
59134         test.
59136         dup2: work around mingw and cygwin 1.5 bug
59137         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
59138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59139         * modules/unistd (Makefile.am): Substitute it.
59140         * lib/unistd.in.h (dup2): Declare the replacement.
59141         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
59142         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
59143         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
59144         * modules/execute (Depends-on): Add dup2.
59145         * modules/fseterr (Depends-on): Likewise.
59146         * modules/pipe (Depends-on): Likewise.
59147         * modules/posix_spawn-internal (Depends-on): Likewise.
59149 2009-07-21  Bruno Haible  <bruno@clisp.org>
59151         * modules/.gitattributes: New file.
59153 2009-07-20  Bruno Haible  <bruno@clisp.org>
59155         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
59156         (main): Use it.
59158 2009-07-20  Eric Blake  <ebb9@byu.net>
59160         test-pipe: make a bit more robust.
59161         * tests/test-pipe.c (myerr): Allow error messages regardless of
59162         what we do to stderr.
59163         (test_pipe): Rearrange to avoid deadlock.
59164         (child_main): Try a larger read, to ensure we avoided deadlock.
59165         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
59166         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
59167         if misused.
59169 2009-07-19  Jim Meyering  <meyering@redhat.com>
59171         fts: avoid false-positive cycle-detection
59172         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
59173         for each new command line argument.
59175 2009-07-19  Bruno Haible  <bruno@clisp.org>
59177         Fix build error on mingw with the modules sys_select and unistd.
59178         * modules/acl-tests (Depends-on): Add close.
59179         * modules/binary-io-tests (Depends-on): Likewise.
59180         * modules/closein-tests (Depends-on): Likewise.
59181         * modules/flock-tests (Depends-on): Likewise.
59182         * modules/fsync-tests (Depends-on): Likewise.
59183         * modules/lseek-tests (Depends-on): Likewise.
59184         * modules/pipe-tests (Depends-on): Likewise.
59185         * modules/posix_spawn-tests (Depends-on): Likewise.
59186         * modules/posix_spawnp-tests (Depends-on): Likewise.
59187         * modules/stat-time-tests (Depends-on): Likewise.
59188         * modules/yesno-tests (Depends-on): Likewise.
59190 2009-07-19  Bruno Haible  <bruno@clisp.org>
59192         Unify conditionals.
59193         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
59194         macros, not at the compiler macros.
59195         * lib/pipe.c: Likewise.
59196         * lib/execute.c: Likewise.
59197         * lib/spawni.c: Likewise.
59199 2009-07-19  Bruno Haible  <bruno@clisp.org>
59201         Fix handling of closed stdin/stdout/stderr on mingw.
59202         * lib/w32spawn.h: Include unistd.h.
59203         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
59204         file descriptor with O_NOINHERIT flag.
59205         (fd_safer_noinherit): New function, based on fd-safer.c.
59206         (dup_safer_noinherit): New function, based on dup-safer.c.
59207         (undup_safer_noinherit): New function.
59208         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
59209         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
59210         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
59211         instead of fd_safer.
59212         * tests/test-pipe.c: Include <windows.h>.
59213         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
59214         result.
59216         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
59217         from main.
59218         (test_pipe): Pass an extra argument for disambiguation.
59219         (main): Invoke parent_main or child_main.
59221         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
59222         consistently.
59224 2009-07-18  Eric Blake  <ebb9@byu.net>
59226         test-pipe: fix mingw build
59227         * tests/test-pipe.c (main): Avoid fcntl on mingw.
59229 2009-07-18  Bruno Haible  <bruno@clisp.org>
59231         * modules/pipe-tests (Makefile.am): Fix typo.
59233 2009-07-18  Eric Blake  <ebb9@byu.net>
59235         error: fix mingw build
59236         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
59237         Reported by Bruno Haible.
59239         error: avoid undefined use of stdout
59240         * lib/error.c (error, error_at_line): Check that fd 1 is open
59241         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
59242         is handling faults and the close_stdout module wants to report the
59243         detection of closed stdout as an error.
59245 2009-07-17  Eric Blake  <ebb9@byu.net>
59247         pipe: be robust in face of closed fds
59248         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
59249         should cause child to misbehave.
59250         * modules/pipe-tests: New module.
59251         * tests/test-pipe.c: New file.
59252         * tests/test-pipe.sh: New file.
59253         Reported by Akim Demaille.
59255 2009-07-14  Bruno Haible  <bruno@clisp.org>
59257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
59258         Reported by anonymous kc.
59260 2009-07-07  Jim Meyering  <meyering@redhat.com>
59262         maint.mk: don't look for translatable strings in *.m4 or *.mk
59263         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
59264         when searching for translatable strings.
59266 2009-07-05  Jim Meyering  <meyering@redhat.com>
59268         remove superfluous parentheses in STREQ definition
59269         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
59270         * lib/getugroups.c (STREQ): Likewise.
59271         * lib/fnmatch.c (STREQ): Likewise.
59272         Spotted by Bruno Haible.
59274 2009-07-04  Jim Meyering  <meyering@redhat.com>
59276         argv-iter: new module
59277         * MODULES.html.sh: Add argv-iter.
59278         * lib/argv-iter.c, lib/argv-iter.h: New files.
59279         * modules/argv-iter: New file.
59280         * modules/argv-iter-tests: New file.
59281         * tests/test-argv-iter.c: Test it.
59283 2009-07-04  Bruno Haible  <bruno@clisp.org>
59285         Fix assertion.
59286         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
59287         contains more exact copies of a given entry than file2, leave the extra
59288         copies unpaired rather than aborting.
59289         Reported by Eric Blake.
59291 2009-07-02  Bruno Haible  <bruno@clisp.org>
59293         Speedup git-merge-changelog for git cherry-pick.
59294         * lib/git-merge-changelog.c (struct entries_mapping): New type.
59295         (entries_mapping_get): New function, extracted from compute_mapping.
59296         (entries_mapping_reverse_get): New function.
59297         (compute_mapping): Add a 'full' argument. Return the result in a
59298         'struct entries_mapping'.
59299         (main): Update. Access the mappings through entries_mapping_get.
59300         Reported by Eric Blake.
59302 2009-07-02  Bruno Haible  <bruno@clisp.org>
59304         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
59305         best_i.
59307 2009-07-02  Bruno Haible  <bruno@clisp.org>
59309         Speed up approximate search for matching ChangeLog entries.
59310         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
59311         argument. Call fstrcmp_bounded instead of fstrcmp.
59312         (compute_mapping, try_split_merged_entry, main): Update callers.
59314 2009-07-02  Bruno Haible  <bruno@clisp.org>
59316         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
59318 2009-06-30  Bruno Haible  <bruno@clisp.org>
59320         Reduce the number of uc_is_cased calls.
59321         * lib/unicase.h (casing_suffix_context_t): Add
59322         'first_char_except_ignorable' field.
59323         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
59324         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
59325         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
59326         Update initializer.
59327         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
59328         case-ignorable characters.
59329         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
59330         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
59331         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
59332         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
59333         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
59335 2009-06-30  Bruno Haible  <bruno@clisp.org>
59337         Tests for module 'unicase/ignorable'.
59338         * modules/unicase/ignorable-tests: New file.
59339         * tests/unicase/test-ignorable.c: New file, generated by
59340         gen-uni-tables.
59342         Tests for module 'unicase/cased'.
59343         * modules/unicase/cased-tests: New file.
59344         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
59345         * tests/unicase/test-predicate-part1.h: New file, derived from
59346         tests/unictype/test-predicate-part1.h.
59347         * tests/unicase/test-predicate-part2.h: New file, same as
59348         tests/unictype/test-predicate-part2.h.
59350         Fix evaluation of "Before C" condition of FINAL_SIGMA.
59351         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
59352         (output_casing_properties): New function.
59353         (main): Call it.
59354         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
59355         * lib/unicase/cased.c: Include unictype/bitmap.h.
59356         (uc_is_cased): Define through a bitmap lookup.
59357         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
59358         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
59359         (uc_is_case_ignorable): Define through a bitmap lookup.
59360         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
59361         lib/unictype/bitmap.h.
59362         (Depends-on): Add inline. Clean up.
59363         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
59364         lib/unictype/bitmap.h.
59365         (Depends-on): Add inline. Clean up.
59366         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
59367         recognition.
59368         * tests/unicase/test-u16-tolower.c (main): Likewise.
59369         * tests/unicase/test-u32-tolower.c (main): Likewise.
59371 2009-06-30  Bruno Haible  <bruno@clisp.org>
59373         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
59374         * lib/unicase/u16-casemap.c: Likewise.
59375         * lib/unicase/u32-casemap.c: Likewise.
59377 2009-06-29  Bruno Haible  <bruno@clisp.org>
59379         Define u32_casefold as a wrapper around u32_ct_casefold.
59380         * lib/unicase/u32-casefold.c: Update.
59381         * modules/unicase/u32-casefold (Depends-on): Add
59382         unicase/u32-ct-casefold, unicase/empty-prefix-context,
59383         unicase/empty-suffix-context. Clean up.
59385         Define u16_casefold as a wrapper around u16_ct_casefold.
59386         * lib/unicase/u16-casefold.c: Update.
59387         * modules/unicase/u16-casefold (Depends-on): Add
59388         unicase/u16-ct-casefold, unicase/empty-prefix-context,
59389         unicase/empty-suffix-context. Clean up.
59391         Define u8_casefold as a wrapper around u8_ct_casefold.
59392         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
59393         * lib/unicase/u8-casefold.c: Update.
59394         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
59395         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59397         Define u32_totitle as a wrapper around u32_ct_totitle.
59398         * lib/unicase/u32-totitle.c: Update.
59399         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
59400         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59402         Define u16_totitle as a wrapper around u16_ct_totitle.
59403         * lib/unicase/u16-totitle.c: Update.
59404         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
59405         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59407         Define u8_totitle as a wrapper around u8_ct_totitle.
59408         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
59409         functions.
59410         (FUNC): Delegate to U_CT_TOTITLE.
59411         * lib/unicase/u8-totitle.c: Update.
59412         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
59413         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59415         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
59416         invocation.
59417         * modules/unicase/u32-tolower (Depends-on): Add
59418         unicase/empty-prefix-context, unicase/empty-suffix-context.
59420         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
59421         invocation.
59422         * modules/unicase/u16-tolower (Depends-on): Add
59423         unicase/empty-prefix-context, unicase/empty-suffix-context.
59425         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
59426         * modules/unicase/u8-tolower (Depends-on): Add
59427         unicase/empty-prefix-context, unicase/empty-suffix-context.
59429         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
59430         invocation.
59431         * modules/unicase/u32-toupper (Depends-on): Add
59432         unicase/empty-prefix-context, unicase/empty-suffix-context.
59434         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
59435         invocation.
59436         * modules/unicase/u16-toupper (Depends-on): Add
59437         unicase/empty-prefix-context, unicase/empty-suffix-context.
59439         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
59440         * modules/unicase/u8-toupper (Depends-on): Add
59441         unicase/empty-prefix-context, unicase/empty-suffix-context.
59443         New module 'unicase/u32-ct-casefold'.
59444         * lib/unicase/u32-ct-casefold.c: New file.
59445         * modules/unicase/u32-ct-casefold: New file.
59447         New module 'unicase/u16-ct-casefold'.
59448         * lib/unicase/u16-ct-casefold.c: New file.
59449         * modules/unicase/u16-ct-casefold: New file.
59451         New module 'unicase/u8-ct-casefold'.
59452         * lib/unicase/u8-ct-casefold.c: New file.
59453         * lib/unicase/u-ct-casefold.h: New file, derived from
59454         lib/unicase/u-casefold.h.
59455         * modules/unicase/u8-ct-casefold: New file.
59457         New module 'unicase/u32-ct-totitle'.
59458         * lib/unicase/u32-ct-totitle.c: New file.
59459         * modules/unicase/u32-ct-totitle: New file.
59461         New module 'unicase/u16-ct-totitle'.
59462         * lib/unicase/u16-ct-totitle.c: New file.
59463         * modules/unicase/u16-ct-totitle: New file.
59465         New module 'unicase/u8-ct-totitle'.
59466         * lib/unicase/u8-ct-totitle.c: New file.
59467         * lib/unicase/u-ct-totitle.h: New file, derived from
59468         lib/unicase/u-totitle.h.
59469         * modules/unicase/u8-ct-totitle: New file.
59471         New module 'unicase/u32-ct-tolower'.
59472         * lib/unicase/u32-ct-tolower.c: New file.
59473         * modules/unicase/u32-ct-tolower: New file.
59475         New module 'unicase/u16-ct-tolower'.
59476         * lib/unicase/u16-ct-tolower.c: New file.
59477         * modules/unicase/u16-ct-tolower: New file.
59479         New module 'unicase/u8-ct-tolower'.
59480         * lib/unicase/u8-ct-tolower.c: New file.
59481         * modules/unicase/u8-ct-tolower: New file.
59483         New module 'unicase/u32-ct-toupper'.
59484         * lib/unicase/u32-ct-toupper.c: New file.
59485         * modules/unicase/u32-ct-toupper: New file.
59487         New module 'unicase/u16-ct-toupper'.
59488         * lib/unicase/u16-ct-toupper.c: New file.
59489         * modules/unicase/u16-ct-toupper: New file.
59491         New module 'unicase/u8-ct-toupper'.
59492         * lib/unicase/u8-ct-toupper.c: New file.
59493         * modules/unicase/u8-ct-toupper: New file.
59495         Add context arguments to u*_casemap functions.
59496         * lib/unicase/unicasemap.h: Include unicase.h.
59497         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
59498         suffix_context arguments.
59499         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
59500         functions.
59501         (FUNC): Add prefix_context and suffix_context arguments. Use
59502         uc_is_cased and uc_is_case_ignorable.
59503         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
59504         * lib/unicase/u16-casemap.c: Likewise.
59505         * lib/unicase/u32-casemap.c: Likewise.
59506         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
59507         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
59508         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
59509         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
59510         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
59511         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
59513         New module 'unicase/u32-suffix-context'.
59514         * lib/unicase/u32-suffix-context.c: New file.
59515         * modules/unicase/u32-suffix-context: New file.
59517         New module 'unicase/u16-suffix-context'.
59518         * lib/unicase/u16-suffix-context.c: New file.
59519         * modules/unicase/u16-suffix-context: New file.
59521         New module 'unicase/u8-suffix-context'.
59522         * lib/unicase/u8-suffix-context.c: New file.
59523         * lib/unicase/u-suffix-context.h: New file.
59524         * modules/unicase/u8-suffix-context: New file.
59526         New module 'unicase/empty-suffix-context'.
59527         * lib/unicase/empty-suffix-context.c: New file.
59528         * modules/unicase/empty-suffix-context: New file.
59530         New module 'unicase/u32-prefix-context'.
59531         * lib/unicase/u32-prefix-context.c: New file.
59532         * modules/unicase/u32-prefix-context: New file.
59534         New module 'unicase/u16-prefix-context'.
59535         * lib/unicase/u16-prefix-context.c: New file.
59536         * modules/unicase/u16-prefix-context: New file.
59538         New module 'unicase/u8-prefix-context'.
59539         * lib/unicase/u8-prefix-context.c: New file.
59540         * lib/unicase/u-prefix-context.h: New file.
59541         * lib/unicase/context.h: New file.
59542         * modules/unicase/u8-prefix-context: New file.
59544         New module 'unicase/empty-prefix-context'.
59545         * lib/unicase/empty-prefix-context.c: New file.
59546         * modules/unicase/empty-prefix-context: New file.
59548         New module 'unicase/ignorable'.
59549         * lib/unicase/ignorable.c: New file.
59550         * modules/unicase/ignorable: New file.
59552         New module 'unicase/cased'.
59553         * lib/unicase/caseprop.h: New file.
59554         * lib/unicase/cased.c: New file.
59555         * modules/unicase/cased: New file.
59557         New functions for case mapping of substrings.
59558         * lib/unicase.h (casing_prefix_context_t): New type.
59559         (unicase_empty_prefix_context): New variable.
59560         (u8_casing_prefix_context, u16_casing_prefix_context,
59561         u32_casing_prefix_context, u8_casing_prefixes_context,
59562         u16_casing_prefixes_context, u32_casing_prefixes_context): New
59563         declarations.
59564         (casing_suffix_context_t): New type.
59565         (unicase_empty_suffix_context): New variable.
59566         (u8_casing_suffix_context, u16_casing_suffix_context,
59567         u32_casing_suffix_context, u8_casing_suffixes_context,
59568         u16_casing_suffixes_context, u32_casing_suffixes_context,
59569         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
59570         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
59571         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
59572         declarations.
59574 2009-06-28  Jim Meyering  <meyering@redhat.com>
59576         boostrap: indent only with spaces
59577         * build-aux/bootstrap: Indent only with spaces, never TABs.
59579         bootstrap: split long lines
59580         * build-aux/bootstrap: Keep line length < 80.
59582         bootstrap: sync from coreutils
59583         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
59584         just as autoreconf does.  Verify a list of prerequisite
59585         package-name,version-number pairs if defined in bootstrap.conf.
59586         Refer to README-prereq, if prerequisites are not satisfied.
59588 2009-06-27  Eric Blake  <ebb9@byu.net>
59590         tests: add test for bogus NULL definition
59591         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
59592         * tests/test-stdlib.c: Likewise.
59593         * tests/test-string.c: Likewise.
59594         * tests/test-locale.c: Likewise.
59595         * tests/test-unistd.c: Likewise.
59596         * modules/stdio-tests (Depends-on): Add verify.
59597         * modules/stdlib-tests (Depends-on): Likewise.
59598         * modules/string-tests (Depends-on): Likewise.
59599         * modules/locale-tests (Depends-on): Likewise.
59600         * modules/unistd-tests (Depends-on): Likewise.
59602 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
59604         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
59605         self-explaining comment.
59606         * m4/selinux-selinux-h: Update serial.
59607         (gl_LIBSELINUX): New macro, adding a warning for missing development
59608         packages to code extracted from...
59609         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
59610         Add warning for missing development packages here, too.
59612 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
59614         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
59616 2009-06-25  Eric Blake  <ebb9@byu.net>
59618         version-etc: fix regression
59619         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
59620         gcc.
59621         (version_etc): Use it, to catch bugs with trailing NULL.
59622         * lib/version-etc.c (version_etc_arn): Delete unused argument.
59623         (version_etc_va): Fix logic bug.
59624         * modules/version-etc-tests: Add test.
59625         * tests/test-version-etc.c: New file.
59626         * tests/test-version-etc.sh: Likewise.
59628 2009-06-25  Sam Steingold  <sds@gnu.org>
59630         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
59631         mbtowc declaration.
59633 2009-06-25  Eric Blake  <ebb9@byu.net>
59635         fpurge: migrate into <stdio.h>
59636         * lib/fpurge.h: Delete...
59637         * lib/stdio.in.h (fpurge): ...and declare here, instead.
59638         * lib/fpurge.c (fpurge): Change declaring header.
59639         * modules/fpurge (Files): Drop deleted file.
59640         (Depends-on): Add stdio.
59641         (configure.ac): Set witness.
59642         * modules/stdio (Makefile.am): Support fpurge macros.
59643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59644         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
59645         * lib/fflush.c: Update client.
59646         * tests/test-fpurge.c: Likewise.
59647         * NEWS: Mention the change.
59649 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59651         * lib/argp-version-etc.c (program_authors): Add const
59652         qualifier.
59653         * lib/version-etc.c: Fix typos in the comments.
59654         * modules/argp-version-etc: Depends on version-etc.
59656 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59658         argp-version-etc: new module.
59660         * lib/argp-version-etc.c: New file.
59661         * lib/argp-version-etc.h: New file.
59662         * modules/argp-version-etc: New file.
59663         * modules/argp-version-etc-tests: New file.
59664         * tests/test-argp-version-etc.c: New test.
59665         * tests/test-argp-version-etc-1.sh: New test.
59667 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59669         Provide additional interfaces and documentation for version-etc
59670         module.
59672         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
59673         interfaces.
59674         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
59675         prototypes.
59677 2009-06-24  Bruno Haible  <bruno@clisp.org>
59679         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
59680         HAVE_LIB${NAME} macro.
59681         Reported by Sam Steingold <sds@gnu.org>.
59683 2009-06-23  Simon Josefsson  <simon@josefsson.org>
59685         * modules/hash-tests (test_hash_LDADD): Link to libintl when
59686         needed.
59688 2009-06-21  Bruno Haible  <bruno@clisp.org>
59690         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
59691         work.
59692         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
59693         together with LIB${NAME}, LTLIB${NAME}.
59694         Reported by Sam Steingold <sds@gnu.org>.
59696 2009-06-20  Jim Meyering  <meyering@redhat.com>
59698         tests: make sc_require_test_exit_idiom more generic
59699         * top/maint.mk (Exit_witness_file): New overridable variable.
59700         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
59701         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
59703 2009-06-19  Jim Meyering  <meyering@redhat.com>
59705         hash: reverse order of src/dst parameters in an internal interface
59706         * lib/hash.c (transfer_entries): Reverse order of parameters to
59707         put DST before SRC.  Adjust callers.
59709         tests: test-hash: avoid wholesale duplication
59710         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
59711         Instead, use a loop and add a single conditional.
59713         tests: test-hash: allow seed selection via a command line argument
59714         * tests/test-hash.c (get_seed): New function.
59715         (main): Use it.
59717 2009-06-19  Eric Blake  <ebb9@byu.net>
59719         hash: avoid memory leak on allocation failure
59720         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
59721         failure.  Factor repeated algorithm...
59722         (transfer_entries): ...into new helper routine.
59723         (hash_delete): React to hash_rehash return value.
59725         hash: reduce memory pressure in hash_rehash no-op case
59726         * lib/hash.c (next_prime): Avoid overflow.
59727         (hash_initialize): Factor bucket size computation...
59728         (compute_bucket_size): ...into new helper function.
59729         (hash_rehash): Use new function and open coding to reduce memory
59730         pressure, and avoid a memory leak in USE_OBSTACK code.
59731         Reported by Jim Meyering.
59733 2009-06-18  Eric Blake  <ebb9@byu.net>
59735         hash: make rotation more obvious
59736         * modules/hash (Depends-on): Add bitrotate and stdint.
59737         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
59738         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
59739         (SIZE_MAX): Rely on headers for definition.
59740         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
59741         (raw_hasher): Use rotr_sz.
59742         Suggested by Jim Meyering.
59744         hash: fix memory leak in last patch
59745         * lib/hash.c (hash_rehash): Avoid memory leak.
59747         hash: avoid no-op rehashing
59748         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
59750         hash: provide default callback functions
59751         * lib/hash.c (raw_hasher, raw_comparator): New functions.
59752         (hash_initialize): Use them as defaults.
59753         * tests/test-hash.c (main): Test this.
59755         hash: minor optimization
59756         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
59757         when possible.
59758         (hash_initialize): Document this promise.
59759         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
59760         * tests/test-hash.c (hash_compare_strings): Test this.
59762 2009-06-18  Bruno Haible  <bruno@clisp.org>
59764         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
59765         going to be replaced anyway.
59767 2009-06-18  Bruno Haible  <bruno@clisp.org>
59769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
59770         in one place.
59771         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
59772         be replaced anyway.
59774 2009-06-18  Eric Blake  <ebb9@byu.net>
59776         hash: check for resize before insertion
59777         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
59778         threshold before insertion, so that a pathological hash_rehash
59779         that fills every bucket can still trigger another rehash.
59781 2009-06-18  Jim Meyering  <meyering@redhat.com>
59783         hash-tests: add a loop around the small tests
59784         * tests/test-hash.c (main): Repeat small tests with selected
59785         small initial table sizes.
59787 2009-06-17  Eric Blake  <ebb9@byu.net>
59789         hash: minor cleanups
59790         * lib/hash.h (hash_entry): Make opaque, by moving...
59791         * lib/hash.c (hash_entry): ...here.
59792         (hash_insert): Clarify restrictions on what can be inserted.
59793         (hash_get_next): Clarify when it is safe to remove an element
59794         during traversal.
59795         (check_tuning): Skip verification when tuning is known safe.
59796         (hash_initialize): Clarify restrictions on tuning.
59798 2009-06-17  Jim Meyering  <jim@meyering.net>
59799         and Eric Blake  <ebb9@byu.net>
59801         hash-tests: new module
59802         * modules/hash-tests: New file.
59803         * tests/test-hash.c: New file.
59805 2009-06-17  Eric Blake  <ebb9@byu.net>
59807         strstr-simple: document new module
59808         * MODULES.html.sh: Document new module.
59810         strstr, strcasestr: replace on platforms with broken memchr
59811         * modules/strstr: Split into...
59812         * modules/strstr-simple: ...new module that does not care about
59813         performance, but does care about glibc bug.
59814         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
59815         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
59816         if platform memchr is broken, per Debian bug 521737.
59817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
59818         memchr.
59819         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
59820         * doc/posix-functions/strstr.texi (strstr): Document the fix.
59821         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59822         * modules/mountlist (Depends-on): Add strstr-simple.
59823         * modules/gen-uni-tables (Depends-on): Likewise.
59824         * modules/argz (Depends-on): Add strstr.
59826 2009-06-17  Bruno Haible  <bruno@clisp.org>
59828         * modules/posix_spawn-internal (Depends-on): Add errno.
59830 2009-06-17  Bruno Haible  <bruno@clisp.org>
59832         Define missing ESTALE on Interix 3.5.
59833         * lib/errno.in.h (ESTALE): Assign a value if missing.
59834         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
59835         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
59836         missing.
59837         * doc/posix-headers/errno.texi: Mention the Interix bug.
59838         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
59840 2009-06-15  Eric Blake  <ebb9@byu.net>
59842         memchr, memchr2: add valgrind exception
59843         * lib/memchr.valgrind: New file.
59844         * lib/memchr2.valgrind: New file.
59845         * modules/memchr (Files): Distribute valgrind file.
59846         * modules/memchr2 (Files): Likewise.
59848         docs: memchr is no longer obsolete
59849         * MODULES.html.sh: Move memchr from obsolete to string.h section.
59850         * lib/string.in.h (memchr): Simplify logic.
59852 2009-06-14  Jim Meyering  <meyering@redhat.com>
59854         link-follow: fix the "checking..." message to not mention trailing slash
59855         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
59856         never considered trailing slashes.
59858 2009-06-14  Bruno Haible  <bruno@clisp.org>
59860         * m4/memchr.m4: Mention also the bug on IA-64.
59861         * doc/posix-functions/memchr.texi: Likewise.
59863 2009-06-12  Eric Blake  <ebb9@byu.net>
59865         memchr: detect broken x86_64 and alpha implementations
59866         * modules/memchr-tests (Depends-on): Move mmap detection...
59867         * modules/memchr (Depends-on): ...here.
59868         (configure.ac): Set indicator.
59869         * lib/string.in.h (memchr): Declare replacement.
59870         * modules/string (Makefile.am): Trigger replacement.
59871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59872         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
59873         bugs.
59874         * doc/posix-functions/memchr.texi (memchr): Document the bug.
59875         * modules/getpagesize (License): Relax license.
59877 2009-06-11  Bruno Haible  <bruno@clisp.org>
59879         * lib/idpriv.h: Add more references.
59881 2009-06-08  Bruno Haible  <bruno@clisp.org>
59883         Tests for module 'idpriv-droptemp'.
59884         * modules/idpriv-droptemp-tests: New file.
59885         * tests/test-idpriv-droptemp.sh: New file.
59886         * tests/test-idpriv-droptemp.su.sh: New file.
59887         * tests/test-idpriv-droptemp.c: New file.
59889         New module 'idpriv-droptemp'.
59890         * lib/idpriv-droptemp.c: New file.
59891         * modules/idpriv-droptemp: New file.
59893 2009-06-08  Bruno Haible  <bruno@clisp.org>
59895         Tests for module 'idpriv-drop'.
59896         * modules/idpriv-drop-tests: New file.
59897         * tests/test-idpriv-drop.sh: New file.
59898         * tests/test-idpriv-drop.su.sh: New file.
59899         * tests/test-idpriv-drop.c: New file.
59901         New module 'idpriv-drop'.
59902         * lib/idpriv.h: New file.
59903         * lib-idpriv-drop.c: New file.
59904         * m4/idpriv.m4: New file.
59905         * modules/idpriv-drop: New file.
59907 2009-06-08  Bruno Haible  <bruno@clisp.org>
59909         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
59910         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59912         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59914         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59915         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59917 2009-06-08  Eric Blake  <ebb9@byu.net>
59919         test-strstr: use memory fence, when possible
59920         * tests/test-strstr.c (main): Use memory fence, in order to be
59921         more likely to trigger Debian bug 521737.
59922         * modules/strstr-tests (Files): Pull in additional files.
59924         memchr: no longer obsolete, for wider field testing
59925         * modules/memchr (Status, Notice): Delete, this module is no
59926         longer obsolete.
59927         * modules/vasnprintf (Depends-on): Add memchr.
59929 2009-06-07  Jim Meyering  <meyering@redhat.com>
59931         hash: declare some functions with the warn_unused_result attribute
59932         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
59934 2009-06-07  Bruno Haible  <bruno@clisp.org>
59936         * tests/test-alignof.c: Don't test int64_t if it does not exist.
59937         Reported by Eric Blake.
59939 2009-06-06  Eric Blake  <ebb9@byu.net>
59941         test-alignof: fix typo with long double
59942         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
59943         compiler error.
59945 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
59947         Escape non-texinfo { and }s.
59948         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
59949         markup error.
59951 2009-06-04  Jim Meyering  <meyering@redhat.com>
59953         gitlog-to-changelog: don't infloop on an empty commit log
59954         * build-aux/gitlog-to-changelog: Warn about an empty log message.
59955         Reported by Boris Petersen <transacid@centerim.org>.
59957 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
59959         version-etc: extend for packagers
59960         Add three new configure options, intended for packagers:
59961           --with-packager="packager name"
59962           --with-packager-version="packager-specific version"
59963           --with-packager-bug-reports="packager bug reporting"
59964         An example with coreutils:
59965           $ ./configure \
59966             --with-packager=Gentoo \
59967             --with-packager-bug-report=http://bugs.gentoo.org/ \
59968             --with-packager-version="patchset 1.6"
59969           $ ./src/ls --version | head -n2
59970           ls (GNU coreutils) 7.1-dirty
59971           Packaged by Gentoo (patchset 1.6)
59972         Note that the bug reporting info via --help doesn't show up because
59973         coreutils uses its own custom emit_bug_reporting_address() implementation
59974         in src/system.h.  If it didn't, it'd look like:
59975           $ ./src/ls --help | tail -n4
59976           Report bugs to <bug-coreutils@gnu.org>.
59977           Report Gentoo bugs to <http://bugs.gentoo.org/>.
59978           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
59979           General help using GNU software: <http://www.gnu.org/gethelp/>.
59980         * lib/version-etc.c: Print new information, if provided.
59981         * m4/version-etc.m4: New file.
59982         * modules/version-etc (Files): Add m4/version-etc.m4.
59983         (configure.ac): Add gl_VERSION_ETC.
59985 2009-05-31  Bruno Haible  <bruno@clisp.org>
59987         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
59988         and 'int64_t'.
59989         * modules/alignof-tests (Dependencies): Add stdint.
59990         Reported by Eric Blake.
59992 2009-05-31  Bruno Haible  <bruno@clisp.org>
59994         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
59995         restriction due to compiler bugs.
59996         Reported by Eric Blake.
59998 2009-05-31  Simon Josefsson  <simon@josefsson.org>
59999             Bruno Haible  <bruno@clisp.org>
60001         Fix test-alignof failure.
60002         * lib/alignof.h (alignof_slot): New macro.
60003         (alignof_type): New macro, with the same semantics as the previous
60004         'alignof'.
60005         (alignof): Alias to alignof_slot.
60006         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
60007         check that the results are usable as constant expressions.
60009 2009-05-31  Bruno Haible  <bruno@clisp.org>
60011         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
60012         * tests/test-memchr.c (main): Check that memchr does not read past the
60013         first occurrence of the byte.
60014         * tests/test-strstr.c (main): Update comment.
60015         Suggested by Eric Blake.
60017 2009-05-30  Bruno Haible  <bruno@clisp.org>
60019         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
60020         detail how to use dumpbin.
60021         Reported by David Byron <dbyron@dbyron.com>.
60023 2009-06-02  Simon Josefsson  <simon@josefsson.org>
60025         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
60027 2009-06-02  Simon Josefsson  <simon@josefsson.org>
60029         * m4/manywarnings.m4: Add GCC 4.4 warnings.
60031 2009-05-28  Bruno Haible  <bruno@clisp.org>
60033         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
60034         build-aux/ files.
60036 2009-05-28  Simon Josefsson  <simon@josefsson.org>
60038         * gnulib-tool (func_import): Transform license on build-aux/ files too.
60040 2009-05-27  Simon Josefsson  <simon@josefsson.org>
60042         * gnulib-tool (sed_transform_main_lib_file)
60043         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
60044         regexps.
60046 2009-05-26  Simon Josefsson  <simon@josefsson.org>
60048         * tests/test-strstr.c: Add another self-test.
60049         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
60050         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
60052 2009-05-23  Bruno Haible  <bruno@clisp.org>
60054         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
60055         change.
60057 2009-05-21  Bruno Haible  <bruno@clisp.org>
60059         Simplify use of mode_t varargs.
60060         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
60061         uses 'mode_t' or 'int'.
60062         * lib/openat.c (openat): Likewise.
60063         * lib/open-safer.c (open_safer): Likewise.
60064         * m4/mode_t.m4: New file.
60065         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
60066         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
60067         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
60068         * modules/open (Files): Add m4/mode_t.m4.
60069         * modules/openat (Files): Likewise.
60070         * modules/fcntl-safer (Files): Likewise.
60071         Suggested by Eric Blake.
60073 2009-05-21  Pádraig Brady  <P@draigbrady.com>
60075         * doc/glibc-functions/fallocate.texi: New file.
60076         * doc/gnulib.texi: Include it.
60078 2009-05-21  Eric Blake  <ebb9@byu.net>
60079             Bruno Haible  <bruno@clisp.org>
60081         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
60082         invocations.
60083         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60085 2009-05-21  Eric Blake  <ebb9@byu.net>
60086             Bruno Haible  <bruno@clisp.org>
60088         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
60089         include_next. Fix of 2008-11-20 commit.
60090         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
60091         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
60092         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
60093         NEXT_MATH_H.
60094         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
60095         instead of NEXT_MATH_H.
60097 2009-05-21  Bruno Haible  <bruno@clisp.org>
60099         Avoid redefinition warnings for SIZE_MAX.
60100         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
60101         Reported by Simon Josefsson.
60103 2009-05-21  Bruno Haible  <bruno@clisp.org>
60105         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
60106         AC_CACHE_VAL.
60108 2009-05-20  Bruno Haible  <bruno@clisp.org>
60110         Make zeroptr.h work on mingw.
60111         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
60112         mprotect.
60113         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
60114         * modules/memchr2-tests (configure.ac): Likewise.
60115         * modules/memcmp-tests (configure.ac): Likewise.
60116         * modules/memmem-tests (configure.ac): Likewise.
60117         * modules/memrchr-tests (configure.ac): Likewise.
60118         Reported by Simon Josefsson.
60120 2009-05-20  Simon Josefsson  <simon@josefsson.org>
60122         * tests/test-glob.c: Include string.h for strcmp prototype.
60124 2009-05-20  Simon Josefsson  <simon@josefsson.org>
60126         * modules/getdelim (Depends-on): Add explicit stdint, although it
60127         was implicitly already pulled in via realloc-posix.
60128         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
60130 2009-05-20  Simon Josefsson  <simon@josefsson.org>
60132         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
60133         G. Christensen" <tgc@jupiterrise.com>.
60134         * m4/sys_socket_h.m4: Check for sa_family_t.
60135         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
60136         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
60137         * tests/test-sys_socket.c: Check that sa_family_t works.
60139 2009-05-18  Eric Blake  <ebb9@byu.net>
60141         maint.mk: allow gnulib_dir in VPATH build
60142         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
60144 2009-05-15  Jim Meyering  <meyering@redhat.com>
60146         maint.mk: Give gnulib_dir a default definition.
60147         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
60148         Thus, most packages no longer need to specify this variable in cfg.mk
60150 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
60152         rename.m4: fix typos that would make non-mingw cross-configure fail
60153         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
60155 2009-05-13  Eric Blake  <ebb9@byu.net>
60157         mmap-anon: avoid out-of-order autoconf expansion
60158         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
60159         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
60160         * modules/memchr-tests (Depends-on): Add extensions.
60161         * modules/memchr2-tests (Depends-on): Add extensions.
60162         * modules/memcmp-tests (Depends-on): Add extensions.
60163         * modules/memmem-tests (Depends-on): Add extensions.
60164         * modules/memrchr-tests (Depends-on): Add extensions.
60166 2009-05-13  Bruno Haible  <bruno@clisp.org>
60168         Make some tests ISO C 99 compliant.
60169         * tests/zerosize-ptr.h: New file.
60170         * tests/test-memchr.c: Include zerosize-ptr.h.
60171         (main): Use a zero-size object pointer instead of NULL.
60172         * tests/test-memchr2.c: Include zerosize-ptr.h.
60173         (main): Use a zero-size object pointer instead of NULL.
60174         * tests/test-memcmp.c: Include zerosize-ptr.h.
60175         (main): Use a zero-size object pointer instead of NULL.
60176         * tests/test-memmem.c: Include zerosize-ptr.h.
60177         (main): Use a zero-size object pointer instead of NULL.
60178         * tests/test-memrchr.c: Include zerosize-ptr.h.
60179         (main): Use a zero-size object pointer instead of NULL.
60180         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
60181         m4/mmap-anon.m4.
60182         (Depends-on): Add getpagesize.
60183         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60184         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
60185         m4/mmap-anon.m4.
60186         (Depends-on): Add getpagesize.
60187         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60188         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
60189         m4/mmap-anon.m4.
60190         (Depends-on): Add getpagesize.
60191         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60192         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
60193         m4/mmap-anon.m4.
60194         (Depends-on): Add getpagesize.
60195         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60196         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
60197         m4/mmap-anon.m4.
60198         (Depends-on): Add getpagesize.
60199         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60201 2009-05-12  Bruno Haible  <bruno@clisp.org>
60203         Tests for module 'alignof'.
60204         * modules/alignof-tests: New file.
60205         * tests/test-alignof.c: New file.
60207 2009-05-12  Bruno Haible  <bruno@clisp.org>
60209         Fix alignof macro.
60210         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
60211         vendor compilers that are always correct.
60213 2009-05-12  Bruno Haible  <bruno@clisp.org>
60215         Make the MAP_ANONYMOUS detection work on HP-UX 11.
60216         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
60217         not whether its fully works.
60219 2009-05-12  Bruno Haible  <bruno@clisp.org>
60221         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
60223 2009-05-12  Jim Meyering  <meyering@redhat.com>
60225         * top/maint.mk: Adjust backslash alignment.
60227 2009-05-11  Simon Josefsson  <simon@josefsson.org>
60229         * top/maint.mk: Make $(srcdir)/build-aux configurable.
60231 2009-05-11  Eric Blake  <ebb9@byu.net>
60233         argp: avoid undefined behavior
60234         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
60235         macros.
60237 2009-05-08  Simon Josefsson  <simon@josefsson.org>
60239         * tests/test-vc-list-files-git.sh: Do git config of user.email and
60240         user.name to prevent git commit from complaining.
60242 2009-05-10  Bruno Haible  <bruno@clisp.org>
60244         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
60245         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
60246         it rewrites every file name only once.
60247         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
60249 2009-05-08  Bruno Haible  <bruno@clisp.org>
60251         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
60252         instead of 'max'.
60254 2009-05-08  Simon Josefsson  <simon@josefsson.org>
60256         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
60257         sockaddr_storage test.
60259 2009-05-07  Simon Josefsson  <simon@josefsson.org>
60261         * modules/sys_socket (Makefile.am): Substitute
60262         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
60263         * m4/sys_socket_h.m4: Check for sockaddr_storage.
60264         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
60265         * tests/test-sys_socket.c: Check sockaddr_storage.
60267 2009-05-08  Bruno Haible  <bruno@clisp.org>
60269         New module 'alignof'.
60270         * lib/alignof.h: New file.
60271         * modules/alignof: New file.
60273 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60274             Bruno Haible  <bruno@clisp.org>
60276         Fix test-file-has-acl on FreeBSD.
60277         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
60278         mask is implicitly added.
60279         * tests/test-file-has-acl.c: Include <signal.h>.
60280         (main): Terminate the test after 5 seconds.
60281         * modules/acl-tests (configure.ac): Check for alarm function.
60283 2009-05-04  Bruno Haible  <bruno@clisp.org>
60285         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
60286         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
60287         * modules/errno (configure.ac): Drop AC_REQUIRE.
60288         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
60289         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
60291 2009-05-04  Simon Josefsson  <simon@josefsson.org>
60293         * modules/glob-tests: New module.
60294         * tests/test-glob.c: Add.
60296 2009-05-04  Simon Josefsson  <simon@josefsson.org>
60298         * modules/fnmatch-tests: New module.
60299         * tests/test-fnmatch.c: Add.
60301 2009-05-04  Eric Blake  <ebb9@byu.net>
60303         maint: make the new no-submodule-changes rule VPATH-safe
60304         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
60306 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60307             Bruno Haible  <bruno@clisp.org>
60309         acl: Fix infinite loop on FreeBSD.
60310         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
60311         of return value from acl_get_entry.
60312         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
60313         Likewise.
60315 2009-05-03  Bruno Haible  <bruno@clisp.org>
60317         * lib/acl-internal.h (acl_entries): Clarify return value.
60318         * lib/acl_entries.c (acl_entries): Likewise.
60320 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60322         Bug fix in acl module.
60323         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
60325 2009-05-03  Bruno Haible  <bruno@clisp.org>
60327         Create gperf-generated file in the source dir, not in the build dir.
60328         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
60329         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
60330         * modules/unicase/locale-language (unicase/locale-languages.h):
60331         Likewise.
60332         * modules/unicase/special-casing (unicase/special-casing-table.h):
60333         Likewise.
60334         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
60335         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
60336         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
60337         Reported by Ralf Wildenhues.
60339 2009-05-03  Bruno Haible  <bruno@clisp.org>
60341         * modules/fnmatch (Description, configure.ac): Taken from
60342         fnmatch-posix.
60343         * modules/fnmatch-posix: Turn into a symbolic reference to the
60344         'fnmatch' module, and deprecate.
60345         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
60347 2009-05-03  Bruno Haible  <bruno@clisp.org>
60349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
60350         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
60351         Reported by Ralf Wildenhues.
60353 2009-05-04  Simon Josefsson  <simon@josefsson.org>
60355         * m4/fnmatch.m4: Fix fnmatch re-define.
60357 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60359         priv-set: new module and tests; adapt write-any-file
60360         * lib/priv-set.c: New file.
60361         * lib/priv-set.h: New file.
60362         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
60363         * lib/write-any-file.c: Simplify by using priv-set module.
60364         * m4/priv-set.m4: New file.
60365         * modules/priv-set: New file.
60366         * modules/unlinkdir: Add dependency on priv-set module.
60367         * modules/write-any-file: Likewise.
60369         Tests for module 'priv-set'.
60370         * modules/priv-set-tests: New file.
60371         * tests/test-priv-set.c: New file.
60373 2009-05-03  Jim Meyering  <meyering@redhat.com>
60374             Bruno Haible  <bruno@clisp.org>
60376         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
60377         use the converted UTF-8 variant of the name instead.
60379 2009-05-03  Jim Meyering  <meyering@redhat.com>
60381         tests: tighten some getdate tests
60382         * tests/test-getdate.c (main): Tighten tests: require equality,
60383         not just greater than.  Set TZ envvar to UTC0.
60385 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
60387         getdate: correctly interpret "next monday" when run on a Monday
60388         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
60389         that e.g., "next tues" (when run on a tuesday) results in a date
60390         that is one week in the future, and not today's date.
60391         I.e., add a week when the wday is the same as the current one.
60392         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
60393         and earlier by Martin Bernreuther and Jan Minář.
60394         * tests/test-getdate.c (main): Check that "next DAY" is always in
60395         the future and that "last DAY" is always in the past.
60397 2009-05-02  Jim Meyering  <meyering@redhat.com>
60399         build: ensure that a release build fails when a submodule is unclean
60400         * top/maint.mk (no-submodule-changes): New rule.
60401         (alpha beta major): Depend on it.
60403 2009-05-02  Bruno Haible  <bruno@clisp.org>
60405         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
60406         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
60407         shell variable gl_fnmatch_required to detect which variant is
60408         requested.
60409         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
60410         gl_FUNC_FNMATCH_POSIX.
60411         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
60412         exclude fnmatch-posix.
60414 2009-05-02  Bruno Haible  <bruno@clisp.org>
60416         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
60417         * modules/mbsrtowcs (License): Change to LGPLv2+.
60418         * modules/strnlen1 (License): Likewise.
60419         Reported by Simon Josefsson.
60421 2009-05-02  Bruno Haible  <bruno@clisp.org>
60423         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
60424         "cross".
60425         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
60426         gnulib-tool was called with option --source-base=lib.
60428 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60430         Use automake *-local hooks without commands, for extensibility.
60431         * modules/localcharset (Makefile.am): Rename install-exec-local
60432         rule to install-exec-localcharset, and make it a prerequisite of
60433         install-exec-local.  Likewise, rename the uninstall-local rule to
60434         uninstall-localcharset, and make it a prerequisite of the former.
60436 2009-05-01  Bruno Haible  <bruno@clisp.org>
60438         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
60439         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
60440         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
60441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
60442         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
60443         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
60444         m4/locale-zh.m4, m4/codeset.m4.
60446         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
60447         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
60448         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
60449         m4/locale-zh.m4.
60451         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
60452         REPLACE_WCRTOMB if mbstate_t must be replaced.
60453         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
60454         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
60456 2009-05-01  Bruno Haible  <bruno@clisp.org>
60458         Avoid compiler warnings when redefining macros defined by <libintl.h>.
60459         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
60460         dngettext, dcngettext, textdomain, bindtextdomain,
60461         bind_textdomain_codeset): Undefine before redefining.
60463 2009-04-30  Bruno Haible  <bruno@clisp.org>
60465         Fix bug introduced on 2009-04-25.
60466         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
60467         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
60468         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
60469         is defined.
60470         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
60471         is defined.
60472         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
60473         is defined.
60474         Reported by Elbert_Pol <elbert.pol@gmail.com>.
60476 2009-04-28  Bruno Haible  <bruno@clisp.org>
60478         Comment tweaks.
60479         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
60480         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
60481         * lib/unicase.h (u*_casexfrm): Likewise.
60482         Reported by Paolo Bonzini.
60484 2009-04-28  Bruno Haible  <bruno@clisp.org>
60486         Fix a compilation error.
60487         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
60488         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
60489         Reported by Jim Meyering.
60491 2009-04-27  Bruno Haible  <bruno@clisp.org>
60493         New module 'libunistring'.
60494         * modules/libunistring: New file.
60495         * m4/libunistring.m4: New file.
60496         * MODULES.html.sh (Unicode string functions): Add it.
60498 2009-04-27  Eric Blake  <ebb9@byu.net>
60500         maint.mk: allow package-specific header to provide <config.h>
60501         * top/maint.mk (sc_require_config_h): New variable.
60502         (sc_require_config_h, sc_require_config_h_first): Use it.
60504 2009-04-27  Simon Josefsson  <simon@josefsson.org>
60506         * top/maint.mk (sc_avoid_if_before_free): Except
60507         useless-if-before-free script.
60509 2009-04-27  Eric Blake  <ebb9@byu.net>
60511         maintainer-makefile: depend on all required helper scripts
60512         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
60513         useless-if-before-free.
60514         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
60515         version, rather than assuming gnulib checkout is available.
60516         Reported by Simen Josefsson.
60518 2009-04-26  Bruno Haible  <bruno@clisp.org>
60520         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
60521         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
60522         "../" or "..".
60524 2009-04-26  Bruno Haible  <bruno@clisp.org>
60526         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
60527         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
60528         AC_LIB_HAVE_LINKFLAGS.
60530 2009-04-26  Bruno Haible  <bruno@clisp.org>
60532         Simplify calling convention of u*_conv_from_encoding.
60533         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
60534         u32_conv_from_encoding): Expect a resultbuf argument and return the
60535         result directly as a pointer.
60536         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
60537         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
60538         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
60539         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
60540         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
60541         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
60542         Update.
60543         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
60544         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
60545         * lib/vasnprintf.c (VASNPRINTF): Update.
60546         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
60547         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
60548         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
60549         * NEWS: Mention the change.
60551 2009-04-26  Bruno Haible  <bruno@clisp.org>
60553         Simplify calling convention of u*_conv_to_encoding.
60554         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60555         u32_conv_to_encoding): Expect a resultbuf argument and return the
60556         result directly as a pointer.
60557         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
60558         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
60559         freeing scaled_offsets if mem_iconveha failed.
60560         * lib/unicase/u-casexfrm.h (FUNC): Update.
60561         * lib/uninorm/u-normxfrm.h (FUNC): Update.
60562         * lib/vasnprintf.c (VASNPRINTF): Update.
60563         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
60564         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
60565         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
60566         * NEWS: Mention the change.
60568 2009-04-26  Bruno Haible  <bruno@clisp.org>
60570         Avoid test failures on AIX and OSF/1.
60571         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
60572         malloc(0).
60573         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
60574         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
60575         Likewise.
60576         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
60577         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
60578         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
60579         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
60580         * doc/posix-functions/malloc.texi: Document the portability problem
60581         related to malloc(0).
60583 2009-04-26  Bruno Haible  <bruno@clisp.org>
60585         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
60586         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
60587         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
60589 2009-04-25  Bruno Haible  <bruno@clisp.org>
60591         Avoid link error when creating a namespace clean library.
60592         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
60593         as macro with arguments if already defined as an alias.
60594         * lib/signbitf.c (gl_signbitf): Don't undefine.
60595         * lib/signbitd.c (gl_signbitd): Don't undefine.
60596         * lib/signbitl.c (gl_signbitl): Don't undefine.
60598 2009-04-25  Jim Meyering  <meyering@redhat.com>
60600         vc-list-files: fix another quoting bug
60601         * build-aux/vc-list-files: Avoid sed backslash expansion
60602         of pathological directory names.
60604 2009-04-25  Eric Blake  <ebb9@byu.net>
60606         vc-list-files: fix shell quoting error
60607         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
60608         timestamp.
60610 2009-04-25  Jim Meyering  <meyering@redhat.com>
60612         vc-list-files: restore lost functionality with subdir argument
60613         * build-aux/vc-list-files: When given a non-"." sub-directory
60614         argument, substitute the $dir/ prefix back onto each resulting name.
60615         Otherwise, coreutils' root_tests check would fail.
60617 2009-04-24  Eric Blake  <ebb9@byu.net>
60619         vc-list-files: ignore git symlinks
60620         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
60621         than ls-files, to ignore git symlinks.
60623         maint.mk: import improvements from m4
60624         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
60625         (move_if_change): Delete unused macro.
60626         (news-date-check, vc-diff-check): Support VPATH builds.
60627         (announcement): Likewise.  Split --bootstrap-tools list...
60628         (boostrap-tools): ...into separate list, which can be overridden
60629         in cfg.mk.
60630         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
60631         requiring dependency on useless-if-before-free module.
60632         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
60633         Support VPATH builds.
60635 2009-04-24  Jim Meyering  <meyering@redhat.com>
60637         maint.mk: remove coreutils-specific rules and variables
60638         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
60639         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
60640         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
60642         maint.mk: remove obsolete rule
60643         * top/maint.mk (rel-check): Remove rule.
60644         (WGET, WGETFLAGS): Remove now-unused variables.
60646 2009-04-24  Simon Josefsson  <simon@josefsson.org>
60648         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
60649         consistency.
60651         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
60652         '$(PATH_SEPARATOR)' instead of ':'.
60654 2009-04-24  Simon Josefsson  <simon@josefsson.org>
60656         * lib/getopt1.c (main): Use 'const' for static array.
60658 2009-04-24  Simon Josefsson  <simon@josefsson.org>
60660         * top/maint.mk: Sync with coreutils.
60661         * NEWS: Explain incompatibilities.
60663 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60664             Bruno Haible  <bruno@clisp.org>
60666         Fix cross-compilation results.
60667         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
60668         statement, as third argument of AC_TRY_RUN.
60669         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
60670         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
60671         Likewise.
60672         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60673         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
60674         Likewise.
60675         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
60676         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
60677         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
60679 2009-04-20  Bruno Haible  <bruno@clisp.org>
60681         Avoid test failure on mingw.
60682         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
60684 2009-04-20  Bruno Haible  <bruno@clisp.org>
60686         Avoid compilation error on mingw.
60687         * modules/localename-tests (Depends-on): Add locale.
60689 2009-04-19  Bruno Haible  <bruno@clisp.org>
60691         Support for building a shared library on Windows platforms.
60692         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
60693         (main): Test the presence of UNINORM_NFC here.
60694         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
60695         (main): Test the presence of UNINORM_NFD here.
60696         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
60697         (main): Test the presence of UNINORM_NFKC here.
60698         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
60699         (main): Test the presence of UNINORM_NFKD here.
60701 2009-04-19  Bruno Haible  <bruno@clisp.org>
60703         Avoid a compiler warning.
60704         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
60705         Change type of variable 'sequence'.
60707 2009-04-19  Bruno Haible  <bruno@clisp.org>
60709         * modules/configmake (Makefile.am): When the contents of configmake.h
60710         does not change, arrange to preserve its modification time.
60712 2009-04-17  Simon Josefsson  <simon@josefsson.org>
60714         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
60715         gettext domain.
60717 2009-04-16  Jim Meyering  <meyering@redhat.com>
60719         useless-if-before-free: improve conversion code
60720         * build-aux/useless-if-before-free: Adjust code-in-comment to match
60721         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
60723 2009-04-14  Bruno Haible  <bruno@clisp.org>
60725         * modules/fcntl (Depends-on): Add extensions.
60726         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
60728 2009-04-12  Ben Pfaff  <blp@gnu.org>
60730         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
60731         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
60733 2009-03-20  Ben Pfaff  <blp@gnu.org>
60735         Make rename replace existing destinations on Windows.
60736         * m4/rename.m4: Add test for Mingw.
60737         * lib/rename.c: Add rename replacement that uses MoveFileEx with
60738         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
60739         * doc/posix-functions/rename.texi: Document.
60741 2009-04-10  Bruno Haible  <bruno@clisp.org>
60743         New include file "iconveh.h".
60744         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
60745         * lib/striconveh.h: Include it.
60746         (enum iconv_ilseq_handler): Remove definition.
60747         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
60748         striconveh.h.
60749         * lib/striconveha.c: Include striconveh.h.
60750         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
60751         * modules/striconveh (Files): Add lib/iconveh.h.
60752         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
60753         lib/striconveh.h.
60755 2009-04-10  Bruno Haible  <bruno@clisp.org>
60757         * lib/uniconv.h: Update comment.
60759 2009-04-10  Bruno Haible  <bruno@clisp.org>
60761         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
60762         always.
60763         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60764         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60765         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60766         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
60767         "unistring-notinline.h", so that the function gets defined always.
60768         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60769         * lib/unistr/u8-uctomb.c: Likewise.
60770         * lib/unistr/u16-mbtouc.c: Likewise.
60771         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60772         * lib/unistr/u16-uctomb.c: Likewise.
60773         * lib/unistr/u32-mbtouc.c: Likewise.
60774         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60775         * lib/unistr/u32-uctomb.c: Likewise.
60777 2009-04-10  Bruno Haible  <bruno@clisp.org>
60779         Mark 'utime' obsolete.
60780         * modules/utime (Status, Notice): New sections.
60781         Suggested by Jim Meyering.
60783         Fix cross-compile guess for utime test.
60784         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
60785         autoconf.
60786         * doc/posix-functions/utime.texi: Give more precisions.
60787         Reported by Jan <ipif@ymail.com>.
60789 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
60791         filevercmp: correct today's change
60792         * lib/filevercmp.c: Also handle coreutils' test inputs.
60793         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
60795         Fix regression in 'filevercmp' module. Thanks Sven Joachim
60796         for reporting it.
60797         * lib/filevercmp.c: Special handle for "", "." and "..".
60798         * tests/test-filevercmp.c: Enlarge the set suite.
60800 2009-04-07  Jim Meyering  <meyering@redhat.com>
60802         useless-if-before-free: show how to remove braced useless free, too
60803         * build-aux/useless-if-before-free: still only in a comment, though.
60805 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
60807         maint.mk: import changes to syntax-check macros from coreutils
60808         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
60809         Use them in the relevant macros.
60811 2009-04-06  Bruno Haible  <bruno@clisp.org>
60813         Fix unportable use of bit-fields.
60814         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
60815         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
60816         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
60818 2009-04-06  Bruno Haible  <bruno@clisp.org>
60820         Avoid test failures on AIX and OSF/1.
60821         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
60822         that malloc(0) = NULL.
60823         * tests/unicase/test-u8-tolower.c (check): Likewise.
60824         * tests/unicase/test-u8-totitle.c (check): Likewise.
60825         * tests/unicase/test-u8-toupper.c (check): Likewise.
60826         * tests/unicase/test-u16-casefold.c (check): Likewise.
60827         * tests/unicase/test-u16-tolower.c (check): Likewise.
60828         * tests/unicase/test-u16-totitle.c (check): Likewise.
60829         * tests/unicase/test-u16-toupper.c (check): Likewise.
60830         * tests/unicase/test-u32-casefold.c (check): Likewise.
60831         * tests/unicase/test-u32-tolower.c (check): Likewise.
60832         * tests/unicase/test-u32-totitle.c (check): Likewise.
60833         * tests/unicase/test-u32-toupper.c (check): Likewise.
60834         * tests/uninorm/test-u8-nfc.c (check): Likewise.
60835         * tests/uninorm/test-u8-nfd.c (check): Likewise.
60836         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
60837         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
60838         * tests/uninorm/test-u16-nfc.c (check): Likewise.
60839         * tests/uninorm/test-u16-nfd.c (check): Likewise.
60840         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
60841         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
60842         * tests/uninorm/test-u32-nfc.c (check): Likewise.
60843         * tests/uninorm/test-u32-nfd.c (check): Likewise.
60844         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
60845         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
60847 2009-04-05  Bruno Haible  <bruno@clisp.org>
60849         Work around an autoconf limitation.
60850         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
60851         comment line if it would be longer than 3 KB.
60853 2009-04-05  Bruno Haible  <bruno@clisp.org>
60855         Avoid test failure with libiconv-1.13.
60856         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
60857         of the expected test results.
60859 2009-04-05  Bruno Haible  <bruno@clisp.org>
60861         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
60862         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
60863         that it should be installed.
60865 2009-04-05  Bruno Haible  <bruno@clisp.org>
60867         * gnulib-tool: New option --copy-file.
60868         (func_usage): Document it.
60869         (func_dest_tmpfilename): Moved out of func_import.
60870         (func_add_file, func_update_file): New functions, extracted from
60871         func_import.
60872         (func_import): Update.
60874 2009-04-05  Karl Berry  <karl@gnu.org>
60876         * README: prominently mention gnulib-tool.
60877         Rearrange sections so getting the code is near the top.
60879 2009-04-05  Bruno Haible  <bruno@clisp.org>
60881         * lib/unicase.h: Mention u*_cmp2.
60882         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
60883         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
60884         * lib/unicase/ulc-casecmp.c: Likewise.
60885         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
60886         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
60887         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
60888         unistr/u8-cmp.
60889         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
60890         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
60891         unistr/u16-cmp.
60892         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
60893         unistr/u32-cmp.
60895         * lib/uninorm.h: Mention u*_cmp2.
60896         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
60897         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
60898         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
60899         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
60900         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
60901         unistr/u8-cmp.
60902         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
60903         unistr/u16-cmp.
60904         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
60905         unistr/u32-cmp.
60907         New module 'unistr/u32-cmp2'.
60908         * lib/unistr/u32-cmp2.c: New file.
60909         * modules/unistr/u32-cmp2: New file.
60911         New module 'unistr/u16-cmp2'.
60912         * lib/unistr/u16-cmp2.c: New file.
60913         * modules/unistr/u16-cmp2: New file.
60915         New module 'unistr/u8-cmp2'.
60916         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
60917         * lib/unistr/u8-cmp2.c: New file.
60918         * lib/unistr/u-cmp2.h: New file.
60919         * modules/unistr/u8-cmp2: New file.
60921 2009-04-05  Bruno Haible  <bruno@clisp.org>
60923         * lib/unictype.h (uc_property_is_valid): New macro.
60924         * tests/unictype/test-pr_byname.c (main): Use it.
60926         * lib/unistr.h: Doc fixes.
60927         * lib/uniconv.h: Doc fixes.
60928         * lib/unictype.h: Doc fixes.
60930 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
60932         Port coreutils 7.2 to Solaris 8.
60934         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
60935         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
60936         for Solaris 8.  This is a bit of a hack, as it means it's the
60937         caller's responsibility to add -lnsl if needed, but most likely it
60938         won't be needed since only getaddrinfo uses this and getaddrinfo
60939         isn't needed on Solaris 8.
60941         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
60942         problem to Solaris 8 encountered with coreutils 7.2, which
60943         resulted in a message "fnmatch.c:292: warning: passing argument 4
60944         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
60945         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
60947 2009-04-03  Simon Josefsson  <simon@josefsson.org>
60949         * m4/ld-version-script.m4: Add FIXME comment.
60951 2009-04-02  Simon Josefsson  <simon@josefsson.org>
60953         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
60954         SOVERSION variable.
60956 2009-04-02  Bruno Haible  <bruno@clisp.org>
60958         * Makefile (info, html, dvi, pdf): Combine the rules.
60959         Suggested by Jim Meyering.
60961 2009-04-01  Bruno Haible  <bruno@clisp.org>
60963         * Makefile (info, html, dvi, pdf): New targets.
60964         Reported by Reuben Thomas <rrt@sc3d.org>.
60966 2009-04-01  Bruno Haible  <bruno@clisp.org>
60968         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
60969         can be put into PATH.
60970         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
60972 2009-04-01  Bruno Haible  <bruno@clisp.org>
60974         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
60976 2009-04-01  Bruno Haible  <bruno@clisp.org>
60978         Rename module 'visibility'.
60979         * modules/lib-symbol-visibility: Renamed from modules/visibility.
60980         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
60981         * doc/gnulib.texi: Update.
60982         * MODULES.html.sh (Misc): Update.
60983         * NEWS: Mention the change.
60985 2009-04-01  Simon Josefsson  <simon@josefsson.org>
60987         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
60988         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
60989         Eric Blake <ebb9@byu.net> for review.
60990         * MODULES.html.sh: Add lib-msvc-compat.
60991         * doc/gnulib.texi: Link to new section.
60992         * m4/ld-output-def.m4: New file.
60993         * doc/ld-output-def.texi: New file.
60995 2009-04-01  Simon Josefsson  <simon@josefsson.org>
60997         Rename ld-version-script to lib-symbol-versions.  Suggested by
60998         Bruno Haible <bruno@clisp.org>.
60999         * modules/ld-version-script: Renamed to lib-symbol-versions.
61000         * doc/ld-version-script.texi: Fix module name.
61001         * MODULES.html.sh: Add lib-symbol-versions.
61003 2009-03-31  Simon Josefsson  <simon@josefsson.org>
61005         * modules/u64-tests: New file.
61006         * tests/test-u64.c: New file.
61008 2009-03-04  Simon Josefsson  <simon@josefsson.org>
61010         * MODULES.html.sh: Mention u64.
61011         * modules/u64: New module.
61012         * modules/crypto/sha512: Depend on u64 module instead of providing
61013         u64.h.
61015 2009-03-27  Eric Blake  <ebb9@byu.net>
61017         test-strerror: make debugging EAI_SYSTEM easier
61018         * modules/getaddrinfo-tests (Depends-on): Add strerror.
61019         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
61020         failure was EAI_SYSTEM.
61022 2009-03-25  Bruno Haible  <bruno@clisp.org>
61024         Fix a problem with --enable-relocatable on Solaris 7.
61025         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
61026         since 2008-02-24.
61028 2009-03-25  Eric Blake  <ebb9@byu.net>
61030         test-sockets: avoid gcc warning
61031         * tests/test-sockets.c (main): Silence compiler warning.
61033 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61035         New modules nproc, pthread, contributed by Glen Lenker.
61037         * MODULES.html.sh: Add pthread, nproc.
61038         * lib/nproc.c: New file.
61039         * lib/nproc.h: New file.
61040         * lib/pthread.in.h: New file.
61041         * m4/pthread.m4: New file.
61042         * modules/nproc: New file.
61043         * modules/pthread: New file.
61045 2009-03-24  Simon Josefsson  <simon@josefsson.org>
61047         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
61048         New variable.
61050 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
61052         filevercmp: handle simple~ and numbered.~3~ backup suffixes
61053         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
61054         * tests/test-filevercmp.c: Add tests for backup suffixes.
61056 2009-03-24  Simon Josefsson  <simon@josefsson.org>
61058         * modules/stdlib (Depends-on): Add stdint, needed when defining
61059         struct random_data on, for example, HP-UX 10.20.  Reported by
61060         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61062 2009-03-24  Simon Josefsson  <simon@josefsson.org>
61064         * lib/readline.c (readline): Call fflush on stdout after printing
61065         prompt.
61067 2009-03-20  Bruno Haible  <bruno@clisp.org>
61069         Remove dependency from 'close' module to -lws2_32 on native Windows.
61070         * lib/close-hook.h: New file.
61071         * lib/close-hook.c: New file.
61072         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
61073         w32sock.h.
61074         (_gl_close_fd_maybe_socket): Remove function.
61075         (rpl_close): Invoke execute_all_close_hooks instead of
61076         _gl_close_fd_maybe_socket.
61077         * lib/sockets.c: Include close-hook.h, w32sock.h.
61078         (close_fd_maybe_socket): New function, essentially from lib/close.c.
61079         (close_sockets_hook): New variable.
61080         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
61081         (gl_sockets_cleanup): Unregister it.
61082         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
61083         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
61084         * modules/close-hook: New file.
61085         * modules/close (Files): Remove lib/w32sock.h.
61086         (Depends-on): Add close-hook.
61087         (Link): Remove section.
61088         * modules/sockets (Files): Add lib/w32sock.h.
61089         (Depends-on): Add close-hook.
61090         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
61091         invocation.
61092         * NEWS: Mention that LIB_CLOSE is gone.
61094 2009-03-23  Eric Blake  <ebb9@byu.net>
61096         signal-tests: test previous patch
61097         * tests/test-signal.c: New file.
61098         * modules/signal-tests: Likewise.
61100         signal.h: always support 'volatile sig_atomic_t'
61101         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
61102         (gl_SIGNAL_H_DEFAULTS): Add a default.
61103         * modules/signal (Makefile.am): Substitute if needed.
61104         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
61105         users can blindly add volatile.
61106         * doc/posix-headers/signal.texi (signal.h): Document it.
61107         Reported by Matthew Woehlke.
61109 2009-03-23  Jim Meyering  <meyering@redhat.com>
61111         pathmax: PATH_MAX: use pathconf only when available
61112         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
61113         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
61114         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
61115         This avoids a link failure in a PSP cross-compilation environment
61116         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
61118         * lib/vasnprintf.c (divide): Fix typo in comment.
61120 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61122         * gnulib-tool (func_filter_filelist): Fix comment.
61124 2009-03-20  Bruno Haible  <bruno@clisp.org>
61126         Make sockets.h self-contained.
61127         * lib/sockets.c: Include sockets.h first.
61128         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
61130 2009-03-19  Eric Blake  <ebb9@byu.net>
61132         doc: mention more functions added in cygwin 1.7.0
61133         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
61134         addition.
61135         * doc/posix-functions/log2f.texi: Likewise.
61137 2009-03-19  Jim Meyering  <meyering@redhat.com>
61139         fsusage: avoid syntax error due to statement-before-declaration
61140         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
61141         after all declarations.  Reported by Matthew Woehlke in
61142         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
61144 2009-03-18  Eric Blake  <ebb9@byu.net>
61146         build-aux/compile: sync from automake
61147         * build-aux/compile: New file, from automake.
61148         * config/srclist.txt: Mention build-aux/compile.
61150 2009-03-17  Bruno Haible  <bruno@clisp.org>
61152         * lib/git-merge-changelog.c: Fix typo in comment.
61153         Reported by Reuben Thomas <rrt@sc3d.org>.
61155 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
61157         * m4/regex.m4: update and improve help for
61158         --without-included-regex.
61160 2009-03-17  Simon Josefsson  <simon@josefsson.org>
61162         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
61163         failure on missing include files.
61165 2009-03-17  Eric Blake  <ebb9@byu.net>
61167         doc: mention more functions added in cygwin 1.7.0
61168         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
61169         addition.
61170         * doc/posix-functions/fwscanf.texi: Likewise.
61171         * doc/posix-functions/swprintf.texi: Likewise.
61172         * doc/posix-functions/swscanf.texi: Likewise.
61173         * doc/posix-functions/vfwprintf.texi: Likewise.
61174         * doc/posix-functions/vfwscanf.texi: Likewise.
61175         * doc/posix-functions/vswprintf.texi: Likewise.
61176         * doc/posix-functions/vswscanf.texi: Likewise.
61177         * doc/posix-functions/vwprintf.texi: Likewise.
61178         * doc/posix-functions/vwscanf.texi: Likewise.
61179         * doc/posix-functions/wcscasecmp.texi: Likewise.
61180         * doc/posix-functions/wcsdup.texi: Likewise.
61181         * doc/posix-functions/wcsftime.texi: Likewise.
61182         * doc/posix-functions/wcsncasecmp.texi: Likewise.
61183         * doc/posix-functions/wprintf.texi: Likewise.
61184         * doc/posix-functions/wscanf.texi: Likewise.
61185         * doc/glibc-functions/gethostbyname2.texi: Likewise.
61187 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61189         maint.mk: really add $(AM_MAKEFLAGS)
61190         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
61191         was inadvertently omitted in the last commit.
61192         Spotted by Bruno Haible.
61194         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
61195         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
61196         $(AM_MAKEFLAGS)' rather than plain `make'.
61198         gnulib-tool: execute $MAKE not make
61199         * gnulib-tool: Default $MAKE to 'make'.
61200         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
61201         than make.  Initialize $MAKE in the do-autobuild script.
61203         gnulib-tool: use $MAKE not make in generated files
61204         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
61205         make, in generated files.  Initialize $MAKE in the do-autobuild
61206         script.
61208         * top/GNUmakefile (_have-git-version-gen): Fix typo.
61210         GNUmakefile: disable parallelism only for multiple, recursive targets
61211         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
61212         additions in the Makefile.
61213         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
61214         by Automake.
61215         (.NOTPARALLEL): Only disable parallel builds if multiple targets
61216         are listed on the command line and at least one of them is
61217         listed in $(ALL_RECURSIVE_TARGETS).
61219 2009-03-14  Bruno Haible  <bruno@clisp.org>
61221         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
61222         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
61223         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
61224         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
61225         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
61226         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
61227         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
61228         unistr/u8-uctomb.
61229         * modules/unistr/u8-strchr (Depends-on): Likewise.
61230         * modules/unistr/u8-strrchr (Depends-on): Likewise.
61231         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
61232         unistr/u16-uctomb.
61233         * modules/unistr/u16-strchr (Depends-on): Likewise.
61234         * modules/unistr/u16-strrchr (Depends-on): Likewise.
61236 2009-03-12  Bruno Haible  <bruno@clisp.org>
61238         Work around select() bug on Interix 3.5.
61239         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
61240         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
61241         * m4/select.m4: New file.
61242         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
61243         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
61244         * modules/select (Files): Add m4/select.m4.
61245         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
61246         * modules/nanosleep (Depends-on): Add select.
61247         * modules/poll (Depends-on): Likewise.
61248         * doc/posix-functions/select.texi: Mention the Interix bug.
61249         Reported by Markus Duft <mduft@gentoo.org>.
61251         * lib/select.c: Renamed from lib/winsock-select.c.
61252         * modules/select (Files): Add lib/select.c, remove
61253         lib/winsock-select.c.
61254         (configure.ac): Update.
61256 2009-03-12  Jim Meyering  <meyering@redhat.com>
61258         avoid gcc warnings about unused macro definitions
61259         * lib/readtokens.c (STREQ): Remove unused definition.
61260         * lib/xmalloc.c (SIZE_MAX): Likewise.
61261         * lib/openat-die.c (N_): Likewise.
61262         * lib/mountlist.c (SIZE_MAX): Remove definition.
61263         Instead, include <stdint.h>.
61264         * lib/readutmp.c: Likewise.
61265         * modules/readutmp (Depends-on): Add stdint.
61266         * modules/mountlist (Depends-on): Add stdint.
61267         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
61269 2009-03-10  Bruno Haible  <bruno@clisp.org>
61271         Tests for module 'mbmemcasecoll'.
61272         * modules/mbmemcasecoll-tests: New file.
61273         * tests/test-mbmemcasecoll1.sh: New file.
61274         * tests/test-mbmemcasecoll2.sh: New file.
61275         * tests/test-mbmemcasecoll3.sh: New file.
61276         * tests/test-mbmemcasecoll.c: New file.
61278         New module 'mbmemcasecoll'.
61279         * lib/mbmemcasecoll.h: New file.
61280         * lib/mbmemcasecoll.c: New file.
61281         * modules/mbmemcasecoll: New file.
61283         * tests/test-mbmemcasecmp.h: New file, extracted from
61284         tests/test-mbmemcasecmp.c.
61285         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
61286         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
61287         (main): Update.
61288         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
61290 2009-03-09  Bruno Haible  <bruno@clisp.org>
61292         Tests for module 'mbmemcasecmp'.
61293         * modules/mbmemcasecmp-tests: New file.
61294         * tests/test-mbmemcasecmp1.sh: New file.
61295         * tests/test-mbmemcasecmp2.sh: New file.
61296         * tests/test-mbmemcasecmp3.sh: New file.
61297         * tests/test-mbmemcasecmp.c: New file.
61299         New module 'mbmemcasecmp'.
61300         * lib/mbmemcasecmp.h: New file.
61301         * lib/mbmemcasecmp.c: New file.
61302         * modules/mbmemcasecmp: New file.
61304 2009-03-09  Bruno Haible  <bruno@clisp.org>
61306         Tests for module 'unicase/ulc-casecoll'.
61307         * modules/unicase/ulc-casecoll-tests: New file.
61308         * tests/unicase/test-ulc-casecoll1.sh: New file.
61309         * tests/unicase/test-ulc-casecoll2.sh: New file.
61310         * tests/unicase/test-ulc-casecoll.c: New file.
61312         New module 'unicase/ulc-casecoll'.
61313         * lib/unicase.h (ulc_casecoll): New declaration.
61314         * lib/unicase/ulc-casecoll.c: New file.
61315         * modules/unicase/ulc-casecoll: New file.
61317         New module 'unicase/ulc-casexfrm'.
61318         * lib/unicase.h (ulc_casexfrm): New declaration.
61319         * lib/unicase/ulc-casexfrm.c: New file.
61320         * modules/unicase/ulc-casexfrm: New file.
61322 2009-03-09  Bruno Haible  <bruno@clisp.org>
61324         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
61325         invocations.
61327         * m4/mbscasecmp.m4: Remove file.
61328         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
61329         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
61331         * m4/mbscasestr.m4: Remove file.
61332         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
61333         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
61335         * m4/mbschr.m4: Remove file.
61336         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
61337         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
61339         * m4/mbscspn.m4: Remove file.
61340         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
61341         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
61343         * m4/mbslen.m4: Remove file.
61344         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
61345         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
61347         * m4/mbsncasecmp.m4: Remove file.
61348         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
61349         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
61351         * m4/mbsnlen.m4: Remove file.
61352         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
61353         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
61355         * m4/mbspbrk.m4: Remove file.
61356         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
61357         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
61359         * m4/mbspcasecmp.m4: Remove file.
61360         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
61361         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
61363         * m4/mbsrchr.m4: Remove file.
61364         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
61365         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
61367         * m4/mbssep.m4: Remove file.
61368         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
61369         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
61371         * m4/mbsspn.m4: Remove file.
61372         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
61373         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
61375         * m4/mbsstr.m4: Remove file.
61376         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
61377         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
61379         * m4/mbstok_r.m4: Remove file.
61380         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
61381         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
61383         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
61385         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
61386         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
61388         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
61390 2009-03-08  Bruno Haible  <bruno@clisp.org>
61392         Tests for module 'unicase/ulc-casecmp'.
61393         * modules/unicase/ulc-casecmp-tests: New file.
61394         * tests/unicase/test-ulc-casecmp1.sh: New file.
61395         * tests/unicase/test-ulc-casecmp2.sh: New file.
61396         * tests/unicase/test-ulc-casecmp.c: New file.
61398         New module 'unicase/ulc-casecmp'.
61399         * lib/unicase.h (ulc_casecmp): New declaration.
61400         * lib/unicase/ulc-casecmp.c: New file.
61401         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
61402         'const SRC_UNIT *'.
61403         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
61404         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
61405         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
61406         * modules/unicase/ulc-casecmp: New file.
61408         Tests for module 'unicase/u32-is-cased'.
61409         * modules/unicase/u32-is-cased-tests: New file.
61410         * tests/unicase/test-u32-is-cased.c: New file.
61412         Tests for module 'unicase/u16-is-cased'.
61413         * modules/unicase/u16-is-cased-tests: New file.
61414         * tests/unicase/test-u16-is-cased.c: New file.
61416         Tests for module 'unicase/u8-is-cased'.
61417         * modules/unicase/u8-is-cased-tests: New file.
61418         * tests/unicase/test-u8-is-cased.c: New file.
61419         * tests/unicase/test-is-cased.h: New file.
61421         New module 'unicase/u32-is-cased'.
61422         * lib/unicase/u32-is-cased.c: New file.
61423         * modules/unicase/u32-is-cased: New file.
61425         New module 'unicase/u16-is-cased'.
61426         * lib/unicase/u16-is-cased.c: New file.
61427         * modules/unicase/u16-is-cased: New file.
61429         New module 'unicase/u8-is-cased'.
61430         * lib/unicase/u8-is-cased.c: New file.
61431         * lib/unicase/u-is-cased.h: New file.
61432         * modules/unicase/u8-is-cased: New file.
61434         Tests for module 'unicase/u32-is-casefolded'.
61435         * modules/unicase/u32-is-casefolded-tests: New file.
61436         * tests/unicase/test-u32-is-casefolded.c: New file.
61438         Tests for module 'unicase/u16-is-casefolded'.
61439         * modules/unicase/u16-is-casefolded-tests: New file.
61440         * tests/unicase/test-u16-is-casefolded.c: New file.
61442         Tests for module 'unicase/u8-is-casefolded'.
61443         * modules/unicase/u8-is-casefolded-tests: New file.
61444         * tests/unicase/test-u8-is-casefolded.c: New file.
61445         * tests/unicase/test-is-casefolded.h: New file.
61447         New module 'unicase/u32-is-casefolded'.
61448         * lib/unicase/u32-is-casefolded.c: New file.
61449         * modules/unicase/u32-is-casefolded: New file.
61451         New module 'unicase/u16-is-casefolded'.
61452         * lib/unicase/u16-is-casefolded.c: New file.
61453         * modules/unicase/u16-is-casefolded: New file.
61455         New module 'unicase/u8-is-casefolded'.
61456         * lib/unicase/u8-is-casefolded.c: New file.
61457         * modules/unicase/u8-is-casefolded: New file.
61459         Tests for module 'unicase/u32-is-titlecase'.
61460         * modules/unicase/u32-is-titlecase-tests: New file.
61461         * tests/unicase/test-u32-is-titlecase.c: New file.
61463         Tests for module 'unicase/u16-is-titlecase'.
61464         * modules/unicase/u16-is-titlecase-tests: New file.
61465         * tests/unicase/test-u16-is-titlecase.c: New file.
61467         Tests for module 'unicase/u8-is-titlecase'.
61468         * modules/unicase/u8-is-titlecase-tests: New file.
61469         * tests/unicase/test-u8-is-titlecase.c: New file.
61470         * tests/unicase/test-is-titlecase.h: New file.
61472         New module 'unicase/u32-is-titlecase'.
61473         * lib/unicase/u32-is-titlecase.c: New file.
61474         * modules/unicase/u32-is-titlecase: New file.
61476         New module 'unicase/u16-is-titlecase'.
61477         * lib/unicase/u16-is-titlecase.c: New file.
61478         * modules/unicase/u16-is-titlecase: New file.
61480         New module 'unicase/u8-is-titlecase'.
61481         * lib/unicase/u8-is-titlecase.c: New file.
61482         * modules/unicase/u8-is-titlecase: New file.
61484         Tests for module 'unicase/u32-is-lowercase'.
61485         * modules/unicase/u32-is-lowercase-tests: New file.
61486         * tests/unicase/test-u32-is-lowercase.c: New file.
61488         Tests for module 'unicase/u16-is-lowercase'.
61489         * modules/unicase/u16-is-lowercase-tests: New file.
61490         * tests/unicase/test-u16-is-lowercase.c: New file.
61492         Tests for module 'unicase/u8-is-lowercase'.
61493         * modules/unicase/u8-is-lowercase-tests: New file.
61494         * tests/unicase/test-u8-is-lowercase.c: New file.
61495         * tests/unicase/test-is-lowercase.h: New file.
61497         New module 'unicase/u32-is-lowercase'.
61498         * lib/unicase/u32-is-lowercase.c: New file.
61499         * modules/unicase/u32-is-lowercase: New file.
61501         New module 'unicase/u16-is-lowercase'.
61502         * lib/unicase/u16-is-lowercase.c: New file.
61503         * modules/unicase/u16-is-lowercase: New file.
61505         New module 'unicase/u8-is-lowercase'.
61506         * lib/unicase/u8-is-lowercase.c: New file.
61507         * modules/unicase/u8-is-lowercase: New file.
61509         Tests for module 'unicase/u32-is-uppercase'.
61510         * modules/unicase/u32-is-uppercase-tests: New file.
61511         * tests/unicase/test-u32-is-uppercase.c: New file.
61513         Tests for module 'unicase/u16-is-uppercase'.
61514         * modules/unicase/u16-is-uppercase-tests: New file.
61515         * tests/unicase/test-u16-is-uppercase.c: New file.
61517         Tests for module 'unicase/u8-is-uppercase'.
61518         * modules/unicase/u8-is-uppercase-tests: New file.
61519         * tests/unicase/test-u8-is-uppercase.c: New file.
61520         * tests/unicase/test-is-uppercase.h: New file.
61522         New module 'unicase/u32-is-uppercase'.
61523         * lib/unicase/u32-is-uppercase.c: New file.
61524         * modules/unicase/u32-is-uppercase: New file.
61526         New module 'unicase/u16-is-uppercase'.
61527         * lib/unicase/u16-is-uppercase.c: New file.
61528         * modules/unicase/u16-is-uppercase: New file.
61530         New module 'unicase/u8-is-uppercase'.
61531         * lib/unicase/u8-is-uppercase.c: New file.
61532         * modules/unicase/u8-is-uppercase: New file.
61534         New module 'unicase/u32-is-invariant'.
61535         * lib/unicase/u32-is-invariant.c: New file.
61536         * modules/unicase/u32-is-invariant: New file.
61538         New module 'unicase/u16-is-invariant'.
61539         * lib/unicase/u16-is-invariant.c: New file.
61540         * modules/unicase/u16-is-invariant: New file.
61542         New module 'unicase/u8-is-invariant'.
61543         * lib/unicase/u8-is-invariant.c: New file.
61544         * lib/unicase/invariant.h: New file.
61545         * lib/unicase/u-is-invariant.h: New file.
61546         * modules/unicase/u8-is-invariant: New file.
61548         Tests for module 'unicase/u32-casecoll'.
61549         * modules/unicase/u32-casecoll-tests: New file.
61550         * tests/unicase/test-u32-casecoll.c: New file.
61552         Tests for module 'unicase/u16-casecoll'.
61553         * modules/unicase/u16-casecoll-tests: New file.
61554         * tests/unicase/test-u16-casecoll.c: New file.
61556         Tests for module 'unicase/u8-casecoll'.
61557         * modules/unicase/u8-casecoll-tests: New file.
61558         * tests/unicase/test-u8-casecoll.c: New file.
61560         New module 'unicase/u32-casecoll'.
61561         * lib/unicase/u32-casecoll.c: New file.
61562         * modules/unicase/u32-casecoll: New file.
61564         New module 'unicase/u16-casecoll'.
61565         * lib/unicase/u16-casecoll.c: New file.
61566         * modules/unicase/u16-casecoll: New file.
61568         New module 'unicase/u8-casecoll'.
61569         * lib/unicase/u8-casecoll.c: New file.
61570         * lib/unicase/u-casecoll.h: New file.
61571         * modules/unicase/u8-casecoll: New file.
61573         New module 'unicase/u32-casexfrm'.
61574         * lib/unicase/u32-casexfrm.c: New file.
61575         * modules/unicase/u32-casexfrm: New file.
61577         New module 'unicase/u16-casexfrm'.
61578         * lib/unicase/u16-casexfrm.c: New file.
61579         * modules/unicase/u16-casexfrm: New file.
61581         New module 'unicase/u8-casexfrm'.
61582         * lib/unicase/u8-casexfrm.c: New file.
61583         * lib/unicase/u-casexfrm.h: New file.
61584         * modules/unicase/u8-casexfrm: New file.
61586         Tests for module 'unicase/u32-casecmp'.
61587         * modules/unicase/u32-casecmp-tests: New file.
61588         * tests/unicase/test-u32-casecmp.c: New file.
61590         Tests for module 'unicase/u16-casecmp'.
61591         * modules/unicase/u16-casecmp-tests: New file.
61592         * tests/unicase/test-u16-casecmp.c: New file.
61594         Tests for module 'unicase/u8-casecmp'.
61595         * modules/unicase/u8-casecmp-tests: New file.
61596         * tests/unicase/test-u8-casecmp.c: New file.
61597         * tests/unicase/test-casecmp.h: New file.
61599         New module 'unicase/u32-casecmp'.
61600         * lib/unicase/u32-casecmp.c: New file.
61601         * modules/unicase/u32-casecmp: New file.
61603         New module 'unicase/u16-casecmp'.
61604         * lib/unicase/u16-casecmp.c: New file.
61605         * modules/unicase/u16-casecmp: New file.
61607         New module 'unicase/u8-casecmp'.
61608         * lib/unicase/u8-casecmp.c: New file.
61609         * lib/unicase/u-casecmp.h: New file.
61610         * modules/unicase/u8-casecmp: New file.
61612         Tests for module 'unicase/u32-casefold'.
61613         * modules/unicase/u32-casefold-tests: New file.
61614         * tests/unicase/test-u32-casefold.c: New file.
61616         Tests for module 'unicase/u16-casefold'.
61617         * modules/unicase/u16-casefold-tests: New file.
61618         * tests/unicase/test-u16-casefold.c: New file.
61620         Tests for module 'unicase/u8-casefold'.
61621         * modules/unicase/u8-casefold-tests: New file.
61622         * tests/unicase/test-u8-casefold.c: New file.
61624         New module 'unicase/u32-casefold'.
61625         * lib/unicase/u32-casefold.c: New file.
61626         * modules/unicase/u32-casefold: New file.
61628         New module 'unicase/u16-casefold'.
61629         * lib/unicase/u16-casefold.c: New file.
61630         * modules/unicase/u16-casefold: New file.
61632         New module 'unicase/u8-casefold'.
61633         * lib/unicase/u8-casefold.c: New file.
61634         * lib/unicase/u-casefold.h: New file.
61635         * modules/unicase/u8-casefold: New file.
61637         New module 'unicase/tocasefold'.
61638         * lib/unicase/casefold.h: New file.
61639         * lib/unicase/tocasefold.c: New file.
61640         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
61641         * modules/unicase/tocasefold: New file.
61643         Tests for module 'unicase/u32-totitle'.
61644         * modules/unicase/u32-totitle-tests: New file.
61645         * tests/unicase/test-u32-totitle.c: New file.
61647         Tests for module 'unicase/u16-totitle'.
61648         * modules/unicase/u16-totitle-tests: New file.
61649         * tests/unicase/test-u16-totitle.c: New file.
61651         Tests for module 'unicase/u8-totitle'.
61652         * modules/unicase/u8-totitle-tests: New file.
61653         * tests/unicase/test-u8-totitle.c: New file.
61655         New module 'unicase/u32-totitle'.
61656         * lib/unicase/u32-totitle.c: New file.
61657         * modules/unicase/u32-totitle: New file.
61659         New module 'unicase/u16-totitle'.
61660         * lib/unicase/u16-totitle.c: New file.
61661         * modules/unicase/u16-totitle: New file.
61663         New module 'unicase/u8-totitle'.
61664         * lib/unicase/u8-totitle.c: New file.
61665         * lib/unicase/u-totitle.h: New file.
61666         * modules/unicase/u8-totitle: New file.
61668         Tests for module 'unicase/u32-tolower'.
61669         * modules/unicase/u32-tolower-tests: New file.
61670         * tests/unicase/test-u32-tolower.c: New file.
61672         Tests for module 'unicase/u16-tolower'.
61673         * modules/unicase/u16-tolower-tests: New file.
61674         * tests/unicase/test-u16-tolower.c: New file.
61676         Tests for module 'unicase/u8-tolower'.
61677         * modules/unicase/u8-tolower-tests: New file.
61678         * tests/unicase/test-u8-tolower.c: New file.
61680         New module 'unicase/u32-tolower'.
61681         * lib/unicase/u32-tolower.c: New file.
61682         * modules/unicase/u32-tolower: New file.
61684         New module 'unicase/u16-tolower'.
61685         * lib/unicase/u16-tolower.c: New file.
61686         * modules/unicase/u16-tolower: New file.
61688         New module 'unicase/u8-tolower'.
61689         * lib/unicase/u8-tolower.c: New file.
61690         * modules/unicase/u8-tolower: New file.
61692         Tests for module 'unicase/u32-toupper'.
61693         * modules/unicase/u32-toupper-tests: New file.
61694         * tests/unicase/test-u32-toupper.c: New file.
61696         Tests for module 'unicase/u16-toupper'.
61697         * modules/unicase/u16-toupper-tests: New file.
61698         * tests/unicase/test-u16-toupper.c: New file.
61700         Tests for module 'unicase/u8-toupper'.
61701         * modules/unicase/u8-toupper-tests: New file.
61702         * tests/unicase/test-u8-toupper.c: New file.
61704         New module 'unicase/u32-toupper'.
61705         * lib/unicase/u32-toupper.c: New file.
61706         * modules/unicase/u32-toupper: New file.
61708         New module 'unicase/u16-toupper'.
61709         * lib/unicase/u16-toupper.c: New file.
61710         * modules/unicase/u16-toupper: New file.
61712         New module 'unicase/u8-toupper'.
61713         * lib/unicase/u8-toupper.c: New file.
61714         * modules/unicase/u8-toupper: New file.
61716         New module 'unicase/u32-casemap'.
61717         * lib/unicase/u32-casemap.c: New file.
61718         * modules/unicase/u32-casemap: New file.
61720         New module 'unicase/u16-casemap'.
61721         * lib/unicase/u16-casemap.c: New file.
61722         * modules/unicase/u16-casemap: New file.
61724         New module 'unicase/u8-casemap'.
61725         * lib/unicase/unicasemap.h: New file.
61726         * lib/unicase/u8-casemap.c: New file.
61727         * lib/unicase/u-casemap.h: New file.
61728         * modules/unicase/u8-casemap: New file.
61730         New module 'unicase/special-casing'.
61731         * lib/unicase/special-casing.h: New file.
61732         * lib/unicase/special-casing.c: New file.
61733         * lib/unicase/special-casing-table.gperf: New file, generated by
61734         gen-uni-tables.c.
61735         * modules/unicase/special-casing: New file.
61737         Tests for module 'unicase/locale-language'.
61738         * modules/unicase/locale-language-tests: New file.
61739         * tests/unicase/test-locale-language.sh: New file.
61740         * tests/unicase/test-locale-language.c: New file.
61742         New module 'unicase/locale-language'.
61743         * lib/unicase/locale-language.c: New file.
61744         * lib/unicase/locale-languages.gperf: New file.
61745         * modules/unicase/locale-language: New file.
61747         Generate more tables for case conversion and case folding.
61748         * lib/gen-uni-tables.c (SCC_*): New enum items.
61749         (struct special_casing_rule): New type.
61750         (casing_rules, num_casing_rules, allocated_casing_rules): New
61751         variables.
61752         (add_casing_rule, fill_casing_rules): New functions.
61753         (struct casefold_rule): New type.
61754         (casefolding_rules, num_casefolding_rules,
61755         allocated_casefolding_rules): New variables.
61756         (fill_casefolding_rules): New function.
61757         (unicode_casefold): New variable.
61758         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
61759         sort_casing_rules, output_casing_rules): New functions.
61760         (main): Accept to more arguments: SpecialCasing.txt and
61761         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
61762         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
61763         Output mapping for casefolding.
61765         * lib/unicase.h: Include stdbool.h, uninorm.h.
61766         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
61767         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
61768         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
61769         arguments.
61770         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
61771         resultp arguments.
61772         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
61773         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
61774         resultp arguments.
61775         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
61776         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
61777         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
61778         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
61779         declarations.
61780         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
61782 2009-03-08  Bruno Haible  <bruno@clisp.org>
61784         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
61785         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
61786         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
61787         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
61789 2009-03-07  Bruno Haible  <bruno@clisp.org>
61791         Adjust u*_normcmp, u*_normcoll API.
61792         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
61793         u16_normcoll, u32_normcoll): Change failure conventions.
61794         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
61795         errno and return -1.
61796         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
61798 2009-03-07  Bruno Haible  <bruno@clisp.org>
61800         Tests for module 'uninorm/u32-normcoll'.
61801         * modules/uninorm/u32-normcoll-tests: New file.
61802         * tests/uninorm/test-u32-normcoll.c: New file.
61804         Tests for module 'uninorm/u16-normcoll'.
61805         * modules/uninorm/u16-normcoll-tests: New file.
61806         * tests/uninorm/test-u16-normcoll.c: New file.
61808         Tests for module 'uninorm/u8-normcoll'.
61809         * modules/uninorm/u8-normcoll-tests: New file.
61810         * tests/uninorm/test-u8-normcoll.c: New file.
61812 2009-03-07  Bruno Haible  <bruno@clisp.org>
61814         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
61815         tests/uninorm/test-u32-normcmp.c.
61816         * tests/uninorm/test-u32-normcmp.c: Include it.
61817         (test_nonascii): New function, extracted from main. Add some more
61818         tests.
61819         (main): Invoke test_ascii and test_nonascii.
61820         * modules/uninorm/u32-normcmp-tests (Files): Add
61821         tests/uninorm/test-u32-normcmp.h.
61822         (Depends-on): Remove uninorm/u32-normcmp.
61824         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
61825         tests/uninorm/test-u16-normcmp.c.
61826         * tests/uninorm/test-u16-normcmp.c: Include it.
61827         (test_nonascii): New function, extracted from main. Add some more
61828         tests.
61829         (main): Invoke test_ascii and test_nonascii.
61830         * modules/uninorm/u16-normcmp-tests (Files): Add
61831         tests/uninorm/test-u16-normcmp.h.
61832         (Depends-on): Remove uninorm/u16-normcmp.
61834         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
61835         tests/uninorm/test-u8-normcmp.c.
61836         * tests/uninorm/test-u8-normcmp.c: Include it.
61837         (test_nonascii): New function, extracted from main. Add some more
61838         tests.
61839         (main): Invoke test_ascii and test_nonascii.
61840         * modules/uninorm/u8-normcmp-tests (Files): Add
61841         tests/uninorm/test-u8-normcmp.h.
61842         (Depends-on): Remove uninorm/u8-normcmp.
61844 2009-03-07  Bruno Haible  <bruno@clisp.org>
61846         New module 'uninorm/u32-normcoll'.
61847         * lib/uninorm/u32-normcoll.c: New file.
61848         * modules/uninorm/u32-normcoll: New file.
61850         New module 'uninorm/u16-normcoll'.
61851         * lib/uninorm/u16-normcoll.c: New file.
61852         * modules/uninorm/u16-normcoll: New file.
61854         New module 'uninorm/u8-normcoll'.
61855         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
61856         declarations.
61857         * lib/uninorm/u8-normcoll.c: New file.
61858         * lib/uninorm/u-normcoll.h: New file.
61859         * modules/uninorm/u8-normcoll: New file.
61861         New module 'uninorm/u32-normxfrm'.
61862         * lib/uninorm/u32-normxfrm.c: New file.
61863         * modules/uninorm/u32-normxfrm: New file.
61865         New module 'uninorm/u16-normxfrm'.
61866         * lib/uninorm/u16-normxfrm.c: New file.
61867         * modules/uninorm/u16-normxfrm: New file.
61869         New module 'uninorm/u8-normxfrm'.
61870         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
61871         declarations.
61872         * lib/uninorm/u8-normxfrm.c: New file.
61873         * lib/uninorm/u-normxfrm.h: New file.
61874         * modules/uninorm/u8-normxfrm: New file.
61876 2009-03-07  Bruno Haible  <bruno@clisp.org>
61878         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
61879         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
61880         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
61882 2009-03-07  Bruno Haible  <bruno@clisp.org>
61884         New module 'memxfrm'.
61885         * lib/memxfrm.h: New file.
61886         * lib/memxfrm.c: New file.
61887         * modules/memxfrm: New file.
61889 2009-03-07  Bruno Haible  <bruno@clisp.org>
61891         New module 'memcmp2'.
61892         * lib/memcmp2.h: New file.
61893         * lib/memcmp2.c: New file.
61894         * modules/memcmp2: New file.
61896 2009-03-07  Bruno Haible  <bruno@clisp.org>
61898         Tests for module 'uninorm/decomposing-form'.
61899         * modules/uninorm/decomposing-form-tests: New file.
61900         * tests/uninorm/test-decomposing-form.c: New file.
61902         New module 'uninorm/decomposing-form'.
61903         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
61904         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
61905         Add 'decomposing_variant' field.
61906         * lib/uninorm/decomposing-form.c: New file.
61907         * lib/uninorm/nfc.c (uninorm_nfc): Update.
61908         * lib/uninorm/nfd.c (uninorm_nfd): Update.
61909         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
61910         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
61911         * modules/uninorm/decomposing-form: New file.
61912         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
61913         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
61915 2009-03-07  Bruno Haible  <bruno@clisp.org>
61917         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
61918         strings.
61920 2009-03-06  Bruno Haible  <bruno@clisp.org>
61922         Tests for module 'uninorm/u32-normcmp'.
61923         * tests/uninorm/test-u32-normcmp.c: New file.
61924         * modules/uninorm/u32-normcmp-tests: New file.
61926         Tests for module 'uninorm/u16-normcmp'.
61927         * tests/uninorm/test-u16-normcmp.c: New file.
61928         * modules/uninorm/u16-normcmp-tests: New file.
61930         Tests for module 'uninorm/u8-normcmp'.
61931         * tests/uninorm/test-u8-normcmp.c: New file.
61932         * modules/uninorm/u8-normcmp-tests: New file.
61934         New module 'uninorm/u32-normcmp'.
61935         * lib/uninorm/u32-normcmp.c: New file.
61936         * modules/uninorm/u32-normcmp: New file.
61938         New module 'uninorm/u16-normcmp'.
61939         * lib/uninorm/u16-normcmp.c: New file.
61940         * modules/uninorm/u16-normcmp: New file.
61942         New module 'uninorm/u8-normcmp'.
61943         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
61944         declarations.
61945         * lib/uninorm/u8-normcmp.c: New file.
61946         * lib/uninorm/u-normcmp.h: New file.
61947         * modules/uninorm/u8-normcmp: New file.
61949 2009-03-06  Bruno Haible  <bruno@clisp.org>
61951         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
61952         Reported by Eric Blake.
61954 2009-03-06  Eric Blake  <ebb9@byu.net>
61955             Bruno Haible  <bruno@clisp.org>
61957         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
61958         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
61959         condition.
61960         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
61961         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
61962         condition.
61963         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
61965 2009-03-06  Eric Blake  <ebb9@byu.net>
61967         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
61968         to avoid compiler warnings.
61969         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
61971 2009-03-05  Bruno Haible  <bruno@clisp.org>
61973         * tests/test-ftell.c (main): Disable test beyond end of file on
61974         FreeMiNT.
61975         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
61977 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
61979         * lib/filevercmp.c: Move hidden files up in ordering.
61980         * tests/test-filevercmp.c: Add tests for hidden files.
61982 2009-03-04  Bruno Haible  <bruno@clisp.org>
61984         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
61985         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
61986         AM_CFLAGS.
61987         Reported by Simon Josefsson.
61989 2009-03-03  Bruno Haible  <bruno@clisp.org>
61991         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
61992         Reported by Simon Josefsson.
61994         * doc/ld-version-script.texi: Update node reference.
61996 2009-03-03  Bruno Haible  <bruno@clisp.org>
61998         * modules/visibility (License): Change to 'unlimited'.
61999         Suggested by Simon Josefsson.
62001 2009-03-03  Jim Meyering  <meyering@redhat.com>
62003         unlinkdir: cannot_unlink_dir may modify process state
62004         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
62005         it's neither thread-safe nor appropriate for use in a library.
62007 2009-03-03  Eric Blake  <ebb9@byu.net>
62009         test-closein: silence test under Darwin
62010         * tests/test-closein.sh: Ignore stderr from cat, since we don't
62011         care if it dies from EPIPE or EBADF.
62013 2009-03-03  Bruno Haible  <bruno@clisp.org>
62015         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
62016         earlier.
62017         * doc/visibility.texi: Fix @node and @section.
62019 2009-03-03  Simon Josefsson  <simon@josefsson.org>
62021         * doc/gnulib.texi: Link to sections for ld version script and
62022         visibility.
62023         * doc/visibility.texi: Add @node and @section.
62024         * modules/ld-version-script: New module.
62025         * m4/ld-version-script.m4: New file.
62026         * doc/ld-version-script.texi: New file.
62028 2009-03-02  David Lutterkort  <lutter@redhat.com>
62030         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
62031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62033 2009-03-02  Bruno Haible  <bruno@clisp.org>
62035         * doc/visibility.texi: Mention libtool's -export-symbols option.
62037 2009-03-02  Jim Meyering  <meyering@redhat.com>
62039         announce-gen: new option: --no-print-checksums
62040         * build-aux/announce-gen (usage): Describe it.
62041         (print_checksums): Print a newline here, not in the [*] footnote.
62042         (main): Honor it.
62044 2009-03-01  Bruno Haible  <bruno@clisp.org>
62046         Use socklen_t in the native Windows replacements prototypes.
62047         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
62048         instead of 'int'.
62049         * lib/getsockopt.c (rpl_getsockopt): Likewise.
62050         * lib/setsockopt.c (rpl_setsockopt): Likewise.
62051         * modules/getsockopt (Depends-on): Add socklen.
62052         * modules/setsockopt (Depends-on): Add socklen.
62054 2009-03-01  Bruno Haible  <bruno@clisp.org>
62056         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
62057         least 4.2.
62059 2009-03-01  Eric Blake  <ebb9@byu.net>
62060             Bruno Haible  <bruno@clisp.org>
62062         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
62063         error messages.
62064         * lib/wait-process.c (wait_subprocess): Omit error message about
62065         deadly signal sent to the child of termsigp != NULL.
62067 2009-03-01  Eric Blake  <ebb9@byu.net>
62069         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
62071 2009-03-01  Bruno Haible  <bruno@clisp.org>
62073         Avoid a gcc warning.
62074         * tests/test-sched.c (b): Make global.
62075         Reported by Eric Blake.
62077 2009-01-19  Martin Lambers  <marlam@marlam.de>
62079         Provide POSIX semantics for socket timeout options on W32.
62080         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
62081         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
62082         * modules/setsockopt: Depend on sys_time module for struct timeval.
62083         * modules/getsockopt: Depend on sys_time module for struct timeval.
62085 2009-03-01  Simon Josefsson  <simon@josefsson.org>
62087         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
62088         __USE_GNU, for consistency with netdb.in.h.
62089         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62091 2009-03-01  Bruno Haible  <bruno@clisp.org>
62093         More support for FreeMiNT.
62094         * lib/fseeko.c (rpl_fseeko): Complete last commit.
62095         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62097 2009-03-01  Bruno Haible  <bruno@clisp.org>
62099         More support for FreeMiNT.
62100         * lib/fpurge.c (fpurge): Correct last commit.
62101         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62103 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62105         Fix unportable awk script in vc-list-files.
62106         * build-aux/vc-list-files: In the replacement awk script, use
62107         substr with a second argument of 1, not zero.
62108         Report by Simon Josefsson.
62110 2009-02-28  Bruno Haible  <bruno@clisp.org>
62112         More support for FreeMiNT.
62113         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
62114         to FreeMiNT today.
62115         * lib/fwriting.c (fwriting): Likewise.
62116         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
62118 2009-02-28  Bruno Haible  <bruno@clisp.org>
62120         * tests/test-freadseek.c (main): Disable test beyond end of file on
62121         FreeMiNT.
62122         * tests/test-ftello.c (main): Likewise.
62123         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
62125 2009-02-28  Bruno Haible  <bruno@clisp.org>
62127         Add tentative support for FreeMiNT.
62128         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
62129         * lib/fpurge.c (fpurge): Likewise.
62130         * lib/freadable.c (freadable): Likewise.
62131         * lib/freading.c (freading): Likewise.
62132         * lib/freadptr.c (freadptr): Likewise.
62133         * lib/freadseek.c (freadptrinc): Likewise.
62134         * lib/fseeko.c (rpl_fseeko): Likewise.
62135         * lib/fseterr.c (fseterr): Likewise.
62136         * lib/fwritable.c (fwritable): Likewise.
62137         * lib/fwriting.c (fwriting): Likewise.
62138         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
62139         Hourihane.
62140         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62142 2009-02-28  Bruno Haible  <bruno@clisp.org>
62144         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
62145         SIGCHLD.
62146         Reported by Jim Meyering.
62148 2009-02-28  Bruno Haible  <bruno@clisp.org>
62150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
62151         Mention the results of these tests on various platforms.
62152         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
62153         order.
62154         * doc/posix-functions/printf.texi: Likewise.
62155         * doc/posix-functions/snprintf.texi: Likewise.
62156         * doc/posix-functions/sprintf.texi: Likewise.
62157         * doc/posix-functions/vfprintf.texi: Likewise.
62158         * doc/posix-functions/vprintf.texi: Likewise.
62159         * doc/posix-functions/vsnprintf.texi: Likewise.
62160         * doc/posix-functions/vsprintf.texi: Likewise.
62161         * doc/glibc-functions/obstack_printf.texi: Likewise.
62162         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62164 2009-02-28  Bruno Haible  <bruno@clisp.org>
62166         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
62167         Reported by Loïc Minier <lool@dooz.org>.
62169 2009-02-27  Bruno Haible  <bruno@clisp.org>
62171         * gnulib-tool (func_import): Make the sed expression used to create the
62172         sed script for updating the .gitignore file POSIX compliant.
62173         Reported by Eric Blake.
62175 2009-02-27  Bruno Haible  <bruno@clisp.org>
62177         * gnulib-tool (sed): Don't alias as "sed --posix".
62178         Reported by Eric Blake.
62180 2009-02-27  Bruno Haible  <bruno@clisp.org>
62182         Avoid test link errors.
62183         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
62184         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
62185         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
62186         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
62187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62189 2009-02-27  Bruno Haible  <bruno@clisp.org>
62191         Avoid spurious "(cached)" in configure output.
62192         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
62193         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
62194         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62195         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62196         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62197         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62198         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62199         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62200         Reported by Eric Blake.
62202 2009-02-27  Eric Blake  <ebb9@byu.net>
62204         printf: fix regression in previous patch
62205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
62207 2009-02-27  Bruno Haible  <bruno@clisp.org>
62209         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
62210         value.
62211         * lib/stdint.in.h: Likewise.
62212         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
62214 2009-02-27  Eric Blake  <ebb9@byu.net>
62216         doc: mention more functions added in cygwin 1.7.0
62217         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
62218         addition.
62219         * doc/posix-functions/open_wmemstream.texi: Likewise.
62220         * doc/posix-functions/wcsnlen.texi: Likewise.
62221         * doc/posix-functions/wcsnrtombs.texi: Likewise.
62222         * doc/posix-functions/wcstod.texi: Likewise.
62223         * doc/posix-functions/wcstof.texi: Likewise.
62224         * doc/posix-functions/wcstoimax.texi: Likewise.
62225         * doc/posix-functions/wcstok.texi: Likewise.
62226         * doc/posix-functions/wcstoumax.texi: Likewise.
62228         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
62229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
62230         * doc/posix-functions/fprintf.texi: Update.
62231         * doc/posix-functions/printf.texi: Update.
62232         * doc/posix-functions/snprintf.texi: Update.
62233         * doc/posix-functions/sprintf.texi: Update.
62234         * doc/posix-functions/vfprintf.texi: Update.
62235         * doc/posix-functions/vprintf.texi: Update.
62236         * doc/posix-functions/vsnprintf.texi: Update.
62237         * doc/posix-functions/vsprintf.texi: Update.
62238         * doc/glibc-functions/obstack_printf.texi: Update.
62239         * doc/glibc-functions/obstack_vprintf.texi: Update.
62241 2009-02-26  Eric Blake  <ebb9@byu.net>
62243         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
62244         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
62245         compilation bug by using runtime conversion.
62246         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
62247         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
62248         * modules/ceill-tests (Files): Use nan.h.
62249         * modules/floorl-tests (Files): Likewise.
62250         * modules/frexpl-tests (Files): Likewise.
62251         * modules/isnanl-tests (Files): Likewise.
62252         * modules/ldexpl-tests (Files): Likewise.
62253         * modules/roundl-tests (Files): Likewise.
62254         * modules/truncl-tests (Files): Likewise.
62255         * tests/test-ceill.c (main): Use a working NaN.
62256         * tests/test-floorl.c (main): Likewise.
62257         * tests/test-frexpl.c (main): Likewise.
62258         * tests/test-isnan.c (test_long_double): Likewise.
62259         * tests/test-isnanl.h (main): Likewise.
62260         * tests/test-ldexpl.h (main): Likewise.
62261         * tests/test-roundl.h (main): Likewise.
62262         * tests/test-truncl.h (main): Likewise.
62263         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
62265 2009-02-26  Eric Blake  <ebb9@byu.net>
62266             Bruno Haible  <bruno@clisp.org>
62268         Work around a *printf bug with %ls on Solaris.
62269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
62270         precision is specified, sprintf stops converting the wide string
62271         argument when the number of bytes that have been produced by this
62272         conversion equals or exceeds the precision.
62273         * doc/posix-functions/fprintf.texi: Update.
62274         * doc/posix-functions/printf.texi: Update.
62275         * doc/posix-functions/snprintf.texi: Update.
62276         * doc/posix-functions/sprintf.texi: Update.
62277         * doc/posix-functions/vfprintf.texi: Update.
62278         * doc/posix-functions/vprintf.texi: Update.
62279         * doc/posix-functions/vsnprintf.texi: Update.
62280         * doc/posix-functions/vsprintf.texi: Update.
62281         * doc/glibc-functions/obstack_printf.texi: Update.
62282         * doc/glibc-functions/obstack_vprintf.texi: Update.
62284 2009-02-26  Eric Blake  <ebb9@byu.net>
62286         stdlib: favor compiler check of random.h
62287         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
62288         to avoid an ObjC random.h installed by Swarm.
62290 2009-02-26  Bruno Haible  <bruno@clisp.org>
62292         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
62293         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
62294         Reported by Gary V. Vaughan <gary@gnu.org>.
62296 2009-02-26  Bruno Haible  <bruno@clisp.org>
62298         Fix *printf behaviour regarding the %ls directive.
62299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
62300         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
62301         NEED_PRINTF_DIRECTIVE_LS.
62302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
62303         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62305         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
62306         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
62307         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
62308         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
62309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62310         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62311         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62313         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
62314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62317         * doc/posix-functions/fprintf.texi: Update.
62318         * doc/posix-functions/printf.texi: Update.
62319         * doc/posix-functions/snprintf.texi: Update.
62320         * doc/posix-functions/sprintf.texi: Update.
62321         * doc/posix-functions/vfprintf.texi: Update.
62322         * doc/posix-functions/vprintf.texi: Update.
62323         * doc/posix-functions/vsnprintf.texi: Update.
62324         * doc/posix-functions/vsprintf.texi: Update.
62325         * doc/glibc-functions/obstack_printf.texi: Update.
62326         * doc/glibc-functions/obstack_vprintf.texi: Update.
62327         Reported by Eric Blake.
62329 2009-02-25  Bruno Haible  <bruno@clisp.org>
62331         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
62332         with known value.
62333         Reported by Gary V. Vaughan <gary@gnu.org>.
62335 2009-02-25  Bruno Haible  <bruno@clisp.org>
62337         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
62338         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
62339         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
62340         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
62341         Reported by Gary V. Vaughan <gary@gnu.org>.
62343 2009-02-25  Bruno Haible  <bruno@clisp.org>
62345         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
62346         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
62347         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
62348         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
62349         Reported by Gary V. Vaughan <gary@gnu.org>.
62351 2009-02-25  Eric Blake  <ebb9@byu.net>
62353         tests: skip fseek/ftell tests if ungetc is broken
62354         * m4/ungetc.m4: New file.
62355         * modules/fseek-tests: Split test, so ungetc dependency is
62356         separate from rest of test.
62357         * modules/fseeko-tests: Likewise.
62358         * modules/ftell-tests: Likewise.
62359         * modules/ftello-tests: Likewise.
62360         * tests/test-fseek.c (main): Isolate ungetc dependency.
62361         * tests/test-fseeko.c (main): Likewise.
62362         * tests/test-ftell.c (main): Likewise.
62363         * tests/test-ftello.c (main): Likewise.
62364         * tests/test-fseek2.sh: New file.
62365         * tests/test-fseeko2.sh: Likewise.
62366         * tests/test-ftell2.sh: Likewise.
62367         * tests/test-ftello2.sh: Likewise.
62369 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
62371         test-getaddrinfo: fix usage of skip return code 77
62372         * tests/test-gettaddrinfo.c: Return skip code 77 only
62373         for first occurrence of skip (4x77 is not 77)
62375 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
62377         strtod: avoid C99 decl-after-statement
62378         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
62380 2009-02-24  Eric Blake  <ebb9@byu.net>
62382         strtod: detect HP-UX 11.31 bug
62383         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
62384         Reported by Gary V. Vaughan.
62386 2009-02-23  Bruno Haible  <bruno@clisp.org>
62388         Fix invalid read past end of memory block.
62389         * lib/vasnprintf.c (DCHAR_SET): Define.
62390         (local_wcslen): Define only when needed.
62391         (local_strnlen, local_wcsnlen): New functions.
62392         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
62393         directives that involve a conversion ourselves.
62394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
62395         wcsnlen, mbrtowc, wcrtomb.
62396         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
62397         * tests/test-vasprintf-posix.c (test_function): Likewise.
62398         * tests/test-snprintf-posix.h (test_function): Likewise.
62399         * tests/test-sprintf-posix.h (test_function): Likewise.
62400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62402 2009-02-22  Bruno Haible  <bruno@clisp.org>
62404         Implement new clarified decomposition of Hangul syllables.
62405         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
62406         of type LTV, return only a pairwise decomposition.
62407         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
62408         Likewise.
62409         * tests/uninorm/test-decomposition.c (main): Updated expected result.
62410         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
62411         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
62413 2009-02-22  Bruno Haible  <bruno@clisp.org>
62415         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
62416         zero-length results and shrink excess allocated memory.
62417         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
62418         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
62419         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
62420         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
62421         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
62422         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
62423         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
62424         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
62425         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
62426         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
62427         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
62428         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
62430 2009-02-21  Bruno Haible  <bruno@clisp.org>
62432         * doc/gnulib.texi: Include safe-alloc.texi earlier.
62433         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
62434         spaces after a period. Put a space between a macro name and its
62435         argument list. Trivial rewordings.
62436         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
62437         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
62438         (main): Return 0 explicitly.
62440 2009-02-21  Bruno Haible  <bruno@clisp.org>
62442         Tests for module 'uninorm/filter'.
62443         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
62444         * modules/uninorm/filter-tests: New file.
62446         New module 'uninorm/filter'.
62447         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
62448         uninorm_filter_flush, uninorm_filter_free): New declarations.
62449         * lib/uninorm/uninorm-filter.c: New file.
62450         * modules/uninorm/filter: New file.
62452 2009-02-21  Bruno Haible  <bruno@clisp.org>
62454         Tests for module 'uninorm/nfkc'.
62455         * tests/uninorm/test-nfkc.c: New file.
62456         * tests/uninorm/test-u8-nfkc.c: New file.
62457         * tests/uninorm/test-u16-nfkc.c: New file.
62458         * tests/uninorm/test-u32-nfkc.c: New file.
62459         * tests/uninorm/test-u32-nfkc-big.sh: New file.
62460         * tests/uninorm/test-u32-nfkc-big.c: New file.
62461         * modules/uninorm/nfkc-tests: New file.
62463         New module 'uninorm/nfkc'.
62464         * lib/uninorm/nfkc.c: New file.
62465         * modules/uninorm/nfkc: New file.
62467         Tests for module 'uninorm/nfkd'.
62468         * tests/uninorm/test-nfkd.c: New file.
62469         * tests/uninorm/test-u8-nfkd.c: New file.
62470         * tests/uninorm/test-u16-nfkd.c: New file.
62471         * tests/uninorm/test-u32-nfkd.c: New file.
62472         * tests/uninorm/test-u32-nfkd-big.sh: New file.
62473         * tests/uninorm/test-u32-nfkd-big.c: New file.
62474         * modules/uninorm/nfkd-tests: New file.
62476         New module 'uninorm/nfkd'.
62477         * lib/uninorm/nfkd.c: New file.
62478         * modules/uninorm/nfkd: New file.
62480         Tests for module 'uninorm/nfc'.
62481         * tests/uninorm/test-nfc.c: New file.
62482         * tests/uninorm/test-u8-nfc.c: New file.
62483         * tests/uninorm/test-u16-nfc.c: New file.
62484         * tests/uninorm/test-u32-nfc.c: New file.
62485         * tests/uninorm/test-u32-nfc-big.sh: New file.
62486         * tests/uninorm/test-u32-nfc-big.c: New file.
62487         * modules/uninorm/nfc-tests: New file.
62489         New module 'uninorm/nfc'.
62490         * lib/uninorm/nfc.c: New file.
62491         * modules/uninorm/nfc: New file.
62493         Tests for module 'uninorm/nfd'.
62494         * tests/uninorm/test-nfd.c: New file.
62495         * tests/uninorm/test-u8-nfd.c: New file.
62496         * tests/uninorm/test-u16-nfd.c: New file.
62497         * tests/uninorm/test-u32-nfd.c: New file.
62498         * tests/uninorm/test-u32-nfd-big.sh: New file.
62499         * tests/uninorm/test-u32-nfd-big.c: New file.
62500         * tests/uninorm/test-u32-normalize-big.h: New file.
62501         * tests/uninorm/test-u32-normalize-big.c: New file.
62502         * tests/uninorm/NormalizationTest.txt: New file, created from
62503         Unicode 5.1.0 NormalizationTest.txt.
62504         * modules/uninorm/nfd-tests: New file.
62506         New module 'uninorm/nfd'.
62507         * lib/uninorm/nfd.c: New file.
62508         * modules/uninorm/nfd: New file.
62510         New module 'uninorm/u32-normalize'.
62511         * lib/uninorm/u32-normalize.c: New file.
62512         * modules/uninorm/u32-normalize: New file.
62514         New module 'uninorm/u16-normalize'.
62515         * lib/uninorm/u16-normalize.c: New file.
62516         * modules/uninorm/u16-normalize: New file.
62518         New module 'uninorm/u8-normalize'.
62519         * lib/uninorm/u8-normalize.c: New file.
62520         * lib/uninorm/normalize-internal.h: New file.
62521         * lib/uninorm/u-normalize-internal.h: New file.
62522         * modules/uninorm/u8-normalize: New file.
62524         New module 'uninorm/decompose-internal'.
62525         * lib/uninorm/decompose-internal.c: New file.
62526         * modules/uninorm/decompose-internal: New file.
62528         Tests for module 'uninorm/composition'.
62529         * tests/uninorm/test-composition.c: New file.
62530         * modules/uninorm/composition-tests: New file.
62532         New module 'uninorm/composition'.
62533         * lib/uninorm/composition.c: New file.
62534         * lib/uninorm/composition-table.gperf: New file, generated by
62535         gen-uni-tables.
62536         * modules/uninorm/composition: New file.
62538         Tests for module 'uninorm/compat-decomposition'.
62539         * tests/uninorm/test-compat-decomposition.c: New file.
62540         * modules/uninorm/compat-decomposition-tests: New file.
62542         New module 'uninorm/compat-decomposition'.
62543         * lib/uninorm/decompose-internal.h: New file.
62544         * lib/uninorm/compat-decomposition.c: New file.
62545         * modules/uninorm/compat-decomposition: New file.
62547         Tests for module 'uninorm/canonical-decomposition'.
62548         * tests/uninorm/test-canonical-decomposition.c: New file.
62549         * modules/uninorm/canonical-decomposition-tests: New file.
62551         New module 'uninorm/canonical-decomposition'.
62552         * lib/uninorm/canonical-decomposition.c: New file.
62553         * modules/uninorm/canonical-decomposition: New file.
62555         Tests for module 'uninorm/decomposition'.
62556         * tests/uninorm/test-decomposition.c: New file.
62557         * modules/uninorm/decomposition-tests: New file.
62559         New module 'uninorm/decomposition'.
62560         * lib/uninorm/decomposition.c: New file.
62561         * modules/uninorm/decomposition: New file.
62563         New module 'uninorm/decomposition-table'.
62564         * lib/uninorm/decomposition-table.h: New file.
62565         * lib/uninorm/decomposition-table.c: New file.
62566         * lib/uninorm/decomposition-table1.h: New file, generated by
62567         gen-uni-tables.
62568         * lib/uninorm/decomposition-table2.h: New file, generated by
62569         gen-uni-tables.
62570         * modules/uninorm/decomposition-table: New file.
62572         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
62573         (UC_DECOMP_*): New enumeration items.
62574         (get_decomposition): New function.
62575         (struct decomp_table): New type.
62576         (output_decomposition, output_decomposition_tables): New functions.
62577         (unicode_composition_exclusions): New variable.
62578         (fill_composition_exclusions, debug_output_composition_tables): New
62579         functions.
62580         (main): Accept one more argument. Invoke fill_composition_exclusions.
62581         Output decomposition and composition tables.
62583         New module 'uninorm/base'.
62584         * lib/uninorm.h: New file.
62585         * lib/unictype.h: Update comment.
62586         * modules/uninorm/base: New file.
62588 2009-02-21  David Lutterkort  <lutter@redhat.com>
62590         Tests for module 'safe-alloc'.
62591         * tests/test-safe-alloc.c: New file.
62592         * modules/safe-alloc-tests: New file.
62594         New module 'safe-alloc'.
62595         * lib/safe-alloc.h: New file.
62596         * lib/safe-alloc.c: New file.
62597         * m4/safe-alloc.m4: New file.
62598         * modules/safe-alloc: New file.
62599         * doc/safe-alloc.texi: New file.
62600         * doc/gnulib.texi: Include it.
62601         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62602         safe-alloc.
62604 2009-02-18  Bruno Haible  <bruno@clisp.org>
62606         Fix link error on non-glibc systems.
62607         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
62608         variable.
62609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62611 2009-02-18  Jim Meyering  <meyering@redhat.com>
62613         fts: avoid used-uninitialized error due to recent change
62614         * lib/fts.c (fts_read): Guard uses of the new member,
62615         parent->fts_n_dirs_remaining, since it's not relevant for
62616         the parent of a directory specified on the command-line.
62618 2009-02-17  James Youngman  <jay@gnu.org>
62619             Bruno Haible  <bruno@clisp.org>
62621         * m4/include_next.m4: Reformulate comment.
62623 2009-02-16  Jim Meyering  <meyering@redhat.com>
62625         fts: add #if guards so that the fts_lgpl module still builds
62626         * lib/fts.c: Guard just-added hash-table-using parts with
62627         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
62628         Reported by Simon Josefsson.
62630 2009-02-15  Bruno Haible  <bruno@clisp.org>
62632         * modules/array-mergesort-tests: New file.
62633         * tests/test-array-mergesort.c: New file.
62635         New module 'array-mergesort'.
62636         * modules/array-mergesort: New file.
62637         * lib/array-mergesort.h: New file.
62639 2009-02-15  Bruno Haible  <bruno@clisp.org>
62641         Fix 2009-02-07 commit.
62642         * lib/gen-uni-tables.c (output_predicate, output_category,
62643         output_combclass, output_bidi_category, output_decimal_digit,
62644         output_digit, output_numeric, output_mirror, output_scripts,
62645         output_ident_category, output_simple_mapping): Fix format directives.
62646         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
62648 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
62650         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
62651         fixes are available from IBM.
62653 2009-02-13  Jim Meyering  <meyering@redhat.com>
62655         fts: arrange not to stat non-directories in more cases
62656         This makes GNU find (when it doesn't need to stat each file)
62657         *much* more efficient at traversing reiserfs file systems.
62658         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
62659         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
62660         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
62661         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
62662         (leaf_optimization_applies): New function.
62663         (LCO_hash, LCO_compare): New helper functions.
62664         (link_count_optimize_ok): New function.
62665         (fts_stat): Initialize new member (if dir).
62666         (fts_read): Decrement parent's fts_n_dirs_remaining count if
62667         we've just stat'ed a directory.  Skip the stat call when possible.
62668         ---
62669         Note this AFS-related exchange:
62670         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
62671         and note find's pioctl call in find/fstype.c.
62672         But that is necessary only if you want to enable the
62673         optimization for AFS, and for now, I don't.
62675         fts: move a function definition "up" (no semantic change)
62676         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
62677         "up" to precede upcoming use of a related function.
62679 2009-02-11  Jim Meyering  <meyering@redhat.com>
62681         fts: correct internal computation of nlinks (optimization-related)
62682         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
62683         whether the current entry is a directory, so don't test it.
62685 2009-02-10  Bruno Haible  <bruno@clisp.org>
62687         Tests for module 'uniwbrk/ulc-wordbreaks'.
62688         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
62689         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
62690         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
62692         Tests for module 'uniwbrk/u32-wordbreaks'.
62693         * modules/uniwbrk/u32-wordbreaks-tests: New file.
62694         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
62696         Tests for module 'uniwbrk/u16-wordbreaks'.
62697         * modules/uniwbrk/u16-wordbreaks-tests: New file.
62698         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
62700         Tests for module 'uniwbrk/u8-wordbreaks'.
62701         * modules/uniwbrk/u8-wordbreaks-tests: New file.
62702         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
62704 2009-02-10  Bruno Haible  <bruno@clisp.org>
62706         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
62707         property.
62708         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
62709         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
62710         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
62712 2009-02-10  Simon Josefsson  <simon@josefsson.org>
62714         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
62715         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
62717 2009-02-10  Bruno Haible  <bruno@clisp.org>
62719         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
62720         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
62721         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
62722         * lib/unilbrk/u8-possible-linebreaks.c: Update.
62723         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
62724         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
62726 2009-02-09  Simon Josefsson  <simon@josefsson.org>
62728         * lib/sockets.h (gl_fd_to_handle): New function.
62730         * tests/test-sockets.c: Call gl_fd_to_handle.
62732 2009-02-09  Bruno Haible  <bruno@clisp.org>
62734         * doc/havelib.texi: Document the conventions on bi-arch systems.
62736 2009-02-08  Bruno Haible  <bruno@clisp.org>
62738         Document the AC_LIB_LINKFLAGS macro.
62739         * doc/havelib.texi: New file, mostly written on 2005-05-24.
62740         * doc/gnulib.texi: Include it.
62742 2009-02-08  Bruno Haible  <bruno@clisp.org>
62744         Fix wrong order of sections, compared to TOC.
62745         * doc/gnulib.texi: Include relocatable-maint.texi after the
62746         "Regular expressions" node, not before.
62748 2009-02-08  Bruno Haible  <bruno@clisp.org>
62750         Tests for module 'unicase/totitle'.
62751         * modules/unicase/totitle-tests: New file.
62753         Tests for module 'unicase/tolower'.
62754         * modules/unicase/tolower-tests: New file.
62756         Tests for module 'unicase/toupper'.
62757         * modules/unicase/toupper-tests: New file.
62758         * tests/unicase/test-mapping-part1.h: New file.
62759         * tests/unicase/test-mapping-part2.h: New file.
62761         New module 'unicase/totitle'.
62762         * modules/unicase/totitle: New file.
62763         * lib/unicase/totitle.c: New file.
62765         New module 'unicase/tolower'.
62766         * modules/unicase/tolower: New file.
62767         * lib/unicase/tolower.c: New file.
62769         New module 'unicase/toupper'.
62770         * modules/unicase/toupper: New file.
62771         * lib/unicase/toupper.c: New file.
62772         * lib/unicase/simple-mapping.h: New file.
62774         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
62775         (mapping_table): New structure.
62776         (output_simple_mapping): New function.
62777         (main): Invoke output_simple_mapping_test and output_simple_mapping.
62778         * modules/gen-uni-tables (Description): Update.
62779         * lib/unicase/toupper.h: New file, automatically generated by
62780         gen-uni-tables.
62781         * lib/unicase/tolower.h: New file, automatically generated by
62782         gen-uni-tables.
62783         * lib/unicase/totitle.h: New file, automatically generated by
62784         gen-uni-tables.
62785         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
62786         gen-uni-tables.
62787         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
62788         gen-uni-tables.
62789         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
62790         gen-uni-tables.
62792         New module 'unicase/base'.
62793         * modules/unicase/base: New file.
62794         * lib/unicase.h: New file.
62796 2009-02-08  Bruno Haible  <bruno@clisp.org>
62798         New module 'uniwbrk/ulc-wordbreaks'.
62799         * modules/uniwbrk/ulc-wordbreaks: New file.
62800         * lib/uniwbrk/ulc-wordbreaks.c: New file.
62802         New module 'uniwbrk/u32-wordbreaks'.
62803         * modules/uniwbrk/u32-wordbreaks: New file.
62804         * lib/uniwbrk/u32-wordbreaks.c: New file.
62806         New module 'uniwbrk/u16-wordbreaks'.
62807         * modules/uniwbrk/u16-wordbreaks: New file.
62808         * lib/uniwbrk/u16-wordbreaks.c: New file.
62810         New module 'uniwbrk/u8-wordbreaks'.
62811         * modules/uniwbrk/u8-wordbreaks: New file.
62812         * lib/uniwbrk/u8-wordbreaks.c: New file.
62813         * lib/uniwbrk/u-wordbreaks.h: New file.
62815         New module 'uniwbrk/table'.
62816         * modules/uniwbrk/table: New file.
62817         * lib/uniwbrk/wbrktable.h: New file.
62818         * lib/uniwbrk/wbrktable.c: New file.
62820         New module 'uniwbrk/wordbreak-property'.
62821         * modules/uniwbrk/wordbreak-property: New file.
62822         * lib/uniwbrk/wordbreak-property.c: New file.
62824         * lib/gen-uni-tables.c (WBP_*): New enum items.
62825         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
62826         (unicode_org_wbp): New variable.
62827         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
62828         New functions.
62829         (wbp_table): New structure.
62830         (output_wbp, output_wbrk_tables): New functions.
62831         (main): Accept additional argument. Invoke fill_org_wbp,
62832         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
62833         output_wbrk_tables.
62834         * modules/gen-uni-tables (Description): Update.
62835         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
62836         gen-uni-tables.
62838         New module 'uniwbrk/base'.
62839         * modules/uniwbrk/base: New file.
62840         * lib/uniwbrk.h: New file.
62842 2009-02-08  Bruno Haible  <bruno@clisp.org>
62844         Update to Unicode 5.1.0.
62845         * lib/gen-uni-tables.c (is_property_alphabetic): Include
62846         U+2185..U+2188.
62847         (is_property_default_ignorable_code_point): Don't include characters
62848         of category Cc or Cs and not-a-characters.
62849         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
62850         U+0D79, U+109E, U+109F, U+A60C.
62851         * lib/unictype/bidi_of.h: Regenerated.
62852         * lib/unictype/blocks.h: Regenerated.
62853         * lib/unictype/categ_C.h: Regenerated.
62854         * lib/unictype/categ_Cf.h: Regenerated.
62855         * lib/unictype/categ_Cn.h: Regenerated.
62856         * lib/unictype/categ_L.h: Regenerated.
62857         * lib/unictype/categ_Ll.h: Regenerated.
62858         * lib/unictype/categ_Lm.h: Regenerated.
62859         * lib/unictype/categ_Lo.h: Regenerated.
62860         * lib/unictype/categ_Lu.h: Regenerated.
62861         * lib/unictype/categ_M.h: Regenerated.
62862         * lib/unictype/categ_Mc.h: Regenerated.
62863         * lib/unictype/categ_Me.h: Regenerated.
62864         * lib/unictype/categ_Mn.h: Regenerated.
62865         * lib/unictype/categ_N.h: Regenerated.
62866         * lib/unictype/categ_Nd.h: Regenerated.
62867         * lib/unictype/categ_Nl.h: Regenerated.
62868         * lib/unictype/categ_No.h: Regenerated.
62869         * lib/unictype/categ_P.h: Regenerated.
62870         * lib/unictype/categ_Pd.h: Regenerated.
62871         * lib/unictype/categ_Pe.h: Regenerated.
62872         * lib/unictype/categ_Pf.h: Regenerated.
62873         * lib/unictype/categ_Pi.h: Regenerated.
62874         * lib/unictype/categ_Po.h: Regenerated.
62875         * lib/unictype/categ_Ps.h: Regenerated.
62876         * lib/unictype/categ_S.h: Regenerated.
62877         * lib/unictype/categ_Sk.h: Regenerated.
62878         * lib/unictype/categ_Sm.h: Regenerated.
62879         * lib/unictype/categ_So.h: Regenerated.
62880         * lib/unictype/categ_of.h: Regenerated.
62881         * lib/unictype/combining.h: Regenerated.
62882         * lib/unictype/ctype_alnum.h: Regenerated.
62883         * lib/unictype/ctype_alpha.h: Regenerated.
62884         * lib/unictype/ctype_graph.h: Regenerated.
62885         * lib/unictype/ctype_lower.h: Regenerated.
62886         * lib/unictype/ctype_print.h: Regenerated.
62887         * lib/unictype/ctype_punct.h: Regenerated.
62888         * lib/unictype/ctype_upper.h: Regenerated.
62889         * lib/unictype/decdigit.h: Regenerated.
62890         * lib/unictype/digit.h: Regenerated.
62891         * lib/unictype/mirror.h: Regenerated.
62892         * lib/unictype/numeric.h: Regenerated.
62893         * lib/unictype/pr_alphabetic.h: Regenerated.
62894         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
62895         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
62896         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
62897         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
62898         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
62899         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
62900         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
62901         * lib/unictype/pr_combining.h: Regenerated.
62902         * lib/unictype/pr_dash.h: Regenerated.
62903         * lib/unictype/pr_decimal_digit.h: Regenerated.
62904         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
62905         * lib/unictype/pr_deprecated.h: Regenerated.
62906         * lib/unictype/pr_diacritic.h: Regenerated.
62907         * lib/unictype/pr_extender.h: Regenerated.
62908         * lib/unictype/pr_format_control.h: Regenerated.
62909         * lib/unictype/pr_grapheme_base.h: Regenerated.
62910         * lib/unictype/pr_grapheme_extend.h: Regenerated.
62911         * lib/unictype/pr_grapheme_link.h: Regenerated.
62912         * lib/unictype/pr_id_continue.h: Regenerated.
62913         * lib/unictype/pr_id_start.h: Regenerated.
62914         * lib/unictype/pr_ideographic.h: Regenerated.
62915         * lib/unictype/pr_ignorable_control.h: Regenerated.
62916         * lib/unictype/pr_lowercase.h: Regenerated.
62917         * lib/unictype/pr_math.h: Regenerated.
62918         * lib/unictype/pr_numeric.h: Regenerated.
62919         * lib/unictype/pr_other_alphabetic.h: Regenerated.
62920         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
62921         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
62922         * lib/unictype/pr_other_id_continue.h: Regenerated.
62923         * lib/unictype/pr_other_lowercase.h: Regenerated.
62924         * lib/unictype/pr_other_math.h: Regenerated.
62925         * lib/unictype/pr_punctuation.h: Regenerated.
62926         * lib/unictype/pr_sentence_terminal.h: Regenerated.
62927         * lib/unictype/pr_soft_dotted.h: Regenerated.
62928         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
62929         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
62930         * lib/unictype/pr_unified_ideograph.h: Regenerated.
62931         * lib/unictype/pr_uppercase.h: Regenerated.
62932         * lib/unictype/pr_xid_continue.h: Regenerated.
62933         * lib/unictype/pr_xid_start.h: Regenerated.
62934         * lib/unictype/pr_zero_width.h: Regenerated.
62935         * lib/unictype/scripts.h: Regenerated.
62936         * lib/unictype/scripts_byname.gperf: Regenerated.
62937         * lib/unictype/sy_java_ident.h: Regenerated.
62938         * lib/unilbrk/lbrkprop1.h: Regenerated.
62939         * lib/unilbrk/lbrkprop2.h: Regenerated.
62940         * tests/unictype/test-categ_C.c: Regenerated.
62941         * tests/unictype/test-categ_Cf.c: Regenerated.
62942         * tests/unictype/test-categ_Cn.c: Regenerated.
62943         * tests/unictype/test-categ_L.c: Regenerated.
62944         * tests/unictype/test-categ_Ll.c: Regenerated.
62945         * tests/unictype/test-categ_Lm.c: Regenerated.
62946         * tests/unictype/test-categ_Lo.c: Regenerated.
62947         * tests/unictype/test-categ_Lu.c: Regenerated.
62948         * tests/unictype/test-categ_M.c: Regenerated.
62949         * tests/unictype/test-categ_Mc.c: Regenerated.
62950         * tests/unictype/test-categ_Me.c: Regenerated.
62951         * tests/unictype/test-categ_Mn.c: Regenerated.
62952         * tests/unictype/test-categ_N.c: Regenerated.
62953         * tests/unictype/test-categ_Nd.c: Regenerated.
62954         * tests/unictype/test-categ_Nl.c: Regenerated.
62955         * tests/unictype/test-categ_No.c: Regenerated.
62956         * tests/unictype/test-categ_P.c: Regenerated.
62957         * tests/unictype/test-categ_Pd.c: Regenerated.
62958         * tests/unictype/test-categ_Pe.c: Regenerated.
62959         * tests/unictype/test-categ_Pf.c: Regenerated.
62960         * tests/unictype/test-categ_Pi.c: Regenerated.
62961         * tests/unictype/test-categ_Po.c: Regenerated.
62962         * tests/unictype/test-categ_Ps.c: Regenerated.
62963         * tests/unictype/test-categ_S.c: Regenerated.
62964         * tests/unictype/test-categ_Sk.c: Regenerated.
62965         * tests/unictype/test-categ_Sm.c: Regenerated.
62966         * tests/unictype/test-categ_So.c: Regenerated.
62967         * tests/unictype/test-ctype_alnum.c: Regenerated.
62968         * tests/unictype/test-ctype_alpha.c: Regenerated.
62969         * tests/unictype/test-ctype_graph.c: Regenerated.
62970         * tests/unictype/test-ctype_lower.c: Regenerated.
62971         * tests/unictype/test-ctype_print.c: Regenerated.
62972         * tests/unictype/test-ctype_punct.c: Regenerated.
62973         * tests/unictype/test-ctype_upper.c: Regenerated.
62974         * tests/unictype/test-decdigit.h: Regenerated.
62975         * tests/unictype/test-digit.h: Regenerated.
62976         * tests/unictype/test-numeric.h: Regenerated.
62977         * tests/unictype/test-pr_alphabetic.c: Regenerated.
62978         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
62979         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
62980         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
62981         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
62982         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
62983         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
62984         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
62985         * tests/unictype/test-pr_combining.c: Regenerated.
62986         * tests/unictype/test-pr_dash.c: Regenerated.
62987         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
62988         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
62989         * tests/unictype/test-pr_deprecated.c: Regenerated.
62990         * tests/unictype/test-pr_diacritic.c: Regenerated.
62991         * tests/unictype/test-pr_extender.c: Regenerated.
62992         * tests/unictype/test-pr_format_control.c: Regenerated.
62993         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
62994         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
62995         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
62996         * tests/unictype/test-pr_id_continue.c: Regenerated.
62997         * tests/unictype/test-pr_id_start.c: Regenerated.
62998         * tests/unictype/test-pr_ideographic.c: Regenerated.
62999         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
63000         * tests/unictype/test-pr_lowercase.c: Regenerated.
63001         * tests/unictype/test-pr_math.c: Regenerated.
63002         * tests/unictype/test-pr_numeric.c: Regenerated.
63003         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
63004         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
63005         Regenerated.
63006         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
63007         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
63008         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
63009         * tests/unictype/test-pr_other_math.c: Regenerated.
63010         * tests/unictype/test-pr_punctuation.c: Regenerated.
63011         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
63012         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
63013         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
63014         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
63015         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
63016         * tests/unictype/test-pr_uppercase.c: Regenerated.
63017         * tests/unictype/test-pr_xid_continue.c: Regenerated.
63018         * tests/unictype/test-pr_xid_start.c: Regenerated.
63019         * tests/unictype/test-pr_zero_width.c: Regenerated.
63021         Update to Unicode 5.1.0.
63022         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
63023         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
63024         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
63025         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
63026         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
63027         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
63028         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
63029         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
63030         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
63031         (nonspacing_table_ind): Update.
63032         * tests/uniwidth/test-uc_width2.sh: Update expected result.
63034         Update to Unicode 5.1.0.
63035         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
63036         code transform.
63037         * lib/uniname/uniname.c (unicode_character_name,
63038         unicode_name_character): Add the range 0x1Fxxx to the code transform.
63039         * lib/uniname/uninames.h: Regenerated.
63040         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
63042 2009-02-07  Bruno Haible  <bruno@clisp.org>
63044         Merge gen-ctype and gen-lbrk into a single program.
63045         * lib/gen-uni-tables.c: New file, incorporating
63046         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
63047         Add directory prefixes to the names of the generated files.
63048         * lib/unictype/gen-ctype.c: Remove file.
63049         * lib/unilbrk/gen-lbrk.c: Remove file.
63050         * modules/gen-uni-tables: New file.
63051         * modules/unictype/gen-ctype: Remove file.
63052         * modules/unilbrk/gen-lbrk: Remove file.
63054 2009-02-07  Bruno Haible  <bruno@clisp.org>
63056         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
63058         New module 'unistr/u32-strcoll'.
63059         * modules/unistr/u32-strcoll: New file.
63060         * lib/unistr/u32-strcoll.c: New file.
63062         New module 'unistr/u16-strcoll'.
63063         * modules/unistr/u16-strcoll: New file.
63064         * lib/unistr/u16-strcoll.c: New file.
63066         New module 'unistr/u8-strcoll'.
63067         * modules/unistr/u8-strcoll: New file.
63068         * lib/unistr/u8-strcoll.c: New file.
63069         * lib/unistr/u-strcoll.h: New file.
63071 2009-02-07  Bruno Haible  <bruno@clisp.org>
63073         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
63074         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
63075         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
63076         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
63077         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
63078         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
63080 2009-02-07  Bruno Haible  <bruno@clisp.org>
63082         Make 64-bit clean.
63083         * lib/unictype/gen-ctype.c (output_predicate, output_category,
63084         output_combclass, output_bidi_category, output_decimal_digit,
63085         output_digit, output_numeric, output_mirror, output_scripts,
63086         output_ident_category): Use proper width specifier in format strings.
63088 2009-02-07  Bruno Haible  <bruno@clisp.org>
63090         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
63091         failure behaviour.
63093 2009-02-07  Jim Meyering  <meyering@redhat.com>
63095         regex: avoid compilation failure with upcoming gcc-4.4
63096         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
63097         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
63098         "... error: integer overflow in preprocessor expression".
63100 2009-02-05  Ben Pfaff  <blp@gnu.org>
63102         Fix link errors on Windows when close module is used.
63103         * modules/close: Add $(LIB_CLOSE) to Link section.
63104         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
63105         $(LIB_CLOSE) on Windows.
63107 2009-02-05  Jim Meyering  <meyering@redhat.com>
63109         still avoid unused-parameter warnings, but do it cleanly
63110         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
63111         (get_fs_usage): Cast to void instead.
63112         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
63113         (dev_from_mount_options, read_file_system_list): Cast to void.
63114         Prompted by Bruno Haible.
63116 2009-02-04  Jim Meyering  <meyering@redhat.com>
63118         fsusage.c: correct copyright year
63119         * lib/fsusage.c: Reflect year in which the change is pushed into
63121         avoid misc. warnings
63122         * lib/fsusage.c (UNUSED_PARAM): Define.
63123         (get_fs_usage): Mark parameter "disk" as unused.
63124         * lib/getugroups.c (getgrent): Use "void" in prototype.
63125         * lib/mountlist.c: Mark unused parameters.
63126         (read_file_system_list): Declare a local with "const".
63127         * lib/nanosleep.c (getnow): Declare static.
63128         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
63130         dirfd: set errno upon failure
63131         * lib/dirfd.c: Include <errno.h>.
63132         Set errno to ENOTSUP when returning -1.
63133         * modules/dirfd (Depends-on): Add errno.
63134         Suggested by John Kodis <kodis@comcast.net>.
63136 2009-02-01  Bruno Haible  <bruno@clisp.org>
63138         Don't assume sizeof (long) >= sizeof (void *).
63139         * lib/memcmp.c: Include stdint.h.
63140         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
63141         srcp2 to 'const byte *'.
63142         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
63143         types to uintptr_t.
63144         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
63145         * modules/memcmp (Depends-on): Add stdint.
63146         Reported by Ozkan Sezer <sezeroz@gmail.com>.
63148 2009-01-30  Eric Blake  <ebb9@byu.net>
63150         fix more require-before-expand issues
63151         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
63152         expand, AC_PROG_AWK.
63153         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
63155 2009-01-28  Eric Blake  <ebb9@byu.net>
63157         version-etc: use consistent URL formatting
63158         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
63159         Improve formatting.  Use fputs for string without %.
63161 2009-01-28  Jim Meyering  <meyering@redhat.com>
63163         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
63164         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
63165         "underquoted definition of NAME" from autoconf-2.59.
63167 2009-01-28  Bruno Haible  <bruno@clisp.org>
63169         * doc/gnulib.texi: Add "Obsolete modules" to index.
63171 2009-01-28  Jim Meyering  <meyering@redhat.com>
63173         useless-if-before-free: recognize more variants
63174         * build-aux/useless-if-before-free: Also recognize e.g.,
63175         if (NULL != p) free (p);
63177 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
63179         test-getaddrinfo: skip (don't fail) this test when there's no network
63180         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
63181         on the presumption that it means you lack network access.
63183 2009-01-26  Jim Meyering  <meyering@redhat.com>
63185         fflush: avoid warnings on modern systems
63186         * lib/fflush.c (rpl_fflush): Move declarations of locals,
63187         pos and result, into scopes where they're used.
63189 2009-01-26  Eric Blake  <ebb9@byu.net>
63191         Silence warning reintroduced by recent extensions patch.
63192         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
63193         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
63194         autoconf.
63196         Backport improved autoconf semantics of AC_DEFUN_ONCE.
63197         * m4/00gnulib.m4: New file.
63198         * gnulib-tool (func_get_filelist): Always use it.
63199         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
63200         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
63202 2009-01-25  Bruno Haible  <bruno@clisp.org>
63204         Make test-quotearg work on MacOS X and AIX.
63205         * tests/test-quotearg.sh: New file.
63206         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
63207         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
63208         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
63209         include <libintl.h>.
63210         (fake_locale): Remove variable.
63211         (gettext, dgettext, dcgettext): Remove functions.
63212         (main): Instead of setting a fake locale, set a real locale. Call
63213         textdomain and bindtextdomain.
63214         * modules/quotearg-tests (Files): Add the new files.
63215         (Depends-on): Add gettext, setenv, unsetenv.
63216         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63217         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
63218         Augment TESTS_ENVIRONMENT.
63220 2009-01-25  Bruno Haible  <bruno@clisp.org>
63222         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
63223         fr_FR.ISO8859-1 locale on MacOS X.
63224         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
63225         ja_JP.eucJP locale on MacOS X.
63226         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
63227         zh_CN.GB18030 locale on MacOS X.
63229 2009-01-25  Bruno Haible  <bruno@clisp.org>
63231         Avoid link errors on MacOS X 10.3.
63232         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
63233         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
63235 2009-01-25  Bruno Haible  <bruno@clisp.org>
63237         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
63238         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
63239         * modules/pipe (Files): Remove m4/posix_spawn.m4.
63240         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
63241         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
63242         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
63243         posix_spawnattr_init, posix_spawnattr_setsigmask,
63244         posix_spawnattr_setflags, posix_spawnattr_destroy.
63246         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
63247         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
63248         * modules/execute (Files): Remove m4/posix_spawn.m4.
63249         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
63250         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
63251         posix_spawnattr_init, posix_spawnattr_setsigmask,
63252         posix_spawnattr_setflags, posix_spawnattr_destroy.
63254 2009-01-25  Bruno Haible  <bruno@clisp.org>
63256         * lib/glthread/threadlib.c: Include <stdlib.h>.
63258 2009-01-25  Bruno Haible  <bruno@clisp.org>
63260         * lib/glthread/threadlib.c (dummy): New declaration.
63262 2009-01-25  Bruno Haible  <bruno@clisp.org>
63264         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
63265         multibyte characters also for the GB18030 encoding. Don't crash when
63266         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
63268 2009-01-25  Bruno Haible  <bruno@clisp.org>
63270         Avoid redefining 'struct random_data' on OSF/1 5.1.
63271         * lib/stdlib.in.h: Include <random.h> if it exists.
63272         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
63273         HAVE_RANDOM_H. Include <random.h> when testing whether
63274         'struct random_data' exists.
63275         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
63277 2009-01-25  Bruno Haible  <bruno@clisp.org>
63279         Don't install charset.alias on MacOS X >= 10.3.
63280         * lib/localcharset.c (DARWIN7): New macro.
63281         (get_charset_aliases): Hardcode the result for Darwin7.
63282         * modules/localcharset (install-exec-local): Don't install
63283         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
63285 2009-01-25  Bruno Haible  <bruno@clisp.org>
63287         Don't install charset.alias on mingw and Cygwin.
63288         * modules/localcharset (install-exec-local): Don't install
63289         charset.alias on mingw and Cygwin, if the file does not yet exist.
63290         The result for these platforms is hardcoded in localcharset.c.
63292 2009-01-25  Bruno Haible  <bruno@clisp.org>
63294         Make it possible again to use AC_GNU_SOURCE together with gnulib.
63295         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
63296         before requiring AC_USE_SYSTEM_EXTENSIONS.
63298 2009-01-25  Jim Meyering  <meyering@redhat.com>
63300         c-strtod: avoid warnings
63301         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
63302         "assignment discards qualifiers from pointer target type" warnings.
63304 2009-01-24  Bruno Haible  <bruno@clisp.org>
63306         Add support for non-UTF-8 locales on MacOS X.
63307         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
63308         canonical encodings. For Darwin 7 and newer, don't map traditional
63309         encodings to UTF-8.
63310         Reported by Vincent Lefevre <vincent@vinc17.org>
63311         at <http://savannah.gnu.org/bugs/?25235>.
63313 2009-01-24  Bruno Haible  <bruno@clisp.org>
63315         * doc/gnulib.texi (Obsolete modules): New section.
63316         Reported by Mike Frysinger <vapier@gentoo.org>.
63318 2009-01-24  Bruno Haible  <bruno@clisp.org>
63320         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
63321         (%.dvi): New rule.
63323 2009-01-24  Bruno Haible  <bruno@clisp.org>
63325         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
63326         Reported by Eric Blake.
63328 2009-01-24  Bruno Haible  <bruno@clisp.org>
63330         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
63331         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
63332         Reported by Gary V. Vaughan <gary@gnu.org>.
63334 2009-01-24  Bruno Haible  <bruno@clisp.org>
63336         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
63338 2009-01-23  Bruno Haible  <bruno@clisp.org>
63340         Make c-strtod, c-strtold usable in libraries.
63341         * lib/c-strtod.c: Include string.h instead of xalloc.h.
63342         (C_STRTOD): Call strdup instead of xstrdup.
63343         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
63344         * modules/c-strtold (Depends-on): Likewise.
63345         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
63346         * NEWS: Mention the change.
63347         Reported by Michael Gold <mgold@ncf.ca>.
63349 2009-01-23  Jim Meyering  <meyering@redhat.com>
63351         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
63352         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
63353         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
63355 2009-01-23  Simon Josefsson  <simon@josefsson.org>
63357         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
63358         GNU CoreUtils.
63359         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
63360         * modules/version-etc (Description): Update.
63362 2009-01-22  Bruno Haible  <bruno@clisp.org>
63364         Cache the C locale object.
63365         * lib/c-strtod.c (c_locale_cache): New variable.
63366         (c_locale): New function.
63367         (C_STRTOD): Use it, and don't call freelocale.
63368         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
63369         Suggested by Paolo Bonzini.
63371 2009-01-21  Bruno Haible  <bruno@clisp.org>
63373         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
63374         conditions other than overflow.
63376 2009-01-21  Bruno Haible  <bruno@clisp.org>
63378         * lib/c-strtod.c: Include errno.h.
63379         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
63380         value from STRTOD_L and STRTOD.
63382 2009-01-21  Bruno Haible  <bruno@clisp.org>
63383         and Jim Meyering  <meyering@redhat.com>
63385         nanosleep: skip configure test (fail it) for apple universal builds
63386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
63387         universal builds, assume that nanosleep does not work.
63388         * modules/nanosleep (Depends-on): Add multiarch.
63390         mktime: skip configure test (fail it) for apple universal builds
63391         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
63392         universal builds, assume that mktime does not work.
63393         * modules/mktime (Depends-on): Add multiarch.
63395 2009-01-21  Eric Blake  <ebb9@byu.net>
63397         multiarch: avoid expand-before-require warning
63398         * modules/multiarch (configure.ac): Require, rather than expand,
63399         gl_MULTIARCH.
63400         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
63401         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
63402         enforce that all clients require it.  Partial reversion of
63403         2008-12-29 patch.
63405         error: avoid expand-before-require warning
63406         * modules/errno (configure.ac): Require, rather than expand,
63407         gl_HEADER_ERRNO_H.
63408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
63409         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
63410         enforce that all clients require it.
63412         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
63413         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
63414         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
63415         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
63417 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
63419         Revert:
63420         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
63422         regex: do not depend on obsolete modules.
63423         * modules/regex: Remove memcmp and memmove.
63425 2009-01-20  Bruno Haible  <bruno@clisp.org>
63427         Make the 'link' module link on Windows NT 4.
63428         * lib/link.c (_WIN32_WINNT): Don't define.
63429         (CreateHardLinkFuncType): New type.
63430         (CreateHardLinkFunc, initialized): New variables.
63431         (initialize): New function.
63432         (link): Invoke CreateHardLink indirectly through the function pointer.
63434 2009-01-20  Bruno Haible  <bruno@clisp.org>
63436         Fix compilation failure on mingw.
63437         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
63439 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
63441         * doc/c-strtod.texi: Mention a couple of restrictions.
63443 2009-01-20  Jim Meyering  <meyering@redhat.com>
63445         gettimeofday: move more declarations out of functions
63446         * lib/gettimeofday.c: Move extern declarations of tzset and
63447         gmtime out of containing functions.  Prompted by Bruno Haible.
63449 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
63451         regex: do not depend on obsolete modules.
63452         * modules/regex: Remove memcmp and memmove.
63454 2009-01-19  Bruno Haible  <bruno@clisp.org>
63456         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
63457         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
63458         gl_BIGENDIAN, not AC_C_BIGENDIAN.
63459         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
63460         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
63462 2009-01-19  Bruno Haible  <bruno@clisp.org>
63464         * tests/test-link.c: Include <errno.h>.
63465         (main): Exit with code 77 when a hard link cannot be created due to
63466         the file system.
63467         * tests/test-link.sh: Skip test when a hard link cannot be created due
63468         to the file system.
63469         Suggested by Eric Blake.
63471 2009-01-19  Martin Lambers  <marlam@marlam.de>
63473         * modules/link-tests: New file.
63474         * tests/test-link.sh: New file.
63475         * tests/test-link.c: New file.
63477 2009-01-19  Eric Blake  <ebb9@byu.net>
63479         doc: mention another function added in cygwin 1.7.0
63480         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
63481         Another new function in cygwin 1.7.
63483 2009-01-19  Bruno Haible  <bruno@clisp.org>
63485         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
63486         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
63487         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
63488         gl_BIGENDIAN, not AC_C_BIGENDIAN.
63489         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63490         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
63491         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63492         * m4/md4.m4 (gl_MD4): Likewise.
63493         * m4/md5.m4 (gl_MD5): Likewise.
63494         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
63495         * m4/sha1.m4 (gl_SHA1): Likewise.
63496         * m4/sha256.m4 (gl_SHA256): Likewise.
63497         * m4/sha512.m4 (gl_SHA512): Likewise.
63499 2009-01-19  Bruno Haible  <bruno@clisp.org>
63501         * modules/uniname/uniname-tests (Depends-on): Add progname.
63502         * tests/uniname/test-uninames.c: Include progname.h.
63503         (main): Call set_program_name.
63505         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
63506         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
63507         (main): Call set_program_name.
63509         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
63510         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
63511         (main): Call set_program_name.
63513         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
63514         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
63515         (main): Call set_program_name.
63517         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
63518         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
63519         (main): Call set_program_name.
63521         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
63522         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
63523         (main): Call set_program_name.
63525         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
63526         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
63527         (main): Call set_program_name.
63529         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
63530         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
63531         (main): Call set_program_name.
63533         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
63534         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
63535         (main): Call set_program_name.
63537 2009-01-19  Eric Blake  <ebb9@byu.net>
63539         test-unistd: test previous patch
63540         * tests/test-unistd.c: Test *_FILENO macros.
63542         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
63543         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
63544         Guarantee a definition.
63545         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
63546         * modules/unistd-safer (Depends-on): Add dependency on unistd.
63547         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
63548         * lib/dup-safer.c (STDERR_FILENO): Likewise.
63549         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
63550         Likewise.
63551         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
63552         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
63553         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
63554         Likewise.
63555         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
63556         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
63557         (STDERR_FILENO): Likewise.
63558         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
63559         (STDERR_FILENO): Likewise.
63560         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
63561         (STDERR_FILENO): Likewise.
63562         Reported by Elbert Pol.
63564 2009-01-19  Eric Blake  <ebb9@byu.net>
63566         doc: mention more functions added in cygwin 1.7.0
63567         * doc/posix-functions/abort.texi (abort): Update wording related
63568         to cygwin.
63569         * doc/posix-functions/daylight.texi (daylight): Likewise.
63570         * doc/posix-functions/optarg.texi (optarg): Likewise.
63571         * doc/posix-functions/optarg.texi (opterr): Likewise.
63572         * doc/posix-functions/optarg.texi (optind): Likewise.
63573         * doc/posix-functions/optarg.texi (optopt): Likewise.
63574         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
63575         worked in 1.5.x, and was withdrawn in 1.7.
63576         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
63577         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
63578         cygwin versions.
63579         * doc/posix-functions/perror.texi (perror): Likewise.
63580         * doc/posix-functions/printf.texi (printf): Likewise.
63581         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
63582         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
63583         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
63584         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
63585         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
63586         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
63587         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
63588         Likewise.
63589         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
63590         Likewise.
63591         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
63592         this function.
63593         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
63594         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
63595         Likewise.
63596         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
63597         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
63598         * doc/posix-functions/confstr.texi (confstr): Likewise.
63599         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
63600         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
63601         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
63602         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
63603         * doc/posix-functions/fputws.texi (fputws): Likewise.
63604         * doc/posix-functions/fwide.texi (fwide): Likewise.
63605         * doc/posix-functions/getwc.texi (getwc): Likewise.
63606         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
63607         * doc/posix-functions/putwc.texi (putwc): Likewise.
63608         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
63609         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
63610         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
63611         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
63612         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
63613         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
63614         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
63615         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
63616         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
63617         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
63618         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
63620 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
63622         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
63623         * lib/ioctl.c: Include <sys/ioctl.h>.
63625 2009-01-19  Simon Josefsson  <simon@josefsson.org>
63627         * modules/getdate-tests (Depends-on): Add progname.
63628         * tests/test-getdate.c: Use progname module, to avoid link errors
63629         on non-glibc systems.
63631 2009-01-18  Simon Josefsson  <simon@josefsson.org>
63633         * modules/filenamecat-tests (Depends-on): Add progname.
63634         * modules/fstrcmp-tests (Depends-on): Likewise.
63636         * tests/test-filenamecat.c: Use progname module, to avoid link
63637         errors on non-glibc systems.
63638         * tests/test-fstrcmp.c: Likewise.
63640 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
63642         gettimeofday: avoid warning: nested extern declaration of 'localtime'
63643         * lib/gettimeofday.c: Move extern declaration out of function.
63645 2009-01-18  Bruno Haible  <bruno@clisp.org>
63647         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
63648         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
63649         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
63651 2009-01-18  Bruno Haible  <bruno@clisp.org>
63653         * lib/strftime.c (MEMPCPY): Remove unused macro.
63654         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
63656 2009-01-18  Martin Lambers  <marlam@marlam.de>
63658         New module 'link'.
63659         * lib/unistd.in.h (link): New declaration.
63660         * lib/link.c: New file.
63661         * m4/link.m4: New file.
63662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
63663         HAVE_LINK.
63664         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
63665         * modules/link: New file.
63666         * doc/posix-functions/link.texi: Mention the new module.
63668 2009-01-18  Bruno Haible  <bruno@clisp.org>
63670         * tests/test-avltree_list.c (main): Call set_program_name.
63671         * tests/test-avltree_oset.c (main): Likewise.
63672         * tests/test-obstack-printf.c: Include progname.h.
63673         (main): Call set_program_name.
63674         * tests/test-quotearg.c: Include progname.h.
63675         (main): Call set_program_name.
63676         * tests/test-xmemdup0.c: Include progname.h.
63677         (main): Call set_program_name.
63679 2009-01-18  Bruno Haible  <bruno@clisp.org>
63681         New module 'alphasort'.
63682         * lib/dirent.in.h (alphasort): New declaration.
63683         * lib/alphasort.c: New file, from glibc with modifications.
63684         * m4/alphasort.m4: New file.
63685         * modules/alphasort: New file.
63686         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
63687         HAVE_ALPHASORT.
63688         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
63689         HAVE_ALPHASORT.
63690         * doc/posix-functions/alphasort.texi: Mention the new module and the
63691         portability problems.
63693 2009-01-18  Bruno Haible  <bruno@clisp.org>
63695         New module 'scandir'.
63696         * lib/dirent.in.h (scandir): New declaration.
63697         * lib/scandir.c: New file, from glibc with modifications.
63698         * m4/scandir.m4: New file.
63699         * modules/scandir: New file.
63700         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
63701         HAVE_SCANDIR.
63702         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
63703         HAVE_SCANDIR.
63704         * doc/posix-functions/scandir.texi: Mention the new module and the
63705         portability problems.
63707 2009-01-17  Bruno Haible  <bruno@clisp.org>
63709         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
63710         Update documentation.
63711         (func_remove_suffix): Escape all dots in the suffix. Update
63712         documentation.
63713         (func_filter_filelist): Update documentation.
63714         Reported by Ralf Wildenhues.
63716 2009-01-17  Bruno Haible  <bruno@clisp.org>
63718         * modules/dprintf-posix-tests: New file.
63719         * tests/test-dprintf-posix.sh: New file.
63720         * tests/test-dprintf-posix.c: New file.
63722         New modules 'dprintf', 'dprintf-posix'.
63723         * lib/stdio.in.h (dprintf): New declaration.
63724         * lib/dprintf.c: New file.
63725         * m4/dprintf.m4: New file.
63726         * m4/dprintf-posix.m4: New file.
63727         * modules/dprintf: New file.
63728         * modules/dprintf-posix: New file.
63729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
63730         HAVE_DPRINTF, REPLACE_DPRINTF.
63731         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
63732         HAVE_DPRINTF, REPLACE_DPRINTF.
63733         * doc/posix-functions/dprintf.texi: Mention the new modules.
63735 2009-01-17  Bruno Haible  <bruno@clisp.org>
63737         * modules/vdprintf-posix-tests: New file.
63738         * tests/test-vdprintf-posix.sh: New file.
63739         * tests/test-vdprintf-posix.c: New file.
63741         New modules 'vdprintf', 'vdprintf-posix'.
63742         * lib/stdio.in.h (vdprintf): New declaration.
63743         * lib/vdprintf.c: New file.
63744         * m4/vdprintf.m4: New file.
63745         * m4/vdprintf-posix.m4: New file.
63746         * modules/vdprintf: New file.
63747         * modules/vdprintf-posix: New file.
63748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
63749         HAVE_VDPRINTF, REPLACE_VDPRINTF.
63750         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
63751         HAVE_VDPRINTF, REPLACE_VDPRINTF.
63752         * doc/posix-functions/vdprintf.texi: Mention the new modules.
63754 2009-01-17  Bruno Haible  <bruno@clisp.org>
63756         Fix replacement of fopen on mingw.
63757         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
63758         mingw.
63760 2009-01-17  Bruno Haible  <bruno@clisp.org>
63762         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
63763         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
63765 2009-01-17  Bruno Haible  <bruno@clisp.org>
63767         Avoid test-fflush2.sh failure on mingw.
63768         * tests/test-fflush2.c: Include binary-io.h.
63769         (main): Put standard input into binary mode.
63770         * modules/fflush-tests (Depends-on): Add binary-io.
63772 2009-01-17  Bruno Haible  <bruno@clisp.org>
63774         * lib/wchar.in.h: In another particular situation, include only the
63775         system's <wchar.h> file.
63776         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
63777         Reported by Albert Chin-A-Young <china@thewrittenword.com>
63778         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
63780 2009-01-17  Bruno Haible  <bruno@clisp.org>
63782         Support for stripping executables in --enable-relocatable.
63783         * build-aux/install-reloc: Expect one more argument, or an environment
63784         variable RELOC_STRIP_PROG. If set, strip the destination program and
63785         its wrapper.
63786         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
63787         RELOC_STRIP_PROG.
63788         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
63789         to set RELOCATABLE_STRIP.
63790         * NEWS: Mention the new Makefile requirement.
63792 2009-01-17  Bruno Haible  <bruno@clisp.org>
63794         * build-aux/install-reloc: Remove debugging information left over by
63795         C compiler on MacOS X.
63797 2009-01-17  Bruno Haible  <bruno@clisp.org>
63799         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
63800         * lib/progreloc.c (find_executable): Fix type of pointer passed to
63801         _NSGetExecutablePath.
63803 2009-01-16  Jim Meyering  <meyering@redhat.com>
63805         strerror: avoid warnings about discarding "const"
63806         * lib/strerror.c (rpl_strerror): Instead of returning a const
63807         string from each and every "case", use a variable, and add a single
63808         cast after the switch.
63810 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
63812         * lib/arpa_inet.in.h: Add extern "C" block for C++.
63814 2009-01-16  Bruno Haible  <bruno@clisp.org>
63816         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
63817         array initializer syntax that also works in C++ mode.
63818         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63820 2009-01-16  Jim Meyering  <meyering@redhat.com>
63822         poll: suppress a warning
63823         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
63824         to ignore "...unsigned expression < 0 is always false" warnings.
63826 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
63828         poll: remove declarations of unused variables
63829         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
63830         sockbuf and optlen.
63832 2009-01-15  Bruno Haible  <bruno@clisp.org>
63834         Make fflush-after-ungetc POSIX compliant on BSD systems.
63835         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
63836         (clear_ungetc_buffer): Implement also for other systems.
63837         (rpl_fflush): On glibc systems, invoke
63838         clear_ungetc_buffer_preserving_position. Otherwise, invoke
63839         clear_ungetc_buffer after fetching the stream's position, not before.
63841 2009-01-15  Bruno Haible  <bruno@clisp.org>
63843         Make fflush-after-ungetc POSIX compliant on glibc systems.
63844         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
63845         after ungetc.
63846         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
63847         (rpl_fflush): On glibc systems, simply call the system's fflush
63848         function after clearing the ungetc buffer.
63849         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
63850         Instead, lseek only to the end of file, then use the system's fseeko
63851         for the rest. On glibc systems, reset the EOF indicator bit.
63853 2009-01-15  Jim Meyering  <meyering@redhat.com>
63855         openmp.m4: revert quote-adding change, for portability to older autoconf
63856         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
63857         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
63858         Simon Josefsson noticed the problem when using autoconf-2.61.
63860 2009-01-15  Bruno Haible  <bruno@clisp.org>
63862         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
63863         * tests/test-fflush2.c (ASSERT): Always fail.
63864         (main): Add two tests for fflush() after ungetc(), taking into account
63865         the Austin Group's clarification.
63866         Suggested by Eric Blake.
63868 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
63870         mktime.m4: remove K&R-style function prototypes
63871         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
63872         for the Sun C++ compiler.
63874 2009-01-14  Bruno Haible  <bruno@clisp.org>
63876         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
63877         while including <wchar.h>.
63878         * lib/wchar.in.h: In two particular situations on HP-UX, include only
63879         the system's <wchar.h> file.
63880         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63882 2009-01-14  Bruno Haible  <bruno@clisp.org>
63884         * m4/csharp.m4: Don't mention gettext on the serial number line.
63885         * m4/csharpexec.m4: Likewise.
63886         * m4/eaccess.m4: Likewise.
63887         * m4/javaexec.m4: Likewise.
63888         * m4/sig_atomic_t.m4: Likewise.
63889         * m4/tmpdir.m4: Likewise.
63890         * m4/intldir.m4: Bump gettext version.
63891         * m4/lib-ld.m4: Likewise.
63893 2009-01-14  Bruno Haible  <bruno@clisp.org>
63895         * lib/progname.c (set_program_name): Add more comments.
63896         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63898 2009-01-14  Simon Josefsson  <simon@josefsson.org>
63900         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
63901         were sys/stat.h does not define it.
63903 2009-01-14  Jim Meyering  <meyering@redhat.com>
63905         many *.m4 files: improve m4 quoting
63906         99% of this change was performed by running the following commands:
63907         git ls-files | grep '\.m4$' | xargs perl -pi \
63908           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
63909           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
63910           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
63911           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
63912         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
63913         The remainder were to add Copyright dates, increment serial numbers,
63914         undo some changes in comments, exclude m4/intl.m4, and add quotes
63915         around the "1" in ",1" where the unusual spacing prohibited the
63916         above regexps from doing the job.  For more details, see
63917         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
63918         * m4/acl.m4: Modified.
63919         * m4/afs.m4: Likewise.
63920         * m4/alloca.m4: Likewise.
63921         * m4/argp.m4: Likewise.
63922         * m4/argz.m4: Likewise.
63923         * m4/atexit.m4: Likewise.
63924         * m4/bison-i18n.m4: Likewise.
63925         * m4/bison.m4: Likewise.
63926         * m4/byteswap.m4: Likewise.
63927         * m4/c-stack.m4: Likewise.
63928         * m4/c-strtod.m4: Likewise.
63929         * m4/calloc.m4: Likewise.
63930         * m4/canonicalize-lgpl.m4: Likewise.
63931         * m4/chown.m4: Likewise.
63932         * m4/clock_time.m4: Likewise.
63933         * m4/codeset.m4: Likewise.
63934         * m4/copy-file.m4: Likewise.
63935         * m4/csharp.m4: Likewise.
63936         * m4/csharpcomp.m4: Likewise.
63937         * m4/csharpexec.m4: Likewise.
63938         * m4/d-ino.m4: Likewise.
63939         * m4/d-type.m4: Likewise.
63940         * m4/dirfd.m4: Likewise.
63941         * m4/double-slash-root.m4: Likewise.
63942         * m4/eaccess.m4: Likewise.
63943         * m4/eealloc.m4: Likewise.
63944         * m4/environ.m4: Likewise.
63945         * m4/errno_h.m4: Likewise.
63946         * m4/euidaccess.m4: Likewise.
63947         * m4/execute.m4: Likewise.
63948         * m4/fatal-signal.m4: Likewise.
63949         * m4/fchdir.m4: Likewise.
63950         * m4/fcntl_h.m4: Likewise.
63951         * m4/fileblocks.m4: Likewise.
63952         * m4/filenamecat.m4: Likewise.
63953         * m4/findprog.m4: Likewise.
63954         * m4/flexmember.m4: Likewise.
63955         * m4/fnmatch.m4: Likewise.
63956         * m4/fopen.m4: Likewise.
63957         * m4/fpending.m4: Likewise.
63958         * m4/fprintf-posix.m4: Likewise.
63959         * m4/free.m4: Likewise.
63960         * m4/frexp.m4: Likewise.
63961         * m4/frexpl.m4: Likewise.
63962         * m4/fsusage.m4: Likewise.
63963         * m4/ftruncate.m4: Likewise.
63964         * m4/gc-camellia.m4: Likewise.
63965         * m4/gc-random.m4: Likewise.
63966         * m4/gc.m4: Likewise.
63967         * m4/getaddrinfo.m4: Likewise.
63968         * m4/getcwd-abort-bug.m4: Likewise.
63969         * m4/getcwd-path-max.m4: Likewise.
63970         * m4/getdate.m4: Likewise.
63971         * m4/getdomainname.m4: Likewise.
63972         * m4/getgroups.m4: Likewise.
63973         * m4/gethostname.m4: Likewise.
63974         * m4/gethrxtime.m4: Likewise.
63975         * m4/getline.m4: Likewise.
63976         * m4/getloadavg.m4: Likewise.
63977         * m4/getndelim2.m4: Likewise.
63978         * m4/getpass.m4: Likewise.
63979         * m4/gettext.m4: Likewise.
63980         * m4/gettime.m4: Likewise.
63981         * m4/gettimeofday.m4: Likewise.
63982         * m4/gnulib-common.m4: Likewise.
63983         * m4/group-member.m4: Likewise.
63984         * m4/host-os.m4: Likewise.
63985         * m4/iconv.m4: Likewise.
63986         * m4/iconv_open.m4: Likewise.
63987         * m4/inet_ntop.m4: Likewise.
63988         * m4/inet_pton.m4: Likewise.
63989         * m4/inline.m4: Likewise.
63990         * m4/intldir.m4: Likewise.
63991         * m4/intlmacosx.m4: Likewise.
63992         * m4/intmax.m4: Likewise.
63993         * m4/intmax_t.m4: Likewise.
63994         * m4/inttypes.m4: Likewise.
63995         * m4/inttypes_h.m4: Likewise.
63996         * m4/inttypes-pri.m4: Likewise.
63997         * m4/isapipe.m4: Likewise.
63998         * m4/isnand.m4: Likewise.
63999         * m4/isnanf.m4: Likewise.
64000         * m4/isnanl.m4: Likewise.
64001         * m4/javacomp.m4: Likewise.
64002         * m4/javaexec.m4: Likewise.
64003         * m4/jm-winsz1.m4: Likewise.
64004         * m4/jm-winsz2.m4: Likewise.
64005         * m4/lchown.m4: Likewise.
64006         * m4/lcmessage.m4: Likewise.
64007         * m4/ldexpl.m4: Likewise.
64008         * m4/lib-ld.m4: Likewise.
64009         * m4/lib-link.m4: Likewise.
64010         * m4/libsigsegv.m4: Likewise.
64011         * m4/link-follow.m4: Likewise.
64012         * m4/localcharset.m4: Likewise.
64013         * m4/locale-fr.m4: Likewise.
64014         * m4/locale-ja.m4: Likewise.
64015         * m4/locale-tr.m4: Likewise.
64016         * m4/locale-zh.m4: Likewise.
64017         * m4/lock.m4: Likewise.
64018         * m4/longlong.m4: Likewise.
64019         * m4/ls-mntd-fs.m4: Likewise.
64020         * m4/lstat.m4: Likewise.
64021         * m4/malloc.m4: Likewise.
64022         * m4/mathl.m4: Likewise.
64023         * m4/mbrtowc.m4: Likewise.
64024         * m4/mbstate_t.m4: Likewise.
64025         * m4/mbswidth.m4: Likewise.
64026         * m4/memchr.m4: Likewise.
64027         * m4/memcmp.m4: Likewise.
64028         * m4/memcpy.m4: Likewise.
64029         * m4/memmem.m4: Likewise.
64030         * m4/memmove.m4: Likewise.
64031         * m4/mempcpy.m4: Likewise.
64032         * m4/memrchr.m4: Likewise.
64033         * m4/memset.m4: Likewise.
64034         * m4/minmax.m4: Likewise.
64035         * m4/mkdir-slash.m4: Likewise.
64036         * m4/mkdtemp.m4: Likewise.
64037         * m4/mktime.m4: Likewise.
64038         * m4/mmap-anon.m4: Likewise.
64039         * m4/mountlist.m4: Likewise.
64040         * m4/nanosleep.m4: Likewise.
64041         * m4/nls.m4: Likewise.
64042         * m4/nocrash.m4: Likewise.
64043         * m4/open.m4: Likewise.
64044         * m4/openat.m4: Likewise.
64045         * m4/openmp.m4: Likewise.
64046         * m4/pathmax.m4: Likewise.
64047         * m4/perl.m4: Likewise.
64048         * m4/physmem.m4: Likewise.
64049         * m4/pipe.m4: Likewise.
64050         * m4/po.m4: Likewise.
64051         * m4/poll.m4: Likewise.
64052         * m4/posixtm.m4: Likewise.
64053         * m4/posixver.m4: Likewise.
64054         * m4/printf-frexp.m4: Likewise.
64055         * m4/printf-frexpl.m4: Likewise.
64056         * m4/printf-posix.m4: Likewise.
64057         * m4/printf-posix-rpl.m4: Likewise.
64058         * m4/printf.m4: Likewise.
64059         * m4/progtest.m4: Likewise.
64060         * m4/putenv.m4: Likewise.
64061         * m4/readline.m4: Likewise.
64062         * m4/readlink.m4: Likewise.
64063         * m4/readutmp.m4: Likewise.
64064         * m4/realloc.m4: Likewise.
64065         * m4/regex.m4: Likewise.
64066         * m4/relocatable.m4: Likewise.
64067         * m4/relocatable-lib.m4: Likewise.
64068         * m4/rename-dest-slash.m4: Likewise.
64069         * m4/rename.m4: Likewise.
64070         * m4/rmdir-errno.m4: Likewise.
64071         * m4/rmdir.m4: Likewise.
64072         * m4/roundf.m4: Likewise.
64073         * m4/roundl.m4: Likewise.
64074         * m4/rpmatch.m4: Likewise.
64075         * m4/save-cwd.m4: Likewise.
64076         * m4/selinux-selinux-h.m4: Likewise.
64077         * m4/setenv.m4: Likewise.
64078         * m4/settime.m4: Likewise.
64079         * m4/sig2str.m4: Likewise.
64080         * m4/sig_atomic_t.m4: Likewise.
64081         * m4/signalblocking.m4: Likewise.
64082         * m4/signbit.m4: Likewise.
64083         * m4/sigpipe.m4: Likewise.
64084         * m4/sockets.m4: Likewise.
64085         * m4/sockpfaf.m4: Likewise.
64086         * m4/st_dm_mode.m4: Likewise.
64087         * m4/stat-time.m4: Likewise.
64088         * m4/stdbool.m4: Likewise.
64089         * m4/stdint.m4: Likewise.
64090         * m4/stdint_h.m4: Likewise.
64091         * m4/stpcpy.m4: Likewise.
64092         * m4/stpncpy.m4: Likewise.
64093         * m4/strcase.m4: Likewise.
64094         * m4/strchrnul.m4: Likewise.
64095         * m4/strcspn.m4: Likewise.
64096         * m4/strdup.m4: Likewise.
64097         * m4/strftime.m4: Likewise.
64098         * m4/strndup.m4: Likewise.
64099         * m4/strnlen.m4: Likewise.
64100         * m4/strpbrk.m4: Likewise.
64101         * m4/strptime.m4: Likewise.
64102         * m4/strsep.m4: Likewise.
64103         * m4/strtod.m4: Likewise.
64104         * m4/strtoimax.m4: Likewise.
64105         * m4/strtok_r.m4: Likewise.
64106         * m4/strtol.m4: Likewise.
64107         * m4/strtoll.m4: Likewise.
64108         * m4/strtoul.m4: Likewise.
64109         * m4/strtoull.m4: Likewise.
64110         * m4/strtoumax.m4: Likewise.
64111         * m4/strverscmp.m4: Likewise.
64112         * m4/threadlib.m4: Likewise.
64113         * m4/timegm.m4: Likewise.
64114         * m4/tm_gmtoff.m4: Likewise.
64115         * m4/tmpdir.m4: Likewise.
64116         * m4/tmpfile.m4: Likewise.
64117         * m4/tzset.m4: Likewise.
64118         * m4/uintmax_t.m4: Likewise.
64119         * m4/unlinkdir.m4: Likewise.
64120         * m4/unlocked-io.m4: Likewise.
64121         * m4/uptime.m4: Likewise.
64122         * m4/userspec.m4: Likewise.
64123         * m4/utimbuf.m4: Likewise.
64124         * m4/utime.m4: Likewise.
64125         * m4/utimes-null.m4: Likewise.
64126         * m4/utimes.m4: Likewise.
64127         * m4/vararrays.m4: Likewise.
64128         * m4/vasnprintf.m4: Likewise.
64129         * m4/vfprintf-posix.m4: Likewise.
64130         * m4/vprintf-posix.m4: Likewise.
64131         * m4/wait-process.m4: Likewise.
64132         * m4/wchar_t.m4: Likewise.
64133         * m4/wint_t.m4: Likewise.
64134         * m4/write-any-file.m4: Likewise.
64135         * m4/yield.m4: Likewise.
64137 2009-01-13  Bruno Haible  <bruno@clisp.org>
64139         Avoid test-copy-file.sh failures when ACL support insufficient.
64140         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
64141         TESTS_ENVIRONMENT.
64142         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
64143         Reported by Jim Meyering.
64145 2009-01-13  Bruno Haible  <bruno@clisp.org>
64147         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
64148         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
64149         * modules/unistdio/u8-printf-parse (Files): Likewise.
64150         * modules/unistdio/u32-printf-parse (Files): Likewise.
64151         * modules/unistdio/ulc-printf-parse (Files): Likewise.
64153 2009-01-13  Simon Josefsson  <simon@josefsson.org>
64155         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
64156         and m4/inttypes_h.m4 too.
64158 2009-01-12  Eric Blake  <ebb9@byu.net>
64160         tests: IRIX 6.2 cc can't compile -0.0 into .data
64161         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
64162         rather than at compile-time.
64163         * tests/test-floorl.c (minus_zero): Likewise.
64164         * tests/test-frexpl.c (minus_zero): Likewise.
64165         * tests/test-isnan.c (minus_zerol): Likewise.
64166         * tests/test-isnanl.h (minus_zero): Likewise.
64167         * tests/test-ldexpl.c (minus_zero): Likewise.
64168         * tests/test-roundl.c (minus_zero): Likewise.
64169         * tests/test-signbit.c (minus_zerol): Likewise.
64170         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
64171         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
64172         * tests/test-truncl.c (minus_zero): Likewise.
64173         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
64174         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
64175         Reported by Tom G. Christensen and Nelson H. F. Beebe.
64177 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
64179         regex: fix glibc bug 9697
64180         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
64181         handling.
64183 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
64185         regex: fix glibc bug 697
64186         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
64187         being NULL also if there are no backreferences.
64189 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
64191         regex: merge glibc changes
64192         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
64193         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
64194         re_string_skip_chars, re_string_reconstruct): Likewise.
64195         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
64197 2009-01-07  Jim Meyering  <meyering@redhat.com>
64199         poll: filter through cppi
64200         * lib/poll.c: Indent cpp directives to reflect nesting.
64202 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
64204         poll: don't return uninitialized
64205         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
64207 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
64209         avoid compile failure on AIX 6.1
64210         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
64211         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
64213 2009-01-04  Jim Meyering  <meyering@redhat.com>
64215         remove duplicate inclusion of <stdio.h>
64216         * tests/test-fprintf-posix.c: Likewise.
64217         * tests/test-printf-posix.c: Likewise.
64218         * tests/test-snprintf-posix.c: Likewise.
64219         * tests/test-sprintf-posix.c: Likewise.
64220         * tests/test-vasprintf-posix.c: Likewise.
64221         * tests/test-vfprintf-posix.c: Likewise.
64222         * tests/test-vprintf-posix.c: Likewise.
64223         * tests/test-vsnprintf-posix.c: Likewise.
64224         * tests/test-vsprintf-posix.c: Likewise.
64226 2009-01-03  Jim Meyering  <meyering@redhat.com>
64228         gnulib-tool: fix sed-based filtering
64229         * gnulib-tool (func_filter_filelist): Remove extra backslash
64230         in sed_fff_filter definition.
64232 2009-01-02  Jim Meyering  <meyering@redhat.com>
64234         strftime: avoid compilation failure on Solaris 2.6
64235         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
64236         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
64237         Don't #define mbrlen or mbsinit, since now they're guaranteed to
64238         be available.  Reported by Tom G. Christensen.  Details in
64239         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
64241 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64242             Bruno Haible  <bruno@clisp.org>
64244         Speed up gnulib-tool by doing more string processing through shell
64245         built-ins.
64246         * gnulib-tool (fast_func_append): New variable.
64247         (func_remove_prefix, func_remove_suffix): New functions.
64248         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
64249         (func_filter_filelist): New function.
64250         (func_get_dependencies): Use func_remove_suffix instead of sed.
64251         (func_get_automake_snippet): Use func_filter_filelist instead of a
64252         subshell and sed invocation.
64254 2009-01-01  Bruno Haible  <bruno@clisp.org>
64256         Fix a security bug.
64257         * gnulib-tool (func_import, import, update): Don't allow the characters
64258         '"', '$', '`', '\' in macro arguments that become part of commands that
64259         are evaluated.
64261 2009-01-01  Bruno Haible  <bruno@clisp.org>
64263         * gnulib-tool (func_reset_sigpipe): Add more comments.
64265 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64267         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
64268         func_emit_tests_Makefile_am, func_import): Abort loops early if we
64269         already know the answer.
64271 2009-01-01  Jim Meyering  <meyering@redhat.com>
64273         * lib/version-etc.c (version_etc_va): Update copyright year.
64275 2008-12-30  Bruno Haible  <bruno@clisp.org>
64277         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
64278         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
64279         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
64281 2008-12-29  Eric Blake  <ebb9@byu.net>
64283         multiarch: avoid autoconf AC_REQUIRE bug
64284         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
64285         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
64286         2.63 and older.
64287         Reported by Bruno Haible, and analyzed in
64288         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
64290 2008-12-29  Bruno Haible  <bruno@clisp.org>
64292         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
64293         files in subdirectories correctly.
64294         Reported by Ralf Wildenhues.
64296 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64298         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
64299         rather than 'join FILE -', for Solaris join.
64301 2008-12-29  Bruno Haible  <bruno@clisp.org>
64303         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
64304         quoting.
64305         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64306         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
64307         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
64308         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
64309         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64310         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
64311         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64312         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64313         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64314         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64315         * m4/nls.m4 (AM_NLS): Likewise.
64316         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
64317         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64318         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64319         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64320         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64321         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64322         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
64323         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64324         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64325         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64326         * m4/xsize.m4 (gl_XSIZE): Likewise.
64327         Suggested by Jim Meyering.
64329 2008-11-17  Bruce Korb  <bkorb@gnu.org>
64331         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
64332         * lib/parse-duration.c: use a switch instead of cascading if's.
64334 2008-12-29  Eric Blake  <ebb9@byu.net>
64336         wchar.h: supply WEOF on Irix 5.3
64337         * lib/wchar.in.h (wint_t): Also supply WEOF.
64338         * lib/wctype.in.h (wint_t): Likewise.
64339         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
64340         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
64341         Reported by Tom G. Christensen.
64343 2008-12-26  Bruno Haible  <bruno@clisp.org>
64345         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
64346         i486, i586, i686.
64348 2008-12-26  Bruno Haible  <bruno@clisp.org>
64350         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
64352 2008-12-26  Bruno Haible  <bruno@clisp.org>
64354         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
64355         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
64356         not __STDC_CONSTANT_MACROS.
64357         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
64359 2008-12-25  Bruno Haible  <bruno@clisp.org>
64361         Add support for universal builds to vasnprintf.
64362         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
64363         universal builds, guess no.
64364         * modules/vasnprintf-posix (Depends-on): Add multiarch.
64365         * modules/vasprintf-posix (Depends-on): Likewise.
64366         * modules/fprintf-posix (Depends-on): Likewise.
64367         * modules/vfprintf-posix (Depends-on): Likewise.
64368         * modules/snprintf-posix (Depends-on): Likewise.
64369         * modules/vsnprintf-posix (Depends-on): Likewise.
64370         * modules/sprintf-posix (Depends-on): Likewise.
64371         * modules/vsprintf-posix (Depends-on): Likewise.
64372         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64374         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64375         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64377         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64378         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64380         Add support for universal builds to <inttypes.h>.
64381         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
64382         _SCNu64_PREFIX): In Apple
64383         universal builds, define directly, using _LP64.
64384         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
64385         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
64386         * modules/inttypes (Depends-on): Add multiarch.
64387         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
64389         Add support for universal builds to <stdint.h>.
64390         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
64391         universal builds, define directly, using _LP64.
64392         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
64393         Apple universal builds, don't test for the size and suffix of ptrdiff_t
64394         and size_t.
64395         * modules/stdint (Depends-on): Add multiarch.
64396         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
64398         New module 'multiarch'.
64399         * modules/multiarch: New file.
64400         * m4/multiarch.m4: New file.
64402 2008-12-25  Bruno Haible  <bruno@clisp.org>
64404         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
64406 2008-12-25  Bruno Haible  <bruno@clisp.org>
64408         * modules/btowc (License): Relicense under LGPLv2+.
64409         * modules/mbsinit (License): Likewise.
64410         * modules/mbrtowc (License): Likewise.
64411         * modules/wcrtomb (License): Likewise.
64412         * modules/streq (License): Likewise.
64413         Reported by David Lutterkort <lutter@redhat.com>.
64415 2008-12-23  Bruno Haible  <bruno@clisp.org>
64417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
64419 2008-12-23  Bruno Haible  <bruno@clisp.org>
64421         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
64422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
64423         GETADDRINFO_LIB, not in LIBS.
64424         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
64425         * modules/canon-host (Link): Likewise.
64426         * NEWS: Mention the change.
64427         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
64428         GETADDRINFO_LIB.
64430 2008-12-22  Bruno Haible  <bruno@clisp.org>
64432         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
64433         * doc/posix-functions/iswalpha_l.texi: Likewise.
64434         * doc/posix-functions/iswblank_l.texi: Likewise.
64435         * doc/posix-functions/iswcntrl_l.texi: Likewise.
64436         * doc/posix-functions/iswctype_l.texi: Likewise.
64437         * doc/posix-functions/iswdigit_l.texi: Likewise.
64438         * doc/posix-functions/iswgraph_l.texi: Likewise.
64439         * doc/posix-functions/iswlower_l.texi: Likewise.
64440         * doc/posix-functions/iswprint_l.texi: Likewise.
64441         * doc/posix-functions/iswpunct_l.texi: Likewise.
64442         * doc/posix-functions/iswspace_l.texi: Likewise.
64443         * doc/posix-functions/iswupper_l.texi: Likewise.
64444         * doc/posix-functions/iswxdigit_l.texi: Likewise.
64445         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
64446         * doc/posix-functions/open_wmemstream.texi: Likewise.
64447         * doc/posix-functions/swscanf.texi: Likewise.
64448         * doc/posix-functions/towctrans_l.texi: Likewise.
64449         * doc/posix-functions/towlower.texi: Likewise.
64450         * doc/posix-functions/towlower_l.texi: Likewise.
64451         * doc/posix-functions/towupper.texi: Likewise.
64452         * doc/posix-functions/towupper_l.texi: Likewise.
64453         * doc/posix-functions/vfwprintf.texi: Likewise.
64454         * doc/posix-functions/vfwscanf.texi: Likewise.
64455         * doc/posix-functions/vswscanf.texi: Likewise.
64456         * doc/posix-functions/vwprintf.texi: Likewise.
64457         * doc/posix-functions/vwscanf.texi: Likewise.
64458         * doc/posix-functions/wcpcpy.texi: Likewise.
64459         * doc/posix-functions/wcpncpy.texi: Likewise.
64460         * doc/posix-functions/wcscasecmp.texi: Likewise.
64461         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
64462         * doc/posix-functions/wcscoll_l.texi: Likewise.
64463         * doc/posix-functions/wcsdup.texi: Likewise.
64464         * doc/posix-functions/wcsncasecmp.texi: Likewise.
64465         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
64466         * doc/posix-functions/wcsnlen.texi: Likewise.
64467         * doc/posix-functions/wcsnrtombs.texi: Likewise.
64468         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
64469         * doc/posix-functions/wctrans_l.texi: Likewise.
64470         * doc/posix-functions/wctype_l.texi: Likewise.
64471         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
64472         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
64473         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
64474         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
64475         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
64476         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
64477         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
64478         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
64479         * doc/glibc-functions/wcschrnul.texi: Likewise.
64480         * doc/glibc-functions/wcsftime_l.texi: Likewise.
64481         * doc/glibc-functions/wcstod_l.texi: Likewise.
64482         * doc/glibc-functions/wcstof_l.texi: Likewise.
64483         * doc/glibc-functions/wcstol_l.texi: Likewise.
64484         * doc/glibc-functions/wcstold_l.texi: Likewise.
64485         * doc/glibc-functions/wcstoll_l.texi: Likewise.
64486         * doc/glibc-functions/wcstoq.texi: Likewise.
64487         * doc/glibc-functions/wcstoul_l.texi: Likewise.
64488         * doc/glibc-functions/wcstoull_l.texi: Likewise.
64489         * doc/glibc-functions/wcstouq.texi: Likewise.
64490         * doc/glibc-functions/wmempcpy.texi: Likewise.
64492 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
64493             Eric Blake  <ebb9@byu.net>
64494             Paolo Bonzini  <bonzini@gnu.org>
64495             Bruno Haible  <bruno@clisp.org>
64497         Make c-stack work on Haiku.
64498         * lib/c-stack.c (SA_ONSTACK): Define fallback.
64499         (c_stack_action): Use SA_ONSTACK flag.
64501 2008-12-22  Bruno Haible  <bruno@clisp.org>
64503         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
64505 2008-12-22  Bruno Haible  <bruno@clisp.org>
64507         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
64508         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
64509         being overridden.
64510         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
64511         New macros.
64512         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
64513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
64514         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
64515         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
64517 2008-12-22  Bruno Haible  <bruno@clisp.org>
64519         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
64520         from test code.
64522 2008-12-22  Eric Blake  <ebb9@byu.net>
64524         Avoid gcc warnings on cygwin.
64525         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
64526         Avoid unused variable.
64527         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
64528         Likewise.
64530 2008-12-22  Bruno Haible  <bruno@clisp.org>
64532         Remove HAVE_MBRTOWC conditionals.
64533         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
64534         (mbscasecmp): Assume mbrtowc function.
64535         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
64536         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
64537         * lib/mbschr.c: Include mbuiter.h unconditionally.
64538         (mbschr): Assume mbrtowc function.
64539         * lib/mbscspn.c: Include mbuiter.h unconditionally.
64540         (mbscspn): Assume mbrtowc function.
64541         * lib/mbslen.c: Include mbuiter.h unconditionally.
64542         (mbslen): Assume mbrtowc function.
64543         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
64544         (mbsncasecmp): Assume mbrtowc function.
64545         * lib/mbsnlen.c: Include mbiter.h unconditionally.
64546         (mbsnlen): Assume mbrtowc function.
64547         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
64548         (mbspbrk): Assume mbrtowc function.
64549         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
64550         (mbspcasecmp): Assume mbrtowc function.
64551         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
64552         (mbsrchr): Assume mbrtowc function.
64553         * lib/mbssep.c: Include mbuiter.h unconditionally.
64554         (mbssep): Assume mbrtowc function.
64555         * lib/mbsspn.c: Include mbuiter.h unconditionally.
64556         (mbsspn): Assume mbrtowc function.
64557         * lib/mbsstr.c: Include mbuiter.h unconditionally.
64558         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
64559         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
64560         (mbstok_r): Assume mbrtowc function.
64561         * lib/propername.c: Include mbuiter.h unconditionally.
64562         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
64563         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
64564         (trim2): Assume mbrtowc function.
64565         * lib/mbswidth.c (mbsinit): Remove fallback definition.
64566         (mbsnwidth): Assume mbrtowc function.
64567         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
64568         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
64569         fallback definitions.
64570         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
64572 2008-12-22  Bruno Haible  <bruno@clisp.org>
64574         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
64576 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
64578         * modules/regex: Request emulations for the mb*/wc* functions we need.
64579         * m4/regex.m4: Don't look for those functions here.
64580         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
64582 2008-12-22  Bruno Haible  <bruno@clisp.org>
64584         * modules/fnmatch (Depends-on): Remove duplicated dependency.
64586 2008-12-21  Bruno Haible  <bruno@clisp.org>
64588         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
64589         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
64590         (Include): Remove conditionalization.
64591         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
64592         (Include): Remove conditionalization.
64593         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
64594         (Include): Remove conditionalization.
64595         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
64596         * m4/mbfile.m4 (gl_MBFILE): Likewise.
64597         * NEWS: Mention the change.
64598         Reported by Alan Hourihane <alanh@fairlite.co.uk>
64599         via Sergey Poznyakoff <gray@gnu.org.ua>.
64601 2008-12-21  Bruno Haible  <bruno@clisp.org>
64603         * MODULES.html.sh (Extended multibyte and wide character utilities
64604         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
64605         wcrtomb, wcsrtombs.
64606         (Support for systems lacking POSIX:2008): Add accept, bind, close,
64607         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
64608         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
64609         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
64611 2008-12-21  Bruno Haible  <bruno@clisp.org>
64613         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
64615 2008-12-21  Bruno Haible  <bruno@clisp.org>
64617         * modules/wcsnrtombs-tests: New file.
64618         * tests/test-wcsnrtombs1.sh: New file.
64619         * tests/test-wcsnrtombs2.sh: New file.
64620         * tests/test-wcsnrtombs3.sh: New file.
64621         * tests/test-wcsnrtombs4.sh: New file.
64622         * tests/test-wcsnrtombs.c: New file.
64624         New module 'wcsnrtombs'.
64625         * lib/wchar.in.h (wcsnrtombs): New declaration.
64626         * lib/wcsnrtombs.c: New file.
64627         * lib/wcsrtombs-state.c: New file.
64628         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
64629         (internal_state): Remove variable.
64630         * m4/wcsnrtombs.m4: New file.
64631         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
64632         compilation units.
64633         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
64634         HAVE_WCSNRTOMBS.
64635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
64636         HAVE_WCSNRTOMBS.
64637         * modules/wcsnrtombs: New file.
64638         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
64639         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
64641 2008-12-21  Bruno Haible  <bruno@clisp.org>
64643         * modules/wcsrtombs-tests: New file.
64644         * tests/test-wcsrtombs1.sh: New file.
64645         * tests/test-wcsrtombs2.sh: New file.
64646         * tests/test-wcsrtombs3.sh: New file.
64647         * tests/test-wcsrtombs4.sh: New file.
64648         * tests/test-wcsrtombs.c: New file.
64650         New module 'wcsrtombs'.
64651         * lib/wchar.in.h (wcsrtombs): New declaration.
64652         * lib/wcsrtombs.c: New file.
64653         * m4/wcsrtombs.m4: New file.
64654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
64655         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
64656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
64657         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
64658         * modules/wcsrtombs: New file.
64659         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
64660         bugs.
64662 2008-12-21  Bruno Haible  <bruno@clisp.org>
64664         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
64665         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
64666         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
64667         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
64668         if not correct.
64669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
64670         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
64671         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
64672         m4/locale-zh.m4, m4/codeset.m4.
64673         * doc/posix-functions/wcrtomb.texi: Document the bug.
64675 2008-12-21  Bruno Haible  <bruno@clisp.org>
64677         Work around a btowc() bug on IRIX 6.5.
64678         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
64679         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
64680         REPLACE_WTOBC if not.
64681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
64682         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
64683         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
64685 2008-12-21  Bruno Haible  <bruno@clisp.org>
64687         * modules/wcrtomb-tests: New file.
64688         * tests/test-wcrtomb.sh: New file.
64689         * tests/test-wcrtomb.c: New file.
64691         New module 'wcrtomb'.
64692         * lib/wchar.in.h (wcrtomb): New declaration.
64693         * lib/wcrtomb.c: New file.
64694         * m4/wcrtomb.m4: New file.
64695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
64696         HAVE_WCRTOMB.
64697         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
64698         HAVE_WCRTOMB.
64699         * modules/wcrtomb: New file.
64700         * doc/posix-functions/wcrtomb.texi: Mention the new module.
64702 2008-12-21  Bruno Haible  <bruno@clisp.org>
64704         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
64705         * modules/mbsrtowcs (Files): Likewise.
64706         * modules/wctob (Files): Likewise.
64707         * modules/c-strcase-tests (Files): Likewise.
64708         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
64709         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
64710         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
64711         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
64712         * modules/vasnprintf-posix-tests (Files): Likewise.
64714 2008-12-21  William Pursell  <bill.pursell@gmail.com>
64716         gitlog-to-changelog: pass all command-line arguments to git-log
64717         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
64718         it is sometimes convenient to filter the commits in various ways.
64719         gitlog-to-changelog only allows --since to specify a start date,
64720         but git-log itself supports many other filtering mechanisms.
64721         At the moment, I want to filter by branch name.  Rather than
64722         adding a --branch option to gitlog-to-changelog, it seems more
64723         flexible to simply pass all options directly to git-log and let
64724         git do the work.  Notice that this effectively makes --since a
64725         redundant option for gitlog-to-changelog, but removing it would
64726         require current usage to change since calls would then require
64727         an additional '--'.
64729 2008-12-21  Bruno Haible  <bruno@clisp.org>
64731         * modules/mbsnrtowcs-tests: New file.
64732         * tests/test-mbsnrtowcs1.sh: New file.
64733         * tests/test-mbsnrtowcs2.sh: New file.
64734         * tests/test-mbsnrtowcs3.sh: New file.
64735         * tests/test-mbsnrtowcs4.sh: New file.
64736         * tests/test-mbsnrtowcs.c: New file.
64738         New module 'mbsnrtowcs'.
64739         * lib/wchar.in.h (mbsnrtowcs): New declaration.
64740         * lib/mbsnrtowcs.c: New file.
64741         * lib/mbsrtowcs-state.c: New file.
64742         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
64743         (internal_state): Remove variable.
64744         * m4/mbsnrtowcs.m4: New file.
64745         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
64746         compilation units.
64747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
64748         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
64749         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
64750         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
64751         * modules/mbsnrtowcs: New file.
64752         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
64753         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
64754         portability problem.
64756 2008-12-21  Bruno Haible  <bruno@clisp.org>
64758         Work around mbsrtowcs bug.
64759         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
64760         (gl_FUNC_MBSRTOWCS): Invoke it.
64761         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
64762         m4/locale-zh.m4.
64763         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
64765 2008-12-21  Bruno Haible  <bruno@clisp.org>
64767         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
64769 2008-12-21  Bruno Haible  <bruno@clisp.org>
64771         Update doc for AIX.
64772         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
64773         16-bit wchar_t type.
64774         * doc/posix-functions/btowc.texi: Likewise.
64775         * doc/posix-functions/fgetwc.texi: Likewise.
64776         * doc/posix-functions/fgetws.texi: Likewise.
64777         * doc/posix-functions/fputwc.texi: Likewise.
64778         * doc/posix-functions/fputws.texi: Likewise.
64779         * doc/posix-functions/fwide.texi: Likewise.
64780         * doc/posix-functions/fwprintf.texi: Likewise.
64781         * doc/posix-functions/fwscanf.texi: Likewise.
64782         * doc/posix-functions/getwchar.texi: Likewise.
64783         * doc/posix-functions/getwc.texi: Likewise.
64784         * doc/posix-functions/iswalnum.texi: Likewise.
64785         * doc/posix-functions/iswalpha.texi: Likewise.
64786         * doc/posix-functions/iswblank.texi: Likewise.
64787         * doc/posix-functions/iswcntrl.texi: Likewise.
64788         * doc/posix-functions/iswctype.texi: Likewise.
64789         * doc/posix-functions/iswdigit.texi: Likewise.
64790         * doc/posix-functions/iswgraph.texi: Likewise.
64791         * doc/posix-functions/iswlower.texi: Likewise.
64792         * doc/posix-functions/iswprint.texi: Likewise.
64793         * doc/posix-functions/iswpunct.texi: Likewise.
64794         * doc/posix-functions/iswspace.texi: Likewise.
64795         * doc/posix-functions/iswupper.texi: Likewise.
64796         * doc/posix-functions/iswxdigit.texi: Likewise.
64797         * doc/posix-functions/mbrtowc.texi: Likewise.
64798         * doc/posix-functions/mbsrtowcs.texi: Likewise.
64799         * doc/posix-functions/mbstowcs.texi: Likewise.
64800         * doc/posix-functions/mbtowc.texi: Likewise.
64801         * doc/posix-functions/putwchar.texi: Likewise.
64802         * doc/posix-functions/putwc.texi: Likewise.
64803         * doc/posix-functions/swprintf.texi: Likewise.
64804         * doc/posix-functions/tolower.texi: Likewise.
64805         * doc/posix-functions/toupper.texi: Likewise.
64806         * doc/posix-functions/towctrans.texi: Likewise.
64807         * doc/posix-functions/ungetwc.texi: Likewise.
64808         * doc/posix-functions/vswprintf.texi: Likewise.
64809         * doc/posix-functions/wcrtomb.texi: Likewise.
64810         * doc/posix-functions/wcscat.texi: Likewise.
64811         * doc/posix-functions/wcschr.texi: Likewise.
64812         * doc/posix-functions/wcscmp.texi: Likewise.
64813         * doc/posix-functions/wcscoll.texi: Likewise.
64814         * doc/posix-functions/wcscpy.texi: Likewise.
64815         * doc/posix-functions/wcscspn.texi: Likewise.
64816         * doc/posix-functions/wcsftime.texi: Likewise.
64817         * doc/posix-functions/wcslen.texi: Likewise.
64818         * doc/posix-functions/wcsncat.texi: Likewise.
64819         * doc/posix-functions/wcsncmp.texi: Likewise.
64820         * doc/posix-functions/wcsncpy.texi: Likewise.
64821         * doc/posix-functions/wcspbrk.texi: Likewise.
64822         * doc/posix-functions/wcsrchr.texi: Likewise.
64823         * doc/posix-functions/wcsrtombs.texi: Likewise.
64824         * doc/posix-functions/wcsspn.texi: Likewise.
64825         * doc/posix-functions/wcsstr.texi: Likewise.
64826         * doc/posix-functions/wcstod.texi: Likewise.
64827         * doc/posix-functions/wcstof.texi: Likewise.
64828         * doc/posix-functions/wcstoimax.texi: Likewise.
64829         * doc/posix-functions/wcstok.texi: Likewise.
64830         * doc/posix-functions/wcstold.texi: Likewise.
64831         * doc/posix-functions/wcstoll.texi: Likewise.
64832         * doc/posix-functions/wcstol.texi: Likewise.
64833         * doc/posix-functions/wcstombs.texi: Likewise.
64834         * doc/posix-functions/wcstoull.texi: Likewise.
64835         * doc/posix-functions/wcstoul.texi: Likewise.
64836         * doc/posix-functions/wcstoumax.texi: Likewise.
64837         * doc/posix-functions/wcswidth.texi: Likewise.
64838         * doc/posix-functions/wcsxfrm.texi: Likewise.
64839         * doc/posix-functions/wctob.texi: Likewise.
64840         * doc/posix-functions/wctomb.texi: Likewise.
64841         * doc/posix-functions/wctrans.texi: Likewise.
64842         * doc/posix-functions/wctype.texi: Likewise.
64843         * doc/posix-functions/wcwidth.texi: Likewise.
64844         * doc/posix-functions/wmemchr.texi: Likewise.
64845         * doc/posix-functions/wmemcmp.texi: Likewise.
64846         * doc/posix-functions/wmemcpy.texi: Likewise.
64847         * doc/posix-functions/wmemmove.texi: Likewise.
64848         * doc/posix-functions/wmemset.texi: Likewise.
64849         * doc/posix-functions/wprintf.texi: Likewise.
64850         * doc/posix-functions/wscanf.texi: Likewise.
64852 2008-12-21  Bruno Haible  <bruno@clisp.org>
64854         Update doc for HP-UX 11.11.
64855         * doc/posix-functions/btowc.texi: Clarify that the function is missing
64856         in HP-UX version 11.00, not in all versions of HP-UX 11.
64857         * doc/posix-functions/fwide.texi: Likewise.
64858         * doc/posix-functions/fwprintf.texi: Likewise.
64859         * doc/posix-functions/fwscanf.texi: Likewise.
64860         * doc/posix-functions/inet_ntop.texi: Likewise.
64861         * doc/posix-functions/inet_pton.texi: Likewise.
64862         * doc/posix-functions/mbrlen.texi: Likewise.
64863         * doc/posix-functions/mbrtowc.texi: Likewise.
64864         * doc/posix-functions/mbsinit.texi: Likewise.
64865         * doc/posix-functions/mbsrtowcs.texi: Likewise.
64866         * doc/posix-functions/swprintf.texi: Likewise.
64867         * doc/posix-functions/swscanf.texi: Likewise.
64868         * doc/posix-functions/towctrans.texi: Likewise.
64869         * doc/posix-functions/vfwprintf.texi: Likewise.
64870         * doc/posix-functions/vswprintf.texi: Likewise.
64871         * doc/posix-functions/vwprintf.texi: Likewise.
64872         * doc/posix-functions/wcrtomb.texi: Likewise.
64873         * doc/posix-functions/wcsrtombs.texi: Likewise.
64874         * doc/posix-functions/wcsstr.texi: Likewise.
64875         * doc/posix-functions/wctob.texi: Likewise.
64876         * doc/posix-functions/wctrans.texi: Likewise.
64877         * doc/posix-functions/wmemchr.texi: Likewise.
64878         * doc/posix-functions/wmemcmp.texi: Likewise.
64879         * doc/posix-functions/wmemcpy.texi: Likewise.
64880         * doc/posix-functions/wmemmove.texi: Likewise.
64881         * doc/posix-functions/wmemset.texi: Likewise.
64882         * doc/posix-functions/wprintf.texi: Likewise.
64883         * doc/posix-functions/wscanf.texi: Likewise.
64885 2008-12-21  Bruno Haible  <bruno@clisp.org>
64887         Work around a portability problem.
64888         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
64889         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
64891 2008-12-20  Bruno Haible  <bruno@clisp.org>
64893         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
64894         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
64895         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
64896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
64897         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
64899         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
64900         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
64901         set.
64902         (GNULIB_defined_mbstate_t): New macro.
64903         (mbsinit): Redefine if REPLACE_MBSINIT is set.
64904         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
64905         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
64906         reuses the system's mbrtowc function but works around the bugs.
64907         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
64908         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
64909         macros.
64910         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
64911         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
64912         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
64913         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
64914         REPLACE_MBSINIT if mbsinit needs to be overridden.
64915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
64916         REPLACE_MBSINIT, REPLACE_MBRTOWC.
64917         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
64918         REPLACE_MBSINIT, REPLACE_MBRTOWC.
64919         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
64920         m4/locale-zh.m4.
64921         (Depends): Add mbsinit.
64922         * modules/mbsinit (Depends): Add mbrtowc.
64923         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
64925 2008-12-20  Bruno Haible  <bruno@clisp.org>
64927         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
64928         so that there are no conversion errors on AIX.
64929         * tests/test-mbsrtowcs.c (main): LIkewise.
64931 2008-12-20  Bruno Haible  <bruno@clisp.org>
64933         Work around wctob bug on Solaris <= 9.
64934         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
64935         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
64936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
64937         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
64938         * modules/wctob (Files): Add m4/locale-fr.m4.
64939         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
64941 2008-12-20  Bruno Haible  <bruno@clisp.org>
64943         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
64944         /dev/null.
64945         * tests/test-select-in.sh: Likewise.
64946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64948 2008-12-20  Bruno Haible  <bruno@clisp.org>
64950         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
64951         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
64952         Cygwin 1.5.x.
64954 2008-12-20  Bruno Haible  <bruno@clisp.org>
64956         Ensure mbstate_t is defined on HP-UX 11.11.
64957         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
64958         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
64959         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
64960         AC_USE_SYSTEM_EXTENSIONS.
64961         * modules/fnmatch (Depends-on): Add extensions.
64962         * modules/mbrlen (Depends-on): Likewise.
64963         * modules/mbrtowc (Depends-on): Likewise.
64964         * modules/mbsinit (Depends-on): Likewise.
64965         * modules/mbsrtowcs (Depends-on): Likewise.
64966         * modules/mbswidth (Depends-on): Likewise.
64967         * modules/quotearg (Depends-on): Likewise.
64968         * modules/strftime (Depends-on): Likewise.
64970 2008-12-20  Bruno Haible  <bruno@clisp.org>
64972         Ensure wctob is declared on IRIX 6.5.
64973         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
64974         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
64975         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
64976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
64977         of HAVE_WCTOB.
64978         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
64979         HAVE_WCTOB.
64980         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
64982 2008-12-19  Bruno Haible  <bruno@clisp.org>
64984         * modules/mbsrtowcs-tests: New file.
64985         * tests/test-mbsrtowcs1.sh: New file.
64986         * tests/test-mbsrtowcs2.sh: New file.
64987         * tests/test-mbsrtowcs3.sh: New file.
64988         * tests/test-mbsrtowcs4.sh: New file.
64989         * tests/test-mbsrtowcs.c: New file.
64991         New module 'mbsrtowcs'.
64992         * lib/wchar.in.h (mbsrtowcs): New declaration.
64993         * lib/mbsrtowcs.c: New file.
64994         * m4/mbsrtowcs.m4: New file.
64995         * modules/mbsrtowcs: New file.
64996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
64997         HAVE_MBSRTOWCS.
64998         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
64999         HAVE_MBSRTOWCS.
65000         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
65002 2008-12-19  Bruno Haible  <bruno@clisp.org>
65004         New module 'mbrlen'.
65005         * lib/wchar.in.h (mbrlen): New declaration.
65006         * lib/mbrlen.c: New file.
65007         * m4/mbrlen.m4: New file.
65008         * modules/mbrlen: New file.
65009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
65010         HAVE_MBRLEN.
65011         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
65012         HAVE_MBRLEN.
65013         * doc/posix-functions/mbrlen.texi: Document the new module.
65015 2008-12-19  Bruno Haible  <bruno@clisp.org>
65017         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
65018         * modules/mbrtowc (Depends-on): Add verify.
65019         Suggested by Paul Eggert.
65021 2008-12-18  Bruno Haible  <bruno@clisp.org>
65023         * modules/mbsinit-tests: New file.
65024         * tests/test-mbsinit.sh: New file.
65025         * tests/test-mbsinit.c: New file.
65027 2008-12-18  Bruno Haible  <bruno@clisp.org>
65029         * modules/mbrtowc-tests: New file.
65030         * tests/test-mbrtowc1.sh: New file.
65031         * tests/test-mbrtowc2.sh: New file.
65032         * tests/test-mbrtowc3.sh: New file.
65033         * tests/test-mbrtowc4.sh: New file.
65034         * tests/test-mbrtowc.c: New file.
65036         New module 'mbrtowc'.
65037         * lib/wchar.in.h (mbstate_t): Override when the system does not have
65038         mbsinit and mbrtowc.
65039         (mbrtowc): New declaration.
65040         * lib/mbrtowc.c: New file.
65041         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
65042         * modules/mbrtowc: New file.
65043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
65044         HAVE_MBRTOWC.
65045         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
65046         HAVE_MBRTOWC.
65047         * doc/posix-functions/mbrtowc.texi: Document the new module.
65049 2008-12-18  Bruno Haible  <bruno@clisp.org>
65051         New module 'wctob'.
65052         * lib/wchar.in.h (wctob): New declaration.
65053         * lib/wctob.c: New file.
65054         * m4/wctob.m4: New file.
65055         * modules/wctob: New file.
65056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
65057         HAVE_WCTOB.
65058         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
65059         * doc/posix-functions/wctob.texi: Document the new module.
65061 2008-12-18  Bruno Haible  <bruno@clisp.org>
65063         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
65064         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
65066 2008-12-18  Simon Josefsson  <simon@josefsson.org>
65068         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
65069         G. Christensen" <tgc@jupiterrise.com>.
65071         * lib/flock.c: Need to include errno.h.  Reported by "Tom
65072         G. Christensen" <tgc@jupiterrise.com>.
65074         * lib/flock.c: Need to include string.h.  Reported by "Tom
65075         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
65076         <ebb9@byu.net>.
65078 2008-12-18  Bruno Haible  <bruno@clisp.org>
65080         * m4/locale-ja.m4: New file, from GNU gettext.
65082 2008-12-17  Bruno Haible  <bruno@clisp.org>
65084         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
65085         Suggested by Eric Blake.
65087 2008-12-17  Bruno Haible  <bruno@clisp.org>
65089         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
65091 2008-12-17  Bruno Haible  <bruno@clisp.org>
65093         * lib/mbsinit.c: Include verify.h. Verify an assumption.
65094         * modules/mbsinit (Depends-on): Add verify.
65095         Suggested by Paul Eggert.
65097 2008-12-17  Bruno Haible  <bruno@clisp.org>
65099         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
65100         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
65101         gl_FUNC_MBRTOWC.
65102         * m4/mbiter.m4 (gl_MBITER): LIkewise.
65103         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
65104         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
65105         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
65106         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
65107         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
65108         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
65109         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
65110         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
65111         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
65112         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
65113         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
65114         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
65115         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
65116         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
65117         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65118         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
65119         * modules/trim (configure.ac): Likewise.
65121 2008-12-17  Bruno Haible  <bruno@clisp.org>
65123         * modules/btowc-tests: New file.
65124         * tests/test-btowc1.sh: New file.
65125         * tests/test-btowc2.sh: New file.
65126         * tests/test-btowc.c: New file.
65128         New module 'btowc'.
65129         * lib/wchar.in.h (btowc): New declaration.
65130         * lib/btowc.c: New file.
65131         * m4/btowc.m4: New file.
65132         * modules/btowc: New file.
65133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
65134         HAVE_BTOWC.
65135         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
65136         * doc/posix-functions/btowc.texi: Document the new module.
65138 2008-12-17  Bruno Haible  <bruno@clisp.org>
65140         New module 'mbsinit'.
65141         * lib/wchar.in.h (mbsinit): New declaration.
65142         * lib/mbsinit.c: New file.
65143         * m4/mbsinit.m4: New file.
65144         * modules/mbsinit: New file.
65145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
65146         HAVE_MBSINIT.
65147         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
65148         HAVE_MBSINIT.
65149         * doc/posix-functions/mbsinit.texi: Document the new module.
65151 2008-12-16  Bruno Haible  <bruno@clisp.org>
65153         * lib/unistd.in.h: Add comment.
65154         * tests/test-environ.c: Don't include <stdlib.h>.
65156 2008-12-16  Bruno Haible  <bruno@clisp.org>
65158         * lib/parse-duration.h (parse_duration): Document return value
65159         convention.
65160         * lib/parse-duration.c: Include specification header first. Add
65161         comments.
65162         (_): Remove macro.
65163         (parse_year_month_day, parse_hour_minute_second): Move side effects
65164         outside of strchr call.
65165         (parse_non_iso8601): Move side effects outside of isspace call.
65166         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
65167         call.
65169 2008-12-16  Bruno Haible  <bruno@clisp.org>
65171         * tests/test-parse-duration.sh: Produce no output when the test
65172         succeeds.
65174 2008-12-16  Bruno Haible  <bruno@clisp.org>
65176         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
65177         expressions.
65179 2008-12-15  Bruno Haible  <bruno@clisp.org>
65181         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
65182         * doc/glibc-functions/flistxattr.texi: Likewise.
65183         * doc/glibc-functions/fopencookie.texi: Likewise.
65184         * doc/glibc-functions/fremovexattr.texi: Likewise.
65185         * doc/glibc-functions/fsetxattr.texi: Likewise.
65186         * doc/glibc-functions/getxattr.texi: Likewise.
65187         * doc/glibc-functions/lgetxattr.texi: Likewise.
65188         * doc/glibc-functions/listxattr.texi: Likewise.
65189         * doc/glibc-functions/llistxattr.texi: Likewise.
65190         * doc/glibc-functions/lremovexattr.texi: Likewise.
65191         * doc/glibc-functions/lsetxattr.texi: Likewise.
65192         * doc/glibc-functions/removexattr.texi: Likewise.
65193         * doc/glibc-functions/setxattr.texi: Likewise.
65194         * doc/posix-functions/open_memstream.texi: Likewise.
65196 2008-12-15  Eric Blake  <ebb9@byu.net>
65198         Update doc for cygwin 1.7.
65199         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
65200         functions.
65201         * doc/posix-functions/fchmodat.texi: Likewise.
65202         * doc/posix-functions/fchownat.texi: Likewise.
65203         * doc/posix-functions/fdopendir.texi: Likewise.
65204         * doc/posix-functions/fmemopen.texi: Likewise.
65205         * doc/posix-functions/freeaddrinfo.texi: Likewise.
65206         * doc/posix-functions/fstatat.texi: Likewise.
65207         * doc/posix-functions/futimens.texi: Likewise.
65208         * doc/posix-functions/gai_strerror.texi: Likewise.
65209         * doc/posix-functions/getaddrinfo.texi: Likewise.
65210         * doc/posix-functions/getnameinfo.texi: Likewise.
65211         * doc/posix-functions/if_freenameindex.texi: Likewise.
65212         * doc/posix-functions/if_indextoname.texi: Likewise.
65213         * doc/posix-functions/if_nameindex.texi: Likewise.
65214         * doc/posix-functions/if_nametoindex.texi: Likewise.
65215         * doc/posix-functions/insque.texi: Likewise.
65216         * doc/posix-functions/linkat.texi: Likewise.
65217         * doc/posix-functions/llrint.texi: Likewise.
65218         * doc/posix-functions/llrintf.texi: Likewise.
65219         * doc/posix-functions/llrintl.texi: Likewise.
65220         * doc/posix-functions/lockf.texi: Likewise.
65221         * doc/posix-functions/lrintl.texi: Likewise.
65222         * doc/posix-functions/mkdirat.texi: Likewise.
65223         * doc/posix-functions/mkfifoat.texi: Likewise.
65224         * doc/posix-functions/mknodat.texi: Likewise.
65225         * doc/posix-functions/mq_close.texi: Likewise.
65226         * doc/posix-functions/mq_getattr.texi: Likewise.
65227         * doc/posix-functions/mq_notify.texi: Likewise.
65228         * doc/posix-functions/mq_open.texi: Likewise.
65229         * doc/posix-functions/mq_receive.texi: Likewise.
65230         * doc/posix-functions/mq_send.texi: Likewise.
65231         * doc/posix-functions/mq_setattr.texi: Likewise.
65232         * doc/posix-functions/mq_timedreceive.texi: Likewise.
65233         * doc/posix-functions/mq_timedsend.texi: Likewise.
65234         * doc/posix-functions/mq_unlink.texi: Likewise.
65235         * doc/posix-functions/open_memstream.texi: Likewise.
65236         * doc/posix-functions/openat.texi: Likewise.
65237         * doc/posix-functions/posix_fadvise.texi: Likewise.
65238         * doc/posix-functions/posix_fallocate.texi: Likewise.
65239         * doc/posix-functions/posix_madvise.texi: Likewise.
65240         * doc/posix-functions/posix_memalign.texi: Likewise.
65241         * doc/posix-functions/posix_openpt.texi: Likewise.
65242         * doc/posix-functions/readlinkat.texi: Likewise.
65243         * doc/posix-functions/remque.texi: Likewise.
65244         * doc/posix-functions/renameat.texi: Likewise.
65245         * doc/posix-functions/rintl.texi: Likewise.
65246         * doc/posix-functions/sem_unlink.texi: Likewise.
65247         * doc/posix-functions/shm_open.texi: Likewise.
65248         * doc/posix-functions/shm_unlink.texi: Likewise.
65249         * doc/posix-functions/signgam.texi: Likewise.
65250         * doc/posix-functions/sigset.texi: Likewise.
65251         * doc/posix-functions/stpcpy.texi: Likewise.
65252         * doc/posix-functions/stpncpy.texi: Likewise.
65253         * doc/posix-functions/strerror.texi: Likewise.
65254         * doc/posix-functions/strtod.texi: Likewise.
65255         * doc/posix-functions/symlinkat.texi: Likewise.
65256         * doc/posix-functions/unlinkat.texi: Likewise.
65257         * doc/posix-functions/utimensat.texi: Likewise.
65258         * doc/glibc-functions/bindresvport.texi: Likewise.
65259         * doc/glibc-functions/dn_expand.texi: Likewise.
65260         * doc/glibc-functions/exp10.texi: Likewise.
65261         * doc/glibc-functions/exp10f.texi: Likewise.
65262         * doc/glibc-functions/fgetxattr.texi: Likewise.
65263         * doc/glibc-functions/flistxattr.texi: Likewise.
65264         * doc/glibc-functions/fopencookie.texi: Likewise.
65265         * doc/glibc-functions/freeifaddrs.texi: Likewise.
65266         * doc/glibc-functions/fremovexattr.texi: Likewise.
65267         * doc/glibc-functions/fsetxattr.texi: Likewise.
65268         * doc/glibc-functions/getifaddrs.texi: Likewise.
65269         * doc/glibc-functions/getxattr.texi: Likewise.
65270         * doc/glibc-functions/lgetxattr.texi: Likewise.
65271         * doc/glibc-functions/listxattr.texi: Likewise.
65272         * doc/glibc-functions/llistxattr.texi: Likewise.
65273         * doc/glibc-functions/lremovexattr.texi: Likewise.
65274         * doc/glibc-functions/lsetxattr.texi: Likewise.
65275         * doc/glibc-functions/pow10.texi: Likewise.
65276         * doc/glibc-functions/pow10f.texi: Likewise.
65277         * doc/glibc-functions/rcmd_af.texi: Likewise.
65278         * doc/glibc-functions/removexattr.texi: Likewise.
65279         * doc/glibc-functions/res_init.texi: Likewise.
65280         * doc/glibc-functions/res_mkquery.texi: Likewise.
65281         * doc/glibc-functions/res_query.texi: Likewise.
65282         * doc/glibc-functions/res_querydomain.texi: Likewise.
65283         * doc/glibc-functions/res_send.texi: Likewise.
65284         * doc/glibc-functions/rresvport_af.texi: Likewise.
65285         * doc/glibc-functions/setxattr.texi: Likewise.
65286         * doc/glibc-functions/strcasestr.texi: Likewise.
65288 2008-12-15  Bruno Haible  <bruno@clisp.org>
65290         Fix compilation error on OSF/1 4.0.
65291         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
65292         <sys/time.h>, simply delegate to the system header.
65293         Reported by Daniel Richard G. <oss@teragram.com>.
65295 2008-12-15  Bruno Haible  <bruno@clisp.org>
65297         * doc/posix-functions/openat.texi: Mention the 'openat' module.
65298         * doc/posix-functions/fchmodat.texi: Likewise.
65299         * doc/posix-functions/fchownat.texi: Likewise.
65300         * doc/posix-functions/fdopendir.texi: Likewise.
65301         * doc/posix-functions/fstatat.texi: Likewise.
65302         * doc/posix-functions/mkdirat.texi: Likewise.
65303         * doc/posix-functions/unlinkat.texi: Likewise.
65305 2008-12-14  Bruno Haible  <bruno@clisp.org>
65307         Update doc for POSIX:2008.
65308         * doc/posix-functions/faccessat.texi: New file.
65309         * doc/posix-functions/fchmodat.texi: New file.
65310         * doc/posix-functions/fchownat.texi: New file.
65311         * doc/posix-functions/fdopendir.texi: New file.
65312         * doc/posix-functions/fstatat.texi: New file.
65313         * doc/posix-functions/futimens.texi: New file.
65314         * doc/posix-functions/linkat.texi: New file.
65315         * doc/posix-functions/mkdirat.texi: New file.
65316         * doc/posix-functions/mkfifoat.texi: New file.
65317         * doc/posix-functions/mknodat.texi: New file.
65318         * doc/posix-functions/open_wmemstream.texi: New file.
65319         * doc/posix-functions/openat.texi: New file.
65320         * doc/posix-functions/psiginfo.texi: New file.
65321         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
65322         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
65323         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
65324         * doc/posix-functions/readlinkat.texi: New file.
65325         * doc/posix-functions/renameat.texi: New file.
65326         * doc/posix-functions/strerror_l.texi: New file.
65327         * doc/posix-functions/symlinkat.texi: New file.
65328         * doc/posix-functions/unlinkat.texi: New file.
65329         * doc/posix-functions/utimensat.texi: New file.
65330         * doc/gnulib.texi (Function Substitutes): Add these subsections.
65332 2008-12-14  Bruno Haible  <bruno@clisp.org>
65334         Update doc for POSIX:2008.
65335         * doc/posix-functions/alphasort.texi: Renamed from
65336         doc/glibc-functions/alphasort.texi.
65337         * doc/posix-functions/dirfd.texi: Renamed from
65338         doc/glibc-functions/dirfd.texi.
65339         * doc/posix-functions/dprintf.texi: Renamed from
65340         doc/glibc-functions/dprintf.texi.
65341         * doc/posix-functions/duplocale.texi: Renamed from
65342         doc/glibc-functions/duplocale.texi.
65343         * doc/posix-functions/fexecve.texi: Renamed from
65344         doc/glibc-functions/fexecve.texi.
65345         * doc/posix-functions/fmemopen.texi: Renamed from
65346         doc/glibc-functions/fmemopen.texi.
65347         * doc/posix-functions/freelocale.texi: Renamed from
65348         doc/glibc-functions/freelocale.texi.
65349         * doc/posix-functions/getdate_err.texi: Renamed from
65350         doc/glibc-functions/getdate_err.texi.
65351         * doc/posix-functions/isalnum_l.texi: Renamed from
65352         doc/glibc-functions/isalnum_l.texi.
65353         * doc/posix-functions/isalpha_l.texi: Renamed from
65354         doc/glibc-functions/isalpha_l.texi.
65355         * doc/posix-functions/isblank_l.texi: Renamed from
65356         doc/glibc-functions/isblank_l.texi.
65357         * doc/posix-functions/iscntrl_l.texi: Renamed from
65358         doc/glibc-functions/iscntrl_l.texi.
65359         * doc/posix-functions/isdigit_l.texi: Renamed from
65360         doc/glibc-functions/isdigit_l.texi.
65361         * doc/posix-functions/isgraph_l.texi: Renamed from
65362         doc/glibc-functions/isgraph_l.texi.
65363         * doc/posix-functions/islower_l.texi: Renamed from
65364         doc/glibc-functions/islower_l.texi.
65365         * doc/posix-functions/isprint_l.texi: Renamed from
65366         doc/glibc-functions/isprint_l.texi.
65367         * doc/posix-functions/ispunct_l.texi: Renamed from
65368         doc/glibc-functions/ispunct_l.texi.
65369         * doc/posix-functions/isspace_l.texi: Renamed from
65370         doc/glibc-functions/isspace_l.texi.
65371         * doc/posix-functions/isupper_l.texi: Renamed from
65372         doc/glibc-functions/isupper_l.texi.
65373         * doc/posix-functions/iswalnum_l.texi: Renamed from
65374         doc/glibc-functions/iswalnum_l.texi.
65375         * doc/posix-functions/iswalpha_l.texi: Renamed from
65376         doc/glibc-functions/iswalpha_l.texi.
65377         * doc/posix-functions/iswblank_l.texi: Renamed from
65378         doc/glibc-functions/iswblank_l.texi.
65379         * doc/posix-functions/iswcntrl_l.texi: Renamed from
65380         doc/glibc-functions/iswcntrl_l.texi.
65381         * doc/posix-functions/iswctype_l.texi: Renamed from
65382         doc/glibc-functions/iswctype_l.texi.
65383         * doc/posix-functions/iswdigit_l.texi: Renamed from
65384         doc/glibc-functions/iswdigit_l.texi.
65385         * doc/posix-functions/iswgraph_l.texi: Renamed from
65386         doc/glibc-functions/iswgraph_l.texi.
65387         * doc/posix-functions/iswlower_l.texi: Renamed from
65388         doc/glibc-functions/iswlower_l.texi.
65389         * doc/posix-functions/iswprint_l.texi: Renamed from
65390         doc/glibc-functions/iswprint_l.texi.
65391         * doc/posix-functions/iswpunct_l.texi: Renamed from
65392         doc/glibc-functions/iswpunct_l.texi.
65393         * doc/posix-functions/iswspace_l.texi: Renamed from
65394         doc/glibc-functions/iswspace_l.texi.
65395         * doc/posix-functions/iswupper_l.texi: Renamed from
65396         doc/glibc-functions/iswupper_l.texi.
65397         * doc/posix-functions/iswxdigit_l.texi: Renamed from
65398         doc/glibc-functions/iswxdigit_l.texi.
65399         * doc/posix-functions/isxdigit_l.texi: Renamed from
65400         doc/glibc-functions/isxdigit_l.texi.
65401         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
65402         doc/glibc-functions/mbsnrtowcs.texi.
65403         * doc/posix-functions/mkdtemp.texi: Renamed from
65404         doc/glibc-functions/mkdtemp.texi.
65405         * doc/posix-functions/newlocale.texi: Renamed from
65406         doc/glibc-functions/newlocale.texi.
65407         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
65408         doc/glibc-functions/nl_langinfo_l.texi.
65409         * doc/posix-functions/open_memstream.texi: Renamed from
65410         doc/glibc-functions/open_memstream.texi.
65411         * doc/posix-functions/opterr.texi: Renamed from
65412         doc/glibc-functions/opterr.texi.
65413         * doc/posix-functions/optind.texi: Renamed from
65414         doc/glibc-functions/optind.texi.
65415         * doc/posix-functions/optopt.texi: Renamed from
65416         doc/glibc-functions/optopt.texi.
65417         * doc/posix-functions/psignal.texi: Renamed from
65418         doc/glibc-functions/psignal.texi.
65419         * doc/posix-functions/scandir.texi: Renamed from
65420         doc/glibc-functions/scandir.texi.
65421         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
65422         doc/glibc-functions/sched_get_priority_min.texi.
65423         * doc/posix-functions/signgam.texi: Renamed from
65424         doc/glibc-functions/signgam.texi.
65425         * doc/posix-functions/stpcpy.texi: Renamed from
65426         doc/glibc-functions/stpcpy.texi.
65427         * doc/posix-functions/stpncpy.texi: Renamed from
65428         doc/glibc-functions/stpncpy.texi.
65429         * doc/posix-functions/strcasecmp_l.texi: Renamed from
65430         doc/glibc-functions/strcasecmp_l.texi.
65431         * doc/posix-functions/strcoll_l.texi: Renamed from
65432         doc/glibc-functions/strcoll_l.texi.
65433         * doc/posix-functions/strfmon_l.texi: Renamed from
65434         doc/glibc-functions/strfmon_l.texi.
65435         * doc/posix-functions/strftime_l.texi: Renamed from
65436         doc/glibc-functions/strftime_l.texi.
65437         * doc/posix-functions/strncasecmp_l.texi: Renamed from
65438         doc/glibc-functions/strncasecmp_l.texi.
65439         * doc/posix-functions/strndup.texi: Renamed from
65440         doc/glibc-functions/strndup.texi.
65441         * doc/posix-functions/strnlen.texi: Renamed from
65442         doc/glibc-functions/strnlen.texi.
65443         * doc/posix-functions/strsignal.texi: Renamed from
65444         doc/glibc-functions/strsignal.texi.
65445         * doc/posix-functions/strxfrm_l.texi: Renamed from
65446         doc/glibc-functions/strxfrm_l.texi.
65447         * doc/posix-functions/timer_gettime.texi: Renamed from
65448         doc/glibc-functions/timer_gettime.texi.
65449         * doc/posix-functions/tolower_l.texi: Renamed from
65450         doc/glibc-functions/tolower_l.texi.
65451         * doc/posix-functions/toupper_l.texi: Renamed from
65452         doc/glibc-functions/toupper_l.texi.
65453         * doc/posix-functions/towctrans_l.texi: Renamed from
65454         doc/glibc-functions/towctrans_l.texi.
65455         * doc/posix-functions/towlower_l.texi: Renamed from
65456         doc/glibc-functions/towlower_l.texi.
65457         * doc/posix-functions/towupper_l.texi: Renamed from
65458         doc/glibc-functions/towupper_l.texi.
65459         * doc/posix-functions/uselocale.texi: Renamed from
65460         doc/glibc-functions/uselocale.texi.
65461         * doc/posix-functions/vdprintf.texi: Renamed from
65462         doc/glibc-functions/vdprintf.texi.
65463         * doc/posix-functions/wcpcpy.texi:
65464         Renamed from doc/glibc-functions/wcpcpy.texi.
65465         * doc/posix-functions/wcpncpy.texi: Renamed from
65466         doc/glibc-functions/wcpncpy.texi.
65467         * doc/posix-functions/wcscasecmp.texi: Renamed from
65468         doc/glibc-functions/wcscasecmp.texi.
65469         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
65470         doc/glibc-functions/wcscasecmp_l.texi.
65471         * doc/posix-functions/wcscoll_l.texi: Renamed from
65472         doc/glibc-functions/wcscoll_l.texi.
65473         * doc/posix-functions/wcsdup.texi: Renamed from
65474         doc/glibc-functions/wcsdup.texi.
65475         * doc/posix-functions/wcsncasecmp.texi: Renamed from
65476         doc/glibc-functions/wcsncasecmp.texi.
65477         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
65478         doc/glibc-functions/wcsncasecmp_l.texi.
65479         * doc/posix-functions/wcsnlen.texi: Renamed from
65480         doc/glibc-functions/wcsnlen.texi.
65481         * doc/posix-functions/wcsnrtombs.texi: Renamed from
65482         doc/glibc-functions/wcsnrtombs.texi.
65483         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
65484         doc/glibc-functions/wcsxfrm_l.texi.
65485         * doc/posix-functions/wctrans_l.texi: Renamed from
65486         doc/glibc-functions/wctrans_l.texi.
65487         * doc/posix-functions/wctype_l.texi: Renamed from
65488         doc/glibc-functions/wctype_l.texi.
65489         * doc/gnulib.texi (Function Substitutes): Add these subsections.
65490         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
65491         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
65492         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
65493         these subsections.
65494         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
65495         Remove sections.
65497 2008-12-14  Bruno Haible  <bruno@clisp.org>
65499         Update doc for POSIX:2008.
65500         * doc/posix-functions/*.texi: Update URL of POSIX specification.
65502 2008-12-14  Bruno Haible  <bruno@clisp.org>
65504         Update doc for POSIX:2008.
65505         * doc/pastposix-functions/bcmp.texi: Renamed from
65506         doc/posix-functions/bcmp.texi.
65507         * doc/pastposix-functions/bcopy.texi: Renamed from
65508         doc/posix-functions/bcopy.texi.
65509         * doc/pastposix-functions/bsd_signal.texi: Renamed from
65510         doc/posix-functions/bsd_signal.texi.
65511         * doc/pastposix-functions/bzero.texi: Renamed from
65512         doc/posix-functions/bzero.texi.
65513         * doc/pastposix-functions/ecvt.texi: Renamed from
65514         doc/posix-functions/ecvt.texi.
65515         * doc/pastposix-functions/fcvt.texi: Renamed from
65516         doc/posix-functions/fcvt.texi.
65517         * doc/pastposix-functions/ftime.texi: Renamed from
65518         doc/posix-functions/ftime.texi.
65519         * doc/pastposix-functions/gcvt.texi: Renamed from
65520         doc/posix-functions/gcvt.texi.
65521         * doc/pastposix-functions/getcontext.texi: Renamed from
65522         doc/posix-functions/getcontext.texi.
65523         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
65524         doc/posix-functions/gethostbyaddr.texi.
65525         * doc/pastposix-functions/gethostbyname.texi: Renamed from
65526         doc/posix-functions/gethostbyname.texi.
65527         * doc/pastposix-functions/getwd.texi: Renamed from
65528         doc/posix-functions/getwd.texi.
65529         * doc/pastposix-functions/h_errno.texi: Renamed from
65530         doc/posix-functions/h_errno.texi.
65531         * doc/pastposix-functions/index.texi: Renamed from
65532         doc/posix-functions/index.texi.
65533         * doc/pastposix-functions/makecontext.texi: Renamed from
65534         doc/posix-functions/makecontext.texi.
65535         * doc/pastposix-functions/mktemp.texi: Renamed from
65536         doc/posix-functions/mktemp.texi.
65537         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
65538         doc/posix-functions/pthread_attr_getstackaddr.texi.
65539         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
65540         doc/posix-functions/pthread_attr_setstackaddr.texi.
65541         * doc/pastposix-functions/rindex.texi: Renamed from
65542         doc/posix-functions/rindex.texi.
65543         * doc/pastposix-functions/scalb.texi: Renamed from
65544         doc/posix-functions/scalb.texi.
65545         * doc/pastposix-functions/setcontext.texi: Renamed from
65546         doc/posix-functions/setcontext.texi.
65547         * doc/pastposix-functions/swapcontext.texi: Renamed from
65548         doc/posix-functions/swapcontext.texi.
65549         * doc/pastposix-functions/ualarm.texi: Renamed from
65550         doc/posix-functions/ualarm.texi.
65551         * doc/pastposix-functions/usleep.texi: Renamed from
65552         doc/posix-functions/usleep.texi.
65553         * doc/pastposix-functions/vfork.texi: Renamed from
65554         doc/posix-functions/vfork.texi.
65555         * doc/pastposix-functions/wcswcs.texi: Renamed from
65556         doc/posix-functions/wcswcs.texi.
65557         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
65558         (Function Substitutes): Update.
65560 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65562         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
65563         m4/strerror.m4.
65565 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65566             Bruno Haible  <bruno@clisp.org>
65568         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
65570 2008-12-13  Bruno Haible  <bruno@clisp.org>
65572         * modules/strtoull (Depends-on): Remove unistd.
65574 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65576         * modules/strtoull (Depends-on): Add stdlib.
65578 2008-12-11  Simon Josefsson  <simon@josefsson.org>
65580         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
65582 2008-12-10  Jim Meyering  <meyering@redhat.com>
65584         gl_ASSERT: don't say assertions are disabled when they're not
65585         * m4/assert.m4 (gl_ASSERT): Do not make configure report
65586         "checking whether to enable assertions... no", when they are in
65587         fact enabled.  This is solely a bug in the output of configure.
65588         In spite of saying "no", NDEBUG was not defined in that case.
65589         Also, as noted by Eric Blake, leave assertions enabled upon
65590         --enable-assert=INVALID.
65592 2008-12-10  Bruno Haible  <bruno@clisp.org>
65594         Change MODULES.html to refer to POSIX:2008 where possible.
65595         * MODULES.html.sh (POSIX2008_URL): New variable.
65596         (posix_headers): Remove sys/timeb, ucontext.
65597         (posix2001_headers): New variable.
65598         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
65599         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
65600         index, makecontext, mktemp, pthread_attr_getstackaddr,
65601         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
65602         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
65603         (posix2001_functions): New variable.
65604         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
65605         otherwise.
65607 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65609         add missing include to parse-duration.c
65610         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
65611         * modules/parse-duration (Depends-on): Add xalloc.
65613         fix sed script reading maint.mk
65614         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
65615         (syntax-check-rules): Use it.
65617 2008-12-09  Bruno Haible  <bruno@clisp.org>
65619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
65620         MacOS X 10.4/PowerPC.
65621         Reported by Simon Josefsson.
65623 2008-12-08  Jim Meyering  <meyering@redhat.com>
65625         work around mingw's lack of some S_IF definitions
65626         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
65627         Reported by Simon Josefsson.
65629 2008-12-08  Bruno Haible  <bruno@clisp.org>
65631         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
65632         applied to variables. Needed on MacOS X 10.4/PowerPC.
65633         Reported by Simon Josefsson.
65635 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
65636         and Eric Blake  <ebb9@byu.net>
65638         assert: honor --enable-assert
65639         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
65640         order to honor --enable-assert, rather than treating it as a
65641         synonym for --disable-assert.
65643 2008-12-08  Jim Meyering  <meyering@redhat.com>
65645         * lib/posixtm.c: Remove now-useless declaration of mktime.
65647         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
65649 2008-12-07  Bruno Haible  <bruno@clisp.org>
65651         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
65652         test_once): Mark functions as static.
65653         * tests/test-tls.c (test_tls): Likewise.
65655 2008-12-07  Bruno Haible  <bruno@clisp.org>
65657         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
65658         iconv_register_autodetect.
65660 2008-12-07  Jim Meyering  <meyering@redhat.com>
65662         posixtm.c: avoid a warning
65663         * lib/posixtm.c (posixtime): Don't initialize tm0.
65664         It's no longer needed to placate gcc4's -Wuninitialized,
65665         and the attempt to placate would elicit a new warning.
65667         unicodeio.c: mark unused parameters
65668         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
65669         (fallback_failure_callback): Likewise.
65671 2008-12-07  Bruno Haible  <bruno@clisp.org>
65673         * gnulib-tool (func_create_testdir): When building the tests
65674         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
65675         Reported by Simon Josefsson.
65677 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65679         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
65681 2008-12-06  Bruno Haible  <bruno@clisp.org>
65683         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
65684         Suggested by Eric Blake.
65686 2008-12-06  Bruno Haible  <bruno@clisp.org>
65688         Fix a c-stack test failure on MacOS X.
65689         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
65690         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
65691         handler for SIGBUS as well.
65692         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
65693         install a signal handler for SIGBUS as well.
65694         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
65696 2008-12-06  Bruno Haible  <bruno@clisp.org>
65698         Advocacy documentation.
65699         * doc/gnulib-intro.texi (Benefits): New section.
65700         * doc/gnulib.texi: Update.
65702 2008-12-06  Bruno Haible  <bruno@clisp.org>
65704         Document the 'manywarnings' module.
65705         * doc/manywarnings.texi: New file.
65706         * doc/gnulib.texi: Include it.
65708 2008-12-05  Eric Blake  <ebb9@byu.net>
65710         tests: silence some gcc warnings
65711         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
65712         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
65713         type mismatches.
65715 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65716             Bruno Haible  <bruno@clisp.org>
65718         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
65720 2008-11-29  Jim Meyering  <meyering@redhat.com>
65722         unicodeio.c: mark unused parameters
65723         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
65724         (fallback_failure_callback): Likewise.
65726         fts: fix a thinko
65727         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
65728         (set_stat_type): Return S_IF*-valued "type" directly.
65729         Prompted by James Youngman's spotting a related bug.
65730         Confirmed by further testing through find.
65732         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
65733         * lib/fts.c (D_TYPE): Define.
65734         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
65735         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
65736         (s_ifmt_shift_bits): New function.
65737         (set_stat_type): New function.
65738         (fts_build): When not calling fts_stat, call set_stat_type
65739         to propagate dirent.d_type info to fts_read caller.
65740         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
65741         fts_statp->st_mode type information may be valid.
65743 2008-11-28  Simon Josefsson  <simon@josefsson.org>
65745         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
65746         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
65747         <sds@gnu.org>.
65749 2008-11-20  Bruno Haible  <bruno@clisp.org>
65751         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
65752         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
65753         INCLUDE_NEXT.
65754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
65755         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
65756         * modules/math (Makefile.am): Substitute
65757         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
65758         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65760 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
65761             Bruno Haible  <bruno@clisp.org>
65763         * lib/stdint.in.h: Define all type macros so that their expansion is
65764         a single typedef'ed token. Fixes a compilation failure in Boost which
65765         does "using ::int8_t;".
65767 2008-11-18  Simon Josefsson  <simon@josefsson.org>
65769         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
65770         gl_MANYWARN_ALL_GCC.
65771         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
65772         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
65773         * modules/manywarnings: New file.
65774         * MODULES.html.sh: Mention manywarnings module.
65776 2008-11-18  Bruno Haible  <bruno@clisp.org>
65778         * doc/gnulib-tool.texi (Unit tests): New section.
65780 2008-11-18  Simon Josefsson  <simon@josefsson.org>
65782         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
65783         paths like 'lib/po/foo.po'.
65785 2008-11-17  Simon Josefsson  <simon@josefsson.org>
65787         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
65788         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
65790 2008-11-17  Simon Josefsson  <simon@josefsson.org>
65792         * m4/warnings.m4: Use CPPFLAGS to really check whether the
65793         parameter works.
65795 2008-11-17  Simon Josefsson  <simon@josefsson.org>
65797         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
65799 2008-11-17  Bruce Korb  <bkorb@gnu.org>
65801         * modules/parse-duration-tests: New file.
65802         * tests/test-parse-duration.sh: New file.
65803         * tests/test-parse-duration.c: New file.
65805         New module 'parse-duration'.
65806         * lib/parse-duration.h: New file.
65807         * lib/parse-duration.c: New file.
65808         * modules/parse-duration: New file.
65810 2008-11-17  Bruno Haible  <bruno@clisp.org>
65812         * tests/test-select-out.sh: Comment out the first pipe test.
65813         Reported by Simon Josefsson.
65815 2008-11-17  Bruno Haible  <bruno@clisp.org>
65817         * modules/getaddrinfo (Depends-on): Add servent, hostent.
65818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
65819         gl_HOSTENT.
65821 2008-11-17  Bruno Haible  <bruno@clisp.org>
65823         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
65824         -lnetwork and -lnet. Needed for Haiku and BeOS.
65826 2008-11-16  Bruno Haible  <bruno@clisp.org>
65828         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
65830 2008-11-16  Bruno Haible  <bruno@clisp.org>
65832         Avoid test failure on Haiku.
65833         * tests/test-fsync.c: Include <errno.h>.
65834         (main): Don't require that fsync (0) fails.
65836 2008-11-15  Bruno Haible  <bruno@clisp.org>
65838         New module 'hostent'.
65839         * modules/hostent: New file.
65840         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
65842 2008-11-15  Bruno Haible  <bruno@clisp.org>
65844         New module 'servent'.
65845         * modules/servent: New file.
65846         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
65848 2008-11-15  Bruno Haible  <bruno@clisp.org>
65850         Avoid generating same test program with two different rules.
65851         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
65852         test-frexp to test-frexp-nolibm.
65853         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
65854         test-frexpl to test-frexpl-nolibm.
65856 2008-11-15  Bruno Haible  <bruno@clisp.org>
65858         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
65859         $(FREXPL_LIBM).
65861 2008-11-15  Bruno Haible  <bruno@clisp.org>
65863         * lib/netdb.in.h: Activate the definitions also when the system's
65864         <netdb.h> has 'struct addrinfo'.
65865         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
65866         EAI_OVERFLOW or AI_NUMERICSERV.
65867         * doc/posix-headers/netdb.texi: Document the problem.
65869 2008-11-15  Bruno Haible  <bruno@clisp.org>
65871         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
65873         Make the 'sched' module work on platforms where <sched.h> exists but
65874         is incomplete (such as Haiku).
65875         * lib/sched.in.h; Include the system's <sched.h> if it exists.
65876         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
65877         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
65878         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
65879         HAVE_STRUCT_SCHED_PARAM.
65880         * modules/sched (Depends-on): Add include_next.
65881         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
65882         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
65883         * doc/posix-headers/sched.texi: Document the issue.
65885 2008-11-13  Jim Meyering  <meyering@redhat.com>
65887         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
65888         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
65889         test would fail due to the difference in the Report bugs to ...
65890         line.  The expected address is empty, "<>", while the actual
65891         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
65893 2008-11-12  Bruno Haible  <bruno@clisp.org>
65895         lstat: don't compile lstat.c on systems lacking lstat
65896         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
65897         which don't have lstat; this is handled by lib/sys_stat.in.h already.
65898         Reported by Daniel P. Berrange via Jim Meyering.
65900 2008-11-12  Jim Meyering  <meyering@redhat.com>
65902         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
65904 2008-11-12  Simon Josefsson  <simon@josefsson.org>
65906         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
65907         instead.
65909 2008-11-12  Bruno Haible  <bruno@clisp.org>
65911         * lib/unicodeio.c: Include unistr.h.
65912         (utf8_wctomb): Remove function.
65913         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
65915 2008-11-12  Simon Josefsson  <simon@josefsson.org>
65917         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
65918         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
65919         <bruno@clisp.org>.
65920         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
65922 2008-11-12  Simon Josefsson  <simon@josefsson.org>
65924         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
65925         * doc/gnulib.texi: Add section for warnings.
65927 2008-11-11  Bruno Haible  <bruno@clisp.org>
65929         * lib/sockets.h: Add a comment.
65931 2008-11-11  Karl Berry  <karl@gnu.org>
65933         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
65935 2008-11-11  Eric Blake  <ebb9@byu.net>
65937         fdl.texi: avoid git symlinks
65938         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
65940 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65942         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
65944 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65946         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
65947         (gl_WARN_ADD): Substitute $2 if literal.
65949 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65951         * m4/warning.m4: Remove.
65953 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65955         * m4/warnings.m4: Almost complete rewrite. :-)
65957 2008-11-10  Simon Josefsson  <simon@josefsson.org>
65959         * modules/warnings: New module.
65960         * m4/warnings.m4: New file.
65961         * MODULES.html.sh: Mention warnings module.
65962         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
65963         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65965 2008-11-10  Eric Blake  <ebb9@byu.net>
65967         fdl.texi: make a symlink to the latest version
65968         * doc/standards.texi: Revert today's earlier change.
65969         * doc/fdl-1.2.texi: Rename from old fdl.texi...
65970         * doc/fdl.texi: ...and replace this with a symlink to the newer
65971         fdl-1.3.texi.
65973 2008-11-10  Bruno Haible  <bruno@clisp.org>
65975         * tests/test-select-fd.c (main): Accept the result file name as fourth
65976         argument.
65977         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
65978         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
65980 2008-11-10  Bruno Haible  <bruno@clisp.org>
65982         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
65983         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
65984         as autoconf-substituted macros.
65985         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
65986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
65987         gl_NETDB_H_DEFAULTS. Set these variables.
65988         * modules/netdb (Makefile.am): Substitute these variables.
65990 2008-11-10  Eric Blake  <ebb9@byu.net>
65992         standards.texi: include correct file for FDL 1.3
65993         * doc/standards.texi (GNU Free Documentation License): Change
65994         include file to pull in FDL 1.3, not 1.2.
65996         fdl.texi: revert accidental change to license
65997         * doc/fdl.texi: This is FDL 1.2, not 1.3.
65999 2008-11-10  Bruno Haible  <bruno@clisp.org>
66001         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
66002         cross-compiling guesses also when the native compile gives no result.
66004 2008-11-10  Bruno Haible  <bruno@clisp.org>
66006         * lib/spawni.c (__spawni): Force variable into the stack.
66008 2008-11-10  Bruno Haible  <bruno@clisp.org>
66010         Add support for Haiku.
66011         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
66012         glibc and BeOS, but also on Haiku.
66013         * lib/fpurge.c (fpurge): Likewise.
66014         * lib/freadable.c (freadable): Likewise.
66015         * lib/freadahead.c (freadahead): Likewise.
66016         * lib/freading.c (freading): Likewise.
66017         * lib/freadptr.c (freadptr): Likewise.
66018         * lib/freadseek.c (freadptrinc): Likewise.
66019         * lib/fseeko.c (rpl_fseeko): Likewise.
66020         * lib/fseterr.c (fseterr): Likewise.
66021         * lib/fwritable.c (fwritable): Likewise.
66022         * lib/fwriting.c (fwriting): Likewise.
66023         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
66025 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
66027         * lib/config.charset: Treat Haiku like BeOS.
66029 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
66031         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
66032         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
66034 2008-11-08  Bruno Haible  <bruno@clisp.org>
66036         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
66037         AC_CACHE_CHECK.
66039 2008-11-08  Bruno Haible  <bruno@clisp.org>
66041         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
66043 2008-11-08  Bruno Haible  <bruno@clisp.org>
66045         * tests/test-select-fd.c: New file.
66046         * tests/test-select-in.sh: New file.
66047         * tests/test-select-out.sh: New file.
66048         * tests/test-select-stdin.c: New file.
66049         * modules/select-tests (Files): Add the new files.
66050         (Depends-on): Add gettimeofday.
66051         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
66052         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
66053         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
66055 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
66056             Bruno Haible  <bruno@clisp.org>
66058         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
66060 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
66062         * build-aux/pmccabe2html: Added support for C++ source files.
66064 2008-11-05  Ben Pfaff  <blp@gnu.org>
66066         Fix lib/close.c build on Windows.
66067         * modules/close (Files): Add lib/w32sock.h.
66069 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
66071         Accept Bison's NEWS format.
66072         * build-aux/announce-gen (print_news_deltas): Tweak
66073         $re_prefix.
66075 2008-11-04  Bruno Haible  <bruno@clisp.org>
66077         * modules/random_r (Maintainer): Add glibc.
66079 2008-11-04  Simon Josefsson  <simon@josefsson.org>
66081         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
66082         by karl@freefriends.org (Karl Berry).
66083         * doc/alloca.texi: Likewise.
66084         * doc/c-ctype.texi: Likewise.
66085         * doc/c-strcase.texi: Likewise.
66086         * doc/c-strcaseeq.texi: Likewise.
66087         * doc/c-strcasestr.texi: Likewise.
66088         * doc/c-strstr.texi: Likewise.
66089         * doc/c-strtod.texi: Likewise.
66090         * doc/c-strtold.texi: Likewise.
66091         * doc/ctime.texi: Likewise.
66092         * doc/error.texi: Likewise.
66093         * doc/fdl.texi: Likewise.
66094         * doc/gcd.texi: Likewise.
66095         * doc/getdate.texi: Likewise.
66096         * doc/gnulib-intro.texi: Likewise.
66097         * doc/gnulib-tool.texi: Likewise.
66098         * doc/gnulib.texi: Likewise.
66099         * doc/inet_ntoa.texi: Likewise.
66100         * doc/maintain.texi: Likewise.
66101         * doc/make-stds.texi: Likewise.
66102         * doc/quote.texi: Likewise.
66103         * doc/regexprops-generic.texi: Likewise.
66104         * doc/standards.texi: Likewise.
66105         * doc/verify.texi: Likewise.
66106         * doc/visibility.texi: Likewise.
66107         * doc/gnulib.texi (GNU Free Documentation License): Include
66108         fdl-1.3.texi instead of fdl.texi.
66110 2008-11-04  Simon Josefsson  <simon@josefsson.org>
66112         * doc/fdl-1.3.texi: New file, from
66113         <http://www.gnu.org/licenses/fdl-1.3.texi>.
66114         * modules/fdl-1.3: Add.
66115         * MODULES.html.sh: Add fdl-1.3.
66117 2008-11-03  Bruno Haible  <bruno@clisp.org>
66119         Make determination of absolute name of header file work with AIX xlc.
66120         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
66121         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
66122         preprocessing.
66123         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
66124         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66126 2008-11-03  Simon Josefsson  <simon@josefsson.org>
66128         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
66129         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
66130         <ludo@gnu.org>.
66132 2008-11-02  Bruno Haible  <bruno@clisp.org>
66134         Mark 'strpbrk' obsolete.
66135         * modules/strpbrk (Status, Notice): New sections.
66136         * modules/strtok_r (Depends-on): Add strpbrk.
66138 2008-11-02  Bruno Haible  <bruno@clisp.org>
66140         Mark 'strdup' obsolete.
66141         * modules/strdup (Status, Notice): New sections.
66142         * modules/findprog (Depends-on): Add strdup.
66143         * modules/getaddrinfo (Depends-on): Likewise.
66144         * modules/localename (Depends-on): Likewise.
66145         * modules/relocatable-lib (Depends-on): Likewise.
66146         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
66147         * modules/relocatable-prog (Depends-on): Likewise.
66148         * modules/trim (Depends-on): Likewise.
66149         * modules/unictype/gen-ctype (Depends-on): Likewise.
66150         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
66152 2008-11-02  Bruno Haible  <bruno@clisp.org>
66154         Mark 'strcspn' obsolete.
66155         * modules/strcspn (Status, Notice): New sections.
66157 2008-11-02  Bruno Haible  <bruno@clisp.org>
66159         Mark 'rmdir' obsolete.
66160         * modules/rmdir (Status, Notice): New sections.
66161         * modules/clean-temp (Depends-on): Add rmdir.
66162         * modules/openat (Depends-on): Likewise.
66164 2008-11-02  Bruno Haible  <bruno@clisp.org>
66166         Mark 'raise' obsolete.
66167         * modules/raise (Status, Notice): New sections.
66168         (Include): Specify <signal.h>.
66169         * modules/stdio (Depends-on): Add raise.
66170         * modules/write (Depends-on): Likewise.
66172 2008-11-02  Bruno Haible  <bruno@clisp.org>
66174         Mark 'memset' obsolete.
66175         * modules/memset (Status, Notice): New sections.
66177 2008-11-02  Bruno Haible  <bruno@clisp.org>
66179         Mark 'memmove' obsolete.
66180         * modules/memmove (Status, Notice): New sections.
66181         * modules/argp (Depends-on): Add memmove.
66182         * modules/argz (Depends-on): Likewise.
66183         * modules/canonicalize (Depends-on): Likewise.
66184         * modules/canonicalize-lgpl (Depends-on): Likewise.
66185         * modules/fts (Depends-on): Likewise.
66186         * modules/getcwd (Depends-on): Likewise.
66187         * modules/human (Depends-on): Likewise.
66188         * modules/regex (Depends-on): Likewise.
66189         * modules/striconveh (Depends-on): Likewise.
66190         * modules/trim (Depends-on): Likewise.
66191         * modules/unistr/u8-move (Depends-on): Likewise.
66192         * modules/unistr/u16-move (Depends-on): Likewise.
66193         * modules/unistr/u32-move (Depends-on): Likewise.
66195 2008-11-02  Bruno Haible  <bruno@clisp.org>
66197         Mark 'memcpy' obsolete.
66198         * modules/memcpy (Status, Notice): New sections.
66200 2008-11-02  Bruno Haible  <bruno@clisp.org>
66202         Mark 'memcmp' obsolete.
66203         * modules/memcmp (Status, Notice): New sections.
66204         * modules/argmatch (Depends-on): Add memchr.
66205         * modules/backupfile (Depends-on): Likewise.
66206         * modules/c-strcasestr (Depends-on): Likewise.
66207         * modules/crypto/des (Depends-on): Likewise.
66208         * modules/csharpcomp (Depends-on): Likewise.
66209         * modules/fnmatch (Depends-on): Likewise.
66210         * modules/git-merge-changelog (Depends-on): Likewise.
66211         * modules/isnand (Depends-on): Likewise.
66212         * modules/isnand-nolibm (Depends-on): Likewise.
66213         * modules/isnanf (Depends-on): Likewise.
66214         * modules/isnanf-nolibm (Depends-on): Likewise.
66215         * modules/isnanl (Depends-on): Likewise.
66216         * modules/isnanl-nolibm (Depends-on): Likewise.
66217         * modules/mbchar (Depends-on): Likewise.
66218         * modules/memcoll (Depends-on): Likewise.
66219         * modules/quotearg (Depends-on): Likewise.
66220         * modules/regex (Depends-on): Likewise.
66221         * modules/relocatable-prog (Depends-on): Likewise.
66222         * modules/same (Depends-on): Likewise.
66223         * modules/signbit (Depends-on): Likewise.
66224         * modules/strcasestr-simple (Depends-on): Likewise.
66225         * modules/unictype/gen-ctype (Depends-on): Likewise.
66226         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
66227         * modules/uniname/uniname (Depends-on): Likewise.
66228         * modules/unistr/u8-cmp (Depends-on): Likewise.
66230 2008-11-02  Bruno Haible  <bruno@clisp.org>
66232         Mark 'memchr' obsolete.
66233         * modules/memchr (Status, Notice): New sections.
66234         * modules/argp (Depends-on): Add memchr.
66235         * modules/base64 (Depends-on): Likewise.
66236         * modules/c-strcasestr (Depends-on): Likewise.
66237         * modules/chdir-long (Depends-on): Likewise.
66238         * modules/fnmatch (Depends-on): Likewise.
66239         * modules/getsubopt (Depends-on): Likewise.
66240         * modules/git-merge-changelog (Depends-on): Likewise.
66241         * modules/glob (Depends-on): Likewise.
66242         * modules/strcasestr-simple (Depends-on): Likewise.
66243         * modules/strnlen (Depends-on): Likewise.
66245 2008-11-02  Bruno Haible  <bruno@clisp.org>
66247         Mark 'atexit' obsolete.
66248         * modules/atexit (Status, Notice): New sections.
66249         * modules/chdir-long (Depends-on): Add atexit.
66250         * modules/wait-process (Depends-on): Likewise.
66252 2008-11-02  Bruno Haible  <bruno@clisp.org>
66254         * gnulib-tool: New option --with-obsolete.
66255         (func_usage): Document it.
66256         (func_modules_transitive_closure): Drop obsolete dependencies if
66257         incobsolete is not true.
66258         (func_import): Read and save the incobsolete variable to the cache.
66260 2008-11-02  Bruno Haible  <bruno@clisp.org>
66262         * modules/TEMPLATE-EXTENDED: New field 'Status'.
66263         * gnulib-tool: New option --extract-status.
66264         (func_usage): Document it.
66265         (sed_extract_prog): Recognize it.
66266         (func_get_status): New function.
66268 2008-10-30  Simon Josefsson  <simon@josefsson.org>
66270         * modules/sockets (License): Change from LGPL to LGPLv2+.
66272 2008-10-28  Simon Josefsson  <simon@josefsson.org>
66274         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
66276 2008-10-28  Simon Josefsson  <simon@josefsson.org>
66278         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66279         Mention times and sys_times.
66280         * modules/sys_times, modules/sys_times-tests: New modules.
66281         * modules/times, modules/times-tests: Likewise
66282         * m4/sys_times_h.m4: New file.
66283         * lib/sys_times.in.h: Likewise
66284         * lib/times.c: Likewise.
66285         * tests/test-sys_times.c: Likewise.
66286         * tests/test-times.c: Likewise.
66287         * doc/posix-headers/sys_times.texi: Update.
66288         * doc/posix-functions/times.texi: Update.
66290 2008-10-28  Jim Meyering  <meyering@redhat.com>
66292         * modules/tempname (Depends-on): Add lstat.
66294         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
66296 2008-10-28  Simon Josefsson  <simon@josefsson.org>
66298         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
66299         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
66300         using idiom used elsewhere in gnulib.
66302 2008-10-27  Jim Meyering  <meyering@redhat.com>
66304         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
66306 2008-10-27  Simon Josefsson  <simon@josefsson.org>
66308         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
66309         TESTS_ENVIRONMENT, for shell scripts that needs to call built
66310         programs.
66311         * tests/test-argp-2.sh: Use $EXEEXT when needed.
66313 2008-10-27  Simon Josefsson  <simon@josefsson.org>
66315         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
66317 2008-10-27  Bruno Haible  <bruno@clisp.org>
66319         * tests/test-lstat.c: Include <stdio.h>.
66321 2008-10-27  Simon Josefsson  <simon@josefsson.org>
66323         * modules/lstat-tests: New module.
66324         * tests/test-lstat.c: New file.
66326 2008-10-26  Jim Meyering  <meyering@redhat.com>
66328         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
66330 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66331             Bruno Haible  <bruno@clisp.org>
66333         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
66334         * modules/configmake (Include): Add a note that the include must come
66335         after all system headers.
66336         * lib/javaversion.c: Include configmake.h after all other includes.
66338 2008-10-26  Bruno Haible  <bruno@clisp.org>
66340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
66341         HAVE_STRUCT_RANDOM_DATA to 1.
66342         (gl_STDLIB_H): Simplify.
66344 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66346         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
66347         substitute HAVE_STRUCT_RANDOM_DATA.
66348         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
66349         random_data.
66350         * modules/stdlib (Makefile.am): Substitute
66351         HAVE_STRUCT_RANDOM_DATA.
66353 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66355         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
66356         * doc/gnulib-intro.texi (Copyright): Likewise.
66358 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66360         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
66361         findings.
66363 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
66364             Bruno Haible  <bruno@clisp.org>
66366         * lib/unistd.in.h: Include <winsock2.h>.
66367         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
66368         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
66369         Provide dummy declarations.
66370         (gethostname): Override.
66371         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
66372         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
66373         gl_PREREQ_SYS_H_WINSOCK2.
66374         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
66375         * doc/posix-functions/gethostname.texi: More details.
66377 2008-10-25  Bruno Haible  <bruno@clisp.org>
66379         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
66380         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
66381         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
66383         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
66384         here ...
66385         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
66386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
66387         gl_UNISTD_H_DEFAULTS.
66389 2008-10-25  Eric Blake  <ebb9@byu.net>
66391         signbit: avoid spurious compiler failure
66392         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
66393         declarations inside function.
66395 2008-10-24  Simon Josefsson  <simon@josefsson.org>
66396             Bruno Haible  <bruno@clisp.org>
66398         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
66399         * modules/random_r (Depends-on): Add stdint.
66401 2008-10-24  Bruno Haible  <bruno@clisp.org>
66403         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
66404         Eggert.
66405         * modules/strerror (License): Likewise.
66407 2008-10-24  Jim Meyering  <meyering@redhat.com>
66409         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
66410         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
66412 2008-10-24  Eric Blake  <ebb9@byu.net>
66414         getgroups: fix compilation when getgroups is available
66415         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
66416         but with <config.h> override of getgroups disabled.
66418 2008-10-24  Simon Josefsson  <simon@josefsson.org>
66420         * doc/gnulib.texi (Header files): Add note about C++ problems.
66421         Explained by Bruno Haible <bruno@clisp.org>.
66423 2008-10-23  Bruno Haible  <bruno@clisp.org>
66425         Define a dummy SA_NODEFER macro on Interix.
66426         * lib/signal.in.h (SA_NODEFER): Define fallback.
66427         Reported by Aleksey Cheusov <cheusov@tut.by> via
66428         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
66430 2008-10-23  Bruno Haible  <bruno@clisp.org>
66432         * modules/freadahead (License): Change to LGPLv2+.
66433         Suggested by Simon Josefsson.
66435 2008-10-23  Jim Meyering  <meyering@redhat.com>
66437         random_r: new module
66438         * modules/random_r: New file.
66439         * m4/random_r.m4: New file.
66440         * lib/random_r.c: New file, from glibc.
66441         * modules/random_r-tests: New file.
66442         * tests/test-random_r.c: New file.
66443         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
66444          Declare.
66445         (RAND_MAX): Define.
66446         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
66447         * modules/stdlib: Substitute them, too.
66448         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
66449         * doc/glibc-functions/initstate_r.texi: Mention the new module.
66450         * doc/glibc-functions/random_r.texi: Likewise.
66451         * doc/glibc-functions/setstate_r.texi: Likewise.
66452         * doc/glibc-functions/srandom_r.texi: Likewise.
66453         * config/srclist.txt: Mention it.
66455 2008-10-23  David Lutterkort  <lutter@redhat.com>
66457         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
66458         link requirement
66460 2008-10-23  Jim Meyering  <meyering@redhat.com>
66462         selinux-h: mark parameters of stub functions as intentionally unused
66463         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
66464         * lib/se-context.in.h: Likewise.
66466 2008-10-22  Simon Josefsson  <simon@josefsson.org>
66468         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
66470 2008-10-22  Simon Josefsson  <simon@josefsson.org>
66472         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
66474 2008-10-22  Eric Blake  <ebb9@byu.net>
66476         glthread/thread: avoid compiler warning
66477         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
66478         Add unreachable abort to silence compiler.
66480 2008-10-22  Eric Blake  <ebb9@byu.net>
66482         netdb: also supply struct addrinfo for cygwin 1.5.x
66483         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
66484         older cygwin.
66485         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
66486         cygwin.
66487         * doc/posix-headers/netdb.texi (netdb.h): Document this.
66489 2008-10-22  Bruno Haible  <bruno@clisp.org>
66491         * users.txt: Update entry about pspp.
66493 2008-10-21  Bruno Haible  <bruno@clisp.org>
66495         Simplification.
66496         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
66497         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
66499         Simplification.
66500         * lib/ioctl.c (ioctl): Don't undefine.
66501         * lib/socket.c (socket): Don't undefine.
66503         Remove unused module indicator macros.
66504         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
66505         GNULIB_$1 as a C macro.
66507         * doc/posix-functions/close.texi: Undo last change.
66508         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
66509         Windows platforms.
66511 2008-10-21  Bruno Haible  <bruno@clisp.org>
66513         Add gethostname() declaration to <unistd.h>.
66514         * lib/unistd.in.h (gethostname): New declaration.
66515         * lib/gethostname.c: Include <unistd.h>.
66516         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
66517         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
66518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
66519         and HAVE_GETHOSTNAME.
66520         * modules/gethostname (Depends-on): Add unistd.
66521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66522         (Include): Specify <unistd.h>.
66523         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
66524         HAVE_GETHOSTNAME.
66525         * tests/test-gethostname.c: Include <unistd.h> first.
66527 2008-10-21  Bruno Haible  <bruno@clisp.org>
66529         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
66530         * modules/select-tests (Depends-on): Likewise.
66531         Reported by Simon Josefsson.
66533 2008-10-21  Simon Josefsson  <simon@josefsson.org>
66535         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
66536         * lib/accept.c: New file, based on winsock.c.
66537         * lib/bind.c: New file, based on winsock.c.
66538         * lib/connect.c: New file, based on winsock.c.
66539         * lib/getpeername.c: New file, based on winsock.c.
66540         * lib/getsockname.c: New file, based on winsock.c.
66541         * lib/getsockopt.c: New file, based on winsock.c.
66542         * lib/ioctl.c: New file, based on winsock.c.
66543         * lib/listen.c: New file, based on winsock.c.
66544         * lib/recv.c: New file, based on winsock.c.
66545         * lib/recvfrom.c: New file, based on winsock.c.
66546         * lib/send.c: New file, based on winsock.c.
66547         * lib/sendto.c: New file, based on winsock.c.
66548         * lib/setsockopt.c: New file, based on winsock.c.
66549         * lib/shutdown.c: New file, based on winsock.c.
66550         * lib/socket.c: New file, based on winsock.c.
66551         * lib/w32sock.h: New file, based on winsock.c.
66552         * lib/winsock.c: Remove file.
66553         * modules/accept: Likewise.
66554         * modules/bind: Likewise.
66555         * modules/connect: Likewise.
66556         * modules/getpeername: Likewise.
66557         * modules/getsockname: Likewise.
66558         * modules/getsockopt: Likewise.
66559         * modules/ioctl: Likewise.
66560         * modules/listen: Likewise.
66561         * modules/recv: Likewise.
66562         * modules/recvfrom: Likewise.
66563         * modules/send: Likewise.
66564         * modules/sendto: Likewise.
66565         * modules/setsockopt: Likewise.
66566         * modules/shutdown: Likewise.
66567         * modules/socket: Use socket.c instead of winsock.c.
66568         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
66569         * doc/posix-functions/accept.texi: Doc fix.
66570         * doc/posix-functions/bind.texi: Doc fix.
66571         * doc/posix-functions/close.texi: Doc fix.
66572         * doc/posix-functions/connect.texi: Doc fix.
66573         * doc/posix-functions/getpeername.texi: Doc fix.
66574         * doc/posix-functions/getsockname.texi: Doc fix.
66575         * doc/posix-functions/getsockopt.texi: Doc fix.
66576         * doc/posix-functions/ioctl.texi: Doc fix.
66577         * doc/posix-functions/listen.texi: Doc fix.
66578         * doc/posix-functions/recv.texi: Doc fix.
66579         * doc/posix-functions/recvfrom.texi: Doc fix.
66580         * doc/posix-functions/send.texi: Doc fix.
66581         * doc/posix-functions/sendto.texi: Doc fix.
66582         * doc/posix-functions/setsockopt.texi: Doc fix.
66583         * doc/posix-functions/shutdown.texi: Doc fix.
66584         * doc/posix-functions/socket.texi: Doc fix.
66586 2008-10-20  Bruno Haible  <bruno@clisp.org>
66588         Take into account the role of SIGABRT_COMPAT on Windows 2008.
66589         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
66590         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
66591         as an alias for SIGABRT.
66592         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
66593         (sigaction): Map it to SIGABRT.
66594         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
66596 2008-10-20  Bruno Haible  <bruno@clisp.org>
66598         * lib/fts.c: Don't include lstat.h.
66599         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
66601         Move the lstat() declaration to <sys/stat.h>.
66602         * lib/lstat.h: Remove file.
66603         * lib/sys_stat.in.h: Add special invocation convention.
66604         (lstat): New declaration.
66605         * lib/lstat.c (orig_lstat): New function.
66606         (rpl_lstat): Use orig_lstat instead of lstat.
66607         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
66608         AC_C_INLINE. Set REPLACE_LSTAT.
66609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
66610         and REPLACE_LSTAT.
66611         * modules/lstat (Files): Remove lib/lstat.h.
66612         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
66613         (Include): Specify <sys/stat.h> instead of lstat.h.
66614         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
66615         REPLACE_LSTAT.
66616         * NEWS: Mention the change.
66618 2008-10-20  Bruno Haible  <bruno@clisp.org>
66620         * modules/posix_spawn-tests: New file.
66621         * tests/test-posix_spawn3.c: New file.
66623 2008-10-20  Bruno Haible  <bruno@clisp.org>
66625         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
66626         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
66627         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
66628         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
66629         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
66631 2008-10-20  Bruno Haible  <bruno@clisp.org>
66633         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
66634         of posix_spawn on AIX 5.3.
66636 2008-10-20  Bruno Haible  <bruno@clisp.org>
66638         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
66640 2008-10-20  Bruno Haible  <bruno@clisp.org>
66642         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
66643         of AC_LANG_PROGRAM.
66645 2008-10-20  Simon Josefsson  <simon@josefsson.org>
66647         * lib/netdb.in.h: Don't define GNU specific constants until they
66648         are supported or needed.  Reported by Bruno Haible
66649         <bruno@clisp.org>.
66651 2008-10-20  Simon Josefsson  <simon@josefsson.org>
66653         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
66655 2008-10-20  Simon Josefsson  <simon@josefsson.org>
66657         * lib/getaddrinfo.h: Remove file.
66658         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
66659         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
66660         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
66661         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
66662         * modules/netdb: Substitute GNULIB_GETADDRINFO.
66663         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
66664         * tests/test-getaddrinfo.c: Likewise.
66665         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
66666         * NEWS: Mention change.
66668 2008-10-19  Bruno Haible  <bruno@clisp.org>
66670         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
66672 2008-10-19  Bruno Haible  <bruno@clisp.org>
66674         * lib/wait-process.c: Include simply <sys/wait.h>.
66675         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
66676         WIFSTOPPED): Remove fallback definitions.
66677         * modules/wait-process (Depends-on): Add sys_wait.
66679         New module 'sys_wait'.
66680         * modules/sys_wait: New file.
66681         * lib/sys_wait.in.h: New file, partially copied from
66682         lib/wait-process.c.
66683         * m4/sys_wait_h.m4: New file.
66684         * doc/posix-headers/sys_wait.texi: Mention the new module.
66686 2008-10-19  Bruno Haible  <bruno@clisp.org>
66688         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
66690 2008-10-19  Bruno Haible  <bruno@clisp.org>
66692         Assume that waitpid() fills an 'int' status, not a 'union wait'.
66693         * lib/wait-process.c (WAIT_T): Remove type.
66694         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
66695         (wait_subprocess): Update.
66697 2008-10-19  Bruno Haible  <bruno@clisp.org>
66699         New module 'atoll'.
66700         * modules/atoll: New file.
66701         * lib/stdlib.in.h (atoll): New declaration.
66702         * lib/atoll.c: New file, from glibc with modifications.
66703         * m4/atoll.m4: New file.
66704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
66705         HAVE_ATOLL.
66706         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
66707         * doc/posix-functions/atoll.texi: Mention the new module.
66709 2008-10-19  Bruno Haible  <bruno@clisp.org>
66711         Add strtoull() declaration to <stdlib.h>.
66712         * lib/stdlib.in.h (strtoull): New declaration.
66713         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
66714         Set HAVE_STRTOULL.
66715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
66716         HAVE_STRTOULL.
66717         * modules/strtoull (Depends-on): Add stdlib.
66718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66719         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
66720         HAVE_STRTOULL.
66722 2008-10-19  Bruno Haible  <bruno@clisp.org>
66724         Add strtoll() declaration to <stdlib.h>.
66725         * lib/stdlib.in.h (strtoll): New declaration.
66726         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
66727         Set HAVE_STRTOLL.
66728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
66729         HAVE_STRTOLL.
66730         * modules/strtoll (Depends-on): Add stdlib.
66731         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66732         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
66734 2008-10-19  Bruno Haible  <bruno@clisp.org>
66736         * modules/bcopy (Depends-on): Add strings.
66737         (Include): Specify <strings.h>.
66739 2008-10-19  Bruno Haible  <bruno@clisp.org>
66741         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
66743 2008-10-19  Bruno Haible  <bruno@clisp.org>
66745         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
66746         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
66747         mingw.
66749 2008-10-19  Bruno Haible  <bruno@clisp.org>
66751         * lib/atanl.c: Don't include isnanl.h.
66752         * lib/cosl.c: Likewise.
66753         * lib/ldexpl.c: Likewise.
66754         * lib/logl.c: Likewise.
66755         * lib/sinl.c: Likewise.
66756         * lib/sqrtl.c: Likewise.
66757         * lib/tanl.c: Likewise.
66759         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
66760         * lib/isnanf.h: Remove file.
66761         * lib/isnand.h: Remove file.
66762         * lib/isnanl.h: Remove file.
66763         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
66764         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
66765         macros.
66766         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
66767         HAVE_ISNANF, don't define it as a C macro.
66768         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
66769         HAVE_ISNAND, don't define it as a C macro.
66770         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
66771         HAVE_ISNANL, don't define it as a C macro.
66772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
66773         HAVE_ISNAN[FDL].
66774         * modules/isnanf (Files): Remove lib/isnanf.h.
66775         (Depends-on): Add math.
66776         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
66777         (Include): Specify <math.h> instead of isnanf.h.
66778         * modules/isnand (Files): Remove lib/isnand.h.
66779         (Depends-on): Add math.
66780         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
66781         (Include): Specify <math.h> instead of isnand.h.
66782         * modules/isnanl (Files): Remove lib/isnanl.h.
66783         (Depends-on): Add math.
66784         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
66785         (Include): Specify <math.h> instead of isnanl.h.
66786         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
66787         HAVE_ISNAN[FDL].
66788         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
66789         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
66790         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
66791         * NEWS: Mention the change.
66793 2008-10-18  Bruno Haible  <bruno@clisp.org>
66795         Add getusershell(), setusershell(), endusershell() declarations to
66796         <unistd.h>.
66797         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
66798         declarations.
66799         * lib/getusershell.c: Include unistd.h.
66800         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
66801         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
66802         HAVE_GETUSERSHELL.
66803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
66804         and HAVE_GETUSERSHELL.
66805         * modules/getusershell (Depends-on): Add unistd, extensions.
66806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66807         (Include): Specify <unistd.h>.
66808         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
66809         HAVE_GETUSERSHELL.
66811 2008-10-18  Bruno Haible  <bruno@clisp.org>
66813         Add a getloadavg() declaration to <stdlib.h>.
66814         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
66815         getloadavg declaration.
66816         (getloadavg): New declaration.
66817         * lib/getloadavg.c: Include <stdlib.h> first.
66818         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
66819         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
66820         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
66821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
66822         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
66823         * modules/getloadavg (Depends-on): Add stdlib, extensions.
66824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66825         (Include): Specify <stdlib.h>.
66826         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
66827         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
66829 2008-10-18  Bruno Haible  <bruno@clisp.org>
66831         * lib/dirchownmod.c: Don't include lchmod.h.
66833         Move the lchmod() declaration to <sys/stat.h>.
66834         * lib/lchmod.h: Remove file.
66835         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
66836         (lchmod): New declaration, moved here from lib/lchown.h.
66837         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
66838         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
66839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
66840         and HAVE_LCHMOD.
66841         * modules/lchmod (Files): Remove lib/lchmod.h.
66842         (Depends-on): Add sys_stat, extensions.
66843         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
66844         (Include): Specify <sys/stat.h> instead of lchmod.h.
66845         * modules/sys_stat (Depends-on): Add link-warning.
66846         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
66847         definition of GL_LINK_WARNING.
66848         * NEWS: Mention the change.
66850 2008-10-18  Bruno Haible  <bruno@clisp.org>
66852         * lib/fchdir.c: Don't include dirfd.h.
66853         * lib/fts.c: Likewise.
66854         * lib/getcwd.c: Likewise.
66855         * lib/glob.c: Likewise.
66857         Move the dirfd() declaration to <dirent.h>.
66858         * lib/dirfd.h: Remove file.
66859         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
66860         (dirfd): New declaration.
66861         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
66862         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
66863         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
66864         HAVE_DECL_DIRFD.
66865         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
66866         HAVE_DECL_DIRFD.
66867         * modules/dirfd (Files): Remove lib/dirfd.h.
66868         (Depends-on): Add dirent, extensions.
66869         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
66870         (Include): Specify <dirent.h> instead of dirfd.h.
66871         * modules/dirent (Depends-on): Add link-warning.
66872         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
66873         definition of GL_LINK_WARNING.
66874         * NEWS: Mention the change.
66876 2008-10-18  Bruno Haible  <bruno@clisp.org>
66878         Move the euidaccess() declaration to <unistd.h>.
66879         * lib/euidaccess.h: Remove file.
66880         * lib/unistd.in.h (euidaccess): New declaration.
66881         * lib/euidaccess.c: Don't include euidaccess.h.
66882         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
66883         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
66884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
66885         and HAVE_EUIDACCESS.
66886         * modules/euidaccess (Files): Remove lib/euidaccess.h.
66887         (Depends-on): Add unistd.
66888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66889         (Include): Specify <unistd.h> instead of euidaccess.h.
66890         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
66891         HAVE_EUIDACCESS.
66892         * NEWS: Mention the change.
66894 2008-10-18  Bruno Haible  <bruno@clisp.org>
66896         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
66898         Move the getdomainname() declaration to <unistd.h>.
66899         * lib/getdomainname.h: Remove file.
66900         * lib/unistd.in.h (getdomainname): New declaration.
66901         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
66902         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
66903         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
66904         HAVE_GETDOMAINNAME.
66905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66906         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
66907         * modules/getdomainname (Files): Remove lib/getdomainname.h.
66908         (Depends-on): Add unistd, extensions.
66909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66910         (Includes): Specify <unistd.h> instead of getdomainname.h.
66911         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
66912         HAVE_GETDOMAINNAME.
66913         * NEWS: Mention the change.
66915 2008-10-18  Bruno Haible  <bruno@clisp.org>
66917         * modules/dirent: New file.
66918         * m4/dirent_h.m4: New file.
66919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
66920         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
66921         * modules/fchdir (Files): Remove lib/dirent.in.h.
66922         (Depends-on): Add dirent.
66923         (Makefile.am): Move rules to modules/dirent.
66924         * doc/posix-headers/dirent.texi: Mention the new module.
66926 2008-10-18  Bruno Haible  <bruno@clisp.org>
66928         Avoid -Wunused-parameter warnings in public gnulib header files.
66929         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
66930         macro.
66931         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
66933 2008-10-18  Bruno Haible  <bruno@clisp.org>
66935         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
66936         * doc/glibc-functions/error.texi: Mention the module 'error'.
66937         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
66938         * doc/glibc-functions/getdomainname.texi: Mention the module
66939         'getdomainname'.
66940         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
66941         * doc/glibc-functions/getpagesize.texi: Mention the module
66942         'getpagesize'.
66943         * doc/glibc-functions/getusershell.texi: Mention the module
66944         'getusershell'.
66945         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
66946         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
66947         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
66948         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
66949         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
66950         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
66951         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
66952         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
66953         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
66954         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
66955         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
66956         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
66957         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
66958         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
66960 2008-10-17  Bruno Haible  <bruno@clisp.org>
66962         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
66963         HP-UX and IRIX, use -0.0L.
66964         * tests/test-ceill.c (minus_zero): Likewise.
66965         * tests/test-floorl.c (minus_zero): Likewise.
66966         * tests/test-frexpl.c (minus_zero): Likewise.
66967         * tests/test-isnan.c (minus_zerol): Likewise.
66968         * tests/test-isnanl.h (minus_zero): Likewise.
66969         * tests/test-ldexpl.c (minus_zero): Likewise.
66970         * tests/test-roundl.c (minus_zero): Likewise.
66971         * tests/test-signbit.c (minus_zerol): Likewise.
66972         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
66973         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
66974         * tests/test-truncl.c (minus_zero): Likewise.
66975         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
66976         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
66977         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
66978         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
66980 2008-10-17  Bruno Haible  <bruno@clisp.org>
66982         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
66983         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
66984         that it gets activated only for gcc >= 3.0.
66985         * lib/dirent.in.h: Likewise.
66986         * lib/errno.in.h: Likewise.
66987         * lib/fcntl.in.h: Likewise.
66988         * lib/float.in.h: Likewise.
66989         * lib/iconv.in.h: Likewise.
66990         * lib/inttypes.in.h: Likewise.
66991         * lib/locale.in.h: Likewise.
66992         * lib/math.in.h: Likewise.
66993         * lib/netdb.in.h: Likewise.
66994         * lib/netinet_in.in.h: Likewise.
66995         * lib/search.in.h: Likewise.
66996         * lib/signal.in.h: Likewise.
66997         * lib/spawn.in.h: Likewise.
66998         * lib/stdarg.in.h: Likewise.
66999         * lib/stdint.in.h: Likewise.
67000         * lib/stdio.in.h: Likewise.
67001         * lib/stdlib.in.h: Likewise.
67002         * lib/string.in.h: Likewise.
67003         * lib/strings.in.h: Likewise.
67004         * lib/sys_file.in.h: Likewise.
67005         * lib/sys_ioctl.in.h: Likewise.
67006         * lib/sys_select.in.h: Likewise.
67007         * lib/sys_socket.in.h: Likewise.
67008         * lib/sys_stat.in.h: Likewise.
67009         * lib/sys_time.in.h: Likewise.
67010         * lib/sysexits.in.h: Likewise.
67011         * lib/time.in.h: Likewise.
67012         * lib/unistd.in.h: Likewise.
67013         * lib/wchar.in.h: Likewise.
67014         * lib/wctype.in.h: Likewise.
67015         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67017 2008-10-17  Jim Meyering  <meyering@redhat.com>
67019         ignore-value: don't depend on inline module
67020         * modules/ignore-value (Depends-on): Remove 'inline'.
67021         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
67022         Suggestion from Bruno Haible.
67024 2008-10-17  Bruno Haible  <bruno@clisp.org>
67026         New implementation of condition variables for Win32.
67027         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
67028         (gl_linked_waitqueue_t): New type.
67029         (gl_cond_t): Use it.
67030         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
67031         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
67032         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
67033         (glthread_cond_init_func, glthread_cond_wait_func,
67034         glthread_cond_timedwait_func, glthread_cond_signal_func,
67035         glthread_cond_broadcast_func, glthread_cond_destroy_func):
67036         Reimplemented on the basis of gl_linked_waitqueue_t.
67037         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
67038         gl_waitqueue_t.
67039         (gl_rwlock_t): Update.
67040         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
67042 2008-10-17  Simon Josefsson  <simon@josefsson.org>
67044         * modules/recvfrom (Depends-on): Add dependency on getpeername.
67045         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67047 2008-10-17  Jim Meyering  <meyering@redhat.com>
67049         ignore-value: new module
67050         * modules/ignore-value: New file.
67051         * lib/ignore-value.h: New file.
67052         * MODULES.html.sh (Compiler warning management): New section,
67053         just for this module.  More to come.
67055 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67057         open-safer.c: avoid 'signed and unsigned in conditional...' warning
67058         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
67059         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
67061 2008-10-16  Jim Meyering  <meyering@redhat.com>
67063         openat-die.c: avoid 'no previous prototype' warning
67064         * lib/openat-die.c: Include "openat.h".
67065         Reported by Reuben Thomas <rrt@sc3d.org>.
67067 2008-10-16  Simon Josefsson  <simon@josefsson.org>
67069         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
67070         * lib/netdb.in.h: Fix typo.
67071         Reported by Bruno Haible  <bruno@clisp.org>
67073         * lib/netdb.in.h: Include sys/socket.h for platforms without
67074         netdb.h, to get structures like hostent on MinGW.
67075         * modules/netdb (Depends-on): Add sys_socket.
67077 2008-10-15  Simon Josefsson  <simon@josefsson.org>
67079         * modules/netdb, modules/netdb-tests: New file.
67080         * m4/netdb_h.m4: New file.
67081         * lib/netdb.in.h: Add, currently just an empty file pending
67082         definitions.
67083         * tests/test-netdb.c: New file.
67084         * doc/posix-headers/netdb.texi: Mention that we replace it if
67085         needed.
67086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67087         netdb.
67089 2008-10-15  Simon Josefsson  <simon@josefsson.org>
67091         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
67092         with code.
67094 2008-10-13  Bruno Haible  <bruno@clisp.org>
67096         * lib/glthread/cond.c (glthread_cond_wait_func,
67097         glthread_cond_timedwait_func): Add a comment.
67099 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67101         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
67102         * tests/test-select.c: Likewise,
67104 2008-10-13  Bruno Haible  <bruno@clisp.org>
67106         * lib/glthread/cond.c (glthread_cond_wait_func,
67107         glthread_cond_timedwait_func): Fix variable name.
67108         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67110 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
67112         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
67113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
67114         struct sockaddr.sa_len.
67115         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
67117 2008-10-13  Simon Josefsson  <simon@josefsson.org>
67119         * build-aux/pmccabe2html: Add css and css_url parameters.
67121 2008-10-12  Bruno Haible  <bruno@clisp.org>
67123         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
67124         calling aclx_get.
67125         Reported by Rainer Tammer <tammer@tammer.net>.
67127 2008-10-12  Bruno Haible  <bruno@clisp.org>
67129         Use msvcrt aware primitives for creation/termination of Win32 threads.
67130         * lib/glthread/thread.c: Include <process.h>.
67131         (glthread_create_func): Use _beginthreadex instead of CreateThread.
67132         (wrapper_func): Update signature.
67133         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
67135 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67136             Bruno Haible  <bruno@clisp.org>
67138         Provide a Win32 implementation of the 'cond' module.
67139         * lib/glthread/cond.h [USE_WIN32]: New implementation.
67140         * lib/glthread/cond.c (glthread_cond_init_func,
67141         glthread_cond_wait_func, glthread_cond_timedwait_func,
67142         glthread_cond_signal_func, glthread_cond_broadcast_func,
67143         glthread_cond_destroy_func) [USE_WIN32]: New functions.
67144         * modules/cond (Dependencies): Add gettimeofday.
67146 2008-10-11  Bruno Haible  <bruno@clisp.org>
67148         Make sleep work on older versions of mingw.
67149         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
67150         only whether it exists.
67151         * doc/posix-functions/sleep.texi: Mention the problem with older
67152         versions of mingw.
67154 2008-10-11  Bruno Haible  <bruno@clisp.org>
67156         New module 'shutdown'.
67157         * modules/shutdown: New file.
67158         * lib/sys_socket.in.h (shutdown): New declaration.
67159         * lib/winsock.c (shutdown): New function.
67160         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
67161         GNULIB_SHUTDOWN.
67162         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
67163         * doc/posix-functions/shutdown.texi: Document the new module.
67165 2008-10-11  Jim Meyering  <meyering@redhat.com>
67167         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
67169 2008-10-11  Bruno Haible  <bruno@clisp.org>
67171         New module 'fclose'.
67172         * modules/fclose: New file.
67173         * lib/stdio.in.h (fclose): New declaration.
67174         * lib/fclose.c: New file.
67175         * m4/fclose.m4: New file.
67176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
67177         REPLACE_FCLOSE.
67178         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
67179         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
67180         REPLACE_FCLOSE.
67181         * modules/close (Depends-on): fclose.
67182         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
67184 2008-10-11  Bruno Haible  <bruno@clisp.org>
67186         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
67187         set errno and don't call _close.
67189 2008-10-10  Bruno Haible  <bruno@clisp.org>
67191         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
67192         ACL, not afterwards. Fixes test failure on Cygwin.
67194 2008-10-09  Ben Pfaff  <blp@gnu.org>
67196         * build-aux/announce-gen: Fix gnulib version related part of usage
67197         message.  Die with a useful error message if no tarballs are
67198         found.
67200 2008-10-10  Jim Meyering  <meyering@redhat.com>
67202         bootstrap: use git's --depth=N option only if it's supported
67203         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
67204         recognize the --depth option.  Reported by Pádraig Brady.
67206 2008-10-09  Bruno Haible  <bruno@clisp.org>
67208         New module 'ioctl'.
67209         * modules/ioctl: New file.
67210         * lib/sys_socket.in.h (ioctl): Remove declaration.
67211         * lib/winsock.c: Include <sys/ioctl.h>.
67212         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
67213         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
67214         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
67215         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
67216         * doc/posix-functions/ioctl.texi: Mention the new module.
67218 2008-10-09  Bruno Haible  <bruno@clisp.org>
67220         New module 'sys_ioctl'.
67221         * lib/sys_ioctl.in.h: New file.
67222         * m4/sys_ioctl_h.m4: New file.
67223         * modules/sys_ioctl: New file.
67224         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
67226 2008-10-09  Bruno Haible  <bruno@clisp.org>
67228         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
67229         * lib/winsock.c: Include <stdarg.h>.
67230         (rpl_ioctl): Change to second argument 'int' and then varargs.
67232 2008-10-09  Bruno Haible  <bruno@clisp.org>
67234         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
67235         when the sys_socket module is present and the system has <winsock2.h>.
67237 2008-10-09  Bruno Haible  <bruno@clisp.org>
67239         * doc/posix-functions/close.texi: Mention module 'close' instead of
67240         module 'sys_socket'.
67242 2008-10-09  Bruno Haible  <bruno@clisp.org>
67244         * doc/glibc-headers/sys_ioctl.texi: New file.
67245         * doc/gnulib.texi: Include it.
67247 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67248             Bruno Haible  <bruno@clisp.org>
67250         Combine the two replacements of 'close'.
67251         * lib/sys_socket.in.h (close): Define to a reminder to include
67252         <unistd.h>.
67253         (_gl_close_fd_maybe_socket): New declaration.
67254         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
67255         * lib/winsock.c (close): Remove undefinition.
67256         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
67257         needed for the gnulib module 'close'.
67258         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
67259         define to an error symbol or to a warning, if suitable.
67260         * lib/close.c: Include <sys/socket.h>.
67261         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
67262         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
67263         UNISTD_H_HAVE_WINSOCK2_H.
67264         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
67265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67266         UNISTD_H_HAVE_WINSOCK2_H.
67267         * modules/sys_socket (Files): Add m4/unistd_h.m4.
67268         (configure.ac): Set a module indicator.
67269         (Makefile.am): Substitute GNULIB_CLOSE.
67270         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
67271         * modules/poll-tests (Depends-on): Add close.
67272         * modules/select-tests (Depends-on): Likewise.
67274 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67275             Bruno Haible  <bruno@clisp.org>
67277         New module 'close'.
67278         * modules/close: New file.
67279         * lib/unistd.in.h (close): Move declaration out of the
67280         FCHDIR_REPLACEMENT scope.
67281         (_gl_unregister_fd): New declaration.
67282         * lib/close.c: New file.
67283         * lib/fchdir.c (rpl_close): Remove function.
67284         * m4/close.m4: New file.
67285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
67286         close.
67287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
67288         REPLACE_CLOSE.
67289         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
67290         REPLACE_CLOSE.
67291         * modules/fchdir (Depends-on): Add close.
67293 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67294             Bruno Haible  <bruno@clisp.org>
67296         * lib/fcntl.in.h (open): Simplify conditionals.
67297         (_gl_register_fd): New declaration.
67298         * lib/fchdir.c (rpl_open): Remove function.
67299         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
67300         also.
67301         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
67302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
67303         open.
67305 2008-10-09  Jim Meyering  <meyering@redhat.com>
67307         GNUmakefile: use the more name-space-friendly "_version"
67308         * top/GNUmakefile (_dummy): Update.
67309         (_version): Rename from "version".
67311 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67312             Bruno Haible  <bruno@clisp.org>
67314         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
67315         rpl_close.
67316         (_gl_register_fd): New function, extracted from rpl_open.
67317         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
67318         (rpl_open, rpl_opendir): Use _gl_register_fd.
67320 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67322         Fix organization of 'open' replacement.
67323         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
67324         (gl_FUNC_OPEN): Use it.
67325         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
67327 2008-10-08  Bruno Haible  <bruno@clisp.org>
67329         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
67331 2008-10-08  Simon Josefsson  <simon@josefsson.org>
67333         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
67334         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
67335         listen).
67337 2008-10-08  Eric Blake  <ebb9@byu.net>
67339         GNUmakefile: add 'make version' target
67340         * top/GNUmakefile (_curr-ver): Split version update rules...
67341         (version): ...into a target.
67343 2008-10-07  Bruno Haible  <bruno@clisp.org>
67345         Use a more portable replacement expression for -0.0L.
67346         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
67347         instead of -0.0L. Fix m4 quotation.
67349         * tests/test-signbit.c: Include <float.h>.
67350         (minus_zero): New variable.
67351         (test_signbitl): Use minus_zero instead of -zero.
67352         * modules/signbit-tests (Depends-on): Add float.
67354         * tests/test-ceill.c: Include <float.h>.
67355         (zero): Remove variable.
67356         (minus_zero): New variable.
67357         (main): Use minus_zero instead of -zero.
67358         * modules/ceill-tests (Depends-on): Add float.
67360         * tests/test-floorl.c: Include <float.h>.
67361         (zero): Remove variable.
67362         (minus_zero): New variable.
67363         (main): Use minus_zero instead of -zero.
67364         * modules/floorl-tests (Depends-on): Add float.
67366         * tests/test-roundl.c: Include <float.h>.
67367         (zero): Remove variable.
67368         (minus_zero): New variable.
67369         (main): Use minus_zero instead of -zero.
67370         * modules/roundl-tests (Depends-on): Add float.
67372         * tests/test-truncl.c: Include <float.h>.
67373         (zero): Remove variable.
67374         (minus_zero): New variable.
67375         (main): Use minus_zero instead of -zero.
67376         * modules/truncl-tests (Depends-on): Add float.
67378         * tests/test-frexpl.c (zero): Remove variable.
67379         (minus_zero): New variable.
67380         (main): Use minus_zero instead of -zero.
67381         * modules/frexpl-tests (Depends-on): Add float.
67383         * tests/test-isnan.c (zerol): Remove variable.
67384         (minus_zerol): New variable.
67385         (test_long_double): Use minus_zerol instead of -zerol.
67386         * modules/isnan-tests (Depends-on): Add float.
67388         * tests/test-isnanl.h (zero): Remove variable.
67389         (minus_zero): New variable.
67390         (main): Use minus_zero instead of -zero.
67391         * modules/isnanl-nolibm-tests (Depends-on): Add float.
67392         * modules/isnanl-tests (Depends-on): Add float.
67394         * tests/test-ldexpl.c (zero): Remove variable.
67395         (minus_zero): New variable.
67396         (main): Use minus_zero instead of -zero.
67397         * modules/ldexpl-tests (Depends-on): Add float.
67399         * tests/test-snprintf-posix.h (zerol): Remove variable.
67400         (minus_zerol): New variable.
67401         (test_function): Use minus_zerol instead of -zerol.
67402         * modules/snprintf-posix-tests (Depends-on): Add float.
67403         * modules/vsnprintf-posix-tests (Depends-on): Add float.
67405         * tests/test-sprintf-posix.h (zerol): Remove variable.
67406         (minus_zerol): New variable.
67407         (test_function): Use minus_zerol instead of -zerol.
67408         * modules/sprintf-posix-tests (Depends-on): Add float.
67409         * modules/vsprintf-posix-tests (Depends-on): Add float.
67411         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
67412         (minus_zerol): New variable.
67413         (test_function): Use minus_zerol instead of -zerol.
67414         * modules/vasnprintf-posix-tests (Depends-on): Add float.
67416         * tests/test-vasprintf-posix.c (zerol): Remove variable.
67417         (minus_zerol): New variable.
67418         (test_function): Use minus_zerol instead of -zerol.
67419         * modules/vasprintf-posix-tests (Depends-on): Add float.
67421 2008-10-07  Simon Josefsson  <simon@josefsson.org>
67423         * MODULES.html.sh (Support for building documentation): Mention
67424         pmccabe2html.  Sort entries.
67426         Add pmccabe2html module, from gnupdf.
67427         * build-aux/pmccabe.css: New file.
67428         * build-aux/pmccabe2html: New file.
67429         * m4/pmccabe2html.m4: New file.
67430         * modules/pmccabe2html: New file.
67432 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
67434         flock: new module
67435         * MODULES.html.sh: Add to list of modules.
67436         * lib/flock.c: flock implementation for Windows and Unix systems
67437         which have fcntl.
67438         * doc/glibc-functions/flock.texi: Update documentation.
67439         * lib/sys_file.in.h: <sys/file.h> header file.
67440         * m4/flock.m4: M4 macros.
67441         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
67442         * modules/flock: flock module.
67443         * modules/flock-tests: flock tests module.
67444         * modules/sys_file: sys/file.h module.
67445         * tests/test-flock.c: test suite for flock.
67447 2008-10-06  Jim Meyering  <meyering@redhat.com>
67449         bootstrap: check for LT_INIT more portably still ;-)
67450         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
67451         Spotted by Bruno Haible.
67453 2008-10-06  Eric Blake  <ebb9@byu.net>
67455         test-signbit: avoid tripping Irix cc bug on -0.0L
67456         * tests/test-signbit.c (minus_zerol): Delete, and replace with
67457         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
67458         entire testsuite consistent and avoids an Irix 6.2 bug.
67460 2008-10-05  Bruno Haible  <bruno@clisp.org>
67461             Jim Meyering  <jim@meyering.net>
67463         Add an option for ignoring EPIPE during close_stdout.
67464         * lib/closeout.h: Include <stdbool.h>.
67465         (close_stdout_set_ignore_EPIPE): New declaration.
67466         * lib/closeout.c: Include <stdbool.h>.
67467         (ignore_EPIPE): New variable.
67468         (close_stdout_set_ignore_EPIPE): New function.
67469         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
67470         * lib/close-stream.c (close_stream): Mention the possible EPIPE
67471         failure.
67472         * modules/closeout (Depends-on): Add stdbool.
67474 2008-10-05  Bruno Haible  <bruno@clisp.org>
67476         * modules/accept: New file.
67477         * modules/bind: New file.
67478         * modules/connect: New file.
67479         * modules/getpeername: New file.
67480         * modules/getsockname: New file.
67481         * modules/getsockopt: New file.
67482         * modules/listen: New file.
67483         * modules/recv: New file.
67484         * modules/recvfrom: New file.
67485         * modules/send: New file.
67486         * modules/sendto: New file.
67487         * modules/setsockopt: New file.
67488         * modules/socket: New file.
67489         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
67490         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67491         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
67492         the particular module is requested. Add a link warning when the
67493         particular module is not requested.
67494         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
67495         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
67496         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
67497         the particular module is requested.
67498         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
67499         gl_SYS_SOCKET_H_DEFAULTS): New macros.
67500         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
67501         * modules/sys_socket (Depends-on): Add link-warning.
67502         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
67503         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
67504         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
67505         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
67506         GL_LINK_WARNING.
67507         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
67508         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
67509         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
67510         * doc/posix-functions/getpeername.texi: Mention the new module
67511         'getpeername'.
67512         * doc/posix-functions/getsockname.texi: Mention the new module
67513         'getsockname'.
67514         * doc/posix-functions/getsockopt.texi: Mention the new module
67515         'getsockopt'.
67516         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
67517         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
67518         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
67519         * doc/posix-functions/send.texi: Mention the new module 'send'.
67520         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
67521         * doc/posix-functions/setsockopt.texi: Mention the new module
67522         'setsockopt'.
67523         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
67524         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
67525         listen, connect, accept.
67526         * modules/select-tests (Depends-on): Likewise.
67528 2008-10-05  Bruno Haible  <bruno@clisp.org>
67530         * lib/winsock.c (strerror): Remove unused #undef.
67531         (rpl_close): Remove unused local variable.
67533         * modules/sys_socket (Depends-on); Add errno.
67535 2008-10-05  Bruno Haible  <bruno@clisp.org>
67537         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
67538         (select): Add a link warning when the 'select' module is not used.
67539         * modules/sys_select (Depends-on): Add link-warning.
67540         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
67541         Suggested by Paolo Bonzini.
67543 2008-10-05  Jim Meyering  <meyering@redhat.com>
67545         bootstrap: check for LT_INIT more portably
67546         * build-aux/bootstrap: Avoid using grep -E, since it's not
67547         portable enough.  Suggestion from Bruno Haible.
67549 2008-10-05  Bruno Haible  <bruno@clisp.org>
67551         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
67552         as being fixed by gnulib.
67554 2008-10-05  Bruno Haible  <bruno@clisp.org>
67556         * modules/select-tests: New file, mostly copied from
67557         modules/sys_select-tests.
67558         * tests/test-select.c: New file, mostly copied from
67559         tests/test-sys_select.c.
67560         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
67561         * modules/sys_select-tests (Depends-on): Remove all dependencies.
67562         (Makefile.am): Remove test_sys_select_LDADD.
67564         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
67565         to an undefined symbol, for an error message.
67566         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
67567         (gl_SYS_SELECT_H_DEFAULTS): New macro.
67568         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
67569         winsock-select.c here.
67570         * modules/sys_select (Files): Remove lib/winsock-select.c.
67571         (Depends-on): Remove alloca.
67572         (Makefile.am): Substitute GNULIB_SELECT.
67573         * modules/select: New file.
67574         * doc/posix-functions/select.texi: Update.
67576 2008-10-05  Bruno Haible  <bruno@clisp.org>
67578         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
67579         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
67580         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
67581         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
67582         getdtablesize.
67583         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
67584         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
67586 2008-10-05  Bruno Haible  <bruno@clisp.org>
67588         * modules/getdtablesize-tests: New file.
67589         * tests/test-getdtablesize.c: New file.
67591         New module 'getdtablesize'.
67592         * lib/unistd.in.h (getdtablesize): New declaration.
67593         * lib/getdtablesize.c: New file.
67594         * m4/getdtablesize.m4: New file.
67595         * modules/getdtablesize: New file.
67596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67597         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
67598         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
67599         HAVE_GETDTABLESIZE.
67600         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
67602 2008-10-05  Bruno Haible  <bruno@clisp.org>
67604         * modules/sched (Makefile.am): Fix typo.
67605         Reported by Simon Josefsson.
67607 2008-10-05  Jim Meyering  <meyering@redhat.com>
67609         bootstrap: check for LT_INIT, too
67610         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
67611         are deprecated.  Suggestion from Ralf Wildenhues.
67613 2008-10-05  Bruno Haible  <bruno@clisp.org>
67615         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
67616         overriding them by ours.
67617         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
67619 2008-10-05  Jim Meyering  <meyering@redhat.com>
67621         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
67622         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
67623         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
67625 2008-10-04  Bruno Haible  <bruno@clisp.org>
67627         * modules/dup2 (License): Change to LGPLv2+.
67628         * modules/sleep (License): Likewise.
67629         * modules/perror (License): Likewise.
67630         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
67631         Blake.
67632         * modules/signal (License): Likewise.
67633         * modules/sigprocmask (License): Likewise.
67634         * modules/raise (License): Change to LGPLv2+, with approval by Jim
67635         Meyering.
67637 2008-10-04  Bruno Haible  <bruno@clisp.org>
67639         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
67640         Reported by Rainer Tammer <tammer@tammer.net>.
67642 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
67643             Bruno Haible  <bruno@clisp.org>
67645         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
67646         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
67647         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
67649 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
67651         filevercmp: new module
67652         * lib/filevercmp.h: New function filevercmp comparing version strings.
67653         * lib/filevercmp.c: Implementation of filevercmp function.
67654         * modules/filevercmp: Module metadata.
67655         * tests/test-filevercmp.c: Unit test for new module.
67656         * modules/filevercmp-tests: Unit test metadata.
67657         * MODULES.html.sh: Add filevercmp module.
67659 2008-10-03  Bruno Haible  <bruno@clisp.org>
67661         * lib/c-ctype.h: Add comment.
67662         Reported by Jim Meyering.
67664 2008-10-02  Bruno Haible  <bruno@clisp.org>
67666         * modules/posix_spawn-internal (Depends-on): Add 'open'.
67668 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
67670         * build-aux/bootstrap: Allow renaming bootstrap, and change the
67671         name of bootstrap.conf accordingly.
67673 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
67675         * build-aux/bootstrap: Install git-merge-changelog configuration
67676         items into .gitconfig if needed.
67678 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
67680         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
67681         git repository, and initialize/update it accordingly.
67683 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
67685         * modules/fsync-tests: New file.
67686         * tests/test-fsync.c: New file.
67688         New module 'fsync'.
67689         * lib/fsync.c: New file.
67690         * m4/fsync.m4: New file.
67691         * modules/fsync: New file.
67692         * lib/unistd.in.h (fsync): New declaration.
67693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
67694         GNULIB_FSYNC and HAVE_FSYNC.
67695         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
67696         * MODULES.html.sh (posix_functions): Add fsync.
67697         * doc/posix-functions/fsync.texi: Mention the new module.
67699 2008-10-02  Jim Meyering  <meyering@redhat.com>
67701         fts.c: sync with similar code from coreutils' remove.c
67702         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
67703         Guard also with "#if defined __linux__", since for now at least,
67704         this code is Linux-kernel-specific.
67706 2008-10-02  Jim Meyering  <meyering@redhat.com>
67708         fts: bug fixes
67709         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
67710         Include <sys/vfs.h>, not <sys/statfs.h>.
67712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
67713         Include <sys/vfs.h>, not <sys/statfs.h>.
67715 2008-10-01  Bruno Haible  <bruno@clisp.org>
67717         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
67718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
67719         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
67720         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
67721         * doc/posix-functions/posix_spawnp.texi: Likewise.
67722         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
67723         whether posix_spawn actually works.
67724         * m4/pipe.m4 (gl_PIPE): Likewise.
67725         * modules/execute (Files): Add m4/posix_spawn.m4.
67726         * modules/pipe (Files): Add m4/posix_spawn.m4.
67727         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
67729 2008-10-01  Jim Meyering  <meyering@redhat.com>
67731         remove trailing spaces
67732         * NEWS: Likewise.
67733         * lib/poll.c (poll): Likewise.
67734         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
67735         * lib/winsock.c (rpl_close): Likewise.
67736         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
67737         * modules/yield: Likewise.
67738         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
67739         * tests/test-sys_select.c (connect_to_socket): Likewise.
67741         fts.c: adjust a new interface to be more generally useful
67742         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
67743         (fts_build): Adjust caller.
67745 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67747         * modules/cond-tests: New file.
67748         * tests/test-cond.c: New file.
67750 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67751             Bruno Haible  <bruno@clisp.org>
67753         * modules/cond (Dependencies): Add errno, time.
67754         * lib/glthread/cond.h: Include <time.h>.
67755         (gl_cond_define, gl_cond_define_initialized): Use the same definition
67756         across platforms.
67758 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67759             Bruno Haible  <bruno@clisp.org>
67761         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
67763 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67764             Bruno Haible  <bruno@clisp.org>
67766         * modules/tls-tests (Depends-on): Add thread, yield.
67767         (configure.ac): Remove all checks.
67768         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
67769         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
67770         gl_thread_self): Remove definitions. Include glthread/thread.h and
67771         glthread/yield.h instead.
67772         (test_tls): Pass an additional NULL argument to gl_thread_join.
67774 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67775             Bruno Haible  <bruno@clisp.org>
67777         * modules/lock-tests (Depends-on): Add thread, yield.
67778         (configure.ac): Remove all checks.
67779         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
67780         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
67781         gl_thread_self): Remove definitions. Include glthread/thread.h and
67782         glthread/yield.h instead.
67783         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
67784         additional NULL argument to gl_thread_join.
67786 2008-09-30  Bruno Haible  <bruno@clisp.org>
67788         Fix the Win32 implementation of the 'thread' module.
67789         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
67790         pointer type.
67791         (gl_thread_self): Invoke gl_thread_self_func.
67792         (gl_thread_self_func): New declaration.
67793         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
67794         (do_init_self_key, init_self_key): New functions.
67795         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
67796         Remove some fields.
67797         (running_threads, running_lock): Remove variables.
67798         (get_current_thread_handle): New function.
67799         (gl_thread_self_func, wrapper_func, glthread_create_func,
67800         glthread_join_func, gl_thread_exit_func): Largely rewritten and
67801         simplified.
67803 2008-09-30  Bruno Haible  <bruno@clisp.org>
67805         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
67806         files.
67808 2008-09-30  Jim Meyering  <meyering@redhat.com>
67810         fts.m4: correct the test for statfs.f_type
67811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
67812         when checking for statfs.f_type.
67814 2008-09-15  Simon Josefsson  <simon@josefsson.org>
67816         tests: avoid some compiler warnings
67817         * tests/test-memchr.c (main): Pass NULL indirectly.
67818         * tests/test-getdate.c (main): Remove unused variable 'ret'.
67820 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
67822         getdate.y: disallow countable dayshifts like "4 yesterday ago"
67823         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
67824         exactly specified dayshifts.
67825         (dayshift): New rule.
67826         (rel): Add dayshift.
67827         (relative_time_table) [tomorrow, yesterday, today, now]:
67828         Use tDAY_SHIFT in place of tDAY_UNIT.
67829         * tests/test-getdate.c: Add tests for now-disallowed countable
67830         dayshifts, e.g., "4 yesterday ago".
67832 2008-09-29  Bruno Haible  <bruno@clisp.org>
67834         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
67835         * tests/test-posix_spawn1.in.sh: Renamed from
67836         tests/test-posix_spawn.in.sh.
67837         * tests/test-posix_spawn2.c: New file.
67838         * tests/test-posix_spawn2.in.sh: New file.
67839         * modules/posix_spawnp-tests (Files): Update.
67840         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
67842 2008-09-29  Bruno Haible  <bruno@clisp.org>
67844         Propagate effects of putenv/setenv/unsetenv to child processes.
67845         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
67846         * lib/pipe.c (create_pipe): Likewise.
67848 2008-09-29  Bruno Haible  <bruno@clisp.org>
67850         Enable use of shell scripts as executables in mingw.
67851         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
67852         run the program as a shell script.
67853         * lib/pipe.c (create_pipe): Likewise.
67854         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
67855         resulting array.
67857 2008-09-29  Eric Blake  <ebb9@byu.net>
67859         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
67861 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
67863         * doc/posix-functions/accept.texi: Update mingw problems.
67864         * doc/posix-functions/bind.texi: Update mingw problems.
67865         * doc/posix-functions/close.texi: Update mingw problems.
67866         * doc/posix-functions/connect.texi: Update mingw problems.
67867         * doc/posix-functions/getpeername.texi: Update mingw problems.
67868         * doc/posix-functions/getsockname.texi: Update mingw problems.
67869         * doc/posix-functions/getsockopt.texi: Update mingw problems.
67870         * doc/posix-functions/ioctl.texi: Update mingw problems.
67871         * doc/posix-functions/listen.texi: Update mingw problems.
67872         * doc/posix-functions/recv.texi: Update mingw problems.
67873         * doc/posix-functions/recvfrom.texi: Update mingw problems.
67874         * doc/posix-functions/select.texi: Update mingw problems.
67875         * doc/posix-functions/send.texi: Update mingw problems.
67876         * doc/posix-functions/sendto.texi: Update mingw problems.
67877         * doc/posix-functions/setsockopt.texi: Update mingw problems.
67878         * doc/posix-functions/socket.texi: Update mingw problems.
67880 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
67881             Bruno Haible  <bruno@clisp.org>
67883         * lib/sys_select.in.h: Include sys/time.h.
67884         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
67885         * modules/sys_select: Depend on sys_time.
67886         * tests/test-sys_select.c: Test that sys/select.h defines struct
67887         timeval fully.
67889 2008-09-29  Bruno Haible  <bruno@clisp.org>
67891         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
67892         * lib/sys_select.in.h: Likewise.
67894 2008-09-29  Bruno Haible  <bruno@clisp.org>
67896         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
67898 2008-09-29  Bruno Haible  <bruno@clisp.org>
67900         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
67901         Set LIBSOCKET instead of augmenting LIBS.
67902         * modules/sockets (Link): New section.
67903         * modules/sockets-tests (test_sockets_LDADD): New variable.
67904         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
67905         * modules/poll-tests (test_poll_LDADD): New variable.
67906         * NEWS: Document the change.
67908 2008-09-29  Bruno Haible  <bruno@clisp.org>
67910         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
67911         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
67912         ARPA_INET_H directly.
67913         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
67915 2008-09-28  Bruno Haible  <bruno@clisp.org>
67917         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
67918         from gl_HEADER_SYS_SOCKET.
67919         (gl_HEADER_SYS_SOCKET): Invoke it.
67920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67922 2008-09-28  Bruno Haible  <bruno@clisp.org>
67924         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
67925         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
67926         Needed on OSF/1 4.0.
67928 2008-09-28  Bruno Haible  <bruno@clisp.org>
67930         Override open more carefully.
67931         * lib/open.c (orig_open): New function.
67932         (rpl_open): Use orig_open instead of open.
67933         * lib/fcntl.in.h: Add special invocation convention.
67934         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
67935         (gl_FUNC_OPEN): Invoke it.
67937         Override freopen more carefully.
67938         * lib/freopen.c (orig_freopen): New function.
67939         (rpl_freopen): Use orig_freopen instead of freopen.
67940         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
67941         (gl_FUNC_FREOPEN): Invoke it.
67943         Override fopen more carefully.
67944         * lib/fopen.c (orig_fopen): New function.
67945         (rpl_fopen): Use orig_fopen instead of fopen.
67946         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
67947         (gl_FUNC_FOPEN): Invoke it.
67948         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
67950 2008-09-28  Bruno Haible  <bruno@clisp.org>
67952         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
67953         SIGPIPE.
67955 2008-09-28  Bruno Haible  <bruno@clisp.org>
67957         * tests/test-sigaction.c (handler, main): Disable the check whether
67958         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
67959         glibc systems with LinuxThreads.
67961 2008-09-28  Bruno Haible  <bruno@clisp.org>
67963         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
67965         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
67966         with AIX xlc.
67967         * lib/fcntl.in.h (open): Likewise.
67968         Reported by Rainer Tammer <tammer@tammer.net>.
67970 2008-09-28  Bruno Haible  <bruno@clisp.org>
67972         * modules/posix_spawnp-tests: New file.
67973         * tests/test-posix_spawn.c: New file.
67974         * tests/test-posix_spawn.in.sh: New file.
67976         New module 'posix_spawnp'.
67977         * modules/posix_spawnp: New file.
67978         * lib/spawnp.c: New file, from GNU libc with modifications.
67979         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
67981         New module 'posix_spawn'.
67982         * modules/posix_spawn: New file.
67983         * lib/spawn.c: New file, from GNU libc with modifications.
67984         * doc/posix-functions/posix_spawn.texi: Mention the new module.
67986         New module 'posix_spawnattr_destroy'.
67987         * modules/posix_spawnattr_destroy: New file.
67988         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
67989         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
67990         module.
67992         New module 'posix_spawnattr_setsigmask'.
67993         * modules/posix_spawnattr_setsigmask: New file.
67994         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
67995         modifications.
67996         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
67997         new module.
67999         New module 'posix_spawnattr_getsigmask'.
68000         * modules/posix_spawnattr_getsigmask: New file.
68001         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
68002         modifications.
68003         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
68004         new module.
68006         New module 'posix_spawnattr_setsigdefault'.
68007         * modules/posix_spawnattr_setsigdefault: New file.
68008         * lib/spawnattr_setdefault.c: New file, from GNU libc with
68009         modifications.
68010         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
68011         new module.
68013         New module 'posix_spawnattr_getsigdefault'.
68014         * modules/posix_spawnattr_getsigdefault: New file.
68015         * lib/spawnattr_getdefault.c: New file, from GNU libc with
68016         modifications.
68017         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
68018         new module.
68020         New module 'posix_spawnattr_setschedpolicy'.
68021         * modules/posix_spawnattr_setschedpolicy: New file.
68022         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
68023         modifications.
68024         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
68025         new module.
68027         New module 'posix_spawnattr_getschedpolicy'.
68028         * modules/posix_spawnattr_getschedpolicy: New file.
68029         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
68030         modifications.
68031         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
68032         new module.
68034         New module 'posix_spawnattr_setschedparam'.
68035         * modules/posix_spawnattr_setschedparam: New file.
68036         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
68037         modifications.
68038         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
68039         new module.
68041         New module 'posix_spawnattr_getschedparam'.
68042         * modules/posix_spawnattr_getschedparam: New file.
68043         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
68044         modifications.
68045         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
68046         new module.
68048         New module 'posix_spawnattr_setpgroup'.
68049         * modules/posix_spawnattr_setpgroup: New file.
68050         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
68051         modifications.
68052         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
68053         module.
68055         New module 'posix_spawnattr_getpgroup'.
68056         * modules/posix_spawnattr_getpgroup: New file.
68057         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
68058         modifications.
68059         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
68060         module.
68062         New module 'posix_spawnattr_setflags'.
68063         * modules/posix_spawnattr_setflags: New file.
68064         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
68065         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
68066         module.
68068         New module 'posix_spawnattr_getflags'.
68069         * modules/posix_spawnattr_getflags: New file.
68070         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
68071         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
68072         module.
68074         New module 'posix_spawnattr_init'.
68075         * modules/posix_spawnattr_init: New file.
68076         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
68077         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
68078         module.
68080         New module 'posix_spawn_file_actions_destroy'.
68081         * modules/posix_spawn_file_actions_destroy: New file.
68082         * lib/spawn_faction_destroy.c: New file, from GNU libc with
68083         modifications.
68084         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
68085         the new module.
68087         New module 'posix_spawn_file_actions_addopen'.
68088         * modules/posix_spawn_file_actions_addopen: New file.
68089         * lib/spawn_faction_addopen.c: New file, from GNU libc with
68090         modifications.
68091         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
68092         the new module.
68094         New module 'posix_spawn_file_actions_adddup2'.
68095         * modules/posix_spawn_file_actions_adddup2: New file.
68096         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
68097         modifications.
68098         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
68099         the new module.
68101         New module 'posix_spawn_file_actions_addclose'.
68102         * modules/posix_spawn_file_actions_addclose: New file.
68103         * lib/spawn_faction_addclose.c: New file, from GNU libc with
68104         modifications.
68105         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
68106         the new module.
68108         New module 'posix_spawn_file_actions_init'.
68109         * modules/posix_spawn_file_actions_init: New file.
68110         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
68111         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
68112         new module.
68114         New module 'posix_spawn-internal'.
68115         * modules/posix_spawn-internal: New file.
68116         * lib/spawn_int.h: New file, from GNU libc with modifications.
68117         * lib/spawni.c: New file, from GNU libc with modifications.
68118         * m4/posix_spawn.m4: New file.
68120         New module 'spawn'.
68121         * modules/spawn: New file.
68122         * lib/spawn.in.h: New file, from GNU libc with modifications.
68123         * m4/spawn_h.m4: New file.
68124         * doc/posix-headers/spawn.texi: Mention the new module.
68126 2008-09-28  Bruno Haible  <bruno@clisp.org>
68128         * modules/sched-tests: New file.
68129         * tests/test-sched.c: New file.
68131         New module 'sched'.
68132         * modules/sched: New file.
68133         * lib/sched.in.h: New file.
68134         * m4/sched_h.m4: New file.
68135         * doc/posix-headers/sched.texi: Mention the new module.
68137 2008-09-27  Eric Blake  <ebb9@byu.net>
68139         Fix previous patch, and tweak references to $0.
68140         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
68141         (func_version, func_gnulib_dir): Don't call this program
68142         gnulib-tool.
68143         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
68144         with using $0 in function.
68145         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
68146         (func_fatal_error): Reuse the name the user invoked us with.
68148 2008-09-27  Bruno Haible  <bruno@clisp.org>
68150         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
68151         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
68152         (gl_ICONV_H): Not here.
68153         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68154         instead of assigning ICONV_H directly.
68156         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
68157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
68158         WCHAR_H directly.
68160 2008-09-27  Bruno Haible  <bruno@clisp.org>
68162         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
68163         * modules/arpa_inet (Depends-on): Add link-warning.
68164         (Makefile.am): Insert the definition of GL_LINK-WARNING.
68165         * modules/unistd (Makefile.am): Likewise.
68167 2008-09-26  Bruno Haible  <bruno@clisp.org>
68169         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
68170         variables.
68171         (func_version): Essentially copied from gnulib-tool.
68172         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
68173         func_readlink): Copied from gnulib-tool.
68175 2008-09-26  Bruno Haible  <bruno@clisp.org>
68177         * gnulib-tool (func_version): Change directory to $gnulib_dir before
68178         invoking git-version-gen.
68180 2008-09-26  Bruno Haible  <bruno@clisp.org>
68182         * posix-modules: Update to directory names changed on 2008-01-19.
68183         Remove commas in output before splitting into words. No more need to
68184         avoid 'ftruncate' since 2007-02-19.
68186 2008-09-26  Bruno Haible  <bruno@clisp.org>
68188         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
68190 2008-09-26  Bruno Haible  <bruno@clisp.org>
68192         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
68193         * modules/fwriteerror (Depends-on): Add errno.
68195 2008-09-26  Bruno Haible  <bruno@clisp.org>
68197         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
68198         * tests/test-vc-list-files-cvs.sh: Likewise.
68200 2008-09-26  Bruno Haible  <bruno@clisp.org>
68202         * doc/posix-headers/sys_resource.texi: Reorder items.
68204 2008-09-26  Jim Meyering  <meyering@redhat.com>
68206         fts: tweak inode comparison function
68207         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
68208         inode numbers, as documented.
68210         fts: sort dirent entries on inode number before traversing
68211         This avoids a quadratic, seek-related performance penalty when
68212         operating on a directory containing many entries (measurable at 10k;
68213         3.5 hours at 2 million entries with a cold cache) on certain types
68214         of file systems, including ext3 and ext4, but not tmpfs.
68215         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
68216         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
68217         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
68218         (fs_handles_readdir_ordered_dirents_efficiently): New function.
68219         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
68220         (fts_build): Set the stat.st_ino member from D_INO.
68221         If it is likely to be useful, sort dirent entries on inode number.
68223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
68224         and the struct statfs.f_type member.
68225         * modules/fts (Depends-on): Add d-ino.
68227 2008-09-26  Bruno Haible  <bruno@clisp.org>
68229         * modules/sigpipe-die (Depends-on): Add sigpipe.
68231         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
68232         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
68233         and GNULIB_STDIO_H_SIGPIPE are set.
68234         * lib/stdio-write.c: New file.
68235         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
68236         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
68237         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
68238         REPLACE_STDIO_WRITE_FUNCS.
68239         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
68240         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
68241         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
68242         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
68243         * modules/stdio (Files): Add lib/stdio-write.c.
68244         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
68245         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
68246         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
68247         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
68248         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
68249         REPLACE_FPRINTF_POSIX.
68250         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
68251         REPLACE_PRINTF_POSIX.
68252         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
68253         REPLACE_VFPRINTF_POSIX.
68254         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
68255         REPLACE_VPRINTF_POSIX.
68256         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
68257         SIGPIPE issue.
68258         * doc/posix-functions/fputc.texi: Likewise.
68259         * doc/posix-functions/fputs.texi: Likewise.
68260         * doc/posix-functions/fwrite.texi: Likewise.
68261         * doc/posix-functions/printf.texi: Likewise.
68262         * doc/posix-functions/putc.texi: Likewise.
68263         * doc/posix-functions/putchar.texi: Likewise.
68264         * doc/posix-functions/puts.texi: Likewise.
68265         * doc/posix-functions/vfprintf.texi: Likewise.
68266         * doc/posix-functions/vprintf.texi: Likewise.
68268         * modules/safe-write (Depends-on): Add write.
68270         * modules/sigpipe-tests: New file.
68271         * tests/test-sigpipe.c: New file.
68272         * tests/test-sigpipe.sh: New file.
68274         * modules/write: New file.
68275         * lib/unistd.in.h: Include <sys/types.h>.
68276         (write): New declaration.
68277         * lib/write.c: New file.
68278         * m4/write.m4: New file.
68279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68280         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
68281         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
68282         GNULIB_WRITE, REPLACE_WRITE.
68283         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
68284         and the SIGPIPE issue.
68286         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
68287         (raise): New declaration.
68288         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
68289         (ext_signal): New function.
68290         (rpl_raise): New function.
68291         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
68292         GNULIB_SIGNAL_H_SIGPIPE.
68293         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
68294         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
68296         * modules/sigpipe: New file.
68297         * m4/sigpipe.m4: New file.
68299 2008-09-25  Derek Price  <derek@ximbiot.com>
68300             Bruno Haible  <bruno@clisp.org>
68302         * gnulib-tool (func_import): Report all license incompatibilities, not
68303         just the first one.
68305 2008-09-25  Bruno Haible  <bruno@clisp.org>
68307         * gnulib-tool (func_import): When computing the edits, consider not
68308         only the Makefile.ams that exist but also those that will be generated.
68310 2008-09-25  Simon Josefsson  <simon@josefsson.org>
68312         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
68313         fixes gnulib-tool --test warning about duplicate dependency.
68315 2008-09-25  Bruno Haible  <bruno@clisp.org>
68317         * gnulib-tool: Don't ask the user to perform edits in the generated
68318         Makefile.ams.
68319         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
68320         apply to the Makefile.am being generated.
68321         (func_emit_tests_Makefile_am): Execute edits that apply to the
68322         Makefile.am being generated.
68323         (func_import): Setup list of Makefile.am edits before emitting the
68324         Makefile.ams, not at the end.
68325         (func_create_testdir): Update.
68326         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68328 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68330         * gnulib-tool (func_import): Store the --tests-base option in the
68331         comment in gnulib-cache.m4.
68333 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
68335         * NEWS: Document increased portability that sys_select now provides.
68337         * lib/sys_select.in.h: Install select wrapper.
68338         * lib/sys_socket.in.h: Use more descriptive name when there is no
68339         select wrapper.
68340         * lib/winsock-select.c: New.
68341         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
68342         Require gl_HEADER_SYS_SOCKET.
68343         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
68344         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
68345         * tests/test-sys_select.c: Add functional tests.
68347 2008-09-24  Eric Blake  <ebb9@byu.net>
68349         open, fopen: close fd leak in last patch
68350         * lib/open.c (rpl_open): Close fd before returning error.
68351         * lib/fopen.c (rpl_fopen): Close fd before returning error.
68352         * doc/posix-functions/open.texi (open): Document that Irix also
68353         has the bug.
68354         * doc/posix-functions/fopen.texi (fopen): Likewise.
68355         Reported by Paolo Bonzini.
68357 2008-09-24  Bruno Haible  <bruno@clisp.org>
68359         Ensure that a filename ending in a slash cannot be used to access a
68360         non-directory.
68361         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
68362         to check whether it's really a directory.
68363         * lib/fopen.c: Include fcntl.h, unistd.h.
68364         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
68365         and fdopen().
68366         * modules/fopen (Depends-on): Add unistd.
68367         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
68368         * tests/test-fopen.c (main): Likewise.
68369         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
68370         * doc/posix-functions/fopen.texi: Likewise.
68371         Reported by Eric Blake.
68373 2008-09-23  Eric Blake  <ebb9@byu.net>
68375         c-stack: avoid compiler optimizations when provoking overflow
68376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
68377         recursion harder to optimize, to ensure a stack overflow occurs.
68378         * tests/test-c-stack.c (recurse): Likewise.
68379         Borrowed from libsigsegv.
68381         c-stack: work around Irix sigaltstack bug
68382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
68383         whether sigaltstack uses wrong end of stack_t (copied in part from
68384         libsigsegv).
68385         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
68386         Irix bug, without requiring an over-allocation.
68387         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
68388         bug.
68390         fopen: document mingw bug on directories
68391         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
68392         not allowing a stream visiting a directory, even though reading
68393         from such a stream is not portable.
68395 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
68397         * lib/poll.c: Rewrite.
68398         * modules/poll: Depend on alloca.
68400 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
68402         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
68403         instead define prototypes for a full set of wrappers.  Ensure
68404         that Cygwin does not use the compatibility code, which is only
68405         for MinGW.
68406         * lib/winsock.c: New.
68407         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
68408         * modules/sys_socket: Add lib/winsock.c.
68410         * modules/poll-tests: Add errno and perror.
68411         * tests/test-poll.c: Use ioctl, not ioctlsocket.
68413 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
68415         * tests/test-poll.c: Downgrade minimum needed Winsock version.
68417 2008-09-23  Bruno Haible  <bruno@clisp.org>
68419         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
68420         * doc/glibc-functions/*: Likewise.
68422 2008-09-23  Simon Josefsson  <simon@josefsson.org>
68424         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
68425         success.
68427 2008-09-22  Eric Blake  <ebb9@byu.net>
68428             Bruno Haible  <bruno@clisp.org>
68430         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
68431         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
68432         supply %A but mishandle pseudo-NaN.
68433         Reported by Simon Josefsson.
68435 2008-09-21  Bruno Haible  <bruno@clisp.org>
68437         * tests/test-lock.c (main): Tweak skip message.
68438         * tests/test-tls.c (main): Likewise.
68440 2008-09-21  Bruno Haible  <bruno@clisp.org>
68442         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
68443         whether 'struct sigaction' has sa_sigaction here...
68444         (gl_PREREQ_SIG_HANDLER_H): ... not here.
68445         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
68447 2008-09-21  Bruno Haible  <bruno@clisp.org>
68449         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
68450         section.
68451         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
68452         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
68453         the new section.
68454         (Support for obsolete systems lacking POSIX:2001): New section.
68455         (String handling <string.h>): Move strdup to the new section.
68456         Suggested by Simon Josefsson and Paolo Bonzini.
68458 2008-09-21  Bruno Haible  <bruno@clisp.org>
68460         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
68461         exponents in %e and %g results on 'long double'. Needed for mingw's
68462         improved *printf functions.
68463         * tests/test-vasprintf-posix.c (test_function): Likewise.
68464         * tests/test-snprintf-posix.h (test_function): Likewise.
68465         * tests/test-sprintf-posix.h (test_function): Likewise.
68466         Reported by Eric Blake.
68468 2008-09-21  Bruno Haible  <bruno@clisp.org>
68470         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
68471         * tests/test-sprintf-posix.h (test_function): Likewise.
68473 2008-09-21  Bruno Haible  <bruno@clisp.org>
68475         * modules/getpass (Depends-on): Add strdup-posix.
68477         New module 'strdup-posix'.
68478         * modules/strdup-posix: New file.
68479         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
68480         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
68481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68482         REPLACE_STRDUP.
68483         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
68484         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
68485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68486         strdup-posix.
68488         * modules/strdup (Depends-on): Remove malloc-posix.
68490 2008-09-20  Bruno Haible  <bruno@clisp.org>
68492         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
68493         Wildenhues.
68495 2008-09-20  Bruno Haible  <bruno@clisp.org>
68497         Ensure that wint_t gets defined on IRIX 5.3.
68498         * lib/wchar.in.h (wint_t): Define if not defined by the system.
68499         * lib/wctype.in.h (wint_t): Likewise.
68500         (__wctype_wint_t): Remove type.
68501         (isw*): Use wint_t instead of __wctype_wint_t.
68502         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
68503         * modules/wchar (Files): Add m4/wint_t.m4.
68504         (Makefile.am): Substitute HAVE_WINT_T.
68505         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
68506         * tests/test-wctype.c: Check that wint_t is defined.
68507         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
68508         * doc/posix-headers/wctype.texi: Likewise.
68509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68511 2008-09-18  Bruno Haible  <bruno@clisp.org>
68513         * gnulib-tool (func_exit): Update comment.
68515 2008-09-18  Simon Josefsson  <simon@josefsson.org>
68517         * modules/getaddrinfo (Depends-on): Remove strdup, this module
68518         assumes strdup exists and does not depend on strdup to return
68519         ENOMEM on out of memory conditions.
68521 2008-09-18  Bruno Haible  <bruno@clisp.org>
68523         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
68524         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
68525         digits for the exponent.
68527 2008-09-18  Jim Meyering  <meyering@redhat.com>
68528             Bruno Haible  <bruno@clisp.org>
68530         * lib/vasnprintf.c (decimal_point_char): Define also if
68531         NEED_PRINTF_INFINITE_LONG_DOUBLE.
68533 2008-09-16  Bruno Haible  <bruno@clisp.org>
68534         and Eric Blake  <ebb9@byu.net>
68536         vasnprintf: support Irix 5.3
68537         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
68538         that mishandle long double infinity.
68539         Reported by Tom G. Christensen.
68541 2008-09-16  Bruno Haible  <bruno@clisp.org>
68543         * doc/glibc-functions/scandir.texi: Mention the function is missing on
68544         Solaris 9.
68545         * doc/glibc-functions/alphasort.texi: Likewise.
68546         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
68548 2008-09-16  Jim Meyering  <meyering@redhat.com>
68550         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
68551         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
68552         a umask modification leak out of a subshell.  Otherwise, the
68553         opensolaris /bin/sh would be accepted and thus cause unwarranted
68554         failures in the coreutils test suite.
68556 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
68558         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
68559         to succeed.
68561 2008-09-16  Jim Meyering  <meyering@redhat.com>
68563         avoid spurious test failure when library is built without ACL support
68564         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
68565         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
68566         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
68567         * tests/test-copy-acl.sh: Likewise.
68569 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68571         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
68572         based on character occurrence counts.
68574 2008-09-15  Eric Blake  <ebb9@byu.net>
68576         tests: avoid some compiler warnings
68577         * tests/test-memchr.c (main): Pass NULL indirectly.
68578         * tests/test-closein.c (main): Avoid unused variable.
68580 2008-09-15  Bruno Haible  <bruno@clisp.org>
68582         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
68583         are missing on OpenBSD 4.0 individually.
68584         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68586 2008-09-15  Bruno Haible  <bruno@clisp.org>
68588         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
68589         * doc/posix-functions/strerror.texi: Mention also Cygwin.
68590         * doc/posix-functions/perror.texi: Likewise.
68591         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
68592         is missing.
68593         Reported by Eric Blake.
68595         * lib/errno.in.h: Use replacement values >= 2000.
68596         Reported by Eric Blake.
68598 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68600         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
68601         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
68602         limit.
68603         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
68604         compareseq was aborted.
68606 2008-09-14  Bruno Haible  <bruno@clisp.org>
68608         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
68609         yvec_edit_count.
68610         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
68611         (fstrcmp_bounded): Simplify result computation accordingly.
68613 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68615         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
68616         (fstrcmp): Define in terms of fstrcmp_bounded.
68617         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
68618         lower_bound argument.
68619         Return quickly if the result is certainly < lower_bound.
68620         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
68622 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68624         * lib/diffseq.h (EARLY_ABORT): New macro.
68625         (compareseq): Change return type to bool. Return true when EARLY_ABORT
68626         evaluates to true.
68628 2008-09-14  Bruno Haible  <bruno@clisp.org>
68630         * modules/perror-tests: New file.
68631         * tests/test-perror.sh: New file.
68632         * tests/test-perror.c: New file.
68634         New module 'perror'.
68635         * lib/stdio.in.h (perror): New declaration.
68636         * lib/perror.c: New file.
68637         * m4/perror.m4: New file.
68638         * modules/perror: New file.
68639         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
68640         * doc/posix-functions/perror.texi: Mention the perror module.
68641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
68642         REPLACE_PERROR.
68643         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
68644         REPLACE_PERROR.
68646 2008-09-14  Bruno Haible  <bruno@clisp.org>
68648         * modules/stdio (Makefile.am): Reorder to match the order in
68649         lib/stdio.in.h.
68650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68652 2008-09-13  Bruno Haible  <bruno@clisp.org>
68654         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
68656 2008-09-13  Bruno Haible  <bruno@clisp.org>
68658         Extend strerror to cover the added errno values.
68659         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
68660         (rpl_strerror): Provide error messages for the added errno values and
68661         for the WSA* values.
68662         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
68663         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
68664         strerror.
68665         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
68666         * modules/strerror (Depends-on): Add errno.
68667         * doc/posix-functions/strerror.texi: Document the change.
68668         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
68669         and EOVERFLOW.
68671 2008-09-13  Bruno Haible  <bruno@clisp.org>
68673         * modules/EOVERFLOW: Remove file.
68674         * m4/eoverflow.m4: Remove file.
68675         * modules/EOVERFLOW-tests: Remove file.
68676         * tests/test-EOVERFLOW.c: Remove file.
68677         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
68678         * modules/ftell (Depends-on): Likewise.
68679         * modules/getdelim (Depends-on): Likewise.
68680         * modules/getugroups (Depends-on): Likewise.
68681         * modules/poll (Depends-on): Likewise.
68682         * modules/snprintf (Depends-on): Likewise.
68683         * modules/sprintf-posix (Depends-on): Likewise.
68684         * modules/vasnprintf (Depends-on): Likewise.
68685         * modules/vasprintf (Depends-on): Likewise.
68686         * modules/vfprintf-posix (Depends-on): Likewise.
68687         * modules/vsnprintf (Depends-on): Likewise.
68688         * modules/vsprintf-posix (Depends-on): Likewise.
68689         * modules/xvasprintf (Depends-on): Likewise.
68690         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
68691         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
68692         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
68693         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
68694         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
68695         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
68696         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
68697         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
68698         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
68699         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
68700         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
68701         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
68702         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
68703         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
68704         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
68705         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
68706         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
68707         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
68708         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
68709         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
68710         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
68711         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
68712         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
68713         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
68714         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
68715         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
68716         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
68717         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
68718         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
68719         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
68720         * MODULES.html.sh: Remove EOVERFLOW.
68721         * NEWS: Mention the change.
68723 2008-09-13  Bruno Haible  <bruno@clisp.org>
68725         * modules/errno-tests: New file.
68726         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
68728         * lib/errno.in.h: New file.
68729         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
68730         * modules/errno: New file.
68731         * doc/posix-headers/errno.texi: Update documentation.
68732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
68734 2008-09-13  Bruno Haible  <bruno@clisp.org>
68736         * tests/test-poll.c: Use #if for native Windows, rather than testing
68737         __MSVCRT__.
68739 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68740             Bruno Haible  <bruno@clisp.org>
68742         * lib/glob.c: Don't include <pwd.h> on native Windows.
68743         (WINDOWS32): New macro.
68744         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
68746 2008-09-13  Bruno Haible  <bruno@clisp.org>
68748         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
68749         (ETIMEDOUT): Remove macro.
68750         (glthread_cond_timedwait_multithreaded): New declaration.
68751         (glthread_cond_timedwait): Use it.
68752         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
68753         (glthread_cond_timedwait_multithreaded): New function.
68755 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
68757         * modules/poll-tests: Do not check for io.h.
68758         * tests/test-poll.c: Check for __MSVCRT__ instead.
68760 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
68762         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
68763         * modules/poll-tests: Add inet_pton, stdbool, sockets.
68764         * tests/test-poll.c: Use them.  Use _pipe on Windows.
68766 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
68768         * modules/poll-tests: New.
68769         * tests/test-poll.c: New.
68771 2008-09-12  Eric Blake  <ebb9@byu.net>
68773         frexp: test for NetBSD failure on -0.0
68774         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
68775         not all, bugs from NetBSD 3.0 have been fixed.
68776         * doc/posix-functions/frexp.texi (frexp): Document bug.
68777         Reported by Thomas Klausner.
68779         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
68780         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
68781         literal -0.0.
68782         Reported by Jonathan C. Patschke <jp@centtech.com>.
68784 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68786         * lib/glthread/cond.h: Use dummy implementation also if
68787         USE_WIN32_THREADS.
68789 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68791         * modules/fnmatch-posix (License): Change to LGPLv2+.
68792         * modules/fnmatch-gnu (License): Likewise.
68794 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68796         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
68798 2008-09-11  Jim Meyering  <meyering@redhat.com>
68800         * users.txt: Add gtk-vnc.
68802 2008-09-08  Simon Josefsson  <simon@josefsson.org>
68804         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
68805         rotate amounts.
68807         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
68808         required for 16-bit and 8-bit rotates.
68809         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
68810         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
68811         UINT8_MAX instead of hard-coded constants.
68812         Suggested by Paul Eggert.
68814 2008-09-07  Bruno Haible  <bruno@clisp.org>
68816         * tests/test-striconveh.c (main): Check behaviour when converting from
68817         UTF-7.
68819         Make striconveh work better with stateful encodings.
68820         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
68821         that iconv does not increment the inptr when returning -1/EINVAL.
68823 2008-09-07  Bruno Haible  <bruno@clisp.org>
68825         * build-aux/config.rpath: Update according to libtool-2.2.6.
68826         * build-aux/config.libpath: Likewise.
68828 2008-09-06  Bruno Haible  <bruno@clisp.org>
68830         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
68831         * lib/freadptr.c (freadptr): Likewise.
68832         * lib/freadseek.c (freadptrinc): Likewise.
68833         Reported by Simon Josefsson.
68835 2008-09-06  Bruno Haible  <bruno@clisp.org>
68837         * modules/freadptr (License): Change to LGPLv2+.
68838         * modules/freadseek (License): Likewise.
68839         Suggested by Eric Blake.
68841         * modules/memchr2 (License): Change to LGPLv2+.
68842         Approved by Eric Blake.
68844 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68845             Bruno Haible  <bruno@clisp.org>
68847         Make gnulib-tool work with native 'sed' on AIX.
68848         * gnulib-tool (sed_noop): New variable.
68849         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
68850         func_add_or_update, func_create_testdir): Use it to initialize sed
68851         script variables.
68852         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68854 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
68855             Bruno Haible  <bruno@clisp.org>
68857         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
68858         also works after #include directives.
68860 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
68862         getdate.y: reject an out-of-range timezone value
68863         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
68864         the range [-24...+24].  When specified with only one or two digits,
68865         * tests/test-getdate.c: Tests for the fix.
68866         * doc/getdate.texi: Document this change.
68868 2008-09-03  Bruno Haible  <bruno@clisp.org>
68870         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
68872 2008-09-02  Simon Josefsson  <simon@josefsson.org>
68874         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
68875         <bruce.korb@gmail.com> with ideas from Ben Pfaff
68876         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
68877         Blake <ebb9@byu.net>.
68879         * tests/test-bitrotate.c: Add more test vectors.
68881 2008-09-02  Eric Blake  <ebb9@byu.net>
68883         vasnprintf-posix: handle large precision via %.*d
68884         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
68885         when handling it ourselves.
68886         * tests/test-vasnprintf-posix.c (test_function): Add test.
68887         * tests/test-snprintf-posix.h (test_function): Likewise.
68888         * tests/test-sprintf-posix.h (test_function): Likewise.
68889         * tests/test-vasprintf-posix.c (test_function): Likewise.
68890         Reported by Alain Guibert.
68892 2008-09-01  Eric Blake  <ebb9@byu.net>
68894         c-stack: make configure-time check more robust
68895         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
68896         successful sigaction call.
68897         Reported by Tom G. Christensen.
68899 2008-09-01  Bruno Haible  <bruno@clisp.org>
68901         New module 'findprog-lgpl'.
68902         * modules/findprog-lgpl: New file.
68903         * lib/findprog-lgpl.c: New file.
68904         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
68905         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
68906         to decide whether to use strdup or xstrdup, concatenated_filename or
68907         xconcatenated_filename.
68909 2008-09-01  Bruno Haible  <bruno@clisp.org>
68911         Split module 'concat-filename' into 'concat-filename' (LGPL) and
68912         'xconcat-filename' (GPL).
68913         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
68914         (License): Change to LGPLv2+.
68915         * modules/xconcat-filename: New file.
68916         * lib/concat-filename.h (concatenated_filename): Change specification.
68917         (xconcatenated_filename): New declaration.
68918         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
68919         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
68920         memory situations.
68921         * lib/xconcat-filename.c: New file.
68922         * NEWS: Mention the change.
68923         * lib/findprog.c: Include concat-filename.h, not filename.h.
68924         (find_in_path): Use xconcatenated_filename instead of
68925         concatenated_filename.
68926         * lib/javacomp.c: Include concat-filename.h, not filename.h.
68927         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68928         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68929         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68930         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
68931         instead of concatenated_filename.
68932         * lib/javaexec.c: Include concat-filename.h, not filename.h.
68933         (execute_java_class): Use xconcatenated_filename instead of
68934         concatenated_filename.
68935         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
68936         * modules/javacomp (Depends-on): Likewise.
68937         * modules/javaexec (Depends-on): Likewise.
68939 2008-09-01  Bruno Haible  <bruno@clisp.org>
68941         Split module 'filename' into 'filename' and 'concat-filename'.
68942         * modules/filename: Keep only lib/filename.h.
68943         (License): Change to LGPLv2+.
68944         * modules/concat-filename: New file, extracted from modules/filename.
68945         * lib/filename.h (concatenated_filename): Remove declaration.
68946         * lib/concat-filename.h: New file, extracted from lib/filename.h.
68947         * lib/concat-filename.c: Include concat-filename.h.
68948         * NEWS: Mention the change.
68950 2008-09-01  Simon Josefsson  <simon@josefsson.org>
68952         * lib/bitrotate.h (rotl8, rotr8): Add.
68954         * modules/bitrotate (configure.ac): Need
68955         AC_REQUIRE([AC_C_INLINE]).
68956         (Description): Mention stdint.h.  Reported by Bruno Haible
68957         <bruno@clisp.org>.
68959         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
68960         Paolo Bonzini <bonzini@gnu.org>.
68962 2008-08-31  Bruno Haible  <bruno@clisp.org>
68964         Assume Solaris specific bi-arch conventions on Solaris systems.
68965         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
68966         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
68967         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
68968         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
68969         like acl_libdirstem.
68970         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
68971         acl_libdirstem.
68972         * NEWS: Mention the change.
68973         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
68975 2008-08-31  Jim Meyering  <meyering@redhat.com>
68977         * lib/strftime.h: Add comments describing the two added arguments.
68979         remove duplicate #include directives
68980         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
68981         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
68983 2008-08-31  Bruno Haible  <bruno@clisp.org>
68985         New module 'sigpipe-die'.
68986         * modules/sigpipe-die: New file.
68987         * lib/sigpipe-die.h: New file.
68988         * lib/sigpipe-die.c: New file.
68989         * MODULES.html.sh (Signal handling): Add sigpipe-die.
68991 2008-08-31  Bruno Haible  <bruno@clisp.org>
68993         Don't override previously installed signal handlers.
68994         * lib/fatal-signal.c (saved_sigactions): New variable.
68995         (uninstall_handlers): Reset the signal to the saved handler, not
68996         to SIG_DFL (except when ignored).
68997         (install_handlers): Save the previous handlers.
68999 2008-08-30  Bruno Haible  <bruno@clisp.org>
69001         * gnulib-tool (func_reset_sigpipe): New function.
69002         (func_get_automake_snippet, func_modules_transitive_closure,
69003         func_import): Invoke it before a join command that reads from stdin,
69004         to avoid "echo: write error: Broken pipe" error messages on stderr.
69005         Reported by Sam Steingold <sds@gnu.org>.
69007 2008-08-30  Bruno Haible  <bruno@clisp.org>
69009         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
69010         Code copied from m4/open.m4.
69011         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
69012         access and the filename ends in a slash. Code copied from lib/open.c.
69013         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
69014         * tests/test-fopen.c (main): Check against bug with trailing slash.
69016 2008-08-29  Bruno Haible  <bruno@clisp.org>
69018         Avoid some "gcc -pedantic" warnings.
69019         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
69020         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
69021         * lib/dirent.in.h: Likewise.
69022         * lib/fcntl.in.h: Likewise.
69023         * lib/float.in.h: Likewise.
69024         * lib/iconv.in.h: Likewise.
69025         * lib/inttypes.in.h: Likewise.
69026         * lib/locale.in.h: Likewise.
69027         * lib/math.in.h: Likewise.
69028         * lib/netinet_in.in.h: Likewise.
69029         * lib/search.in.h: Likewise.
69030         * lib/signal.in.h: Likewise.
69031         * lib/stdarg.in.h: Likewise.
69032         * lib/stdint.in.h: Likewise.
69033         * lib/stdio.in.h: Likewise.
69034         * lib/stdlib.in.h: Likewise.
69035         * lib/string.in.h: Likewise.
69036         * lib/strings.in.h: Likewise.
69037         * lib/sys_select.in.h: Likewise.
69038         * lib/sys_socket.in.h: Likewise.
69039         * lib/sys_stat.in.h: Likewise.
69040         * lib/sys_time.in.h: Likewise.
69041         * lib/sysexits.in.h: Likewise.
69042         * lib/time.in.h: Likewise.
69043         * lib/unistd.in.h: Likewise.
69044         * lib/wchar.in.h: Likewise.
69045         * lib/wctype.in.h: Likewise.
69046         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
69047         * modules/fchdir (Makefile.am): Likewise.
69048         * modules/fcntl (Makefile.am): Likewise.
69049         * modules/float (Makefile.am): Likewise.
69050         * modules/iconv_open (Makefile.am): Likewise.
69051         * modules/inttypes (Makefile.am): Likewise.
69052         * modules/locale (Makefile.am): Likewise.
69053         * modules/math (Makefile.am): Likewise.
69054         * modules/netinet_in (Makefile.am): Likewise.
69055         * modules/search (Makefile.am): Likewise.
69056         * modules/signal (Makefile.am): Likewise.
69057         * modules/stdarg (Makefile.am): Likewise.
69058         * modules/stdint (Makefile.am): Likewise.
69059         * modules/stdio (Makefile.am): Likewise.
69060         * modules/stdlib (Makefile.am): Likewise.
69061         * modules/string (Makefile.am): Likewise.
69062         * modules/strings (Makefile.am): Likewise.
69063         * modules/sys_select (Makefile.am): Likewise.
69064         * modules/sys_socket (Makefile.am): Likewise.
69065         * modules/sys_stat (Makefile.am): Likewise.
69066         * modules/sys_time (Makefile.am): Likewise.
69067         * modules/sysexits (Makefile.am): Likewise.
69068         * modules/time (Makefile.am): Likewise.
69069         * modules/unistd (Makefile.am): Likewise.
69070         * modules/wchar (Makefile.am): Likewise.
69071         * modules/wctype (Makefile.am): Likewise.
69072         Reported by Reuben Thomas <rrt@sc3d.org>.
69074 2008-08-29  Bruno Haible  <bruno@clisp.org>
69076         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
69077         any more.
69079 2008-08-29  Simon Josefsson  <simon@josefsson.org>
69081         * MODULES.html.sh (Misc): Add bitrotate.
69083         * modules/bitrotate: New file.
69085         * lib/bitrotate.h: New file.
69087         * modules/bitrotate-tests: New file.
69089         * tests/test-bitrotate.c: New file.
69091         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
69092         on the bitrotate module.
69094         * lib/arctwo.c: Use new bitrotate module.
69096 2008-08-29  Jim Meyering  <meyering@redhat.com>
69098         bootstrap: merge changes from coreutils
69099         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
69100         of copied files.  Remove a kludge, now that this is fixed.
69101         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
69102         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
69103         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
69105 2008-08-29  Bruno Haible  <bruno@clisp.org>
69107         * MODULES.html.sh: Remove --cvs-urls option.
69109 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
69111         maint.mk: adjust to file name change
69112         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
69114 2008-08-28  Jim Meyering  <meyering@redhat.com>
69116         * modules/getndelim2 (License): Relicense to LGPLv2+.
69117         Approved by Richard Stallman for the version of 1995, and by
69118         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
69120 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
69122         * lib/getdelim.c (flockfile, funlockfile): Make all of them
69123         dummy if one is not available.  Do not touch them if
69124         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
69125         (getc_maybe_unlocked): New.
69126         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
69128 2008-08-26  Eric Blake  <ebb9@byu.net>
69130         doc/INSTALL: resync from autoconf
69131         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
69132         (INSTALL_PRELUDE): Delete; this is done more efficiently by
69133         moving...
69134         * install.texi [!autoconf]: ...here.  Resync from autoconf.
69135         * INSTALL: Regenerate.
69136         * INSTALL.ISO: New file.
69137         * INSTALL.UTF-8: Likewise.
69139 2008-08-26  Jim Meyering  <meyering@redhat.com>
69141         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
69142         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
69143         these definitions conditional, so that they may be overridden, too.
69145 2008-08-26  Bruno Haible  <bruno@clisp.org>
69147         Generate INSTALL file variants with prettier quotes.
69148         * doc/Makefile (INSTALL_PRELUDE): New macro.
69149         (INSTALL): Use it.
69150         (INSTALL.ISO, INSTALL.UTF-8): New rules.
69152 2008-08-26  Bruno Haible  <bruno@clisp.org>
69154         Run makeinfo in an English locale.
69155         * doc/Makefile (MAKEINFO): New variable.
69157 2008-08-26  Bruno Haible  <bruno@clisp.org>
69159         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
69160         Suggested by Eric Blake.
69162 2008-08-25  Bruno Haible  <bruno@clisp.org>
69164         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
69166 2008-08-25  Eric Blake  <ebb9@byu.net>
69168         c-stack: test that stack overflow can be caught
69169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
69170         that platform allows handling stack overflow; at least OS/2 EMX
69171         has sigaltstack, but crashes before transferring control to
69172         handler on stack overflow.
69173         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
69174         check for HAVE_STACK_OVERFLOW_HANDLING.
69175         Reported by Elbert Pol.
69177 2008-08-25  Bruno Haible  <bruno@clisp.org>
69179         * doc/posix-functions/strftime.texi: Fix description of strftime
69180         module.
69182 2008-08-24  Bruno Haible  <bruno@clisp.org>
69184         * tests/uniwidth/test-uc_width2.c: New file.
69185         * tests/uniwidth/test-uc_width2.sh: New file.
69186         * modules/uniwidth/width-tests (Files): Add the new files.
69187         (TESTS): Add uniwidth/test-uc_width2.sh.
69188         (TESTS_ENVIRONMENT): New variable.
69189         (check_PROGRAMS): Add test-uc_width2.
69190         (test_uc_width2_SOURCES): New variable.
69192         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
69193         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
69194         not 0x00AB.
69195         Reported by Alexander V. Lukyanov <lav@netis.ru>.
69197 2008-08-22  Eric Blake  <ebb9@byu.net>
69199         test-lock, test-tls: mention why a test is skipped
69200         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
69201         skipped.
69202         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
69204         count-one-bits: relax license
69205         * modules/count-one-bits (License): Relicense to LGPLv2+.
69206         Suggested by Ludovic Courtès, approved by Ben Pfaff.
69208 2008-08-22  Andreas Schwab  <schwab@suse.de>
69210         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
69211         Remove spurious space in assignment.
69213 2008-08-21  Simon Josefsson  <simon@josefsson.org>
69215         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
69216         Paul Eggert <eggert@CS.UCLA.EDU>.
69218 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
69220         * modules/gettext: Add m4/threadlib.m4.
69222 2008-08-19  Eric Blake  <ebb9@byu.net>
69224         test-c-stack: fix compilation failure on FreeBSD 5.0
69225         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
69226         headers before <sys/resource.h>.
69227         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
69228         the bug.
69229         Reported by Nelson H. F. Beebe.
69231         strverscmp: migrate from "strverscmp.h" to <string.h>
69232         * modules/string (Makefile.am): Add new hooks.
69233         * modules/strverscmp (Files): Remove strverscmp.h.
69234         (Depends-on): Add string.
69235         (configure.ac): Add indicator.
69236         (Include): Mention new header.
69237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
69238         defaults.
69239         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
69240         results.
69241         * lib/strverscmp.h: Delete.
69242         * lib/string.in.h (strverscmp): Provide declaration, when needed.
69243         * tests/test-strverscmp.c (includes): Adjust client.
69244         * lib/check-version.c (includes): Likewise.
69245         * NEWS: Document the change.
69247         strverscmp: add unit test
69248         * modules/strverscmp-tests: New file.
69249         * tests/test-strverscmp.c: Likewise.
69251 2008-08-19  Simon Josefsson  <simon@josefsson.org>
69253         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
69254         regarding Windows crypto stuff, from Mono.
69256 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
69258         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
69259         if present, for intel RND.  Return error on failures.
69261 2008-08-18  Ben Pfaff  <blp@gnu.org>
69263         gitlog-to-changelog: give better diagnostic for failed pipe-open
69264         * build-aux/gitlog-to-changelog: Improve error message: suggest
69265         that the version of Git may be too old.
69267 2008-08-18  Simon Josefsson  <simon@josefsson.org>
69269         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
69270         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
69272 2008-08-18  Bruno Haible  <bruno@clisp.org>
69274         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
69275         pthread_in_use().
69277 2008-08-18  Bruno Haible  <bruno@clisp.org>
69279         * lib/glthread/threadlib.c: Include <pthread.h>.
69281 2008-08-18  Bruno Haible  <bruno@clisp.org>
69283         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
69284         glthread_recursive_lock_* macros.
69285         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
69286         Fix syntax error.
69288 2008-08-18  Bruno Haible  <bruno@clisp.org>
69290         * lib/glthread/thread.c: Avoid forcing a context switch right after
69291         thread creation.
69293 2008-08-17  Bruno Haible  <bruno@clisp.org>
69295         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
69296         * lib/glthread/thread.h: Provide Win32 specific implementation.
69297         * modules/thread (Files): Add lib/glthread/thread.c.
69298         (Depends-on): Add lock.
69299         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
69301 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69303         New module 'yield'.
69304         * modules/yield: New file.
69305         * lib/glthread/yield.h: New file.
69306         * m4/yield.m4: New file.
69307         * MODULES.html.sh (Multithreading): Add yield.
69309 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69311         New module 'thread'.
69312         * modules/thread: New file.
69313         * lib/glthread/thread.h: New file.
69314         * m4/thread.m4: New file.
69315         * MODULES.html.sh (Multithreading): Add thread.
69317 2008-08-17  Bruno Haible  <bruno@clisp.org>
69319         * lib/glthread/lock.h: Include <stdlib.h> always.
69320         * lib/glthread/tls.h: Likewise.
69321         * lib/glthread/cond.h: Likewise.
69323 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69325         New module 'cond'.
69326         * modules/cond: New file.
69327         * lib/glthread/cond.h: New file.
69328         * lib/glthread/cond.c: New file.
69329         * m4/cond.m4: New file.
69330         * MODULES.html.sh (Multithreading): Add cond.
69332 2008-08-16  Eric Blake  <ebb9@byu.net>
69334         c-stack: fix regression on Irix 5.3 from 2008-06-21
69335         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
69336         sa_sigaction...
69337         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
69338         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
69339         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
69340         * modules/signal (Makefile.am): Use the value.
69341         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
69342         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
69343         * doc/posix-headers/signal.texi (signal.h): Document this
69344         portability issue.
69345         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
69346         Reported by Tom G. Christensen.
69348 2008-08-17  Bruno Haible  <bruno@clisp.org>
69350         New module 'threadlib'.
69351         * modules/threadlib: New file.
69352         * lib/glthread/threadlib.c: New file, extracted from
69353         lib/glthread/lock.c.
69354         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
69355         functions.
69356         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
69357         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
69358         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
69359         macros.
69360         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
69361         (gl_DISABLE_THREADS): Remove macro.
69362         * modules/lock (Files): Remove build-aux/config.rpath.
69363         (Depends-on): Remove havelib. Add threadlib.
69364         (configure.ac-early): Remove section.
69365         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
69366         * modules/tls (Depends-on): Remove lock. Add threadlib.
69367         (Link): New section, copied from threadlib.
69368         * MODULES.html.sh (Multithreading): Add threadlib.
69370 2008-08-14  Bruno Haible  <bruno@clisp.org>
69372         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
69373         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
69374         glthread_rwlock_unlock, glthread_rwlock_destroy,
69375         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
69376         glthread_recursive_lock_destroy): Define as macros always.
69377         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
69378         glthread_lock_lock.
69379         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
69380         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
69381         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
69382         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
69383         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
69384         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
69385         (glthread_recursive_lock_lock_func): Renamed from
69386         glthread_recursive_lock_lock.
69387         (glthread_recursive_lock_unlock_func): Renamed from
69388         glthread_recursive_lock_unlock.
69389         (glthread_recursive_lock_destroy_func): Renamed from
69390         glthread_recursive_lock_destroy.
69392 2008-08-14  Bruno Haible  <bruno@clisp.org>
69394         * lib/glthread/lock.h: Renamed from lib/lock.h.
69395         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
69396         * lib/glthread/tls.h: Renamed from lib/tls.h.
69397         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
69398         * lib/fstrcmp.c: Update includes.
69399         * lib/strsignal.c: Update includes.
69400         * modules/lock (Files, Makefile.am): Update.
69401         (Include): Change to "glthread/lock.h".
69402         * modules/tls (Files, Makefile.am): Update.
69403         (Include): Change to "glthread/tls.h".
69404         * tests/test-lock.c: Update includes.
69405         * tests/test-tls.c: Update includes.
69406         * NEWS: Mention the renamed header files.
69408 2008-08-11  Jim Meyering  <meyering@redhat.com>
69410         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
69412 2008-08-11  Eric Blake  <ebb9@byu.net>
69414         test-c-stack: avoid C99-ism
69415         * tests/test-c-stack.c (main): Fix whitespace, move declaration
69416         before statement.
69417         Reported by Alain Guibert.
69419 2008-08-10  Jim Meyering  <meyering@redhat.com>
69421         ensure that return value of uinttostr et al are not ignored
69422         * lib/inttostr.h (__GNUC_PREREQ): Define.
69423         (__attribute_warn_unused_result__): Define.
69424         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
69426 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
69428         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
69429         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
69431 2008-08-07  Jim Meyering  <meyering@redhat.com>
69433         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
69435         * modules/mkstemp (License): Relicense under LGPLv2+.
69436         * modules/tempname (License): Likewise.
69438 2008-08-06  Bruno Haible  <bruno@clisp.org>
69440         * lib/poll.c (poll): Further micro-optimization.
69442 2008-08-06  Jim Meyering  <meyering@redhat.com>
69444         inet_pton.c: use locale-independent tolower
69445         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
69446         (inet_pton6): Use c_tolower rather than tolower.
69447         * modules/inet_pton (Depends-on): Add c-ctype.
69449 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
69451         * lib/poll.c (poll): Avoid division when timeout is 0, cache
69452         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
69454 2008-08-06  Jim Meyering  <meyering@redhat.com>
69456         * modules/inet_pton (License): Relicense under LGPLv2+.
69458 2008-08-03  Bruno Haible  <bruno@clisp.org>
69460         Additional non-aborting API for lock and tls.
69461         * lib/lock.h: Include <errno.h>.
69462         (glthread_lock_init): New macro/function.
69463         (gl_lock_init): Define as wrapper around glthread_lock_init.
69464         (glthread_lock_lock): New macro/function.
69465         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
69466         (glthread_lock_unlock): New macro/function.
69467         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
69468         (glthread_lock_destroy): New macro/function.
69469         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
69470         (glthread_rwlock_init): New macro/function.
69471         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
69472         (glthread_rwlock_rdlock): New macro/function.
69473         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
69474         (glthread_rwlock_wrlock): New macro/function.
69475         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
69476         (glthread_rwlock_unlock): New macro/function.
69477         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
69478         (glthread_rwlock_destroy): New macro/function.
69479         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
69480         (glthread_recursive_lock_init): New macro/function.
69481         (gl_recursive_lock_init): Define as wrapper around
69482         glthread_recursive_lock_init.
69483         (glthread_recursive_lock_lock): New macro/function.
69484         (gl_recursive_lock_lock): Define as wrapper around
69485         glthread_recursive_lock_lock.
69486         (glthread_recursive_lock_unlock): New macro/function.
69487         (gl_recursive_lock_unlock): Define as wrapper around
69488         glthread_recursive_lock_unlock.
69489         (glthread_recursive_lock_destroy): New macro/function.
69490         (gl_recursive_lock_destroy): Define as wrapper around
69491         glthread_recursive_lock_destroy.
69492         (glthread_once): New macro/function.
69493         (gl_once): Define as wrapper around glthread_once.
69494         Update function declarations.
69495         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
69496         glthread_rwlock_init. Return error code.
69497         (glthread_rwlock_rdlock_multithreaded): Renamed from
69498         glthread_rwlock_rdlock. Return error code.
69499         (glthread_rwlock_wrlock_multithreaded): Renamed from
69500         glthread_rwlock_wrlock. Return error code.
69501         (glthread_rwlock_unlock_multithreaded): Renamed from
69502         glthread_rwlock_unlock. Return error code.
69503         (glthread_rwlock_destroy_multithreaded): Renamed from
69504         glthread_rwlock_destroy. Return error code.
69505         (glthread_recursive_lock_init_multithreaded): Renamed from
69506         glthread_recursive_lock_init. Return error code.
69507         (glthread_recursive_lock_lock_multithreaded): Renamed from
69508         glthread_recursive_lock_lock. Return error code.
69509         (glthread_recursive_lock_unlock_multithreaded): Renamed from
69510         glthread_recursive_lock_unlock. Return error code.
69511         (glthread_recursive_lock_destroy_multithreaded): Renamed from
69512         glthread_recursive_lock_destroy. Return error code.
69513         (glthread_once_call): Make static.
69514         (glthread_once_multithreaded): Renamed from glthread_once.
69515         * lib/tls.h: Include <errno.h>.
69516         (glthread_tls_key_init): New macro/function.
69517         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
69518         (glthread_tls_set): New macro/function.
69519         (gl_tls_set): Define as wrapper around glthread_tls_set.
69520         (glthread_tls_key_destroy): New macro/function.
69521         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
69522         Update function declarations.
69523         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
69524         glthread_tls_get.
69525         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69527 2008-08-04  Eric Blake  <ebb9@byu.net>
69529         gnumakefile: use space, not TAB, outside of targets
69530         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
69532 2008-08-02  Jim Meyering  <meyering@redhat.com>
69534         getdate.y: avoid locale-dependent date parsing failure
69535         In Turkish locales, getdate would fail to recognize keywords
69536         containing a lowercase "i".  The solution is not to rely on
69537         locale-sensitive case-conversion.
69538         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
69539         (lookup_word): Use c_toupper in place of toupper.
69540         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
69541         Reported by Vefa Bicakci <bicave@superonline.com> in
69542         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
69543         * modules/getdate (Depends-on): Add c-ctype.
69545 2008-08-02  Bruno Haible  <bruno@clisp.org>
69547         * gnulib-tool (func_import): When updating or creating a .gitignore
69548         file, prepend each added line with a slash, and ignore leading slashes
69549         from the existing lines.
69550         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69552 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69554         Portability fix for GNU make 3.79.1.
69555         * top/GNUmakefile: Avoid 'else COND', which older GNU make
69556         versions do not understand.
69558 2008-08-01  Bruno Haible  <bruno@clisp.org>
69560         Work around bug of HP-UX 10.20 cc with -0.0 literal.
69561         * tests/test-isnanf.h (zero): New variable.
69562         (main): Avoid literal -0.0f.
69563         * tests/test-isnand.h (zero): New variable.
69564         (main): Avoid literal -0.0.
69565         * tests/test-isnanl.h (zero): New variable.
69566         (main): Avoid literal -0.0L.
69567         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
69568         (test_float, test_double, test_long_double): Avoid literals -0.0f,
69569         -0.0, -0.0L.
69570         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
69571         (test_signbitd): Avoid literal -0.0.
69572         (test_signbitl): Avoid literal -0.0L.
69573         * tests/test-ceilf1.c (zero): New variable.
69574         (main): Avoid literal -0.0f.
69575         * tests/test-ceill.c (zero): New variable.
69576         (main): Avoid literal -0.0L.
69577         * tests/test-floorf1.c (zero): New variable.
69578         (main): Avoid literal -0.0f.
69579         * tests/test-floorl.c (zero): New variable.
69580         (main): Avoid literal -0.0L.
69581         * tests/test-roundf1.c (zero): New variable.
69582         (main): Avoid literal -0.0f.
69583         * tests/test-round1.c (zero): New variable.
69584         (main): Avoid literal -0.0.
69585         * tests/test-roundl.c (zero): New variable.
69586         (main): Avoid literal -0.0L.
69587         * tests/test-truncf1.c (zero): New variable.
69588         (main): Avoid literal -0.0f.
69589         * tests/test-trunc1.c (zero): New variable.
69590         (main): Avoid literal -0.0.
69591         * tests/test-truncl.c (zero): New variable.
69592         (main): Avoid literal -0.0L.
69593         * tests/test-frexp.c (zero): New variable.
69594         (main): Avoid literal -0.0.
69595         * tests/test-frexpl.c (zero): New variable.
69596         (main): Avoid literal -0.0L.
69597         * tests/test-ldexpl.c (zero): New variable.
69598         (main): Avoid literal -0.0L.
69599         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
69600         (zerod, zerol): New variables.
69601         (test_function): Avoid literals -0.0, -0.0L.
69602         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
69603         (zerod, zerol): New variables.
69604         (test_function): Avoid literals -0.0, -0.0L.
69605         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
69606         (zerod, zerol): New variables.
69607         (test_function): Avoid literals -0.0, -0.0L.
69608         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
69609         (zerod, zerol): New variables.
69610         (test_function): Avoid literals -0.0, -0.0L.
69611         * tests/test-strtod.c (zero): New variable.
69612         (main): Avoid literal -0.0.
69613         Reported by Jonathan C. Patschke <jp@centtech.com>.
69615 2008-07-31  Jim Meyering  <meyering@redhat.com>
69617         sha256.h: correct definition of SHA224_DIGEST_SIZE
69618         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
69619         Reported by Paulie Pena IV <paulie4@gmail.com>.
69620         Define as 224 / 8, rather than as a literal.
69621         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
69622         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
69623         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
69625 2008-07-31  Bruno Haible  <bruno@clisp.org>
69627         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
69628         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
69629         Reported by Jonathan Patschke <jp@centtech.com>.
69631 2008-07-31  Bruno Haible  <bruno@clisp.org>
69633         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
69634         Reported by Paolo Bonzini <bonzini@gnu.org>.
69636 2008-07-30  Eric Blake  <ebb9@byu.net>
69638         test-strtod: allow compilation without -lm
69639         * tests/test-strtod.c (main): Avoid link dependence on fabs.
69640         Reported by Dennis Clarke <blastwave@gmail.com>.
69642 2008-07-28  Jim Meyering  <meyering@redhat.com>
69644         bootstrap: work also when there are no .po files in po/
69645         * build-aux/bootstrap (update_po_files): Complete the change
69646         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
69648 2008-07-27  Jim Meyering  <meyering@redhat.com>
69650         * users.txt: Add zile.
69652 2008-07-26  Ben Pfaff  <blp@gnu.org>
69654         Add missing dependencies on new m4/exponent[fdl].m4 files.
69655         * modules/isnanf-nolibm: Add m4/exponentf.m4.
69656         * modules/isnand-nolibm: Add m4/exponentd.m4.
69657         * modules/isnanl-nolibm: Add m4/exponentl.m4.
69658         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
69659         m4/isnan[fdl].m4, because the macros actually used moved.
69660         Reported by Jim Meyering.
69662 2008-07-14  Ben Pfaff  <blp@gnu.org>
69664         Add isinf module.
69665         * lib/isinf.c: New file.
69666         * lib/math.in.h: Define isinf macro if we have decided to replace
69667         it.
69668         * m4/isinf.m4: New file.
69669         * m4/math_h.m4: Initialize and substitute variables for isinf
69670         module.
69671         * modules/isinf: New file.
69672         * modules/isinf-tests: New file.
69673         * modules/math: Add substitutions for new module.
69674         * tests/test-isinf.c: New file.
69675         * doc/posix-functions/isinf.texi: Mention new module.
69676         * MODULES.html.sh: Mention new module.
69678 2008-07-14  Ben Pfaff  <blp@gnu.org>
69680         Factor out some macros for use by additional modules.
69681         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
69682         exponentf.m4.
69683         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
69684         exponentd.m4.
69685         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
69686         file exponentl.m4.
69687         * m4/exponentf.m4: New file.
69688         * m4/exponentd.m4: New file.
69689         * m4/exponentl.m4: New file.
69690         * modules/isnanf: Use new file m4/exponentf.m4.
69691         * modules/isnand: Use new file m4/exponentd.m4.
69692         * modules/isnanl: Use new file m4/exponentl.m4.
69694 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
69696         mktime.c: normalize tp->tm_isdst value to -1/0/1.
69697         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
69698         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
69699         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
69701         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
69702         readlink on platforms without PATH_MAX.
69704 2008-07-21  Eric Blake  <ebb9@byu.net>
69706         Warn, not fail, on stale version.
69707         * top/GNUmakefile (_curr-ver): Tone down previous patch.
69709         Don't allow installation with stale devel version number.
69710         * top/GNUmakefile (_is-install-target): New macro.
69711         (_curr-ver): Forbid installation with stale version number.
69713 2008-07-20  Bruno Haible  <bruno@clisp.org>
69715         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
69716         TESTS_ENVIRONMENT.
69717         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
69719 2008-07-20  Bruno Haible  <bruno@clisp.org>
69721         * lib/c-stack.h (c_stack_action): Add documentation.
69722         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
69724 2008-07-20  Bruno Haible  <bruno@clisp.org>
69726         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
69727         * modules/readlink (License): Likewise.
69729 2008-07-17  Eric Blake  <ebb9@byu.net>
69731         * modules/c-stack (Link): Fix typo.
69733         Make c-stack use libsigsegv, when available.
69734         * modules/c-stack (Depends-on): Add libsigsegv.
69735         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
69736         needed.
69737         * lib/c-stack.c (SIGSTKSZ): Define fallback.
69738         (segv_handler, overflow_handler, c_stack_action)
69739         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
69740         implementation when libsigsegv is available, but only when using
69741         the library is necessary.
69742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
69743         comment, explaining why XSI check fails on Linux.
69744         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
69745         * tests/test-c-stack2.sh: Tweak skip message.
69746         * NEWS: Document new link-time requirements.
69748 2008-07-16  Eric Blake  <ebb9@byu.net>
69750         c-stack: Expose false positives when not using libsigsegv.
69751         * modules/c-stack-tests (Files): Expand test.
69752         * tests/test-c-stack.c (main): Add means to conditionally trigger
69753         non-overflow SIGSEGV.
69754         * tests/test-c-stack2.sh: New file.
69756 2008-07-14  Bruno Haible  <bruno@clisp.org>
69758         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
69759         Reported by Eric Blake.
69761 2008-07-14  Sam Steingold  <sds@gnu.org>
69762             Bruno Haible  <bruno@clisp.org>
69764         New module libsigsegv.
69765         * modules/libsigsegv: New file.
69766         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
69767         modifications.
69768         * MODULES.html.sh (Signal handling): New section.
69770 2008-07-14  Bruno Haible  <bruno@clisp.org>
69772         * modules/unictype/ctype-* (Description): Add the word "function".
69773         Improves the resulting doc in MODULES.html.
69775 2008-07-12  Ben Pfaff  <blp@gnu.org>
69777         Add longlong module.
69778         * modules/longlong: New file.
69780 2008-07-12  Bruno Haible  <bruno@clisp.org>
69782         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
69783         to empty.
69785 2008-07-10  Ben Pfaff  <blp@gnu.org>
69787         Add isnan module.
69788         * doc/posix-functions/isnan.texi: Mention new module.
69789         * lib/math.in.h: Define isnan macro if we have decided to replace
69790         it.
69791         * m4/isnan.m4: New file.
69792         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
69793         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
69794         also.
69795         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
69796         redundancy.
69797         * m4/math_h.m4: Initialize and substitute variables for isnan
69798         module.
69799         * modules/isnan: New file.
69800         * modules/isnan-tests: New file.
69801         * modules/math: Add substitutions for new module.
69802         * tests/test-isnan.c: New file.
69803         * MODULES.html.sh: Mention new module.
69805 2008-07-10  Ben Pfaff  <blp@gnu.org>
69807         Add isnanf module.
69808         * lib/isnanf.m4: New file.
69809         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
69810         (gl_HAVE_ISNANF_IN_LIBM): New macro.
69811         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
69812         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
69813         * modules/isnanf: New file.
69814         * modules/isnanf-tests: New file.
69815         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
69816         files.
69817         * tests/test-isnanf-nolibm.c: factored most of its contents into
69818         new file tests/test-isnanf.h.
69819         * tests/test-isnanf.h: New file.
69820         * tests/test-isnanf.c: New file.
69821         * MODULES.html.sh: Mention new module.
69822         * doc/glibc-functions/isnanf.texi: Mention new module.
69824 2008-07-10  Ben Pfaff  <blp@gnu.org>
69826         Add isnand module.
69827         * lib/isnand.h: New file.
69828         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
69829         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
69830         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
69831         functionality also.
69832         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
69833         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
69834         (gl_HAVE_ISNAND_IN_LIBM): New macro.
69835         * modules/isnand: New file.
69836         * modules/isnand-tests: New file.
69837         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
69838         files.
69839         * tests/test-isnand-nolibm.c: factored most of its contents into
69840         new file tests/test-isnand.h.
69841         * tests/test-isnand.h: New file.
69842         * tests/test-isnand.c: New file.
69843         * MODULES.html.sh: Mention new module.
69845 2008-07-10  Ben Pfaff  <blp@gnu.org>
69847         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
69848         * lib/isnand.h: Rename lib/isnand-nolibm.h.
69849         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
69850         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
69851         * modules/isnanf-nolibm: Update references to renamed files.
69852         * modules/isnand-nolibm: Likewise.
69853         * modules/isnanf-nolibm-tests: Likewise.
69854         * modules/isnand-nolibm-tests: Likewise.
69855         * lib/frexp.c: Likewise.
69856         * lib/isfinite.c: Likewise.
69857         * lib/signbitd.c: Likewise.
69858         * lib/signbitf.c: Likewise.
69859         * lib/vasnprintf.c: Likewise.
69860         * tests/test-ceilf1.c: Likewise.
69861         * tests/test-ceilf2.c: Likewise.
69862         * tests/test-floorf1.c: Likewise.
69863         * tests/test-floorf2.c: Likewise.
69864         * tests/test-frexp.c: Likewise.
69865         * tests/test-round1.c: Likewise.
69866         * tests/test-round2.c: Likewise.
69867         * tests/test-roundf1.c: Likewise.
69868         * tests/test-strtod.c: Likewise.
69869         * tests/test-trunc1.c: Likewise.
69870         * tests/test-trunc2.c: Likewise.
69871         * tests/test-truncf1.c: Likewise.
69872         * tests/test-truncf2.c: Likewise.
69873         * NEWS: Mention the renamed header files.
69875 2008-07-11  Jim Meyering  <meyering@redhat.com>
69877         vc-list-files: make the last-resort awk code more portable
69878         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
69879         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
69880         does not support it.
69882 2008-07-10  Eric Blake  <ebb9@byu.net>
69884         Work with tar's bootstrap.
69885         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
69886         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
69887         an m4 comment.
69889 2008-07-09  Jim Meyering  <meyering@redhat.com>
69891         posix-shell.m4: fix typo that made this test malfunction
69892         * m4/posix-shell.m4: Remove capitalization in variable name.
69894 2008-07-08  Bruno Haible  <bruno@clisp.org>
69896         * m4/onceonly.m4: Update comments.
69897         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69899 2008-07-04  Jim Meyering  <meyering@redhat.com>
69901         * users.txt: Add vc-dwim.
69902         (bison, coreutils): Use the gitweb URL.
69904 2008-07-03  Jim Meyering  <meyering@redhat.com>
69906         * users.txt: Add libffcall.  From Sam Steingold.
69908 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
69910         getdate.y: do not ignore TZ with relative day, month or year offset
69911         * lib/getdate.y (get_date): Move the tz-handling block to follow the
69912         relative-date-handling, since otherwise, the latter would clobber the
69913         sole output (an updated Start value) of the tz-handling block.
69914         * tests/test-getdate.c: Tests for the fix
69916 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69918         Recognize 'foo_LIBRARIES += libgnu.a'.
69919         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
69920         makefile snippet has already specified an installation location,
69921         also using '+='.
69923 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
69925         getdate.y: factor out common actions
69926         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
69927         Use them in place of open-coded actions.
69929 2008-07-01  Simon Josefsson  <simon@josefsson.org>
69931         Add self-test for getdate module.
69932         * modules/getdate-tests: New file.
69933         * tests/test-getdate.c: New file.
69935 2008-06-29  Bruno Haible  <bruno@clisp.org>
69937         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
69938         .gitignore.
69939         Reported by Sylvain Beucler <beuc@beuc.net>.
69941 2008-06-29  Bruno Haible  <bruno@clisp.org>
69943         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
69944         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
69946 2008-06-29  Bruno Haible  <bruno@clisp.org>
69948         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
69949         EXTRA_DIST.
69950         Reported by Sylvain Beucler <beuc@beuc.net>.
69952 2008-06-26  Jim Meyering  <meyering@redhat.com>
69954         make several modules depend on the "open" module
69955         This provides slightly increased consistency when opening-for-write
69956         the name of a non-directory spelled with a trailing slash.
69957         * modules/chdir-safer: Likewise.
69958         * modules/chown: Likewise.
69959         * modules/clean-temp: Likewise.
69960         * modules/copy-file: Likewise.
69961         * modules/fchdir: Likewise.
69962         * modules/fcntl-safer: Likewise.
69963         * modules/pipe: Likewise.
69964         * modules/utime: Likewise.
69965         Prompted by Eric Blake and Bruno Haible.
69967 2008-06-24  Andreas Schwab  <schwab@suse.de>
69969         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
69970         literals can be used as initializers for global variables.
69972 2008-06-23  Eric Blake  <ebb9@byu.net>
69974         Make gnulib-cache.m4 easier to diff.
69975         * gnulib-tool (func_import): Allow newlines when reading cached
69976         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
69978 2008-06-23  Bruno Haible  <bruno@clisp.org>
69980         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
69981         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
69982         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
69983         m4/signalblocking.m4.
69984         (gl_PREREQ_SIGACTION): Don't invoke it.
69985         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
69986         gl_PREREQ_SIG_HANDLER_H.
69987         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
69988         Don't check for sigaction here.
69990 2008-06-23  Bruno Haible  <bruno@clisp.org>
69992         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
69993         (install_handlers): Don't set the SA_RESETHAND flag.
69995 2008-06-23  Bruno Haible  <bruno@clisp.org>
69997         * m4/sigaction.m4: Comment fixes.
69998         * lib/signal.in.h: Likewise.
70000 2008-06-23  Eric Blake  <ebb9@byu.net>
70002         Fix typo.
70003         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
70005         Avoid SA_ namespace.
70006         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
70007         Reported by Ralf Wildenhues.
70009         Avoid test failure due to SA_RESTORER.
70010         * tests/test-sigaction.c (SA_MASK): New macro.
70011         (main): Avoid failing due to extension flags being set.
70012         Reported by Jim Meyering.
70014         Revert use of sig-handler.h in sigprocmask.c.
70015         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
70016         it requires the existence of struct sigaction.
70017         * lib/sigprocmask.c (handler_t): Restore typedef.
70018         (rpl_signal, old_handlers): Use local type.
70020 2008-06-22  Bruno Haible  <bruno@clisp.org>
70022         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
70023         conditionally.
70024         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70026 2008-06-22  Bruno Haible  <bruno@clisp.org>
70028         * doc/posix-functions/siginterrupt.texi: Move note.
70030         * lib/signal.in.h (SA_RESTART): New macro.
70031         * lib/sigaction.c: Update comment.
70033         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
70035         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
70036         (gl_PREREQ_SIGPROCMASK): Invoke it.
70037         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
70039         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
70041         * lib/sigprocmask.c: Update a comment.
70043 2008-06-21  Eric Blake  <ebb9@byu.net>
70045         Use sigaction module rather than signal().
70046         * modules/c-stack (Depends-on): Add sigaction.
70047         * modules/fatal-signal (Depends-on): Likewise.
70048         * modules/nanosleep (Depends-on): Likewise.
70049         * modules/sigprocmask (Files): Add sig-handler.h.
70050         * modules/sigaction (Files): Likewise.
70051         * lib/sig-handler.h (get_handler): New file, suggested by Paul
70052         Eggert.
70053         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
70054         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
70055         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
70056         (init_fatal_signals): Likewise.
70057         * lib/nanosleep.c (rpl_nanosleep): Likewise.
70058         (siginterrupt): Delete fallback.
70059         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
70060         instead.
70061         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
70062         siginterrupt.
70064         New module sigaction, for mingw.
70065         * modules/sigaction: New module...
70066         * modules/sigaction-tests: ...and its test.
70067         * m4/sigaction.m4: New file.
70068         * lib/sigaction.c: Likewise.
70069         * tests/test-sigaction.c: Likewise.
70070         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
70071         * modules/signal (Makefile.am): Likewise.
70072         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
70073         needed.
70074         * doc/posix-headers/signal.texi (signal.h): Mention provided
70075         types.
70076         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
70077         that sigaction is preferable.
70078         * doc/posix-functions/sigaction.texi (sigaction): Mention new
70079         module.
70080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70081         sigaction.
70083         Improve robustness of sigprocmask by overriding signal.
70084         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
70085         is in use.
70086         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
70087         (SIGKILL, SIGSTOP): Provide fallbacks.
70088         (rpl_signal): Implement.
70089         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
70090         signal can be called inside handlers.
70092         Fix nanosleep module on mingw.
70093         * modules/nanosleep (Depends-on): Add sys_select.
70094         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
70096         Fix licensing of sigprocmask.
70097         * modules/raise (License): Relicense as LGPL.
70099 2008-06-21  Bruno Haible  <bruno@clisp.org>
70101         * lib/propername.c (proper_name_utf8): Don't use the transliterated
70102         result if it contains question marks.
70103         Reported by Michael Geng <linux@michaelgeng.de>.
70105 2008-06-19  Bruno Haible  <bruno@clisp.org>
70107         Fix CVS-ism.
70108         * doc/gnulib.texi: Include updated-stamp.texi.
70109         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
70110         (updated-stamp.texi): New rule.
70111         (gnulib.info): Depend on it.
70112         * doc/.gitignore: Add updated-stamp.texi.
70113         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
70115 2008-06-19  Bruno Haible  <bruno@clisp.org>
70117         * doc/Makefile (gnulib.info): Update and simplify dependencies.
70118         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
70120 2008-06-19  Eric Blake  <ebb9@byu.net>
70122         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
70123         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
70124         Reported by Stepan Kasal.
70126 2008-06-18  Bruno Haible  <bruno@clisp.org>
70128         * lib/fatal-signal.c (init_fatal_signals): Add comment.
70129         Reported by Eric Blake.
70131 2008-06-18  Eric Blake  <ebb9@byu.net>
70133         Work around cygwin 1.5.25 strsignal bug.
70134         * tests/test-strsignal.c: Allow for const char *.
70135         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
70137 2008-06-18  Simon Josefsson  <simon@josefsson.org>
70139         * users.txt: Update URL to article and add author/date
70140         information.
70142 2008-06-17  Bruno Haible  <bruno@clisp.org>
70144         New macro gl_DISABLE_THREADS.
70145         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
70146         if the user did not pass --enable-threads or --disable-threads option.
70147         (gl_DISABLE_THREADS): New macro.
70148         Reported by Eric Blake <ebb9@byu.net>.
70150 2008-06-17  Bruno Haible  <bruno@clisp.org>
70152         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
70153         when the macro ignores it.
70154         Based on a patch by Eric Blake <ebb9@byu.net>.
70156 2008-06-17  Bruno Haible  <bruno@clisp.org>
70158         * modules/tls (License): Change to LGPLv2+.
70159         Reported by Eric Blake.
70161 2008-06-17  Eric Blake  <ebb9@byu.net>
70163         Simplify c-stack prerequisites.
70164         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
70165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
70166         no longer requires <ucontext.h> to exist.  Optimize setrlimit
70167         check.
70168         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
70169         <sys/resource.h>.
70171         Move c-stack test into testsuite.
70172         * modules/c-stack-tests: New file.
70173         * lib/c-stack.c [DEBUG]: Move test program...
70174         * tests/test-c-stack.c: ...into this new file.  Skip rather than
70175         fail test if sigaltstack is lacking.
70176         * tests/test-c-stack.sh: New driver file.
70178 2008-06-16  Eric Blake  <ebb9@byu.net>
70180         Use raise module consistently.
70181         * modules/fatal-signal (Depends-on): Add raise.
70182         * modules/sigprocmask (Depends-on): Likewise.
70183         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
70184         * lib/sigprocmask.c (sigprocmask): Likewise.
70185         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70186         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
70188         Fix compliance bug in sigpending.
70189         * lib/sigprocmask.c (sigpending): Return pending array via
70190         parameter, not return value.
70192 2008-06-14  Eric Blake  <ebb9@byu.net>
70194         Improve obstack-printf test code.
70195         * tests/test-obstack-printf.c (test_function): Fix comment, and
70196         simplify usage of obstack_* in macros.  Add a test for coverage.
70197         Reported by Bruno Haible.
70199 2008-06-14  Bruno Haible  <bruno@clisp.org>
70201         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
70202         array size as a constant, not as a const variable.
70203         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
70204         AC_USE_SYSTEM_EXTENSIONS.
70205         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
70206         Test whether the obstack_printf function actually exists.
70207         * modules/obstack-printf (Depends-on): Add extensions.
70208         (Include): Remove obstack.h.
70209         * modules/obstack-printf-posix (Depends-on): Add extensions.
70210         (Include): Remove obstack.h.
70212 2008-06-13  Eric Blake  <ebb9@byu.net>
70214         Add obstack-printf and obstack-printf-posix modules.
70215         * modules/obstack-printf: New file.
70216         * modules/obstack-printf-posix: Likewise.
70217         * MODULES.html.sh (Misc): Mention them.
70218         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70219         Likewise.
70220         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70221         Likewise.
70222         * modules/stdio (Makefile.am): Accomodate new modules.
70223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70224         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
70225         Declare.
70226         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
70227         functions.
70228         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
70229         (gl_REPLACE_OBSTACK_PRINTF): New macros
70230         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
70231         * tests/test-obstack-printf.c: New file.
70232         * modules/obstack-printf-tests: Likewise.
70233         * modules/obstack-printf-posix-tests: Likewise.
70235 2008-06-11  Bruno Haible  <bruno@clisp.org>
70237         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
70238         * lib/open.c: Include errno.h.
70239         (open): Fail when attempting to write to a file that has a trailing
70240         slash.
70241         * tests/test-open.c (main): Test against trailing slash bug.
70242         * doc/posix-functions/open.texi: Mention the trailing slash bug.
70244 2008-06-10  Bruno Haible  <bruno@clisp.org>
70246         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
70247         for $? to work inside the trap command, with various /bin/sh-s.
70248         * tests/test-vc-list-files-cvs.sh: Likewise.
70250 2008-06-10  Bruno Haible  <bruno@clisp.org>
70252         * lib/acl-internal.h: Don't include gettext.h here.
70253         * lib/set-mode-acl.c: Include gettext.h here.
70254         * lib/copy-acl.c: Likewise.
70256 2008-06-10  Bruno Haible  <bruno@clisp.org>
70258         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
70259         * lib/wait-process.c (wait_subprocess): Likewise.
70260         * lib/execute.h (execute): Add termsigp argument.
70261         * lib/execute.c (execute): Likewise.
70262         * lib/csharpcomp.c (compile_csharp_using_pnet,
70263         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
70264         * lib/csharpexec.c (execute_csharp_using_pnet,
70265         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
70266         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
70267         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
70268         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
70269         is_jikes_present): Update.
70270         * lib/javaexec.c (execute_java_class): Update.
70271         * lib/javaversion.c (execute_and_read_line): Update.
70272         * NEWS: Document the changes.
70273         Reported by Eric Blake.
70275 2008-06-10  Eric Blake  <ebb9@byu.net>
70277         Add missing include.
70278         * tests/test-strstr.c (includes): Add <signal.h>.
70279         * tests/test-strcasestr.c (includes): Likewise.
70280         * tests/test-memmem.c (includes): Likewise.
70282 2008-06-10  Bruno Haible  <bruno@clisp.org>
70284         * lib/wait-process.c (wait_subprocess): Add an assertion.
70286 2008-06-10  Bruno Haible  <bruno@clisp.org>
70288         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
70290 2008-06-10  Bruno Haible  <bruno@clisp.org>
70292         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
70293         using alarm().
70294         * tests/test-strcasestr.c (main): Likewise.
70295         * tests/test-strstr.c (main): Likewise.
70297 2008-06-09  Bruno Haible  <bruno@clisp.org>
70299         Work around the Solaris 10 ACE ACLs ABI change.
70300         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
70301         declare if ACL_NO_TRIVIAL is present.
70302         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
70303         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
70304         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
70305         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
70306         define if ACL_NO_TRIVIAL is present.
70307         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
70308         and use the current ABI.
70309         (file_has_acl): Use same #if condition as elsewhere.
70310         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
70311         in use, and use the current ABI.
70312         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
70313         Reported by Jim Meyering.
70315 2008-06-09  Eric Blake  <ebb9@byu.net>
70317         Work around environments that (stupidly) ignore SIGALRM.
70318         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
70319         before using alarm().
70320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
70322         Reported by Ian Beckwith <ianb@erislabs.net>.
70324         Produce autobuild blurb earlier in log.
70325         * modules/autobuild (configure.ac-early): Move AB_INIT here.
70327 2008-06-09  Jim Meyering  <meyering@redhat.com>
70328         and Ondřej Vašík  <ovasik@redhat.com>
70330         utimens.c: correct kernel bug work-around
70331         Ondřej Vašík found that the invalid return value of 280 indicates
70332         failure, not success, and the kernel bug we're trying to work
70333         around affects not just the utimensat call, but also the fallback
70334         futimens call.
70335         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
70336         not success.
70337         [HAVE_FUTIMENS]: Use the same work-around, here.
70339 2008-06-09  Jim Meyering  <meyering@redhat.com>
70341         add more guards around definition of ACE_-related code
70342         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
70343         ALLOW and ACE_OWNER are also defined.
70345 2008-06-08  Bruno Haible  <bruno@clisp.org>
70347         * lib/acl-internal.h: Add me as co-author.
70348         * lib/file-has-acl.c: Likewise.
70349         * lib/set-mode-acl.c: Likewise.
70350         * lib/copy-acl.c: Likewise.
70352 2008-06-08  Bruno Haible  <bruno@clisp.org>
70354         Add support for AIX ACLs.
70355         * lib/acl-internal.h (acl_nontrivial): New declaration.
70356         * lib/file-has-acl.c (acl_nontrivial): New function.
70357         (file_has_acl): Add implementation using AIX 4 ACL API.
70358         * lib/set-mode-acl.c (qset_acl): Likewise.
70359         * lib/copy-acl.c (qcopy_acl): Likewise.
70361 2008-06-08  Bruno Haible  <bruno@clisp.org>
70363         Add support for HP-UX ACLs.
70364         * lib/acl-internal.h (acl_nontrivial): New declaration.
70365         * lib/file-has-acl.c (acl_nontrivial): New function.
70366         (file_has_acl): Add implementation using HP-UX 11 ACL API.
70367         * lib/set-mode-acl.c (qset_acl): Likewise.
70368         * lib/copy-acl.c (qcopy_acl): Likewise.
70370 2008-06-08  Bruno Haible  <bruno@clisp.org>
70372         Add support for Cygwin ACLs.
70373         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
70374         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
70375         the chmod_or_fchmod call.
70376         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
70378 2008-06-08  Bruno Haible  <bruno@clisp.org>
70380         Fix bug with setuid modes in Solaris 10+ code.
70381         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
70382         succeeded, when the mode contains some special bits.
70384 2008-06-08  Bruno Haible  <bruno@clisp.org>
70386         Add support for Solaris 7..10 ACLs.
70387         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
70388         declarations.
70389         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
70390         functions.
70391         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
70392         * lib/set-mode-acl.c (qset_acl): Likewise.
70393         * lib/copy-acl.c (qcopy_acl): Likewise.
70395 2008-06-08  Bruno Haible  <bruno@clisp.org>
70397         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
70398         declaration.
70399         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
70400         (acl_access_nontrivial): Remove MacOS X case.
70401         (file_has_acl): Use acl_extended_nontrivial.
70402         * lib/copy-acl.c (qcopy_acl): Likewise.
70404 2008-06-08  Bruno Haible  <bruno@clisp.org>
70406         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
70408 2008-06-08  Jim Meyering  <meyering@redhat.com>
70410         * modules/acl (Maintainer): Add Bruno Haible.
70412 2008-06-07  Bruno Haible  <bruno@clisp.org>
70414         Improve support for Tru64 ACLs.
70415         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
70416         ACL on OSF/1.
70418 2008-06-07  Bruno Haible  <bruno@clisp.org>
70420         Add support for MacOS X ACLs.
70421         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
70422         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
70423         * lib/set-mode-acl.c (qset_acl): Likewise.
70424         * lib/copy-acl.c (qcopy_acl): Likewise.
70426 2008-06-07  Bruno Haible  <bruno@clisp.org>
70428         Fix memory leak introduced on 2008-05-22.
70429         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
70430         use.
70432 2008-06-07  Bruno Haible  <bruno@clisp.org>
70434         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
70435         to construct an empty ACL.
70437 2008-06-07  Bruno Haible  <bruno@clisp.org>
70439         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
70440         precisely.
70441         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
70443 2008-06-07  Bruno Haible  <bruno@clisp.org>
70445         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
70446         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
70448 2008-06-07  Bruno Haible  <bruno@clisp.org>
70450         * doc/posix-functions/_setjmp.texi: Explain the use of this function
70451         regardless of POSIX.
70452         * doc/posix-functions/_longjmp.texi: Likewise.
70453         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
70454         SystemV platform in this case.
70456 2008-06-06  Eric Blake  <ebb9@byu.net>
70458         Document abort() bugs.
70459         * doc/posix-functions/abort.texi (abort): Mention anomalies.
70461         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
70462         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
70463         sigsetjmp.
70464         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
70465         siglongjmp, but only as a macro.
70466         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
70467         is obsolete.
70468         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
70470         Tweak documentation to cover cygwin argz bugs.
70471         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
70472         argz bug fix; no code change needed since no cygwin releases
70473         occurred between the last fix and the bug being tested.
70474         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
70475         module and recently fixed cygwin bugs.
70476         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
70477         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
70478         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
70479         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
70480         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
70481         Likewise.
70482         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
70483         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
70484         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
70485         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
70486         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
70487         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
70488         Likewise.
70490         Avoid gcc warning on cygwin.
70491         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
70492         !ACL_NO_TRIVIAL]: Avoid unused variable.
70494 2008-06-05  Eric Blake  <ebb9@byu.net>
70496         Be tolerant of UNKNOWN version in gnulib-tool test dir.
70497         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
70498         git-version-gen fails to come up with a version.
70499         Reported by Simon Josefsson.
70501 2008-06-05  Jim Meyering  <meyering@redhat.com>
70502             Paul Eggert  <eggert@cs.ucla.edu>
70504         utimens.c: work around a probable Linux kernel bug
70505         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
70506         appears to be a kernel bug that causes utimensat to return 280
70507         instead of 0, indicating success.
70509 2008-06-04  Bruno Haible  <bruno@clisp.org>
70511         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
70512         2008-06-01 commit.
70514 2008-06-04  Bruno Haible  <bruno@clisp.org>
70516         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
70517         * lib/file-has-acl.c (acl_access_nontrivial): New function.
70518         (file_has_acl): Use it. Save errno afterwards.
70519         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
70521 2008-06-03  Bruno Haible  <bruno@clisp.org>
70523         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
70524         draft code. Simplify #ifs.
70525         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
70526         Put Solaris code after POSIX-draft code. Fix comments regarding
70527         Solaris 10, HP-UX. Mention Cygwin.
70528         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
70530 2008-06-03  Eric Blake  <ebb9@byu.net>
70532         Provide fallback for older kernels.
70533         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
70534         Provide runtime fallback if kernel lacks support.
70535         Reported by Mike Frysinger.
70537 2008-06-02  Bruno Haible  <bruno@clisp.org>
70539         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
70540         it exists.
70542 2008-06-02  Bruno Haible  <bruno@clisp.org>
70544         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
70545         * lib/copy-acl.c (qcopy_acl): Update comment.
70547 2008-06-02  Bruno Haible  <bruno@clisp.org>
70549         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
70550         like ACL APIs.
70552 2008-06-02  Bruno Haible  <bruno@clisp.org>
70554         * tests/test-file-has-acl.sh: Use different code for Cygwin.
70555         * tests/test-set-mode-acl.sh: Likewise.
70556         * tests/test-copy-acl.sh: Likewise.
70557         * tests/test-copy-file.sh: Likewise.
70559 2008-06-02  Bruno Haible  <bruno@clisp.org>
70561         * tests/test-file-has-acl.sh: Remove unused code.
70563 2008-06-01  Bruno Haible  <bruno@clisp.org>
70565         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
70566         (copy_acl): Just a wrapper around qcopy_acl that emits the error
70567         messages.
70568         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
70570 2008-06-01  Bruno Haible  <bruno@clisp.org>
70572         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
70573         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
70574         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
70575         APIs.
70576         * modules/acl-tests (configure.ac): Remove tests now contained in
70577         m4/acl.m4.
70579 2008-06-02  Jim Meyering  <meyering@redhat.com>
70581         announce-gen: use a better key-server host name
70582         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
70583         it may be more consistently reliable.  Suggested by Werner Koch
70584         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
70586 2008-06-01  Bruno Haible  <bruno@clisp.org>
70588         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
70589         Reported by Voroskoi Andras <voroskoi@gmail.com>.
70591 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
70593         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
70595 2008-06-01  Bruno Haible  <bruno@clisp.org>
70597         New ACL tests.
70598         * tests/test-file-has-acl.sh: New file.
70599         * tests/test-file-has-acl.c: New file.
70600         * tests/test-set-mode-acl.sh: New file.
70601         * tests/test-set-mode-acl.c: New file.
70602         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
70603         * tests/test-copy-acl.c: New file.
70604         * modules/acl-tests: New file, based on modules/copy-file-tests.
70605         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
70606         (Depends-on): Add acl-tests.
70607         (configure.ac): Remove checks.
70608         (Makefile.am): Don't create test-sameacls program here any more.
70610 2008-06-01  Bruno Haible  <bruno@clisp.org>
70612         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
70613         * tests/test-sameacls.c: Include progname.h.
70614         (main): Invoke set_program_name. Portability fixes for MacOS X,
70615         Solaris, HP-UX.
70617 2008-06-01  Bruno Haible  <bruno@clisp.org>
70619         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
70620         function.
70621         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
70623 2008-06-01  Bruno Haible  <bruno@clisp.org>
70625         * modules/rpmatch (Depends-on): Add strdup.
70627 2008-06-01  Bruno Haible  <bruno@clisp.org>
70629         * lib/pipe.c: Include unistd-safer.h.
70630         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
70631         * modules/pipe (Depends-on): Add unistd-safer.
70633 2008-05-30  Simon Josefsson  <simon@josefsson.org>
70635         * modules/autobuild (configure.ac): Call AB_INIT.
70637 2008-05-30  Simon Josefsson  <simon@josefsson.org>
70639         * tests/test-getaddrinfo.c: Don't print debug messages by default.
70640         Suggested by Bruno Haible <bruno@clisp.org>.
70642 2008-05-30  Simon Josefsson  <simon@josefsson.org>
70644         * tests/test-base64.c: Cast size_t to unsigned long when invoking
70645         printf.  Use %lu instead of %d.  Reported by Bruno Haible
70646         <bruno@clisp.org>.
70648 2008-05-29  Eric Blake  <ebb9@byu.net>
70650         Prefer new POSIX 200x interfaces over futimesat.
70651         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
70652         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
70653         when available.
70654         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
70656 2008-05-28  Bruno Haible  <bruno@clisp.org>
70658         * modules/stpcpy (License): Change to LGPLv2+.
70659         Requested by David Lutterkort <dlutter@redhat.com>.
70661 2008-05-27  Bruno Haible  <bruno@clisp.org>
70663         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
70664         current mingw.
70665         Reported by Jose E. Marchesi <jemarch@gnu.org>.
70667 2008-05-27  Bruno Haible  <bruno@clisp.org>
70669         * modules/iconv_open (Link): New section, from module 'iconv'.
70670         * modules/striconv (Link): Likewise.
70671         * modules/striconveh (Link): Likewise.
70672         * modules/xstriconv (Link): Likewise.
70673         * modules/unicodeio (Link): Likewise.
70674         * modules/propername (Link): Likewise.
70675         Reported by Jim Meyering.
70677 2008-05-26  Jim Meyering  <meyering@redhat.com>
70679         sha256: do not artificially restrict buffer length to be < 2^32
70680         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
70681         uint32_t to size_t.
70682         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
70683         to match.
70685         avoid unaligned access errors, e.g., on sparc
70686         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
70687         direct access through a possibly-unaligned uint64* pointer.
70688         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
70689         direct access through a possibly-unaligned uint32* pointer.
70690         Prompted by this patch from Tom "spot" Callaway:
70691         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
70693         sha512.c: fix typo in comment
70694         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
70696 2008-05-25  Bruno Haible  <bruno@clisp.org>
70698         * lib/set-mode-acl.c: Renamed from lib/acl.c.
70699         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
70700         (Makefile.am): Update lib_SOURCES.
70702 2008-05-25  Bruno Haible  <bruno@clisp.org>
70704         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
70706 2008-05-25  Jim Meyering  <meyering@redhat.com>
70708         useless-if-before-free: freed expr may have white-space differences
70709         * build-aux/useless-if-before-free: Recognize cases in which the
70710         freed expression differs from the tested one in embedded white
70711         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
70712         $1 was used, so we can't make any regexp shy.  Improved tests now
70713         detect this.
70715         useless-if-before-free: accept white space in the expression.
70716         * build-aux/useless-if-before-free: For now, any white space
70717         in the expression must be identical in the free argument.
70719         useless-if-before-free: efficiency tweak
70720         * build-aux/useless-if-before-free: Make the expression-matching
70721         regexp "shy".
70722         Make the *outer* regexp shy, not the expr-matching one.
70724         update code-in-comment to accept cast of free arg
70725         * build-aux/useless-if-before-free: Update regexp.
70727 2008-05-25  Bruno Haible  <bruno@clisp.org>
70729         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
70730         * modules/copy-file-tests (Files, Makefile.am): Update.
70731         * tests/test-copy-file.c (func_test_copy): Update.
70733 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
70735         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
70737 2008-05-23  Bruno Haible  <bruno@clisp.org>
70739         Improve support for ACLs on OSF/1.
70740         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
70741         Remove fallback for unknown flavors of ACLs.
70743 2008-05-22  Bruno Haible  <bruno@clisp.org>
70745         Add support for ACLs on OSF/1.
70746         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
70747         replacements.
70748         (acl_free_text): New macro fallback.
70749         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
70750         acl_free.
70751         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
70752         acl_free_text function. Require AC_C_INLINE.
70754 2008-05-22  Bruno Haible  <bruno@clisp.org>
70756         Make copy_acl work on MacOS X 10.5.
70757         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
70758         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
70759         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
70760         If MODE_INSIDE_ACL, don't assume that every system has the same text
70761         representation for ACLs as FreeBSD.
70762         * lib/copy-acl.c (copy_acl): Add support for platforms with
70763         !MODE_INSIDE_ACL.
70764         * lib/file-has-acl.c (file_has_acl): Likewise.
70765         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
70766         FreeBSD, MacOS X, or IRIX, respectively.
70768 2008-05-22  Bruno Haible  <bruno@clisp.org>
70770         * lib/acl.h: Don't include <sys/acl.h>.
70771         (GETACLCNT): Move fallback to lib/acl-internal.h.
70772         * lib/acl-internal.h: Include <sys/acl.h> here.
70773         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
70775 2008-05-22  Bruno Haible  <bruno@clisp.org>
70777         Split off copy_acl function to separate file.
70778         * lib/copy-acl.c: New file, extracted from lib/acl.c.
70779         * lib/acl.c (copy_acl): Moved function to separate file.
70780         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
70781         * modules/acl (Files): Add lib/copy-acl.c.
70782         (Makefiles.am): Augment lib_SOURCES.
70784 2008-05-22  Bruno Haible  <bruno@clisp.org>
70786         * modules/copy-file-tests: New file.
70787         * tests/test-copy-file.sh: New file.
70788         * tests/test-copy-file.c: New file.
70789         * tests/test-copy-file-sameacls.c: New file.
70791 2008-05-22  Eric Blake  <ebb9@byu.net>
70793         Avoid gcc warning.
70794         * tests/test-memcmp.c (main): Pass NULL indirectly.
70796 2008-05-21  Bruno Haible  <bruno@clisp.org>
70798         Add reference doc about ACLs.
70799         * doc/acl-resources.txt: New file.
70800         * doc/acl-cygwin.txt: New file.
70802 2008-05-21  Bruno Haible  <bruno@clisp.org>
70804         Avoid one more warning from gcc.
70805         * lib/vasnprintf.c (IF_LINT): Update comments.
70806         (VASNPRINTF): Use it also for the 'prefix' array initializer.
70808 2008-05-21  Jim Meyering  <meyering@redhat.com>
70810         avoid a warning from gcc
70811         * lib/vasnprintf.c (IF_LINT): Define.
70812         (scale10_round_decimal_long_double):
70813         Use it to avoid a "may be used uninitialized" warning.
70814         (scale10_round_decimal_double): Likewise.
70816 2008-05-21  Simon Josefsson  <simon@josefsson.org>
70818         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
70819         declared.
70821 2008-05-20  Bruno Haible  <bruno@clisp.org>
70823         * tests/test-memcmp.c (main): Test also the sign of the result. Test
70824         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
70826 2008-05-20  Simon Josefsson  <simon@josefsson.org>
70828         * modules/memcmp-tests: New file.
70829         * tests/test-memcmp.c: New file.
70831 2008-05-19  Bruno Haible  <bruno@clisp.org>
70833         * modules/propername (Notice, configure.ac): Put quoted "..." into
70834         --keyword option.
70835         * lib/propername.h: Update comments accordingly.
70836         Reported by Eric Blake.
70838 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
70840         * modules/getpass-gnu (Depends-on): Add fseeko.
70842 2008-05-19  Simon Josefsson  <simon@josefsson.org>
70844         * modules/base64-tests: New file.
70846 2008-05-19  Bo Borgerson <gigabo@gmail.com>
70848         * lib/base64.c (base64_decode_ctx): If a decode context structure
70849         was passed in use it to ignore newlines.  If a context structure
70850         was _not_ passed in, continue to treat newlines as garbage (this
70851         is the historical behavior).  Formerly base64_decode.
70852         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
70853         takes a decode context structure.
70854         * lib/base64.h (base64_decode): Macro for four-argument calls.
70855         (base64_decode_alloc): Likewise.
70856         * lib/base64.c (base64_decode_ctx): If a decode context structure
70857         was passed in use it to ignore newlines.  If a context structure
70858         was _not_ passed in, continue to treat newlines as garbage (this
70859         is the historical behavior).  Formerly base64_decode.
70860         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
70861         takes a decode context structure.
70862         * lib/base64.h (base64_decode): Macro for four-argument calls.
70863         (base64_decode_alloc): Likewise.
70865 2008-05-19  Jim Meyering  <meyering@redhat.com>
70867         avoid a warning from gcc
70868         * lib/trim.c (IF_LINT): Define.
70869         (trim2): Use it to avoid a "may be used uninitialized" warning.
70871         Fix doc typo.
70872         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
70874 2008-05-19  Bruno Haible  <bruno@clisp.org>
70876         * doc/glibc-functions/getpass.texi: Document limits of other
70877         implementations.
70879 2008-05-19  Simon Josefsson  <simon@josefsson.org>
70880             Bruno Haible <bruno@clisp.org>
70882         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
70884 2008-05-18  Bruno Haible  <bruno@clisp.org>
70886         * modules/propername: New file, from GNU gettext.
70887         * lib/propername.h: New file, from GNU gettext.
70888         * lib/propername.c: New file, from GNU gettext.
70889         * MODULES.html.sh (Internationalization functions): Add propername.
70891 2008-05-16  Jim Meyering  <meyering@redhat.com>
70892             Bruno Haible  <bruno@clisp.org>
70894         Avoid some warnings from "gcc -Wshadow".
70895         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
70897 2008-05-15  Eric Blake  <ebb9@byu.net>
70899         Extend previous patch to cygwin 1.7.0.
70900         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
70901         fast implementation in cygwin >= 1.7.0.
70902         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70905 2008-05-15  Bruno Haible  <bruno@clisp.org>
70907         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
70908         implementation in glibc >= 2.9.
70909         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70910         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70912 2008-05-15  Bruno Haible  <bruno@clisp.org>
70914         * MODULES.html.sh (Internationalization functions): Remove linebreak.
70915         (Unicode string functions): Add unilbrk/*.
70916         Reported by Karl Berry.
70918 2008-05-15  Eric Blake  <ebb9@byu.net>
70920         Fix violation of <stdbool.h> replacement in regex.
70921         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
70922         * lib/regexec.c (re_search_internal): Likewise.
70923         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
70925 2008-05-15  Jim Meyering  <meyering@redhat.com>
70927         avoid distracting test output when git or cvs is not found
70928         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
70929         * tests/test-vc-list-files-git.sh: Likewise.
70931 2008-05-15  Eric Blake  <ebb9@byu.net>
70933         Glibc finally accepted the memmem speedup code, bugzilla #5514.
70934         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
70935         glibc version.
70936         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
70937         * doc/posix-functions/strstr.texi (strstr): Likewise.
70938         * lib/str-two-way.h (MAX): Sychronize with glibc.
70940 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
70942         * lib/regcomp.c (optimize_utf8): Add a note on why we test
70943         opr.ctx_type.
70944         (calc_first): Initialize constraint field.
70945         (duplicate_node_closure): Use it instead of special casing ANCHORS.
70946         Fix grammar.
70947         (duplicate_node): Merge constraint field for all node types.
70948         (calc_eclosure_iter): Look at constraint field for all node types.
70949         * lib/regex_internal.c (create_cd_newstate): Don't look at
70950         opr.ctx_type.
70952 2008-05-14  Bruno Haible  <bruno@clisp.org>
70954         Help GCC to do better code generation.
70955         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
70956         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
70957         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
70958         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
70959         Declare with attribute 'malloc' if supported.
70961 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
70963         use "echo STR|wc -c" rather than unportable "expr length STR"
70964         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
70965         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
70967 2008-05-14  Jim Meyering  <meyering@redhat.com>
70969         use dd ibs=$n count=1 ... rather than less-portable head -c$n
70970         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
70971         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
70972         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
70973         via Collin Lasse.
70975 2008-05-14  Eric Blake  <ebb9@byu.net>
70977         Avoid quadratic growth in gl_LIBSOURCES.
70978         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
70979         Suggested by Bruno Haible.
70981         Test xmemdup0.
70982         * modules/xmemdup0-tests: New file.
70983         * tests/test-xmemdup0.c: Likewise.
70985 2008-05-13  Eric Blake  <ebb9@byu.net>
70987         Split xmemdup0 into its own module.
70988         * modules/xmemdup0: New file.
70989         * lib/xmemdup0.h: Likewise.
70990         * lib/xmemdup0.c: Likewise.
70991         * MODULES.html.sh (Memory management functions): Add xmemdup0.
70992         * lib/xalloc.h (xmemdup0): Remove.
70993         * lib/xmalloc.c (xmemdup0): Likewise.
70995 2008-05-13  Eric Blake  <ebb9@byu.net>
70996             Bruno Haible  <bruno@clisp.org>
70998         Reduce number of forks required during autoconf.
70999         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
71000         and gl_LIBSOURCES_DIR.
71001         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
71002         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
71003         m4_syscmd per file.
71004         <m4_foreach_w>: Move...
71005         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
71007 2008-05-13  Eric Blake  <ebb9@byu.net>
71009         * gnulib-tool: Fix various comment typos.
71011 2008-05-12  Bruno Haible  <bruno@clisp.org>
71013         Tailor the linebreaking algorithm.
71014         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
71016 2008-05-12  Bruno Haible  <bruno@clisp.org>
71018         Update to Unicode 5.0.0.
71019         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
71020         LBP_JV, LBP_JT. Redistribute values.
71021         (unilbrk_table): Change size.
71022         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
71023         Unicode TR#14 rev. 22.
71024         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
71025         LBP_JV, LBP_JT. Redistribute values.
71026         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
71027         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
71028         Update.
71029         * lib/unilbrk/lbrkprop1.h: Regenerated.
71030         * lib/unilbrk/lbrkprop2.h: Regenerated.
71031         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
71032         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
71033         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
71034         Likewise.
71035         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
71036         Likewise.
71037         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
71038         result.
71039         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
71040         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
71041         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
71042         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
71043         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
71044         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
71046 2008-05-11  Bruno Haible  <bruno@clisp.org>
71048         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
71050 2008-05-11  Bruno Haible  <bruno@clisp.org>
71052         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
71053         * modules/unilbrk/gen-lbrk: New file.
71055 2008-05-11  Bruno Haible  <bruno@clisp.org>
71057         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
71058         * m4/sha512.m4 (gl_SHA512): Likewise.
71060 2008-05-11  Jim Meyering  <meyering@redhat.com>
71062         New modules: crypto/sha256, crypto/sha512 (from coreutils)
71063         * modules/crypto/sha256: New file.
71064         * modules/crypto/sha512: Likewise.
71065         * lib/sha256.c: Likewise.
71066         * lib/sha256.h: Likewise.
71067         * lib/sha512.c: Likewise.
71068         * lib/sha512.h: Likewise.
71069         * lib/u64.h: Likewise.
71070         * m4/sha256.m4: Likewise.
71071         * m4/sha512.m4: Likewise.
71072         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
71074 2008-05-10  Bruno Haible  <bruno@clisp.org>
71076         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
71077         (Input/Output <stdio.h>): Add xprintf.
71078         (Signal handling <signal.h>): Add strsignal.
71079         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
71080         (Core language properties): Add func.
71081         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
71082         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
71083         strings.
71084         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
71085         (Input/output): New section.
71086         (File system functions): Add openat-die, stat-macros.
71087         (Networking functions): Add sockets.
71088         (Unicode string functions): Add unictype/*.
71089         (Support for building libraries and executables): Add gperf.
71090         (Support for building documentation): Add agpl-3.0.
71091         (Misc): Add nocrash.
71093 2008-05-10  Bruno Haible  <bruno@clisp.org>
71095         * modules/unictype/gen-ctype: New file.
71097 2008-05-10  Jim Meyering  <meyering@redhat.com>
71099         Make chdir-safer.c more efficient on a system with no symlinks.
71100         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
71101         also if ELOOP is zero.  Suggested by Bruno Haible.
71103         Make chdir-safer.c slightly safer.
71104         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
71105         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
71107         Avoid compile failure on systems without ELOOP (like mingw).
71108         * lib/chdir-safer.c (ELOOP): Define if not already defined.
71109         Reported by Bruno Haible.
71111 2008-05-10  Bruno Haible  <bruno@clisp.org>
71113         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
71114         (is_utf8_encoding): Use a case-insensitive comparison.
71115         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
71116         streq.
71118 2008-05-10  Bruno Haible  <bruno@clisp.org>
71120         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
71121         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
71122         * lib/unilbrk/ulc-common.h (iconv_string_length,
71123         iconv_string_keeping_offsets): Remove declarations.
71124         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
71125         Don't include <iconv.h>, streq.h, xsize.h.
71126         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
71127         conversion.
71128         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
71129         <iconv.h>, streq.h, xsize.h.
71130         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
71131         conversion.
71132         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
71133         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
71134         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
71135         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
71137 2008-05-10  Bruno Haible  <bruno@clisp.org>
71139         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
71140         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
71142         * modules/unilbrk/u32-width-linebreaks-tests: New file.
71143         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
71145         * modules/unilbrk/u16-width-linebreaks-tests: New file.
71146         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
71148         * modules/unilbrk/u8-width-linebreaks-tests: New file.
71149         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
71151         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
71152         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
71154         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
71155         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
71157         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
71158         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
71160         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
71161         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
71163 2008-05-10  Bruno Haible  <bruno@clisp.org>
71165         Split up 'linebreak' module.
71166         * lib/unilbrk.h: New file, based on lib/linebreak.h.
71167         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
71168         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
71169         modifications.
71170         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
71171         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
71172         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
71173         lib/linebreak.c.
71174         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
71175         lib/linebreak.c.
71176         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
71177         lib/linebreak.c.
71178         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
71179         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
71180         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
71181         lib/linebreak.c.
71182         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
71183         lib/linebreak.c.
71184         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
71185         lib/linebreak.c.
71186         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
71187         lib/linebreak.c.
71188         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
71189         lib/linebreak.c.
71190         * modules/unilbrk/base: New file.
71191         * modules/unilbrk/tables: New file.
71192         * modules/unilbrk/u8-possible-linebreaks: New file.
71193         * modules/unilbrk/u16-possible-linebreaks: New file.
71194         * modules/unilbrk/u32-possible-linebreaks: New file.
71195         * modules/unilbrk/ulc-common: New file.
71196         * modules/unilbrk/ulc-possible-linebreaks: New file.
71197         * modules/unilbrk/u8-width-linebreaks: New file.
71198         * modules/unilbrk/u16-width-linebreaks: New file.
71199         * modules/unilbrk/u32-width-linebreaks: New file.
71200         * modules/unilbrk/ulc-width-linebreaks: New file.
71201         * lib/linebreak.h: Remove file.
71202         * lib/linebreak.c: Remove file.
71203         * m4/linebreak.m4: Remove file.
71204         * modules/linebreak: Remove file.
71205         * NEWS: Mention the changes.
71207 2008-05-09  Eric Blake  <ebb9@byu.net>
71209         Add xmemdup0.
71210         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
71211         implementation.
71212         * lib/xmalloc.c (xmemdup0): New C implementation.
71214 2008-05-08  Bruno Haible  <bruno@clisp.org>
71216         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
71218 2008-05-07  Eric Blake  <ebb9@byu.net>
71220         Support cross-compilation of <wctype.h>.
71221         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
71222         AC_CACHE_CHECK.
71224 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
71226         * build-aux/vc-list-files: Add support for bzr.
71228 2008-05-03  Jim Meyering  <meyering@redhat.com>
71230         avoid failed assertion with tight malloc
71231         * tests/test-getndelim2.c: Correct an off-by-one assertion.
71233 2008-05-03  Simon Josefsson  <simon@josefsson.org>
71235         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
71236         are needed from arpa/inet.h.
71237         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
71238         Reported by Bruno Haible.
71240 2008-05-02  Jim Meyering  <meyering@redhat.com>
71242         avoid compilation error on FreeBSD 6
71243         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
71245 2008-05-01  Jim Meyering  <meyering@redhat.com>
71247         useless-if-before-free: correct --help's exit status description
71248         * build-aux/useless-if-before-free (usage): Like grep, exit 0
71249         for one or more matches, etc.  Reported by Bruno Haible.
71251         vc-list-files: make the stand-alone gnulib test work
71252         * modules/vc-list-files-tests (configure.ac):
71253         Define and AC_SUBST abs_aux_dir.
71254         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
71255         $(abs_top_srcdir) to each script and having each of them
71256         duplicate the work of setting PATH, set PATH here, using
71257         the new variable, abs_aux_dir instead.
71258         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
71259         * tests/test-vc-list-files-git.sh: Likewise.
71260         Reported by Bruno Haible.
71262 2008-05-01  Bruno Haible  <bruno@clisp.org>
71264         * lib/getndelim2.c (getndelim2): Fix newsize computation during
71265         reallocation. Rename 'done' to 'found_delimiter'.
71267 2008-05-01  Jim Meyering  <meyering@redhat.com>
71269         vc-list-files: accommodate /bin/sh like the one from Solaris 10
71270         * build-aux/vc-list-files: Use `...`, not $(...).
71272 2008-04-30  Jim Meyering  <meyering@redhat.com>
71274         add tests for vc-list-files
71275         * modules/vc-list-files-tests: New module.
71276         * tests/test-vc-list-files-cvs.sh: New file.
71277         * tests/test-vc-list-files-git.sh: New file.
71279         avoid a warning from gcc
71280         * lib/getndelim2.c (IF_LINT): Define.
71281         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
71283         vc-list-files: work properly with build-aux/cvsu, too
71284         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
71285         to all cvs-based clauses.
71287         vc-list-files: work properly in the CVS+awk case, too
71288         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
71290         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
71291         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
71292         take more than one file argument, so .  Add quotes, just in case $dir
71293         ever contains a shell meta-character.  Prompted by Soren Hansen in
71294         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
71296 2008-04-29  Eric Blake  <ebb9@byu.net>
71298         Optimize getndelim2 to use block operations when possible.
71299         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
71300         freadseek, and memchr2.
71301         * lib/getndelim2.c (getndelim2): Use them for block reads.
71303 2008-04-29  Bruno Haible  <bruno@clisp.org>
71305         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
71306         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71307         * modules/inet_ntop (Depends-on): Add extensions.
71308         * modules/inet_pton (Depends-on): Likewise.
71309         Reported by Simon Josefsson.
71311 2008-04-29  Jim Meyering  <meyering@redhat.com>
71313         When the is more than one match in a block, match all of them.
71314         * build-aux/useless-if-before-free: Iterate through each block
71315         until there are no more matches.
71317         Fix broken useless-if-before-free script.
71318         * build-aux/useless-if-before-free: Fix typo: missing "?" after
71319         the expression to match cast of argument to free-like function.
71321 2008-04-29  Eric Blake  <ebb9@byu.net>
71323         Use new header.
71324         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
71326 2008-04-29  Jim Meyering  <meyering@redhat.com>
71328         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
71329         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
71330         by gnulib to exist and to declare e.g., inet_ntop.
71331         Don't include "inet_ntop.h", now removed.
71333         * m4/arpa_inet_h.m4: Remove trailing blanks.
71335 2008-04-29  Eric Blake  <ebb9@byu.net>
71337         Silence valgrind on safe reads beyond potential array bounds.
71338         * lib/rawmemchr.valgrind: New file.
71339         * lib/strchrnul.valgrind: Likewise.
71340         * modules/rawmemchr (Files): Distribute new file.
71341         * modules/strchrnul (Files): Likewise.
71342         Suggested by Bruno Haible.
71344 2008-04-29  Bruno Haible  <bruno@clisp.org>
71346         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
71347         (inet_ntop, inet_pton): Change portability warning's wording.
71348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
71349         Invoke gl_CHECK_NEXT_HEADERS.
71350         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
71351         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
71352         set ARPA_INET_H.
71353         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71354         * modules/arpa_inet (Description): No longer only for systems that
71355         lack it.
71356         (Depends-on): Add include_next.
71357         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
71358         HAVE_ARPA_INET_H.
71360 2008-04-29  Jim Meyering  <meyering@redhat.com>
71362         * modules/mkdir (License): Re-license as LGPLv2+.
71364 2008-04-29  Bruno Haible  <bruno@clisp.org>
71366         * modules/rawmemchr (Maintainer): Set to Eric.
71367         * modules/strchrnul (Maintainer): Likewise.
71369 2008-04-29  Simon Josefsson  <simon@josefsson.org>
71371         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
71372         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
71374         * modules/arpa_inet (arpa/inet.h): Use them.
71376 2008-04-28  Eric Blake  <ebb9@byu.net>
71378         Test getndelim2.
71379         * modules/getndelim2-tests: New file.
71380         * tests/test-getndelim2.c: Likewise.
71381         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
71382         stream.
71383         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
71385         * MODULES.html.sh: Document new module.
71387 2008-04-20  Bruno Haible  <bruno@clisp.org>
71389         * lib/c-stack.c (die): Use raise.
71390         * modules/c-stack (Depends-on): Add raise.
71392 2008-04-28  Bruno Haible  <bruno@clisp.org>
71394         Expect rpmatch to be declared.
71395         * lib/yesno.c (rpmatch): Remove declaration.
71397         Declare rpmatch.
71398         * lib/stdlib.in.h (rpmatch): New declaration.
71399         * lib/rpmatch.c: Include <stdlib.h> first.
71400         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
71401         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
71402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
71403         HAVE_RPMATCH.
71404         * modules/rpmatch (Depends-on): Add stdlib, extensions.
71405         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71406         (Include): Set to <stdlib.h>.
71407         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
71408         HAVE_RPMATCH.
71409         * NEWS: Document the change.
71411 2008-04-28  Bruno Haible  <bruno@clisp.org>
71413         Change rpmatch to use nl_langinfo when appropriate.
71414         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
71415         (N_): New macro.
71416         (localized_pattern): New function/macro.
71417         (try): Remove match, nomatch arguments. Copy the pattern into safe
71418         memory before caching it.
71419         (rpmatch): Use localized_pattern. Add translator comments.
71420         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
71421         Suggested by Eric Blake.
71422         * modules/rpmatch (Depends-on): Add stdbool.
71424 2008-04-28  Eric Blake  <ebb9@byu.net>
71426         Add rawmemchr module, matching glibc.
71427         * modules/string (Makefile.am): New indicator.
71428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
71429         * lib/string.in.h (rawmemchr): Declare when appropriate.
71430         * modules/rawmemchr: New file.
71431         * m4/rawmemchr.m4: Likewise.
71432         * lib/rawmemchr.c: Likewise.
71433         * modules/rawmemchr-tests: Likewise.
71434         * tests/test-rawmemchr.c: Likewise.
71435         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
71436         module.
71437         * modules/strchrnul (Depends-on): Add rawmemchr.
71438         * lib/strchrnul.c (strchrnul): Optimize a corner case.
71440         Whitespace cleanup.
71441         * tests/test-strchrnul.c: Reindent.
71442         * lib/strchrnul.c: Likewise.
71444         Optimize and test strchrnul.
71445         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
71446         * modules/strchrnul-tests: New file.
71447         * tests/test-strchrnul.c: Likewise.
71449         Remove intprops dependency.
71450         * modules/memchr (Depends-on): Remove intprops.
71451         * modules/memrchr (Depends-on): Likewise.
71452         * modules/memchr2 (Depends-on): Likewise.
71453         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
71454         * lib/memrchr.c (__memrchr): Likewise.
71455         * lib/memrchr2.c (memchr2): Likewise.
71456         Reported by Simon Josefsson.
71458 2008-04-28  Simon Josefsson  <simon@josefsson.org>
71460         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
71461         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71463 2008-04-28  Simon Josefsson  <simon@josefsson.org>
71465         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
71467         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
71469         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
71471         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
71472         declarations.
71473         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
71475         * m4/inet_pton.m4: Don't check for header files.
71477         * m4/inet_ntop.m4: Don't check for header files.
71479 2008-04-28  Simon Josefsson  <simon@josefsson.org>
71481         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
71482         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
71483         trigger for cygwin).
71484         Reported by Bruno Haible  <bruno@clisp.org>.
71486 2008-04-28  Bruno Haible  <bruno@clisp.org>
71488         * doc/posix-functions/strdup.texi: Mention mingw problem.
71490 2008-04-27  Bruno Haible  <bruno@clisp.org>
71492         * modules/stat-time-tests (Depends-on): Add sleep.
71493         * tests/test-stat-time.c (force_unlink): New function.
71494         (cleanup): Use it.
71495         (test_mtime): Remove the ctime related tests.
71496         (test_ctime): New function, containing the ctime related tests.
71497         (main): Call test_ctime, except on native Windows platforms.
71499 2008-04-27  Bruno Haible  <bruno@clisp.org>
71501         * lib/rpmatch.c (rpmatch): Add some comments.
71502         Reported by James Youngman <jay@gnu.org>.
71504 2008-04-27  Bruno Haible  <bruno@clisp.org>
71506         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
71507         quiet NaNs.
71509 2008-04-27  Bruno Haible  <bruno@clisp.org>
71511         Make test-yesno.sh work on mingw.
71512         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
71513         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
71514         (main): Set stdin to binary mode.
71515         * modules/yesno-tests (Depends-on): Add binary-io.
71517 2008-04-27  Bruno Haible  <bruno@clisp.org>
71519         Fix 'isfinite' on x86, x86_64, ia64 platforms.
71520         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
71521         argument that lie outside the IEEE 854 domain.
71522         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
71523         (gl_ISFINITE): Use it.
71524         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
71526 2008-04-27  Bruno Haible  <bruno@clisp.org>
71528         Allow local renaming in config.h.
71529         * lib/memrchr.c (memrchr): Don't undefine outside libc.
71531 2008-04-27  Bruno Haible  <bruno@clisp.org>
71533         * lib/memchr.c (__memchr): Change type of 'i'.
71534         * lib/memchr2.c (memchr2): Likewise.
71536 2008-04-26  Eric Blake  <ebb9@byu.net>
71537         and Bruno Haible  <bruno@clisp.org>
71539         Optimize and test memrchr.
71540         * modules/memrchr (Depends-on): Add intprops.
71541         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
71542         * modules/memrchr-tests: New file.
71543         * tests/test-memrchr.c: New file.
71545 2008-04-26  Bruno Haible  <bruno@clisp.org>
71547         Add tentative support for DragonFly BSD.
71548         * lib/stdio-impl.h: Add macros for DragonFly BSD.
71549         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
71550         fp.
71551         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
71552         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
71553         * lib/fpurge.c (fpurge): Likewise.
71554         * lib/freadable.c (freaadable): Likewise.
71555         * lib/freadahead.c (freadahead): Likewise.
71556         * lib/freading.c (freading): Likewise.
71557         * lib/freadptr.c (freadptr): Likewise.
71558         * lib/freadseek.c (freadptrinc): Likewise.
71559         * lib/fseeko.c (fseeko): Likewise.
71560         * lib/fseterr.c (fseterr): Likewise.
71561         * lib/fwritable.c (fwritable): Likewise.
71562         * lib/fwriting.c (fwriting): Likewise.
71564 2008-04-26  Bruno Haible  <bruno@clisp.org>
71566         * lib/stdio-impl.h: New file.
71567         * lib/fbufmode.c: Include stdio-impl.h.
71568         (fbufmode): Use fp_, remove redundant #defines.
71569         * lib/fflush.c: Include stdio-impl.h.
71570         (clear_ungetc_buffer): Remove redundant #defines.
71571         * lib/fpurge.c: Include stdio-impl.h.
71572         (fpurge): Remove redundant #defines.
71573         * lib/freadable.c: Include stdio-impl.h.
71574         (freadable): Remove redundant #defines.
71575         * lib/freadahead.c: Include stdio-impl.h.
71576         (freadahead): Remove redundant #defines.
71577         * lib/freading.c: Include stdio-impl.h.
71578         (freading): Remove redundant #defines.
71579         * lib/freadptr.c: Include stdio-impl.h.
71580         (freadptr): Remove redundant #defines.
71581         * lib/freadseek.c: Include stdio-impl.h.
71582         (freadptrinc): Remove redundant #defines.
71583         * lib/fseeko.c: Include stdio-impl.h.
71584         (rpl_fseeko): Remove redundant #defines.
71585         * lib/fseterr.c: Include stdio-impl.h.
71586         (fseterr): Remove redundant #defines.
71587         * lib/fwritable.c: Include stdio-impl.h.
71588         (fwritable: Remove redundant #defines.
71589         * lib/fwriting.c: Include stdio-impl.h.
71590         (fwriting): Remove redundant #defines.
71591         * modules/fbufmode (Files): Add lib/stdio-impl.h.
71592         * modules/fflush (Files): Likewise.
71593         * modules/fpurge (Files): Likewise.
71594         * modules/freadable (Files): Likewise.
71595         * modules/freadahead (Files): Likewise.
71596         * modules/freading (Files): Likewise.
71597         * modules/freadptr (Files): Likewise.
71598         * modules/freadseek (Files): Likewise.
71599         * modules/fseeko (Files): Likewise.
71600         * modules/fseterr (Files): Likewise.
71601         * modules/fwritable (Files): Likewise.
71602         * modules/fwriting (Files): Likewise.
71604 2008-04-26  Bruno Haible  <bruno@clisp.org>
71606         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
71607         restore_seek_optimization, update_fpos_cache): New functions, extracted
71608         from rpl_fflush.
71609         (rpl_fflush): Use them.
71610         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
71611         (gl_REPLACE_FFLUSH): Use it.
71613 2008-04-26  Bruno Haible  <bruno@clisp.org>
71615         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
71616         on Solaris.
71617         * tests/test-xstrtoimax.sh: Likewise.
71618         * tests/test-xstrtoumax.sh: Likewise.
71619         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71621 2008-04-26  Bruno Haible  <bruno@clisp.org>
71623         * modules/memchr-tests: New file.
71624         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
71626 2008-04-26  Eric Blake  <ebb9@byu.net>
71627             Bruno Haible  <bruno@clisp.org>
71629         * lib/memchr.c: Include intprops.h.
71630         (__memchr): Optimize parallel detection of matching bytes. Rename local
71631         variables. Add explanatory comments.
71633 2008-04-26  Bruno Haible  <bruno@clisp.org>
71635         Fix module 'memchr', broken since 2000-10-28.
71636         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
71638 2008-04-26  Bruno Haible  <bruno@clisp.org>
71640         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
71641         comments.
71643 2008-04-25  Eric Blake  <ebb9@byu.net>
71645         Use native fstatat on cygwin 1.7.0.
71646         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
71647         first.
71649 2008-04-23  Eric Blake  <ebb9@byu.net>
71651         Improve memchr2 performance.
71652         * lib/memchr2.c (memchr2): Further optimize parallel detection of
71653         NUL bytes.
71654         * modules/memchr2 (Depends-on): Use intprops.h.
71656 2008-04-23  Simon Josefsson  <simon@josefsson.org>
71658         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
71659         an inline function instead of a CPP macro.  Patch by Ben Pfaff
71660         <blp@cs.stanford.edu>.
71662 2008-04-23  Simon Josefsson  <simon@josefsson.org>
71664         * lib/arpa_inet.in.h: New file.
71666         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
71667         (Makefile.am): Sed in substitute header file.
71669         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
71670         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
71672         * modules/inet_ntop (configure.ac): Use
71673         gl_ARPA_INET_MODULE_INDICATOR.
71675         * modules/inet_pton (configure.ac): Use
71676         gl_ARPA_INET_MODULE_INDICATOR.
71678 2008-04-22  Jim Meyering  <meyering@redhat.com>
71680         * modules/verify (License): Re-license as LGPLv2+.
71682 2008-04-22  Simon Josefsson  <simon@josefsson.org>
71684         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
71685         parameter to void* as per POSIX standard (MinGW uses char*).
71687 2008-04-21  Bruno Haible  <bruno@clisp.org>
71689         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71690         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71691         Define to replacements if REPLACE_ISWCNTRL is 1.
71692         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
71693         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
71694         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
71695         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
71696         what it fixes.
71697         * doc/posix-functions/iswalpha.texi: Likewise.
71698         * doc/posix-functions/iswblank.texi: Likewise.
71699         * doc/posix-functions/iswcntrl.texi: Likewise.
71700         * doc/posix-functions/iswdigit.texi: Likewise.
71701         * doc/posix-functions/iswgraph.texi: Likewise.
71702         * doc/posix-functions/iswlower.texi: Likewise.
71703         * doc/posix-functions/iswprint.texi: Likewise.
71704         * doc/posix-functions/iswpunct.texi: Likewise.
71705         * doc/posix-functions/iswspace.texi: Likewise.
71706         * doc/posix-functions/iswupper.texi: Likewise.
71707         * doc/posix-functions/iswxdigit.texi: Likewise.
71708         Reported by Alain Guibert.
71710 2008-04-21  Bruno Haible  <bruno@clisp.org>
71712         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
71713         Patch by Alain Guibert.
71715 2008-04-21  Bruno Haible  <bruno@clisp.org>
71717         Fix test failures on mingw.
71718         * tests/test-xstrtol.c (print_no_progname): New function.
71719         (main): Install it in error_print_progname hook.
71720         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
71721         * tests/test-xstrtoimax.sh: Likewise.
71722         * tests/test-xstrtoumax.sh: Likewise.
71724 2008-04-21  Bruno Haible  <bruno@clisp.org>
71726         Fix test failure on mingw.
71727         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
71729 2008-04-21  Bruno Haible  <bruno@clisp.org>
71731         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
71732         Actually assign a value.
71734 2008-04-20  Bruno Haible  <bruno@clisp.org>
71736         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
71737         take 2.
71738         * lib/canonicalize.c (canonicalize_file_name): Elide if the
71739         'canonicalize-lgpl' module is also used.
71740         * lib/canonicalize-lgpl.c: Undo last change.
71741         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
71743 2008-04-20  Bruno Haible  <bruno@clisp.org>
71745         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
71746         config.h. Provide _mkdir based fallback for mingw.
71747         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
71748         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
71749         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
71750         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
71751         rather than defining mkdir in config.h.
71752         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
71753         (gl_SYS_STAT_H_DEFAULTS): New macro.
71754         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
71755         HAVE_IO_H any more.
71756         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
71757         HAVE_DECL_MKDIR and HAVE_IO_H.
71759 2008-04-20  Bruno Haible  <bruno@clisp.org>
71761         * lib/isapipe.c: Port to native Windows platforms.
71763 2008-04-20  Bruno Haible  <bruno@clisp.org>
71765         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
71767 2008-04-21  Eric Blake  <ebb9@byu.net>
71769         Work around preprocessors that don't handle UINTMAX_MAX.
71770         * lib/memchr2.c (memchr2): Avoid embedded #if.
71771         Reported by Alain Guibert, fix suggested by Bruno Haible.
71773 2008-04-21  Simon Josefsson  <simon@josefsson.org>
71775         * doc/posix-functions/strftime.texi (strftime): Explain better
71776         Windows incompatibility.  Suggested by Micah Cowan
71777         <micah@cowan.name>.
71779 2008-04-20  Bruno Haible  <bruno@clisp.org>
71781         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
71782         unistr/u8-mblen.
71784 2008-04-20  Bruno Haible  <bruno@clisp.org>
71786         Fix test failure on platforms with non-GNU iconv.
71787         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
71788         (U_TO_U8): Use it, rather than u16_to_u8.
71789         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
71790         units at the end of the input string.
71791         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
71793 2008-04-20  Bruno Haible  <bruno@clisp.org>
71795         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
71796         when the resulting length is 0.
71797         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
71799 2008-04-20  Bruno Haible  <bruno@clisp.org>
71801         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
71802         works.
71803         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
71805 2008-04-20  Bruno Haible  <bruno@clisp.org>
71807         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
71808         * modules/tsearch-tests (configure.ac): Test for initstate function.
71810 2008-04-20  Bruno Haible  <bruno@clisp.org>
71812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
71813         for nlink_t if missing.
71814         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
71816 2008-04-19  Bruno Haible  <bruno@clisp.org>
71818         Work around snprintf bug on Linux libc5.
71819         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
71820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71821         gl_SNPRINTF_SIZE1.
71822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71823         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
71824         that test failed.
71825         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
71826         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
71827         * modules/snprintf (Files): Add m4/printf.m4.
71828         * modules/vsnprintf (Files): Likewise.
71829         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
71830         * doc/posix-functions/vsnprintf.texi: Likewise.
71832 2008-04-19  Bruno Haible  <bruno@clisp.org>
71834         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
71835         from 0.0058 to less than 10^-7.
71837 2008-04-19  Bruno Haible  <bruno@clisp.org>
71839         Fix rounding when a precision is given.
71840         * lib/vasnprintf.c (is_borderline): New function.
71841         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
71842         9...9x.
71843         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
71844         %e, %g.
71845         * tests/test-vasprintf-posix.c (test_function): Likewise.
71846         * tests/test-snprintf-posix.h (test_function): Likewise.
71847         * tests/test-sprintf-posix.h (test_function): Likewise.
71848         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
71849         * tests/test-printf-posix.h (test_function): Likewise.
71850         * tests/test-printf-posix.output: Update.
71851         Reported by John Darrington <john@darrington.wattle.id.au> via
71852         Ben Pfaff <blp@cs.stanford.edu>.
71854 2008-04-18  Simon Josefsson  <simon@josefsson.org>
71856         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
71857         Suggested by Bruno Haible <bruno@clisp.org>.
71859 2008-04-17  Bruno Haible  <bruno@clisp.org>
71861         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
71862         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
71863         implementation.
71864         Patch by Bruce Merry <bmerry@gmail.com>.
71866 2008-04-17  Simon Josefsson  <simon@josefsson.org>
71868         * doc/posix-functions/strftime.texi (strftime): Mention that %e
71869         doesn't work under Windows.
71871 2008-04-16  Bruno Haible  <bruno@clisp.org>
71873         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
71874         New macros.
71875         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
71876         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
71877         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
71878         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
71879         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
71880         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
71881         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
71882         macros.
71883         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
71884         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
71885         Northern Sotho, Uighur.
71887 2008-04-16  Bruno Haible  <bruno@clisp.org>
71889         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
71890         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
71891         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
71892         Reported by Daniel Bergström <daniel@octocode.com>.
71894 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
71895             Bruno Haible  <bruno@clisp.org>
71897         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
71898         function.
71899         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
71900         New functions, mostly extracted from gl_locale_name_default.
71901         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
71903 2008-04-16  Eric Blake  <ebb9@byu.net>
71905         Adjust strtod detection to catch glibc 2.7 bug.
71906         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
71907         Reported by John Gatewood Ham.
71909 2008-04-16  Bruno Haible  <bruno@clisp.org>
71911         Add tentative support for Linux libc5.
71912         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
71913         * lib/fpurge.c (fpurge): Likewise.
71914         * lib/freadable.c (freadable): Likewise.
71915         * lib/freadahead.c (freadahead): Likewise.
71916         * lib/freading.c (freading): Likewise.
71917         * lib/freadptr.c (freadptr): Likewise.
71918         * lib/freadseek.c (freadptrinc): Likewise.
71919         * lib/fseeko.c (rpl_fseeko): Likewise.
71920         * lib/fseterr.c (fseterr): Likewise.
71921         * lib/fwritable.c (fwritable): Likewise.
71922         * lib/fwriting.c (fwriting): Likewise.
71923         Reported by Alain Guibert <alguibert+bts@free.fr>.
71925 2008-04-15  Bruno Haible  <bruno@clisp.org>
71927         * modules/mathl (configure.ac): Define module indicator.
71929 2008-04-15  Bruno Haible  <bruno@clisp.org>
71931         * lib/logl.c (logl): Remove unused variables.
71933 2008-04-15  Bruno Haible  <bruno@clisp.org>
71935         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
71936         fails.
71938 2008-04-15  Bruno Haible  <bruno@clisp.org>
71940         * lib/trim.c (trim2): Fix argument of isspace() macro.
71942 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
71944         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
71945         to 0.
71946         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
71948 2008-04-14  Bruno Haible  <bruno@clisp.org>
71950         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
71951         AC_LANG_PROGRAM argument.
71952         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
71953         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
71954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
71955         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71956         * m4/math_h.m4 (gl_MATH_H): Likewise.
71957         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
71958         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
71959         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
71960         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
71961         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71962         * m4/regex.m4 (gl_REGEX): Likewise.
71963         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
71964         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
71965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71966         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
71967         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71968         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71969         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71972 2008-04-14  Jim Meyering  <meyering@redhat.com>
71974         test-strtod: fix typos: s/abs/fabs/
71975         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
71977 2008-04-13  Bruno Haible  <bruno@clisp.org>
71979         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
71980         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
71981         module is also used and while not building the reloc-wrapper.
71983 2008-04-13  Bruno Haible  <bruno@clisp.org>
71985         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
71987 2008-04-13  Bruno Haible  <bruno@clisp.org>
71989         Fix AIX compilation failure introduced on 2008-04-02.
71990         * tests/test-frexp.c (exp): Undefine before redefining.
71991         * tests/test-frexpl.c (exp): Likewise.
71993 2008-04-13  Bruno Haible  <bruno@clisp.org>
71995         Work around a HP-UX stdio bug.
71996         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
71997         * tests/test-ftello.c (main): Likewise.
71998         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
71999         * doc/posix-functions/ftello.texi: Likewise.
72001 2008-04-13  Bruno Haible  <bruno@clisp.org>
72003         Make test-signbit pass on HP-UX/hppa.
72004         * tests/test-signbit.c (minus_zerol): New variable.
72005         (test_signbitl): Use it.
72007 2008-04-13  Bruno Haible  <bruno@clisp.org>
72009         Make truncl work on OSF/1 4.0.
72010         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
72011         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
72012         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
72013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
72014         HAVE_DECL_TRUNCL.
72015         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
72016         HAVE_DECL_TRUNCL.
72017         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
72019 2008-04-13  Bruno Haible  <bruno@clisp.org>
72021         * lib/unictype.h: Remove trailing comma from enumeration definitions.
72023 2008-04-13  Bruno Haible  <bruno@clisp.org>
72025         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
72026         expression, so as to avoid HP-UX 11 cc compiler bug.
72028 2008-04-13  Bruno Haible  <bruno@clisp.org>
72030         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
72032 2008-04-13  Bruno Haible  <bruno@clisp.org>
72034         * lib/git-merge-changelog.c: Remove empty declaration outside of
72035         functions.
72037 2008-04-13  Bruno Haible  <bruno@clisp.org>
72039         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
72041 2008-04-13  Bruno Haible  <bruno@clisp.org>
72043         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
72044         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
72045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
72046         also if it exists but lacks definitions of the SHUT_* macros.
72047         * modules/sys_socket (Description): Update.
72048         Reported by Elbert Pol <e.pol@chello.nl>.
72050 2008-04-13  Bruno Haible  <bruno@clisp.org>
72052         * lib/localcharset.c (OS2): Don't redefine if already defined.
72053         Reported by Elbert Pol <e.pol@chello.nl>.
72055 2008-04-13  Bruno Haible  <bruno@clisp.org>
72057         * lib/binary-io.h [__EMX__]: Include <io.h>.
72058         Reported by Elbert Pol <e.pol@chello.nl>.
72060 2008-04-12  Bruno Haible  <bruno@clisp.org>
72062         * lib/fpucw.h: Enable the definitions also for x86_64.
72063         Needed for NetBSD/x86_64.
72064         Reported by Thomas Klausner <tk@giga.or.at>.
72066 2008-04-12  Bruno Haible  <bruno@clisp.org>
72068         * tests/test-strtod.c: Include isnand.h.
72069         (main): Use isnand instead of isnan.
72070         Reported by Jim Meyering.
72072 2008-04-12  Bruno Haible  <bruno@clisp.org>
72074         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
72075         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72077 2008-04-12  Jim Meyering  <meyering@redhat.com>
72079         * m4/math_h.m4 (gl_MATH_H): Fix typos.
72081 2008-04-12  Bruno Haible  <bruno@clisp.org>
72083         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
72084         Reported by Elbert Pol <e.pol@chello.nl>.
72086 2008-04-12  Eric Blake  <ebb9@byu.net>
72088         Work around Solaris 10 math.h bug.
72089         * m4/math_h.m4 (gl_MATH_H): Check for bug.
72090         (gl_MATH_H_DEFAULTS): Set up default.
72091         * modules/math (Makefile.am): Replace new indicators.
72092         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
72093         * tests/test-math.c (main): Test this.
72094         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
72095         * doc/posix-headers/math.texi (math.h): Mention bug.
72096         Reported by Nelson H. F. Beebe and Jim Meyering.
72098 2008-04-11  Bruno Haible  <bruno@clisp.org>
72100         Adapt to future versions of Apple GCC.
72101         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
72102         Reported by Peter O'Gorman <peter@pogma.com>.
72104 2008-04-11  Bruno Haible  <bruno@clisp.org>
72106         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
72108 2008-04-11  Bruno Haible  <bruno@clisp.org>
72110         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
72112         * modules/getaddrinfo-tests (Makefile.am): Define
72113         test_getaddrinfo_LDADD.
72115 2008-04-11  Bruno Haible  <bruno@clisp.org>
72117         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
72118         (init): Fix syntax error.
72119         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
72120         is declared.
72122 2008-04-11  Bruno Haible  <bruno@clisp.org>
72124         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
72125         * modules/glob (Depends-on): Add stdbool.
72127 2008-04-11  Bruno Haible  <bruno@clisp.org>
72129         * lib/trim.c: Include <string.h>.
72131 2008-04-11  Eric Blake  <ebb9@byu.net>
72133         Avoid compile failure on OS/2.
72134         * lib/regex_internal.h (internal_function): Disable optimization
72135         on OS/2 (__EMX__), where it caused compiler error.
72136         Reported by Elbert Pol.
72138 2008-04-11  Bruno Haible  <bruno@clisp.org>
72140         Flush the standard error stream before aborting. Needed on mingw.
72141         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
72142         * tests/test-array_list.c (ASSERT): Likewise.
72143         * tests/test-array_oset.c (ASSERT): Likewise.
72144         * tests/test-avltree_list.c (ASSERT): Likewise.
72145         * tests/test-avltree_oset.c (ASSERT): Likewise.
72146         * tests/test-avltreehash_list.c (ASSERT): Likewise.
72147         * tests/test-binary-io.c (ASSERT): Likewise.
72148         * tests/test-byteswap.c (ASSERT): Likewise.
72149         * tests/test-c-ctype.c (ASSERT): Likewise.
72150         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
72151         * tests/test-c-strcasestr.c (ASSERT): Likewise.
72152         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
72153         * tests/test-c-strstr.c (ASSERT): Likewise.
72154         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
72155         * tests/test-canonicalize.c (ASSERT): Likewise.
72156         * tests/test-carray_list.c (ASSERT): Likewise.
72157         * tests/test-ceilf1.c (ASSERT): Likewise.
72158         * tests/test-ceilf2.c (ASSERT): Likewise.
72159         * tests/test-ceill.c (ASSERT): Likewise.
72160         * tests/test-count-one-bits.c (ASSERT): Likewise.
72161         * tests/test-fbufmode.c (ASSERT): Likewise.
72162         * tests/test-fflush2.c (ASSERT): Likewise.
72163         * tests/test-floorf1.c (ASSERT): Likewise.
72164         * tests/test-floorf2.c (ASSERT): Likewise.
72165         * tests/test-floorl.c (ASSERT): Likewise.
72166         * tests/test-fopen.c (ASSERT): Likewise.
72167         * tests/test-fpending.c (ASSERT): Likewise.
72168         * tests/test-fprintf-posix.c (ASSERT): Likewise.
72169         * tests/test-fpurge.c (ASSERT): Likewise.
72170         * tests/test-freadable.c (ASSERT): Likewise.
72171         * tests/test-freadahead.c (ASSERT): Likewise.
72172         * tests/test-freading.c (ASSERT): Likewise.
72173         * tests/test-freadptr.c (ASSERT): Likewise.
72174         * tests/test-freadptr2.c (ASSERT): Likewise.
72175         * tests/test-freadseek.c (ASSERT): Likewise.
72176         * tests/test-freopen.c (ASSERT): Likewise.
72177         * tests/test-frexp.c (ASSERT): Likewise.
72178         * tests/test-frexpl.c (ASSERT): Likewise.
72179         * tests/test-fseek.c (ASSERT): Likewise.
72180         * tests/test-fseeko.c (ASSERT): Likewise.
72181         * tests/test-fstrcmp.c (ASSERT): Likewise.
72182         * tests/test-ftell.c (ASSERT): Likewise.
72183         * tests/test-ftello.c (ASSERT): Likewise.
72184         * tests/test-func.c (ASSERT): Likewise.
72185         * tests/test-fwritable.c (ASSERT): Likewise.
72186         * tests/test-fwriting.c (ASSERT): Likewise.
72187         * tests/test-getdelim.c (ASSERT): Likewise.
72188         * tests/test-getline.c (ASSERT): Likewise.
72189         * tests/test-i-ring.c (ASSERT): Likewise.
72190         * tests/test-iconv-utf.c (ASSERT): Likewise.
72191         * tests/test-iconv.c (ASSERT): Likewise.
72192         * tests/test-isfinite.c (ASSERT): Likewise.
72193         * tests/test-isnand.c (ASSERT): Likewise.
72194         * tests/test-isnanf.c (ASSERT): Likewise.
72195         * tests/test-isnanl.h (ASSERT): Likewise.
72196         * tests/test-ldexpl.c (ASSERT): Likewise.
72197         * tests/test-linked_list.c (ASSERT): Likewise.
72198         * tests/test-linkedhash_list.c (ASSERT): Likewise.
72199         * tests/test-localename.c (ASSERT): Likewise.
72200         * tests/test-lseek.c (ASSERT): Likewise.
72201         * tests/test-mbscasecmp.c (ASSERT): Likewise.
72202         * tests/test-mbscasestr1.c (ASSERT): Likewise.
72203         * tests/test-mbscasestr2.c (ASSERT): Likewise.
72204         * tests/test-mbscasestr3.c (ASSERT): Likewise.
72205         * tests/test-mbscasestr4.c (ASSERT): Likewise.
72206         * tests/test-mbschr.c (ASSERT): Likewise.
72207         * tests/test-mbscspn.c (ASSERT): Likewise.
72208         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
72209         * tests/test-mbspbrk.c (ASSERT): Likewise.
72210         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
72211         * tests/test-mbsrchr.c (ASSERT): Likewise.
72212         * tests/test-mbsspn.c (ASSERT): Likewise.
72213         * tests/test-mbsstr1.c (ASSERT): Likewise.
72214         * tests/test-mbsstr2.c (ASSERT): Likewise.
72215         * tests/test-mbsstr3.c (ASSERT): Likewise.
72216         * tests/test-memchr2.c (ASSERT): Likewise.
72217         * tests/test-memmem.c (ASSERT): Likewise.
72218         * tests/test-open.c (ASSERT): Likewise.
72219         * tests/test-printf-frexp.c (ASSERT): Likewise.
72220         * tests/test-printf-frexpl.c (ASSERT): Likewise.
72221         * tests/test-printf-posix.c (ASSERT): Likewise.
72222         * tests/test-quotearg.c (ASSERT): Likewise.
72223         * tests/test-rbtree_list.c (ASSERT): Likewise.
72224         * tests/test-rbtree_oset.c (ASSERT): Likewise.
72225         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
72226         * tests/test-round1.c (ASSERT): Likewise.
72227         * tests/test-roundf1.c (ASSERT): Likewise.
72228         * tests/test-roundl.c (ASSERT): Likewise.
72229         * tests/test-signbit.c (ASSERT): Likewise.
72230         * tests/test-sleep.c (ASSERT): Likewise.
72231         * tests/test-snprintf-posix.c (ASSERT): Likewise.
72232         * tests/test-snprintf.c (ASSERT): Likewise.
72233         * tests/test-sprintf-posix.c (ASSERT): Likewise.
72234         * tests/test-stat-time.c (ASSERT): Likewise.
72235         * tests/test-strcasestr.c (ASSERT): Likewise.
72236         * tests/test-strerror.c (ASSERT): Likewise.
72237         * tests/test-striconv.c (ASSERT): Likewise.
72238         * tests/test-striconveh.c (ASSERT): Likewise.
72239         * tests/test-striconveha.c (ASSERT): Likewise.
72240         * tests/test-strsignal.c (ASSERT): Likewise.
72241         * tests/test-strstr.c (ASSERT): Likewise.
72242         * tests/test-strtod.c (ASSERT): Likewise.
72243         * tests/test-trunc1.c (ASSERT): Likewise.
72244         * tests/test-trunc2.c (ASSERT): Likewise.
72245         * tests/test-truncf1.c (ASSERT): Likewise.
72246         * tests/test-truncf2.c (ASSERT): Likewise.
72247         * tests/test-truncl.c (ASSERT): Likewise.
72248         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
72249         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
72250         * tests/test-vasnprintf.c (ASSERT): Likewise.
72251         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
72252         * tests/test-vasprintf.c (ASSERT): Likewise.
72253         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
72254         * tests/test-vprintf-posix.c (ASSERT): Likewise.
72255         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
72256         * tests/test-vsnprintf.c (ASSERT): Likewise.
72257         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
72258         * tests/test-wcwidth.c (ASSERT): Likewise.
72259         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
72260         * tests/test-xprintf-posix.c (ASSERT): Likewise.
72261         * tests/test-xvasprintf.c (ASSERT): Likewise.
72262         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
72263         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
72264         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
72265         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
72266         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
72267         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
72268         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
72269         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
72270         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
72271         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
72272         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
72273         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
72274         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
72275         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
72276         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
72277         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
72278         * tests/unictype/test-block_list.c (ASSERT): Likewise.
72279         * tests/unictype/test-block_of.c (ASSERT): Likewise.
72280         * tests/unictype/test-block_test.c (ASSERT): Likewise.
72281         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
72282         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
72283         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
72284         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
72285         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
72286         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
72287         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
72288         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
72289         * tests/unictype/test-combining.c (ASSERT): Likewise.
72290         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
72291         * tests/unictype/test-digit.c (ASSERT): Likewise.
72292         * tests/unictype/test-mirror.c (ASSERT): Likewise.
72293         * tests/unictype/test-numeric.c (ASSERT): Likewise.
72294         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
72295         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
72296         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
72297         * tests/unictype/test-scripts.c (ASSERT): Likewise.
72298         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
72299         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
72300         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
72301         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
72302         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
72303         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
72304         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
72305         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
72306         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
72307         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
72308         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
72309         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
72310         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
72311         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
72312         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
72313         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
72314         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
72315         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
72316         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
72317         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
72318         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
72319         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
72320         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
72321         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
72322         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
72323         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
72324         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
72325         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
72326         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
72327         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
72328         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
72329         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
72330         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
72331         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
72332         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
72333         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
72334         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
72335         Reported by Eric Blake.
72337 2008-04-11  Bruno Haible  <bruno@clisp.org>
72339         * lib/wchar.in.h: Tweak comment.
72341 2008-04-11  Bruno Haible  <bruno@clisp.org>
72343         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
72344         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
72345         gl_COMMON.
72346         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
72348 2008-04-11  Bruno Haible  <bruno@clisp.org>
72350         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
72352 2008-04-11  Simon Josefsson  <simon@josefsson.org>
72354         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
72355         of attempting to use non-existing /dev/*random.  Based on patch
72356         from Adam Strzelecki <ono@java.pl> in
72357         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
72359 2008-04-08  Bruno Haible  <bruno@clisp.org>
72361         Add tentative support for emx+gcc.
72362         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
72363         * lib/fpurge.c (fpurge): Likewise.
72364         * lib/freadable.c (freadable): Likewise.
72365         * lib/freadahead.c (freadahead): Likewise.
72366         * lib/freading.c (freading): Likewise.
72367         * lib/freadptr.c (freadptr): Likewise.
72368         * lib/freadseek.c (freadptrinc): Likewise.
72369         * lib/fseeko.c (rpl_fseeko): Likewise.
72370         * lib/fseterr.c (fseterr): Likewise.
72371         * lib/fwritable.c (fwritable): Likewise.
72372         * lib/fwriting.c (fwriting): Likewise.
72373         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
72375 2008-04-09  Eric Blake  <ebb9@byu.net>
72377         Avoid some autoconf warnings.
72378         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
72379         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
72380         * m4/afs.m4 (gl_AFS): Likewise.
72381         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
72382         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
72383         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
72384         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
72385         (gl_INTEGER_TYPE_SUFFIX): Likewise.
72386         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
72387         (AC_CHECK_DECLS_ONCE): Likewise.
72388         Rename file...
72389         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
72390         gnulib-tool requires autoconf 2.59 or better.
72391         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
72393 2008-04-08  Eric Blake  <ebb9@byu.net>
72395         Use 'git describe --match' if present (added in git 1.5.5).
72396         * build-aux/git-version-gen: Limit result to tags that match 'v*'
72397         if possible.
72399 2008-04-08  Bruno Haible  <bruno@clisp.org>
72401         Add tentative support for OpenServer.
72402         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
72403         _ptr, _cnt.
72404         * lib/fpurge.c (fpurge): Likewise.
72405         * lib/freadable.c (freadable): Likewise.
72406         * lib/freadahead.c (freadahead): Likewise.
72407         * lib/freading.c (freading): Likewise.
72408         * lib/freadptr.c (freadptr): Likewise.
72409         * lib/freadseek.c (freadptrinc): Likewise.
72410         * lib/fseeko.c (rpl_fseeko): Likewise.
72411         * lib/fseterr.c (fseterr): Likewise.
72412         * lib/fwritable.c (fwritable): Likewise.
72413         * lib/fwriting.c (fwriting): Likewise.
72414         Reported by Roger Cornelius <rac@tenzing.org> and
72415         Brian K. White <brian@aljex.com>.
72417 2008-04-06  Jim Meyering  <meyering@redhat.com>
72419         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
72421 2008-04-06  Bruno Haible  <bruno@clisp.org>
72423         Avoid possible error with non-ASCII bytes in UTF-8 locales.
72424         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
72425         * tests/test-printf-posix.sh: Likewise.
72426         * tests/test-vfprintf-posix.sh: Likewise.
72427         * tests/test-vprintf-posix.sh: Likewise.
72428         * tests/test-xprintf-posix.sh: Likewise.
72430 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72432         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
72433         hide error from 'ls', needed on OS/2.
72434         Report by Elbert Pol <elbert.pol@gmail.com>.
72436 2008-04-04  Eric Blake  <ebb9@byu.net>
72438         Make test-fseeko.c failures meaningful.
72439         * tests/test-fseeko.c: Print line number on failure.
72440         * tests/test-fseek.c: Likewise.
72441         Reported by Nelson H. F. Beebe.
72443         Improve strtod bug detection check.
72444         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
72445         required for Solaris 10.
72446         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
72448 2008-04-04  Bruno Haible  <bruno@clisp.org>
72450         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
72451         by m4/setenv.m4.
72453 2008-04-03  Eric Blake  <ebb9@byu.net>
72455         Ensure sane .version contents.
72456         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
72457         version string.
72458         * build-aux/git-version-gen: Improve documentation.
72460         Make GNU make output nicer.
72461         * top/GNUmakefile [!_have-Makefile]: Add dependency on
72462         MAKECMDGOALS to enforce message for all command line targets.  Set
72463         srcdir for use in maint.mk.
72465         Another maintainer tweak.
72466         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
72467         a target that regenerates version.
72469 2008-04-03  Jim Meyering  <meyering@redhat.com>
72471         vc-list-files: don't cause coreutils "make po-check" failure
72472         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
72474 2008-04-03  Eric Blake  <ebb9@byu.net>
72476         Allow VPATH usage of vc-list-files.
72477         * build-aux/vc-list-files (scriptversion): Add timestamp.
72478         (options): Add --help, --version, -C.
72479         (CVS): Support installed cvsu.
72481 2008-04-02  Bruno Haible  <bruno@clisp.org>
72483         Avoid some "statement with no effect" warnings from gcc.
72484         * tests/test-wctype.c (main): Explicitly ignore unused values.
72485         Reported by Jim Meyering.
72487 2008-04-02  Jim Meyering  <meyering@redhat.com>
72489         Avoid some warnings from "gcc -Wshadow".
72490         * tests/test-frexp.c (exp): Define to a different identifier.
72491         * tests/test-frexpl.c (exp): Likewise.
72493 2008-04-03  Jim Meyering  <meyering@redhat.com>
72495         bootstrap: remove dangling *.[ch] symlinks from lib
72496         * build-aux/bootstrap [dangling symlink removal]: Move find's
72497         -depth option to precede all others, to avoid a warning.
72498         Remove *.[ch] files too, and from "$source_base" (usually lib/).
72500 2008-04-02  Bruno Haible  <bruno@clisp.org>
72502         Avoid some warnings from "gcc -Wshadow".
72503         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
72504         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
72505         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
72506         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
72507         Reported by Jim Meyering.
72509 2008-04-01  Bruno Haible  <bruno@clisp.org>
72511         Fix test to work on IRIX 6.5 with cc.
72512         * tests/test-math.c (numeric_equal): New function.
72513         (main): Use it.
72515 2008-04-01  Bruno Haible  <bruno@clisp.org>
72517         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
72519 2008-04-01  Bruno Haible  <bruno@clisp.org>
72521         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
72522         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
72523         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
72524         (Depends-on): Remove math.
72526         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
72527         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
72528         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
72529         (Depends-on): Remove math.
72531         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
72532         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
72533         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
72534         (Depends-on): Remove math.
72535         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
72536         (Depends-on): Remove math.
72538         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
72539         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
72540         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
72541         (Depends-on): Remove math.
72542         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
72543         (Depends-on): Remove math.
72545         * tests/test-round1.c: Include nan.h.
72546         (main): Use NaNd instead of NAN.
72547         * modules/round-tests (Files): Add tests/nan.h.
72549         * tests/test-trunc1.c: Include nan.h.
72550         (main): Use NaNd instead of NAN.
72551         * modules/trunc-tests (Files): Add tests/nan.h.
72553         * tests/test-roundf1.c: Include nan.h.
72554         (main): Use NaNf instead of NAN.
72555         * modules/roundf-tests (Files): Add tests/nan.h.
72557         * tests/test-truncf1.c: Include nan.h.
72558         (main): Use NaNf instead of NAN.
72559         * modules/truncf-tests (Files): Add tests/nan.h.
72561         * tests/test-ceilf1.c: Include nan.h.
72562         (main): Use NaNf instead of NAN.
72563         * modules/ceilf-tests (Files): Add tests/nan.h.
72565         * tests/test-floorf1.c: Include nan.h.
72566         (main): Use NaNf instead of NAN.
72567         * modules/floorf-tests (Files): Add tests/nan.h.
72569         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
72570         (main): Use NaNf instead of NAN.
72571         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
72573         * tests/test-isnand.c: Include nan.h instead of <math.h>.
72574         (main): Use NaNd instead of NAN.
72575         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
72577         * tests/test-frexp.c: Include nan.h.
72578         (main): Use NaNd instead of NAN.
72579         * modules/frexp-tests (Files): Add tests/nan.h.
72581         * lib/isnan.c: Don't include <math.h>.
72582         (FUNC): Don't use NAN macro.
72583         * modules/isnand-nolibm (Depends-on): Remove math.
72584         * modules/isnanf-nolibm (Depends-on): Remove math.
72585         * modules/isnanl (Depends-on): Remove math.
72586         * modules/isnanl-nolibm (Depends-on): Remove math.
72588         * tests/nan.h: New file.
72590 2008-04-01  Eric Blake  <ebb9@byu.net>
72592         Fix typos.
72593         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
72594         values to be the right type.
72596         For now, cater to gnulib strtod inaccuracies.
72597         * tests/test-strtod.c (main): Allow 1-ulp error on expected
72598         fractional results.  While not as nice from a QoI perspective, it
72599         is a quicker patch than correctly implementing decimal to binary
72600         rounding.
72602 2008-03-31  Eric Blake  <ebb9@byu.net>
72604         Guarantee a definition of NAN.
72605         * lib/math.in.h (NAN): Define if missing.
72606         * tests/test-math.c (main): Test it.
72607         * doc/posix-headers/math.texi (math.h): Document this.
72608         * lib/isnan.c (rpl_isnand): Use it.
72609         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
72610         * tests/test-floorf1.c (NaN): Likewise.
72611         * tests/test-frexp.c (NaN): Likewise.
72612         * tests/test-isnand.c (NaN): Likewise.
72613         * tests/test-isnanf.c (NaN): Likewise.
72614         * tests/test-round1.c (NaN): Likewise.
72615         * tests/test-roundf1.c (NaN): Likewise.
72616         * tests/test-snprintf-posix.h (NaN): Likewise.
72617         * tests/test-sprintf-posix.h (NaN): Likewise.
72618         * tests/test-trunc1.c (NaN): Likewise.
72619         * tests/test-truncf1.c (NaN): Likewise.
72620         * tests/test-vasnprintf-posix.c (NaN): Likewise.
72621         * tests/test-vasprintf-posix.c (NaN): Likewise.
72622         * modules/isnand-nolibm (Depends-on): Add math.
72623         * modules/isnanf-nolibm (Depends-on): Likewise.
72624         * modules/isnanl (Depends-on): Likewise.
72625         * modules/isnanl-nolibm (Depends-on): Likewise.
72626         * modules/snprintf-posix-tests (Depends-on): Likewise.
72627         * modules/sprintf-posix-tests (Depends-on): Likewise.
72628         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
72629         * modules/vsprintf-posix-tests (Depends-on): Likewise.
72630         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
72631         * modules/vasprintf-posix-tests (Depends-on): Likewise.
72633 2008-03-31  Bruno Haible  <bruno@clisp.org>
72635         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
72636         * doc/posix-functions/strtod.texi: Likewise.
72638 2008-03-31  Bruno Haible  <bruno@clisp.org>
72640         * tests/test-strtod.c (main): Don't use C99 syntax.
72642 2008-03-31  Bruno Haible  <bruno@clisp.org>
72644         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
72645         Reported by Eric Blake.
72647 2008-03-31  Jim Meyering  <meyering@redhat.com>
72649         Don't compare actual signbit return values.
72650         * tests/test-strtod.c (main): Rather, compare only their
72651         zero/non-zero nature.
72653 2008-03-31  Eric Blake  <ebb9@byu.net>
72655         More strtod documentation.
72656         * doc/posix-functions/strtod.texi (strtod): Interpret more test
72657         failures as distinct bugs.
72659 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
72661         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
72662         Problem reported by Erik Benada in
72663         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
72665 2008-03-30  Bruno Haible  <bruno@clisp.org>
72667         * tests/test-strtod.c: Add comments about which assertion fails on which
72668         platform.
72669         * doc/posix-functions/strtod.texi: Add info about many more platforms.
72671 2008-03-30  Eric Blake  <ebb9@byu.net>
72673         Test signbit behavior on zeros.
72674         * tests/test-signbit.c (test_signbitf): Add tests for zero.
72675         (test_signbitd, test_signbitl): Likewise.
72677         More strtod touchups.
72678         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
72679         sign of negative underflow, for now.  Use .5, not .1.
72680         * doc/posix-functions/strtod.texi (strtod): Mention these
72681         limitations.
72682         Reported by Jim Meyering.
72684 2008-03-30  Bruno Haible  <bruno@clisp.org>
72686         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
72687         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
72689 2008-03-30  Bruno Haible  <bruno@clisp.org>
72691         Avoid failure when attempting to return empty iconv results on some
72692         platforms.
72693         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
72694         allocation, don't report ENOMEM when the resulting string is empty.
72696 2008-03-30  Bruno Haible  <bruno@clisp.org>
72698         Fix buffer overrun.
72699         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
72700         Don't consider the width for tmp_length. Check count against tmp_length
72701         before doing the padding. Ensure enough allocation during padding.
72703 2008-03-30  Eric Blake  <ebb9@byu.net>
72705         strtod touchups.
72706         * lib/strtod.c (strtod): Avoid compiler warnings.
72707         Reported by Jim Meyering.
72709 2008-03-30  Bruno Haible  <bruno@clisp.org>
72711         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
72712         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
72713         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
72714         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
72715         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
72716         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
72717         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
72718         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
72720         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
72721         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
72722         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
72723         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
72724         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
72725         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
72726         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
72727         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
72729         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
72730         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
72731         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
72732         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
72733         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
72734         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
72735         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
72736         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
72738         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
72739         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
72741         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
72742         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
72744         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
72745         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
72747         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
72748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
72749         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
72751         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
72752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
72753         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
72755         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
72756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
72757         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
72759         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
72760         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
72761         * modules/vasprintf (Depends-on): Add EOVERFLOW.
72763         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
72764         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
72765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
72766         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
72767         (Depends-on): Add EOVERFLOW.
72768         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
72769         (Depends-on): Add EOVERFLOW.
72770         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
72771         (Depends-on): Add EOVERFLOW.
72772         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
72773         (Depends-on): Add EOVERFLOW.
72774         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
72775         (Depends-on): Add EOVERFLOW.
72776         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
72777         (Depends-on): Add EOVERFLOW.
72778         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
72779         (Depends-on): Add EOVERFLOW.
72780         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
72781         (Depends-on): Add EOVERFLOW.
72783         * lib/sprintf.c (EOVERFLOW): Remove fallback.
72784         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
72785         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
72787         * lib/snprintf.c (EOVERFLOW): Remove fallback.
72788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
72789         * modules/snprintf (Depends-on): Add EOVERFLOW.
72791         * lib/poll.c (EOVERFLOW): Remove fallback.
72792         * modules/poll (Depends-on): Add EOVERFLOW.
72794         * lib/getugroups.c (EOVERFLOW): Remove fallback.
72795         * modules/getugroups (Depends-on): Add EOVERFLOW.
72797         * lib/getdelim.c (EOVERFLOW): Remove fallback.
72798         * modules/getdelim (Depends-on): Add EOVERFLOW.
72800         * lib/ftell.c (EOVERFLOW): Remove fallback.
72801         * modules/ftell (Depends-on): Add EOVERFLOW.
72803         * lib/fprintf.c (EOVERFLOW): Remove fallback.
72804         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
72805         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
72807         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
72809         * modules/EOVERFLOW-tests: New file.
72810         * tests/test-EOVERFLOW.c: New file.
72812         * modules/EOVERFLOW: New file.
72813         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
72815 2008-03-30  Bruno Haible  <bruno@clisp.org>
72817         Fix bug introduced on 2007-06-10.
72818         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
72819         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
72821 2008-03-30  Bruno Haible  <bruno@clisp.org>
72823         Improve freadseek's efficiency after ungetc.
72824         * lib/freadseek.c: Include freadahead.h.
72825         (freadptrinc): New function, extracted from freadseek.
72826         (freadseek): Use it in a loop. Use freadahead to determine the number
72827         of loop iterations.
72828         * modules/freadseek (Depends-on): Add freadahead.
72829         (configure.ac): Require AC_C_INLINE.
72831 2008-03-30  Bruno Haible  <bruno@clisp.org>
72833         * lib/freadseek.c (freadseek): Don't ignore the return value of
72834         freadptr.
72836 2008-03-29  Eric Blake  <ebb9@byu.net>
72838         Add hex float support.
72839         * modules/strtod (Depends-on): Add c-ctype.
72840         (Link): Mention POW_LIB.
72841         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
72842         whitespace between 'e' and exponent.
72843         * tests/test-strtod.c (main): Enable hex float tests.
72844         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
72845         now provides.
72847         Document various strtod bugs, with some fixes.
72848         * doc/posix-functions/strtod.texi (strtod): Document bugs with
72849         "-0x", "inf", "nan", and hex constants.
72850         * doc/posix-functions/atof.texi (atof): Likewise.
72851         * modules/stdlib (Makefile.am): Support strtod.
72852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
72853         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
72854         detect additional strtod bugs.
72855         * lib/stdlib.in.h (rpl_strtod): Add declarations.
72856         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
72857         bool where appropriate.  Parse 'inf' and 'nan'.
72858         * tests/test-strtod.c: New file.
72859         * modules/strtod (Depends-on): Add stdbool, stdlib.
72860         (configure.ac): Turn on module indicator.
72861         * modules/strtod-tests: New module.
72863 2008-03-29  Eric Blake  <ebb9@byu.net>
72865         Fix ftell on mingw.
72866         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
72867         * modules/ftell-tests (Depends-on): Add binary-io.
72868         * modules/ftello-tests (Depends-on): Likewise.
72869         * tests/test-ftell.c (main): Enhance test to cover behavior after
72870         ungetc.  Enforce binary mode.
72871         * tests/test-ftello.c (main): Likewise.
72873         Pass test-freadseek on cygwin.
72874         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
72875         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
72876         ungetc buffer.
72878         * tests/test-fflush2.c (main): Fix typo.
72880 2008-03-29  Bruno Haible  <bruno@clisp.org>
72882         * tests/test-fflush2.c (main): Temporarily disable the contents of
72883         this test.
72884         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
72885         Reported by Eric Blake.
72887 2008-03-28  Simon Josefsson  <simon@josefsson.org>
72889         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
72890         (GC_SHA224_DIGEST_SIZE): Add.
72892         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
72893         (gc_hash_digest_length): Likewise.
72894         (gc_hash_buffer): Likewise.
72896 2008-03-25  Bruno Haible  <bruno@clisp.org>
72898         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
72899         detail which gettext release to use.
72900         Reported by Simon Josefsson.
72902 2008-03-26  Jim Meyering  <meyering@redhat.com>
72904         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
72905         * modules/gnumakefile (clean-GNUmakefile): Also, use
72906         test ... && ... || : syntax rather than if-then ... fi.
72908         gnumakefile: Don't double-quote-expand $(VPATH) value.
72909         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
72911 2008-03-24  Eric Blake  <ebb9@byu.net>
72913         Alter GNUmakefile to install into top directory.
72914         * modules/maintainer-makefile: Split, and add dependency...
72915         * modules/gnumakefile: to this new module.
72916         * build-aux/GNUmakefile: Move...
72917         * top/GNUmakefile: ...here.
72918         * build-aux/maint.mk: Move...
72919         * top/maint.mk: ...here.
72920         * MODULES.html.sh (Support for maintaining...): Document new
72921         module.
72923 2008-03-23  Bruno Haible  <bruno@clisp.org>
72925         * gnulib-tool: New options --vc-files, --no-vc-files.
72926         (func_usage): Document them.
72927         (vc_files): New variable.
72928         (func_import): Consider vc_files.
72929         (func_create_testdir): Set vc_files to empty.
72930         Suggested by Jim Meyering and Karl Berry.
72932 2008-03-23  Bruno Haible  <bruno@clisp.org>
72934         Fix regex compilation error on HP-UX 11.
72935         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
72936         * modules/regex (Files): Add m4/mbstate_t.m4.
72937         Reported by Ton Voon <ton.voon@altinity.com>.
72939 2008-03-23  Bruno Haible  <bruno@clisp.org>
72941         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
72943 2008-03-23  Eric Blake  <ebb9@byu.net>
72944             Bruno Haible  <bruno@clisp.org>
72946         Install files from top/ in the destination directory.
72947         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
72948         augmentation also for the files from top/.
72949         (func_import, func_create_testdir): Rewrite file names:
72950         top/filename -> filename.
72952 2008-03-23  Bruno Haible  <bruno@clisp.org>
72954         Tweak "gnulib --version" output.
72955         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
72957 2008-03-23  Bruno Haible  <bruno@clisp.org>
72959         Tweak "gnulib --version" output.
72960         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
72961         rather than contents of ChangeLog, when possible.
72963 2008-03-21  Eric Blake  <ebb9@byu.net>
72965         More --version tweaks.
72966         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
72967         date of last ChangeLog entry.
72969 2008-03-21  Jim Meyering  <meyering@redhat.com>
72971         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
72973 2008-03-20  Eric Blake  <ebb9@byu.net>
72975         VPATH fix.
72976         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
72978 2008-03-20  Simon Josefsson  <simon@josefsson.org>
72980         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
72981         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
72983 2008-03-20  Eric Blake  <ebb9@byu.net>
72985         Sync GNUmakefile with coreutils.
72986         * build-aux/GNUmakefile (have-Makefile): Rename...
72987         (_have-Makefile): ...to this, for namespace consideration.
72988         (GNUmakefile.cfg): Include, if present.
72989         (_autoreconf): Define a default.
72990         (_is-dist-target): New rule for rebuilds to pick up intra-release
72991         version.
72992         (maint-cfg.mk): Rename...
72993         (cfg.mk): ...to this.
72995 2008-03-18  Jim Meyering  <meyering@redhat.com>
72997         New script and module: mktempd
72998         * MODULES.html.sh (maint+release support): Add mktempd.
72999         * build-aux/mktempd: New file.
73000         * modules/mktempd: New file.
73002 2008-03-15  Jim Meyering  <meyering@redhat.com>
73004         Undo last change.
73005         * lib/sha1.c, lib/md5.c: 63 != ~63.
73006         Reported by Andreas Schwab.
73008         sha1.c, md5.c: Hoist a redundant expression.
73009         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
73010         "ctx->buflen" only once, before calling *_process_block.
73011         * lib/md5.c (md5_process_bytes): Likewise.
73013 2008-03-14  Eric Blake  <ebb9@byu.net>
73015         Bump copyright year in files generated by gnulib-tool.
73016         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
73017         gnulib-tool, rather than hard-coding it.
73019         Fix 'gnulib-tool --version' output to work with git.
73020         * gnulib-tool (func_gnulib_dir): New function, extracted from...
73021         (startup): ...here.
73022         (func_version): Use it to invoke git-version-gen, rather than
73023         relying on CVS keyword expansion.  Modernize wording.
73024         (cvsdatestamp, last_checkin_date, version): Kill unused
73025         variables.
73027 2008-03-12  Jim Meyering  <meyering@redhat.com>
73029         Recognize optional cast of the argument to free.
73030         * build-aux/useless-if-before-free: Update regexps.
73032         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
73034 2008-03-11  Bruno Haible  <bruno@clisp.org>
73036         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
73037         by a single package.
73038         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
73039         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
73040         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
73041         Reported by Sam Steingold <sds@gnu.org>.
73043 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73045         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
73046         repositories.
73048 2008-03-11  Bruno Haible  <bruno@clisp.org>
73050         Avoid conflicts between local macro definitions.
73051         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73052         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
73054 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
73055             Bruno Haible  <bruno@clisp.org>
73057         Make va_copy work with some version of xlc on AIX 5.1.
73058         * lib/stdarg.in.h: New file.
73059         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
73060         On AIX, use a <stdarg.h> file substitute.
73061         * modules/stdarg (Files): Add lib/stdarg.in.h.
73062         (Depends-on): Add include_next.
73063         (Makefile.am): Build a stdarg.h substitute if requested.
73064         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
73066 2008-03-10  Bruno Haible  <bruno@clisp.org>
73068         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
73069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73070         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
73072 2008-03-10  Bruno Haible  <bruno@clisp.org>
73074         * modules/stdlib (Depends-on): Add include_next, remove
73075         absolute-header.
73077 2008-03-09  Bruno Haible  <bruno@clisp.org>
73079         * lib/freadahead.h (freadahead): Document more precisely.
73080         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
73081         the sum of both buffer sizes.
73082         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
73083         * NEWS: Document the change.
73085 2008-03-09  Bruno Haible  <bruno@clisp.org>
73087         Extend freadptr to return also the buffer size.
73088         * lib/freadptr.h (freadptr): Add sizep argument.
73089         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
73090         (freadptr): Add sizep argument. Determine buffer size like freadahead
73091         does.
73092         * tests/test-freadptr.c: Don't include freadahead.h.
73093         (main): Adapt for new calling convention of freadptr.
73094         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
73095         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
73096         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
73097         tests/test-freadptr2.sh.
73098         (Depends): Remove freadahead.
73099         (TESTS): Add test-freadptr2.sh.
73100         (check_PROGRAMS): Add test-freadptr2.
73102 2008-03-09  Bruno Haible  <bruno@clisp.org>
73104         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
73105         Report and solution by Simon Josefsson.
73107 2008-03-06  Bruno Haible  <bruno@clisp.org>
73109         Make fflush after ungetc work on BSD platforms.
73110         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
73111         * tests/test-fflush2.c: New file.
73112         * tests/test-fflush2.sh: New file.
73113         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
73114         tests/test-fflush2.c.
73115         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
73116         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
73118 2008-03-06  Eric Blake  <ebb9@byu.net>
73120         Likewise for ftello.
73121         * modules/ftello (Dependencies): Add extensions.
73122         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
73124 2008-03-06  Bruno Haible  <bruno@clisp.org>
73126         * modules/fseeko (Dependencies): Add extensions.
73127         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
73128         Needed on glibc systems.
73130 2008-03-06  Bruno Haible  <bruno@clisp.org>
73132         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
73133         email address.
73134         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73136 2008-03-06  Bruno Haible  <bruno@clisp.org>
73138         * users.txt: Add libgnupdf.
73140 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
73142         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
73143         (Header File Substitutes, Function Substitutes,
73144         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
73145         (Build robot for gnulib): Fix typo.
73147 2008-03-06  Bruno Haible  <bruno@clisp.org>
73149         * doc/gnulib-tool.texi (VCS Issues): Small updates.
73150         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73152 2008-03-06  Bruno Haible  <bruno@clisp.org>
73154         * doc/func.texi: New file, extracted from doc/gnulib.texi.
73155         * doc/gnulib.texi: Include it.
73157 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73159         * modules/func (License): Change license to unlimited; there was
73160         no LGPL parts in the module anyway.
73162 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73164         * modules/__func__: Renamed to modules/func.
73165         * modules/__func__-tests: Renamed to modules/func-tests.
73166         * tests/test-__func__.c: Renamed to tests/test-func.c.
73167         * m4/__func__.m4: Renamed to m4/func.m4.
73168         * doc/gnulib.texi (__func__): Section renamed to func.
73169         Suggested by Eric Blake <ebb9@byu.net>.
73171 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73173         * doc/gnulib.texi (__func__): Use C99 terminology when talking
73174         about __func__.  Make example self-contained.  Suggested by Eric
73175         Blake <ebb9@byu.net>.
73177         * tests/test-__func__.c (main): Avoid extraneous () around __func.
73178         Suggested by Eric Blake <ebb9@byu.net>.
73180 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73182         * modules/__func__: New file.
73183         * modules/__func__-tests: New file.
73184         * tests/test-__func__.c: New file.
73185         * m4/__func__.m4: New file.
73186         * doc/gnulib.texi (__func__): Document __func__ module.
73188 2008-03-05  Simon Josefsson  <simon@josefsson.org>
73190         * modules/byteswap (License): Re-license as LGPLv2+.
73192 2008-03-05  Simon Josefsson  <simon@josefsson.org>
73194         * doc/Makefile: Add pdf target.
73196 2008-03-05  Simon Josefsson  <simon@josefsson.org>
73198         * modules/inline (License): Use 'unlimited', since there are only
73199         *.m4 files in this module.
73201 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
73202             Bruno Haible  <bruno@clisp.org>
73204         Add support for HP C 7.1 on OpenVMS 8.3.
73205         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
73207 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
73209         Update VMS specifics.
73210         * lib/getopt.c [VMS]: Remove include of unixlib.h.
73212 2008-03-02  Jim Meyering  <meyering@redhat.com>
73214         Remove the last dependency on the "free" module.
73215         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
73216         Reported by Bob Proulx.
73218         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
73220         Remove useless "if" tests before free.  Deprecate "free" module.
73221         * doc/posix-functions/free.texi: Mention that this
73222         module is no longer useful.
73223         * modules/free (Notice): Say this module is obsolete.
73224         * modules/readutmp (Depends-on): Remove free.
73225         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
73226         * lib/putenv.c (putenv): Likewise.
73227         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
73228         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
73229         * tests/test-c-strcasestr.c (main): Likewise.
73230         * tests/test-c-strstr.c (main): Likewise.
73231         * tests/test-mbscasestr1.c (main): Likewise.
73232         * tests/test-mbscasestr2.c (main): Likewise.
73233         * tests/test-mbsstr1.c (main): Likewise.
73234         * tests/test-mbsstr2.c (main): Likewise.
73235         * tests/test-memmem.c (main): Likewise.
73236         * tests/test-strcasestr.c (main): Likewise.
73237         * tests/test-striconv.c (main): Likewise.
73238         * tests/test-striconveh.c (main): Likewise.
73239         * tests/test-striconveha.c (main): Likewise.
73240         * tests/test-strstr.c (main): Likewise.
73242         * build-aux/git-version-gen: Adjust a comment and the Usage string.
73244         bootstrap: sync from coreutils again
73245         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
73247 2008-03-01  Jim Meyering  <meyering@redhat.com>
73249         bootstrap: sync from coreutils
73250         * build-aux/bootstrap (update_po_files): Copy a .po file into place
73251         also when the target doesn't exist.
73253 2008-03-01  Eric Blake  <ebb9@byu.net>
73255         Fix bugs in last patch.
73256         * lib/memchr2.c (memchr2): Fix typo.
73257         * tests/test-memchr2.c: Test previous bug, and don't use GNU
73258         extension.
73259         Reported by Bruce Korb.
73261         New module 'memchr2'.
73262         * modules/memchr2: New file.
73263         * modules/memchr2-tests: Likewise.
73264         * lib/memchr2.h: Likewise.
73265         * lib/memchr2.c: Likewise, based on memchr.c.
73266         * tests/test-memchr2.c: New test.
73267         * MODULES.html.sh (String handling): Add memchr2.
73269 2008-02-29  Bruno Haible  <bruno@clisp.org>
73271         * modules/freadseek-tests: New file.
73272         * tests/test-freadseek.sh: New file.
73273         * tests/test-freadseek.c: New file.
73275         New module 'freadseek'.
73276         * modules/freadseek: New file.
73277         * lib/freadseek.h: New file.
73278         * lib/freadseek.c: New file.
73279         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
73281 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
73283         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
73284         wydawca.
73286         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
73287         program_invocation_name and program_invocation_short_name are
73288         present.
73290 2008-02-28  Bruno Haible  <bruno@clisp.org>
73292         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
73293         * tests/test-freadptr.sh: Also test non-seekable stdin.
73295 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
73297         * build-aux/bootstrap (source_base, m4_base)
73298         (doc_base, tests_base): New variables.
73299         (gnulib_tool_options): Do not hardcode base directories, use
73300         the above variables instead.
73302 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
73304         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
73306 2008-02-28  Bruno Haible  <bruno@clisp.org>
73308         * modules/freadptr-tests: New file.
73309         * tests/test-freadptr.sh: New file.
73310         * tests/test-freadptr.c: New file.
73312         New module 'freadptr'.
73313         * modules/freadptr: New file.
73314         * lib/freadptr.h: New file.
73315         * lib/freadptr.c: New file.
73316         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
73318 2008-02-26  Karl Berry  <karl@freefriends.org>
73320         Sync from Libtool:
73321         * libltdl/argz.c (argz_add, argz_count): New functions.
73322         * libltdl/argz.in.h: Declare them.
73323         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
73325 2008-02-22  Bruno Haible  <bruno@clisp.org>
73327         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
73328         is a pointer type.  Needed for HP-UX 10.
73329         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
73330         * doc/posix-functions/gmtime_r.texi: Likewise.
73331         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
73333 2008-02-24  Bruno Haible  <bruno@clisp.org>
73335         * modules/environ-tests: New file.
73336         * tests/test-environ.c: New file.
73338         New module 'environ'.
73339         * modules/environ: New file.
73340         * lib/unistd.in.h (environ): New declaration.
73341         * m4/environ.m4: New file.
73342         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
73343         after use.
73344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
73345         HAVE_DECL_ENVIRON.
73346         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
73347         HAVE_DECL_ENVIRON.
73348         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
73349         wrong claim that 'environ' is missing on some systems.
73350         * modules/execute (Depends-on): Add environ.
73351         * lib/execute.c (environ): Remove fallback declaration.
73352         * modules/pipe (Depends-on): Add environ.
73353         * lib/pipe.c (environ): Remove fallback declaration.
73354         * modules/setenv (Depends-on): Add environ.
73355         * lib/setenv.c (environ): Remove fallback declaration.
73356         * modules/unsetenv (Depends-on): Add environ.
73357         * lib/unsetenv.c (environ): Remove fallback declaration.
73358         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
73359         m4/environ.m4.
73360         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
73361         (gl_PREREQ_UNSETENV): Likewise.
73363 2008-02-24  Bruno Haible  <bruno@clisp.org>
73365         * doc/posix-functions/environ.texi: Document the MacOS X problem.
73367 2008-02-20  Bob Proulx  <bob@proulx.com>
73369         Enable use of older two part flavor 'git describe'.
73370         * build-aux/git-version-gen: If using the older two part flavor of
73371         git version then recreate the third part now present in the
73372         newer three part flavor of git describe.
73374 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
73376         * lib/fts.c (fts_build): Typo correction to comment.
73378 2008-02-17  Bruno Haible  <bruno@clisp.org>
73380         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
73381         generating no-op conflicts.
73383 2008-02-17  Bruno Haible  <bruno@clisp.org>
73385         Speed up by 10%.
73386         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
73387         result_entries, rather than an index-based loop.
73389 2008-02-17  Bruno Haible  <bruno@clisp.org>
73391         Speed up by 25%.
73392         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
73393         'hashcode_cached'.
73394         (entry_create): New function.
73395         (entry_hashcode): Use the cached hashcode if possible.
73396         (read_changelog_file, try_split_merged_entry): Use entry_create.
73398 2008-02-17  Bruno Haible  <bruno@clisp.org>
73400         Speed up from O(n^2) to O(n) for long ChangeLog files.
73401         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
73402         (read_changelog_file): Change implementation of entries_reversed list
73403         to rbtreehash.
73404         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
73406 2008-02-17  Bruno Haible  <bruno@clisp.org>
73408         New option --split-merged-entry.
73409         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
73410         (find_paragraph_end, try_split_merged_entry): New functions.
73411         (long_options): Add option --split-merged-entry.
73412         (usage): Document option --split-merged-entry.
73413         (main): Implement option --split-merged-entry.
73414         Reported by Eric Blake.
73416 2008-02-17  Bruno Haible  <bruno@clisp.org>
73418         * lib/git-merge-changelog.c: Include c-strstr.h.
73419         (main): Support the "git pull --rebase" situation.
73420         * modules/git-merge-changelog (Depends-on): Add c-strstr.
73421         Reported by Eric Blake.
73423 2008-02-16  Eric Blake  <ebb9@byu.net>
73425         Avoid doubling \ in common case of "c-maybe" quoting style.
73426         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
73427         eliding outer quotes.
73428         * lib/quotearg.h: Document this.
73429         * tests/test-quotearg.c (result_strings, inputs, results_g)
73430         (flag_results, locale_results): Test it by adding a new string to
73431         each test group.
73432         (compare_strings): Test new string.
73434 2008-02-13  Eric Blake  <ebb9@byu.net>
73436         Avoid trigraph quoting in default output.
73437         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
73438         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
73439         unless explicitly requested.
73440         * tests/test-quotearg.c (flag_results, main): Add additional tests.
73442 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
73444         Don't rely on signed integer overflowing to negative value.
73445         * lib/getugroups.c (getugroups): Include <limits.h>.
73446         Instead, compare against INT_MAX, and increment only if the test passes.
73448 2008-02-13  Jim Meyering  <meyering@redhat.com>
73449         and Eric Blake  <ebb9@byu.net>
73451         Avoid shadowing warning and compile errors on Linux.
73452         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
73453         forwarding macros on Linux.
73454         (dcgettext): Define a stub, for Linux.
73455         (results_g, main): Avoid warnings.
73457 2008-02-12  Eric Blake  <ebb9@byu.net>
73459         Silence warning in last patch.
73460         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
73462         Quotearg part 4: add tests, fix c-maybe colon quoting.
73463         * lib/quotearg.h: Improve documentation.
73464         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
73465         escapes when adding outer quotes.  When quoting trigraphs, use
73466         valid C notation.  When quoting NUL, omit extra characters if next
73467         character is not digit.  Alter prototype.
73468         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
73469         callers.
73470         * modules/quotearg-tests: New module.
73471         * tests/test-quotearg.c: New test.
73473 2008-02-07  Eric Blake  <ebb9@byu.net>
73475         Quotearg part 3: add flag to control outer quote elision.
73476         * lib/quotearg.h (c_maybe_quoting_style): New style.
73477         (enum quoting_flags): Better documentation of flags.
73478         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
73479         c-maybe style.
73480         (quotearg_buffer_restyled): Handle new flag to elide outer
73481         quotes.
73483         Quotearg part 2: add flag that can control NUL elision.
73484         * lib/quotearg.h (set_quoting_flags): New prototype.
73485         * lib/quotearg.c (struct quoting_options): Add flag field.
73486         (set_quoting_flags): New function.
73487         (quotearg_buffer_restyled): Add flags parameter.
73488         (quotearg_alloc_mem): Set the flag if length cannot be returned.
73489         (quotearg_n_options): Set the flag, since length cannot be
73490         returned.
73491         (quoting_options_from_style): Default flags correctly.
73493         Quotearg part 1: more wrappers, restore quotearg_char state.
73494         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
73495         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
73496         (quotearg_colon_mem): New wrappers.
73497         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
73498         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
73499         functions.
73500         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
73501         (quotearg_colon_mem): New functions.
73503 2008-02-11  Bruno Haible  <bruno@clisp.org>
73505         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
73506         library in the current directory: it does not work with parallel make.
73507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73509 2008-02-11  Bruno Haible  <bruno@clisp.org>
73511         * .gitattributes: New file.
73513 2008-02-11  Jim Meyering  <meyering@redhat.com>
73515         useless-if-before-free: Fix reversed exit values.
73516         * build-aux/useless-if-before-free: Use correct values
73517         for EXIT_MATCH and EXIT_NO_MATCH.
73519         * build-aux/useless-if-before-free: Close stdout carefully.
73521 2008-02-10  Bruno Haible  <bruno@clisp.org>
73523         New module 'git-merge-changelog'.
73524         * modules/git-merge-changelog: New file.
73525         * lib/git-merge-changelog.c: New file.
73527 2008-02-10  Jim Meyering  <meyering@redhat.com>
73529         useless-if-before-free: New option: --list (-l).
73531         useless-if-before-free: Don't exit immediately upon open failure.
73532         * build-aux/useless-if-before-free: Exit 2 for errors.
73533         Upon failure to open a file, don't exit immediately.
73534         Rather, just warn and continue with any remaining files.
73536 2008-02-10  Bruno Haible  <bruno@clisp.org>
73538         New abstract list operation 'node_set_value'.
73539         * lib/gl_list.h (gl_list_node_set_value): New function.
73540         (struct gl_list_implementation): New field node_set_value.
73541         * lib/gl_list.c (gl_list_node_set_value): New function.
73542         * lib/gl_array_list.c (gl_array_node_set_value): New function.
73543         (gl_array_list_implementation): Update.
73544         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
73545         (gl_carray_list_implementation): Update.
73546         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
73547         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73548         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73549         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
73550         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73551         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73552         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73553         Update.
73554         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73555         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
73556         (gl_sublist_list_implementation): Update.
73558 2008-02-10  Bruno Haible  <bruno@clisp.org>
73560         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
73561         Needed when ELEMENT is #defined to 'some_type *'.
73563 2008-02-10  Jim Meyering  <meyering@redhat.com>
73565         New script and module: useless-if-before-free
73566         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
73567         * build-aux/useless-if-before-free: New file.
73568         * modules/useless-if-before-free: New file.
73570         * build-aux/gitlog-to-changelog: Use committer date, not author date.
73572         xstrtol_error: Fix typo.
73573         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
73574         s/exit_failure/exit_status/.
73576 2008-02-09  Jim Meyering  <meyering@redhat.com>
73578         New script and module: gitlog-to-changelog
73579         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
73580         * modules/gitlog-to-changelog: New file.
73581         * build-aux/gitlog-to-changelog: New file.
73583 2008-02-08  Jim Meyering  <meyering@redhat.com>
73585         Avoid two "parameter unused" warnings.
73586         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
73587         Mark "st" as used.
73589         Use "git COMMAND", not "git-COMMAND".
73590         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
73591         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
73592         * build-aux/git-version-gen: Use "git status", not "git-status".
73594 2008-02-07  Bruno Haible  <bruno@clisp.org>
73596         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
73597         Avoids a crash on Windows Vista.
73598         Reported by Adam Strzelecki <ono@java.pl> via
73599         Simon Josefsson <simon@josefsson.org>.
73601 2008-02-06  Bruno Haible  <bruno@clisp.org>
73603         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
73604         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
73605         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
73606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
73607         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
73608         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
73609         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
73610         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
73611         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
73612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73613         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73614         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
73616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73617         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73618         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
73619         left-adjust flag.
73620         * tests/test-snprintf-posix.h (test_function): Likewise.
73621         * tests/test-sprintf-posix.h (test_function): Likewise.
73622         * tests/test-vasprintf-posix.c (test_function): Likewise.
73623         * doc/posix-functions/fprintf.texi: Update.
73624         * doc/posix-functions/printf.texi: Update.
73625         * doc/posix-functions/snprintf.texi: Update.
73626         * doc/posix-functions/sprintf.texi: Update.
73627         * doc/posix-functions/vfprintf.texi: Update.
73628         * doc/posix-functions/vprintf.texi: Update.
73629         * doc/posix-functions/vsnprintf.texi: Update.
73630         * doc/posix-functions/vsprintf.texi: Update.
73631         Reported by Peter Fales <psfales@alcatel-lucent.com>.
73633 2008-02-06  Bruno Haible  <bruno@clisp.org>
73635         Fix bug introduced on 2008-01-26.
73636         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
73638 2008-02-06  Bruno Haible  <bruno@clisp.org>
73640         Fix bug introduced on 2007-06-10.
73641         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
73642         !NEED_PRINTF_FLAG_ZERO.
73644 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
73646         getloadavg: use libperfstat on AIX5
73647         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
73649 2008-02-03  Bruno Haible  <bruno@clisp.org>
73651         * lib/diffseq.h: Add comments about required #includes.
73652         Reported by Michael Biggs <gnulib@doubleplum.net>.
73654 2008-02-01  Bruno Haible  <bruno@clisp.org>
73656         * users.txt: Add gnuit.
73658 2008-01-31  Bruno Haible  <bruno@clisp.org>
73660         * lib/md4.c (set_uint32): Mark as inline.
73661         * lib/md5.c (set_uint32): Likewise.
73662         * lib/sha1.c (set_uint32): Likewise.
73663         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
73664         * m4/md5.m4 (gl_MD5): Likewise.
73665         * m4/sha1.m4 (gl_SHA1): Likewise.
73667 2008-01-31  Jim Meyering  <meyering@redhat.com>
73669         Use "sizeof VAR", rather than a literal "4".
73670         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
73671         * lib/md4.c (md4_read_ctx): Likewise.
73672         * lib/sha1.c (sha1_read_ctx): Likewise.
73674 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73676         * tests/test-sha1.c: New file, based on test-md5.c.
73678         * modules/crypto/sha1-tests: New file.
73680 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73682         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
73684 2008-01-31  Jim Meyering  <meyering@redhat.com>
73686         Prefer "sizeof v" over the equivalent "4".
73687         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
73688         * lib/md5.c (set_uint32): Likewise.
73689         * lib/sha1.c (set_uint32): Likewise.
73691 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73693         * lib/sha1.c (set_uint32): Mark function as static.
73695 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73697         md2: clarify comments to say that alignment is not required.
73698         * lib/md2.h: Remove warning about alignment in comment.
73699         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
73700         never been required.
73702 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73704         md4: adapt alignment constraint fix from sha1.
73705         * lib/md4.c (set_uint32): New function, from sha1.c
73706         (md4_read_ctx): Use it.
73707         (md4_finish_ctx): Doc fix.
73708         * lib/md4.h: Doc fix.
73710 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73712         md5: adapt alignment constraint fix from sha1.
73713         * lib/md5.c (set_uint32): New function, from sha1.c
73714         (md5_read_ctx): Use it.
73715         (md5_finish_ctx): Doc fix.
73716         * lib/md5.h: Doc fix.
73718 2008-01-30  Peter Palfrader  <weasel@debian.org>
73720         sha1: remove the result buffer alignment constraint
73721         * lib/sha1.c (set_uint32): New function.
73722         (sha1_read_ctx): Rewrite to remove the result buffer alignment
73723         constraint.
73724         (sha1_finish_ctx): Remove comment warning about alignment constraint.
73725         * lib/sha1.h: Likewise.
73727 2008-01-30  Andreas Schwab  <schwab@suse.de>
73728             Bruno Haible  <bruno@clisp.org>
73730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
73731         correct definition of LDBL_MIN_EXP.
73733 2008-01-30  Karl Berry  <karl@gnu.org>
73735         * config/srclist-update: try to preserve x bit on updates.
73736         * config/srclistvars.sh: update for karl.
73738 2008-01-29  Jim Meyering  <meyering@redhat.com>
73740         vasnprintf.c: Avoid warning about unused label
73741         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
73742         "overflow" label definition and associated code with the
73743         same cpp condition that guards the sole use of that label.
73745 2008-01-26  Bruno Haible  <bruno@clisp.org>
73747         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
73748         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
73749         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
73750         * lib/isnanl-nolibm.h (isnanl): Likewise.
73751         Reported by Paul Eggert <eggert@cs.ucla.edu>.
73753 2008-01-26  Bruno Haible  <bruno@clisp.org>
73755         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
73756         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
73758 2008-01-26  Bruno Haible  <bruno@clisp.org>
73760         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
73761         GCC >= 4.0 built-in.
73762         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
73764 2008-01-26  Bruno Haible  <bruno@clisp.org>
73766         Rename isnan, applicable to 'double' only, to isnand.
73767         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
73768         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
73769         (configure.ac): Update.
73770         (Include): Replace "isnan.h" with "isnand.h".
73771         * m4/isnand.m4: Renamed from m4/isnan.m4.
73772         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
73773         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
73774         instead of isnan.c.
73775         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
73776         instead of HAVE_ISNAN_IN_LIBC.
73777         (isnand): Renamed from isnan.
73778         * lib/isnand.c: New file.
73779         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
73780         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
73781         (Makefile.am): Update.
73782         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
73783         Include isnand.h instead of isnan.h.
73784         (main): Test isnand instead of isnan.
73785         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
73786         isnan-nolibm.
73787         * modules/frexp (Depends-on): Likewise.
73788         * modules/frexp-tests (Depends-on): Likewise.
73789         * modules/frexp-nolibm (Depends-on): Likewise.
73790         * modules/frexp-nolibm-tests (Depends-on): Likewise.
73791         * modules/isfinite (Depends-on): Likewise.
73792         * modules/round-tests (Depends-on): Likewise.
73793         * modules/signbit (Depends-on): Likewise.
73794         * modules/signbit-tests (Depends-on): Likewise.
73795         * modules/snprintf-posix (Depends-on): Likewise.
73796         * modules/sprintf-posix (Depends-on): Likewise.
73797         * modules/trunc-tests (Depends-on): Likewise.
73798         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73799         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73800         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73801         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73802         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73803         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73804         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73805         * modules/vasnprintf-posix (Depends-on): Likewise.
73806         * modules/vasprintf-posix (Depends-on): Likewise.
73807         * modules/vfprintf-posix (Depends-on): Likewise.
73808         * modules/vsnprintf-posix (Depends-on): Likewise.
73809         * modules/vsprintf-posix (Depends-on): Likewise.
73810         * lib/frexp.c: Include isnand.h instead of isnan.h.
73811         (ISNAN): Set to isnand instead of isnan.
73812         * lib/isfinite.c: Include isnand.h instead of isnan.h.
73813         (gl_isfinited): Use isnand instead of isnan.
73814         * lib/signbitd.c: Include isnand.h instead of isnan.h.
73815         (gl_signbitd): Use isnand instead of isnan.
73816         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
73817         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
73818         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
73819         (main): Use isnand instead of isnan.
73820         * tests/test-round1.c: Include isnand.h.
73821         (main): Use isnand instead of isnan.
73822         * tests/test-round2.c: Include isnand.h instead of isnan.h.
73823         (ISNAN): Set to isnand instead of isnan.
73824         * tests/test-trunc1.c: Include isnand.h.
73825         (main): Use isnand instead of isnan.
73826         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
73827         (equal): Use isnand instead of isnan.
73828         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
73829         isnand-nolibm.
73830         * NEWS: Mention the change.
73832 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73833             Bruno Haible  <bruno@clisp.org>
73835         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
73836         the GCC builtins for signbits are present and set
73837         REPLACE_SIGNBIT_USING_GCC if so.
73838         * lib/math.in.h (signbit): Define using GCC builtins if
73839         REPLACE_SIGNBIT_USING_GCC is set.
73840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
73841         REPLACE_SIGNBIT_USING_GCC.
73842         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
73844 2008-01-25  Jim Meyering  <meyering@redhat.com>
73846         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
73847         * lib/poll.c: Include <config.h>, not "config.h".
73848         * tests/test-getaddrinfo.c: Likewise.
73850 2008-01-25  Simon Josefsson  <simon@josefsson.org>
73852         * modules/sockets-tests: New file.
73854 2008-01-24  Simon Josefsson  <simon@josefsson.org>
73856         * modules/sockets: New module, can be used to call WSA_Startup and
73857         WSA_Cleanup when needed.
73859         * lib/sockets.h, lib/sockets.c: New files.
73861         * m4/sockets.m4: New file.
73863         * tests/test-sockets.c: New file.
73865 2008-01-19  Bruno Haible  <bruno@clisp.org>
73867         * doc/posix-headers: Renamed from doc/headers.
73868         * doc/posix-functions: Renamed from doc/functions.
73869         * doc/gnulib.texi: Update.
73871 2008-01-19  Bruno Haible  <bruno@clisp.org>
73873         * doc/glibc-functions/strcasestr.texi: Include contents of
73874         doc/functions/strcasestr.texi, fixing the list of platforms.
73875         * doc/functions/strcasestr.texi: Remove file.
73877 2008-01-19  Bruno Haible  <bruno@clisp.org>
73879         * doc/glibc-functions/memmem.texi: Include contents of
73880         doc/functions/memmem.texi.
73881         * doc/functions/memmem.texi: Remove file.
73883 2008-01-18  Bruno Haible  <bruno@clisp.org>
73885         * doc/glibc-functions/*.texi: New files.
73886         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
73887         to use the new files.
73889 2008-01-17  Bruno Haible  <bruno@clisp.org>
73891         * tests/test-gethostname.c (main): Fix printf statement.
73893 2008-01-17  Simon Josefsson  <simon@josefsson.org>
73895         * modules/gethostname-tests: New file.
73897         * tests/test-gethostname.c: New file.
73899 2008-01-17  Simon Josefsson  <simon@josefsson.org>
73901         * lib/gethostname.c: Include string.h unconditionally, strncpy is
73902         used by the UNAME case.  Reported by Bruno Haible
73903         <bruno@clisp.org>.
73905 2008-01-17  Eric Blake  <ebb9@byu.net>
73907         Convert c-strcasestr to be more efficient.
73908         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
73909         (Depends-on): Add c-strcase, remove malloca, strnlen.
73910         * tests/test-c-strcasestr.c (main): Enhance test.
73911         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
73913 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73915         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
73916         Use it in creating po/Makevars.
73918 2008-01-15  Simon Josefsson  <simon@josefsson.org>
73920         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
73921         Applications that requires it should initialize libgcrypt
73922         manually.
73924 2008-01-16  Simon Josefsson  <simon@josefsson.org>
73926         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
73928 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
73930         Fix problem with getdate on mingw32 reported by Simon Josefsson
73931         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
73932         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
73933         tzname", when deciding whether to declare tzname.
73934         * lib/strftime.c (tzname): Likewise.
73936 2008-01-15  Bruno Haible  <bruno@clisp.org>
73938         Work around a MacOS X 10.5 bug in frexpl().
73939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
73940         * doc/functions/frexpl.texi: Document the bug.
73941         Reported by Elias Pipping <pipping@gentoo.org>.
73943 2008-01-14  Eric Blake  <ebb9@byu.net>
73945         Touch up previous patch.
73946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
73947         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
73949         Convert strcasestr module to use Two-Way algorithm.
73950         * modules/strcasestr-simple: New module, based on the old
73951         strcasestr, but with Two-Way rather than KMP.
73952         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
73953         * lib/string.in.h (rpl_strcasestr): Declare.
73954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
73955         performance.
73956         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
73957         * modules/string (Makefile.am): Support strcasestr.
73958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
73959         * modules/strcasestr-tests (Depends-on): Check for alarm.
73960         * tests/test-strcasestr.c: Augment test.
73961         * lib/str-two-way.h: Clean up stray macro.
73962         * NEWS: Document new module.
73963         * MODULES.html.sh (string handling): Likewise.
73964         * doc/functions/strcasestr.texi: New file.
73965         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
73966         here, since it is not a POSIX function.
73968 2008-01-14  Colin Watson  <cjwatson@debian.org>
73969             Bruno Haible  <bruno@clisp.org>
73971         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
73972         works fine; if not, set REPLACE_STRSIGNAL.
73973         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
73974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73975         REPLACE_STRSIGNAL.
73976         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
73977         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
73978         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
73980 2008-01-14  Bruno Haible  <bruno@clisp.org>
73982         * modules/strsignal (Include): Change to <string.h>.
73984 2008-01-14  Colin Watson  <cjwatson@debian.org>
73986         * modules/argp (Notice): Add a notice recommending to change
73987         XGETTEXT_OPTIONS.
73988         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
73990 2008-01-13  Colin Watson  <cjwatson@debian.org>
73992         * modules/strsignal-tests: New file.
73993         * tests/test-strsignal.c: New file.
73995         * lib/strsignal.c: New file, from glibc with modifications.
73996         * lib/siglist.h: New file, from glibc with modifications.
73997         * lib/string.in.h (strsignal): New declaration.
73998         * m4/strsignal.m4: New file.
73999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74000         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
74001         * modules/strsignal: New file.
74002         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
74003         HAVE_DECL_STRSIGNAL.
74005 2008-01-13  Bruno Haible  <bruno@clisp.org>
74007         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
74008         locale encoding is not ASCII. Needed for OpenBSD 4.0.
74009         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
74010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74012 2008-01-13  Bruno Haible  <bruno@clisp.org>
74014         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
74015         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
74016         * lib/argp.h (__attribute__): Likewise.
74017         * lib/c-stack.c (__attribute__): Likewise.
74018         * lib/error.h (__attribute__): Likewise.
74019         * lib/fts.c (__attribute__): Likewise.
74020         * lib/openat.h (__attribute__): Likewise.
74021         * lib/stdio.in.h (__attribute__): Likewise.
74022         * lib/string.in.h (__attribute__): Likewise.
74023         * lib/utimens.c (__attribute__): Likewise.
74024         * lib/vasnprintf.h (__attribute__): Likewise.
74025         * lib/xalloc.h (__attribute__): Likewise.
74026         * lib/xprintf.h (__attribute__): Likewise.
74027         * lib/xstrtol.h (__attribute__): Likewise.
74028         * lib/xvasprintf.h (__attribute__): Likewise.
74030 2008-01-12  Bruno Haible  <bruno@clisp.org>
74032         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
74033         * doc/glibc-headers/a.out.texi: New file.
74034         * doc/glibc-headers/aliases.texi: New file.
74035         * doc/glibc-headers/alloca.texi: New file.
74036         * doc/glibc-headers/ar.texi: New file.
74037         * doc/glibc-headers/argp.texi: New file.
74038         * doc/glibc-headers/argz.texi: New file.
74039         * doc/glibc-headers/byteswap.texi: New file.
74040         * doc/glibc-headers/crypt.texi: New file.
74041         * doc/glibc-headers/endian.texi: New file.
74042         * doc/glibc-headers/envz.texi: New file.
74043         * doc/glibc-headers/err.texi: New file.
74044         * doc/glibc-headers/error.texi: New file.
74045         * doc/glibc-headers/execinfo.texi: New file.
74046         * doc/glibc-headers/fpu_control.texi: New file.
74047         * doc/glibc-headers/fstab.texi: New file.
74048         * doc/glibc-headers/fts.texi: New file.
74049         * doc/glibc-headers/getopt.texi: New file.
74050         * doc/glibc-headers/ieee754.texi: New file.
74051         * doc/glibc-headers/ifaddrs.texi: New file.
74052         * doc/glibc-headers/libintl.texi: New file.
74053         * doc/glibc-headers/mcheck.texi: New file.
74054         * doc/glibc-headers/mntent.texi: New file.
74055         * doc/glibc-headers/obstack.texi: New file.
74056         * doc/glibc-headers/paths.texi: New file.
74057         * doc/glibc-headers/printf.texi: New file.
74058         * doc/glibc-headers/pty.texi: New file.
74059         * doc/glibc-headers/resolv.texi: New file.
74060         * doc/glibc-headers/shadow.texi: New file.
74061         * doc/glibc-headers/sysexits.texi: New file.
74062         * doc/glibc-headers/ttyent.texi: New file.
74064 2008-01-12  Jim Meyering  <meyering@redhat.com>
74066         announce-gen: emit Gnulib's git-based version string.
74067         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
74068         New option --gnulib-version=V, where V is expected to be
74069         the output of running git describe in the gnulib directory.
74070         (get_tool_versions): Request feedback on xdelta.  I suspect it's
74071         not useful, and plan to stop publishing an xdelta file with each
74072         coreutils release.
74074         * build-aux/announce-gen: Also check for lzma-compressed files.
74076 2008-01-11  Bruno Haible  <bruno@clisp.org>
74078         * tests/test-memmem.c (main): Increase maximum allowed time.
74079         * tests/test-strstr.c (main): Likewise.
74081 2008-01-11  Bruno Haible  <bruno@clisp.org>
74083         * doc/functions/memmem.texi: Add more precisions about platforms.
74084         * doc/functions/strstr.texi: Likewise.
74086 2008-01-10  Eric Blake  <ebb9@byu.net>
74088         * m4/strstr.m4: Delete cruft from copy-n-paste.
74089         Reported by Bruno Haible.
74091 2008-01-10  Bruno Haible  <bruno@clisp.org>
74093         Make c-strstr rely on strstr.
74094         * lib/c-strstr.c: Don't include str-kmp.h.
74095         (c_strstr): Define in terms of strstr.
74096         * modules/c-strstr (Files): Remove lib/str-kmp.h.
74097         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
74099 2008-01-10  Bruno Haible  <bruno@clisp.org>
74101         * doc/gnulib.texi (String Functions in C Locale): New section.
74102         * doc/c-ctype.texi: New file.
74103         * doc/c-strcase.texi: New file.
74104         * doc/c-strcaseeq.texi: New file.
74105         * doc/c-strcasestr.texi: New file.
74106         * doc/c-strstr.texi: New file.
74107         * doc/c-strtod.texi: New file.
74108         * doc/c-strtold.texi: New file.
74110 2008-01-10  Eric Blake  <ebb9@byu.net>
74112         * lib/relocatable.h: Fix a comment.
74114 2008-01-10  Eric Blake  <ebb9@byu.net>
74116         Share two-way algorithm.
74117         * lib/str-two-way.h: New file, merged from...
74118         * lib/memmem.c: ...here...
74119         * lib/strstr.c: ...and here.
74120         * modules/memmem (Files): Use it.
74121         * modules/strstr (Files): Likewise.
74123         Avoid quadratic strstr implementations.
74124         * lib/strstr.c: New file.
74125         * m4/strstr.m4: Likewise.
74126         * modules/strstr: Likewise.
74127         * modules/strstr-tests: Likewise.
74128         * tests/test-strstr.c: Likewise.
74129         * lib/string.in.h (rpl_strstr): Declare.
74130         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
74131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
74132         * modules/string (Makefile.am): Likewise.
74133         * MODULES.html.sh (string handling): Mention new module.
74134         * doc/functions/strstr.texi (strstr): Document the bug.
74136 2008-01-10  Bruno Haible  <bruno@clisp.org>
74138         * lib/relocatable.h (relocate): State whether result is freshly
74139         allocated or not.
74140         * lib/relocatable.c (relocate): Return a freshly allocated string
74141         instead of a pointer to a privately held string.
74142         Reported by Sylvain Beucler <beuc@gnu.org>.
74144 2008-01-10  Colin Watson  <cjwatson@debian.org>
74146         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
74147         s/S_ISNLK/S_ISLNK/.
74149 2008-01-09  Bruno Haible  <bruno@clisp.org>
74151         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
74152         and other files.
74153         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
74154         if it's only a guess.
74155         * modules/memmem: Simplify by depending on memmem-simple.
74157 2008-01-09  Bruno Haible  <bruno@clisp.org>
74159         Work around OpenBSD 4.0 tdelete() bug.
74160         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
74161         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
74162         macros and don't redefine the enum values.
74163         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
74164         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
74165         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
74167 2008-01-09  Bruno Haible  <bruno@clisp.org>
74169         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
74170         (main): Don't perform the tests if setlocale did not install a UTF-8
74171         locale. Needed on OpenBSD 4.0.
74172         * modules/wcwidth-tests (Depends-on): Add localcharset.
74174 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74176         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
74177         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
74178         * NEWS: announce this.
74179         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
74181 2008-01-09  Simon Josefsson  <simon@josefsson.org>
74182         and Eric Blake  <ebb9@byu.net>
74184         Add memmem-simple module.
74185         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
74186         (gl_FUNC_MEMMEM): Separate performance from presence checks.
74187         * modules/memmem-simple: New file.
74188         * modules/memmem (Description): Tweak.
74189         * MODULES.html.sh (string handling): Mention new module.
74190         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
74191         addressed by memmem-simple.
74192         * NEWS: Document the difference.
74194 2008-01-09  Eric Blake  <ebb9@byu.net>
74196         Give gcc some memmem optimization hints.
74197         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
74198         (strcasestr): Declare as pure.
74199         * modules/memmem (Maintainer): Claim my implementation.
74201 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74203         Support AIX 6.1 and higher.
74204         * build-aux/config.libpath: Likewise.
74205         * build-aux/config.rpath: Likewise.
74207 2008-01-08  Jim Meyering  <meyering@redhat.com>
74208             Bruno Haible  <bruno@clisp.org>
74210         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
74211         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
74212         Reported by Peter Fales in
74213         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
74215 2008-01-08  Bruno Haible  <bruno@clisp.org>
74217         * modules/unictype/category-of (Depends-on): Add
74218         unictype/category-none.
74219         * modules/unictype/category-and-tests (Depends-on): Add
74220         unictype/category-{L,N,Lu,Nd}.
74221         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
74222         * modules/unictype/category-or-tests (Depends-on): Add
74223         unictype/category-{L,N}.
74224         * modules/unictype/category-name-tests (Depends-on): Add
74225         unictype/category-{Z,Nl}.
74226         Reported by Simon Josefsson.
74228 2008-01-08  Bruno Haible  <bruno@clisp.org>
74230         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
74231         convention better.
74232         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
74233         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
74234         Reported by Peter Miller <millerp@canb.auug.org.au>.
74236 2008-01-08  Eric Blake  <ebb9@byu.net>
74238         Rewrite memmem to guarantee linear complexity without malloc.
74239         * lib/memmem.c (memmem): Use Two-Way rather than
74240         Knuth-Morris-Pratt, to allow O(1) space usage.
74241         (critical_factorization, two_way_short_needle)
74242         (two_way_long_needle): New functions.
74243         (knuth_morris_pratt): Delete.
74244         * modules/memmem (Depends-on): No longer need malloca or stdbool.
74245         Add stdint.
74246         * tests/test-memmem.c (main): Add tests for periodic needle and
74247         sublinear performance.
74248         * doc/functions/memmem.texi (memmem): Document other deficiencies
74249         in cygwin and older glibc.
74251 2008-01-08  Bruno Haible  <bruno@clisp.org>
74253         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
74254         augmentation.
74256 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
74258         Add a configure time option: --disable-acl.
74259         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
74260         AC_ARG_ENABLE(acl).
74262 2008-01-06  Simon Josefsson  <simon@josefsson.org>
74264         * tests/test-localename.c: Don't include obsolete "setenv.h".
74266         * modules/localename-tests (Depends-on): Need unsetenv.
74268 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74270         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
74272 2008-01-06  Colin Watson  <cjwatson@debian.org>
74274         * users.txt: Add man-db.
74276 2008-01-07  Bruno Haible  <bruno@clisp.org>
74278         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
74279         previous section name.
74281 2008-01-07  Bruno Haible  <bruno@clisp.org>
74283         * lib/progname.c (set_program_name): Don't strip off a leading
74284         "lt-" prefix outside a .libs directory.
74285         Suggested by Paul Eggert.
74287 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
74288             Bruno Haible  <bruno@clisp.org>
74290         Improve memory cleanup in 'relocatable' module.
74291         * lib/relocatable.h (compute_curr_prefix): Change return type to
74292         'char *'.
74293         * lib/relocatable.c (compute_curr_prefix): Change return type to
74294         'char *'. Free curr_installdir after use.
74295         (relocate): Free curr_prefix_better after use.
74296         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
74298 2008-01-01  Bruno Haible  <bruno@clisp.org>
74300         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
74301         failure on older glibc systems.
74302         Reported by Peter Fales <psfales@alcatel-lucent.com>.
74304 2008-01-05  Eric Blake  <ebb9@byu.net>
74306         Avoid quadratic system memmem.
74307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
74308         Reported by Ralf Wildenhues.
74310         Fix memmem test for mingw.
74311         * modules/memmem-tests (configure.ac): Check for alarm.
74312         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
74313         it.
74314         * doc/functions/memmem.texi: New file.
74315         * doc/gnulib.texi (Function Substitutes): Add memmem.
74316         Reported by Bruno Haible.
74318 2008-01-04  Bruno Haible  <bruno@clisp.org>
74320         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
74321         Require gl_HEADER_STRINGS_H_DEFAULTS, not
74322         gl_HEADER_STRING_H_DEFAULTS.
74324 2008-01-04  Eric Blake  <ebb9@byu.net>
74326         Shorten duration of memmem test.
74327         * tests/test-memmem.c (main): Use alarm to declare failure if test
74328         is taking too long.
74329         Reported by Ralf Wildenhues.
74331 2007-12-21  Simon Josefsson  <simon@josefsson.org>
74333         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
74334         string, needed by strerror.
74336 2008-01-03  Colin Watson  <cjwatson@debian.org>
74337             Bruno Haible  <bruno@clisp.org>
74339         * doc/gnulib-tool.texi (Localization): New section.
74341 2008-01-02  Bruno Haible  <bruno@clisp.org>
74343         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
74344         variables to 'unsigned char *' type.
74345         Reported by Paul Eggert.
74347 2008-01-02  Jim Meyering  <jim@meyering.net>
74349         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
74351 2007-12-31  Jim Meyering  <jim@meyering.net>
74353         Avoid use of private FTS type name.
74354         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
74356 2007-12-30  Karl Berry  <karl@gnu.org>
74358         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
74359         work around defect in Texinfo and/or the standalone Info browser.
74361 2007-12-30  Bruno Haible  <bruno@clisp.org>
74363         Unify 5 copies of the KMP code.
74364         * lib/str-kmp.h: New file.
74365         * lib/c-strcasestr.c: Include str-kmp.h.
74366         (knuth_morris_pratt): Remove function.
74367         (c_strcasestr): Update.
74368         * lib/c-strstr.c: Include str-kmp.h.
74369         (knuth_morris_pratt): Remove function.
74370         (c_strcasestr): Update.
74371         * lib/mbscasestr.c: Include str-kmp.h.
74372         (knuth_morris_pratt_unibyte): Remove function.
74373         * lib/mbsstr.c: Include str-kmp.h.
74374         (knuth_morris_pratt_unibyte): Remove function.
74375         * lib/strcasestr.c: Include str-kmp.h.
74376         (knuth_morris_pratt): Remove function.
74377         (strcasestr): Update.
74378         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
74379         * modules/c-strstr (Files): Likewise.
74380         * modules/mbscasestr (Files): Likewise.
74381         * modules/mbsstr (Files): Likewise.
74382         * modules/strcasestr (Files): Likewise.
74383         Suggested by Paul Eggert.
74385 2007-12-30  Bruno Haible  <bruno@clisp.org>
74387         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
74388         defined.
74390 2007-12-30  Bruno Haible  <bruno@clisp.org>
74392         * lib/xmalloca.h: Include xalloc.h.
74393         (xnmalloca): New macro.
74395 2007-12-30  Bruno Haible  <bruno@clisp.org>
74397         * lib/malloca.h (nmalloca): New macro.
74398         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
74399         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
74400         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
74401         knuth_morris_pratt_multibyte): Likewise.
74402         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
74403         knuth_morris_pratt_multibyte): Likewise.
74404         * lib/memmem.c (knuth_morris_pratt): Likewise.
74405         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
74407 2007-12-25  Bruno Haible  <bruno@clisp.org>
74409         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
74410         * lib/glob.c: Don't include openat.h.
74411         (link_exists2_p): Add back the code that deals with the
74412         !GLOB_ALTDIRFUNC case.
74413         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
74414         let it do the filename concatenation.
74415         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
74416         * modules/glob (Depends-on): Remove openat.
74418 2007-12-31  Bruno Haible  <bruno@clisp.org>
74420         * modules/dirfd (License): Change to LGPLv2+.
74421         Approved by Jim Meyering.
74423 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74425         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
74426         when multiplying M by sizeof (size_t).
74428 2007-12-10  Martin Lambers  <marlam@marlam.de>
74430         Override getpagesize on mingw.
74431         * lib/getpagesize.c: New file.
74432         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
74433         * modules/getpagesize (Files): Add lib/getpagesize.c.
74434         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
74435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74436         REPLACE_GETPAGESIZE.
74437         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
74439 2007-12-25  Bruno Haible  <bruno@clisp.org>
74441         * modules/localcharset (Notice): New field.
74442         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
74443         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
74445 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74446             Bruno Haible  <bruno@clisp.org>
74448         Avoid using the syntax symbol() in formatted documentation.
74449         * MODULES.html.sh (func_module): When replacing symbol() with a
74450         hyperlink, remove the parentheses. Show an error if some remain.
74451         Recognize and render the '...' syntax.
74452         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
74453         Rework. Add paragraph about GCC's inlining.
74454         * doc/alloca.texi: Likewise.
74455         * doc/error.texi: Remove parentheses from symbol reference.
74456         * doc/gnulib-intro.texi: Likewise.
74457         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
74458         * modules/fnmatch (Description): Reword to say "the ... function".
74459         * modules/full-read (Description): Likewise.
74460         * modules/full-write (Description): Likewise.
74461         * modules/safe-read (Description): Likewise.
74462         * modules/safe-write (Description): Likewise.
74463         * modules/strchrnul (Description): Likewise.
74464         * modules/trim (Description): Likewise.
74465         * modules/error (Description): Remove parentheses from symbol
74466         references.
74467         * modules/verror (Description): Likewise.
74468         Reported by Karl Berry.
74470 2007-12-25  Bruno Haible  <bruno@clisp.org>
74472         Fixup after 2007-10-16 commit.
74473         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
74475 2007-12-24  Bruno Haible  <bruno@clisp.org>
74477         Make --enable-relocatable work with DESTDIR.
74478         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
74479         to compute installdir from destprog.
74480         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
74481         also set the RELOC_DESTDIR variable.
74482         Reported by Левашев Иван <octagram@bluebottle.com>.
74484 2007-12-24  Bruno Haible  <bruno@clisp.org>
74486         Fix link error due to xalloc_die().
74487         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
74488         of xreadlink.
74489         * lib/relocwrapper.c: Update comments.
74490         * build-aux/install-reloc: Remove xreadlink.c from file list.
74491         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
74492         xreadlink.c.
74493         Reported by Левашев Иван <octagram@bluebottle.com>.
74495 2007-12-24  Bruno Haible  <bruno@clisp.org>
74497         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
74498         * lib/setenv.h: Remove file.
74499         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
74500         lib/setenv.h.
74501         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
74502         (Depends-on): Add stdlib.
74503         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
74504         gl_FUNC_UNSETENV.
74505         (Include): Replace setenv.h with <stdlib.h>.
74506         * modules/unsetenv: New file.
74507         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
74508         * lib/unsetenv.c: Include <stdlib.h> first.
74509         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
74510         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
74511         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
74512         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
74513         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
74514         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
74515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
74516         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
74517         * doc/functions/unsetenv.texi: Update.
74518         * modules/xsetenv (Depends-on): Add unsetenv.
74519         * modules/getdate (Depends-on): Likewise.
74520         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
74521         * lib/xsetenv.c: Don't include setenv.h.
74522         * lib/getdate.y: Likewise.
74523         * lib/relocwrapper.c: Likewise.
74524         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
74525         (Depends-on): Add stdlib.
74526         * NEWS: Mention the changes.
74527         Reported by Левашев Иван <octagram@bluebottle.com>.
74529 2007-12-23  Bruno Haible  <bruno@clisp.org>
74531         * lib/memmem.c (memmem): Use lowercase variable names. Tab
74532         indentation.
74534 2007-12-23  Bruno Haible  <bruno@clisp.org>
74536         * lib/c-strcasestr.c: Add more comments.
74537         * lib/c-strstr.c: Likewise.
74538         * lib/mbscasestr.c: Likewise.
74539         * lib/mbsstr.c: Likewise.
74540         * lib/strcasestr.c: Likewise.
74541         * lib/memmem.c: Likewise.
74543 2007-12-23  Bruno Haible  <bruno@clisp.org>
74545         * tests/test-memmem.c: Include <string.h> first.
74547 2007-12-22  Bruno Haible  <bruno@clisp.org>
74549         * gnulib-tool (func_create_testdir): Change $auxdir while generating
74550         the contents of $testsbase.
74551         Reported by Ralf Wildenhues.
74553 2007-12-22  Bruno Haible  <bruno@clisp.org>
74555         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
74556         two variables local_ldadd_before, local_ldadd_last.
74558 2007-12-20  Eric Blake  <ebb9@byu.net>
74560         Work around circular library issue when cross-compiling.
74561         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
74562         that progname.o does not need to pull in rpl_memcmp.
74564 2007-12-19  Eric Blake  <ebb9@byu.net>
74566         Fix memmem to avoid O(n^2) worst-case complexity.
74567         * lib/memmem.c (knuth_morris_pratt): New function.
74568         (memmem): Use it if first few naive iterations fail.
74569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
74570         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
74571         * modules/memchr (License): Likewise.
74572         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
74573         malloca.
74574         * tests/test-memmem.c: Rewrite, borrowing ideas from
74575         test-mbsstr1.c; the old version wouldn't even compile!
74576         * modules/memmem-tests: New file.
74577         * lib/string.in.h (rpl_memmem): Add declaration.
74578         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
74579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
74580         REPLACE_MEMMEM.
74582 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74584         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
74585         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
74586         before any system include files, and undef after them all.  This
74587         should fix a problem on VMS reported by John E. Malmberg in
74588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
74590 2007-12-17  Eric Blake  <ebb9@byu.net>
74592         Revert addition of verify, for BSD/OS.
74593         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
74594         can't handle large files, for the sake of obsolete platforms.
74595         * modules/fseeko (Depends-on): Remove verify.
74596         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
74597         * doc/functions/ftello.texi (ftello): Likewise.
74598         * doc/functions/fgetpos.texi (fgetpos): Likewise.
74599         Reported by Larry Jones.
74601 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
74603         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
74604         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
74606 2007-12-17  Jim Meyering  <meyering@redhat.com>
74608         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
74609         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
74610         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
74611         * modules/getcwd (Depends-on): Add openat.
74612         Reported by Petr Salinger.
74614 2007-12-17  Bruno Haible  <bruno@clisp.org>
74616         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
74617         avoid a segmentation fault of the configure test on x86_64 systems.
74619 2007-12-15  Jim Meyering  <meyering@redhat.com>
74621         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
74623 2007-12-13  Eric Blake  <ebb9@byu.net>
74625         Another fseek test.
74626         * tests/test-fseek.c (main): Also test ungetc handling.
74627         * tests/test-fseeko.c (main): Likewise.
74628         * modules/fseeko (Depends-on): Add verify.
74629         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
74630         large.
74631         Reported by Larry Jones.
74633         Fix fseeko on mingw.
74634         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
74635         seek.
74637         Beef up fseek tests.
74638         * tests/test-fseek.c (main): Also test eof handling.
74639         * tests/test-fseeko.c (main): Likewise.
74640         Reported by Larry Jones.
74642 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
74644         Fix fseeko on BSD-based platforms.
74645         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
74646         successful seek.
74648 2007-12-12  Eric Blake  <ebb9@byu.net>
74650         Allow circular dependency of separate libtests.a
74651         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
74652         when use_libtests.
74654 2007-12-11  Eric Blake  <ebb9@byu.net>
74656         Fix bug with -0.0L in previous patch.
74657         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
74658         * tests/test-isnan.c (main): Also test on zeroes.
74659         * tests/test-isnanf.c (main): Likewise.
74660         * tests/test-isnanl.h (main): Likewise.
74662         Detect pseudo-denormals on x86 even when cross-compiling.
74663         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
74664         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
74665         invalid bit patterns that happen to satisfy ==.
74667         Avoid link failures with separate libtests.a.
74668         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
74669         last, to satisfy circular dependencies.
74671 2007-12-11  Eric Blake  <ebb9@byu.net>
74672         and Bruno Haible  <bruno@clisp.org>
74674         Fix OpenBSD 4.0 <float.h> handling of long double.
74675         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
74676         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
74677         * doc/headers/float.texi (float.h): Document OpenBSD bug.
74679 2007-12-11  Jim Meyering  <meyering@redhat.com>
74681         * users.txt: Add libvirt.
74683         Support versions of autoconf prior to 2.59c.
74684         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
74685         if it is not already defined.
74687 2007-12-09  Bruno Haible  <bruno@clisp.org>
74689         Let 'gnulib-tool --import' collect sources needed for the tests in
74690         tests/ rather than in lib/.
74691         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
74692         argument. If true, add rules to generate libtests.a, and put libtests.a
74693         into $(LDADD). Consider source files in subdirectories and set
74694         uses_subdirs.
74695         (func_emit_initmacro_start, func_emit_initmacro_end,
74696         func_emit_initmacro_done): Pass all arguments explicitly.
74697         (func_import): Determine two module lists main_modules,
74698         testsrelated_modules. Determine use_libtests. Determine two variables
74699         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
74700         instead of just sed_transform_lib_file. Determine two variables
74701         main_files and testsrelated_files. Compute 'files' as the union of
74702         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
74703         func_add_or_update. In the generated gnulib-comp.m4, collect the
74704         object files for tests/ in different variables than those for lib/.
74705         Substitute LIBTESTS_LIBDEPS.
74706         (func_create_testdir): Combine the uses_subdirs results from
74707         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
74709 2007-12-09  Bruno Haible  <bruno@clisp.org>
74711         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
74712         the build-aux directory.
74714 2007-12-09  Bruno Haible  <bruno@clisp.org>
74716         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
74717         introduced on 2006-09-09.
74719 2007-12-07  Jim Meyering  <meyering@redhat.com>
74721         Let these macros work also with autoconf-2.59.
74722         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
74723         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
74724         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
74726 2007-12-06  Jim Meyering  <meyering@redhat.com>
74728         Avoid a configure-time syntax error in gl_FUNC_ACL.
74729         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
74730         function in each branch, before testing the cache variable.
74732 2007-12-04  Eric Blake  <ebb9@byu.net>
74734         Make scripts executable.
74735         * build-aux/config.guess: Add execute permissions.
74736         * build-aux/config.sub: Likewise.
74737         * build-aux/gendocs.sh: Likewise.
74739         Fix frexp on mingw.
74740         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
74741         cross-compiling.
74742         * doc/functions/frexp.texi (frexp): Document the bug.
74744         Make cygwin fseeko check more reliable.
74745         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
74746         version numbers, rather than unrelated feature check.
74747         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
74748         * doc/functions/ftello.texi (ftello): Likewise.
74749         Reported by Bruno Haible.
74751         * m4/strerror.m4: Bump version number.
74753 2007-12-03  Bruno Haible  <bruno@clisp.org>
74755         * doc/functions/mprotect.texi: Mention the mingw problem.
74757 2007-12-03  Eric Blake  <ebb9@byu.net>
74759         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
74760         REPLACE_STRERROR is initialized before this macro.
74762 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74764         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
74765         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
74766         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
74767         put -lsec in even for programs other than 'ls'.  This fixes a problem
74768         for gettext reported by Bruno Haible in
74769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
74770         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
74771         Add support for Solaris 10.  This isn't efficient, but should get the
74772         job done for now.
74774 2007-12-03  James Youngman  <jay@gnu.org>
74776         * doc/regexprops-generic.texi: change "an close-group" to "a
74777         close-group" and "illegal" to "not allowed".
74779 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74781         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
74782         pr_byname.h. Needed for the rare case when the maintainer has done
74783         "make maintainer-clean" in the source directory and then attempts a
74784         build outside the source directory.
74785         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
74786         scripts_byname.h.
74788 2007-12-02  Martin Lambers <marlam@marlam.de>
74789             Bruno Haible  <bruno@clisp.org>
74791         * lib/getpagesize.h: Remove file.
74792         * lib/unistd.in.h: Include declaration of getpagesize here.
74793         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
74794         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
74795         HAVE_SYS_PARAM_H.
74796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
74797         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
74798         * modules/getpagesize (Files): Remove lib/getpagesize.h.
74799         (Depends-on): Add unistd.
74800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74801         (Include): Use <unistd.h> instead of getpagesize.h.
74802         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
74803         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
74804         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
74805         gl_GETPAGESIZE invocation, already handled by module dependency.
74806         * lib/pagealign_alloc.c: Don't include getpagesize.h.
74808 2007-12-02  Bruno Haible  <bruno@clisp.org>
74810         * modules/strings-tests: New file.
74811         * tests/test-strings.c: New file.
74813         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
74814         * lib/strings.in.h: New file.
74815         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
74816         * m4/strings_h.m4: New file.
74817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
74818         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
74819         * modules/strings: New file.
74820         * modules/string (Makefile.am): Update.
74821         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
74822         Reported by Karl Berry.
74824 2007-12-01  Eric Blake  <ebb9@byu.net>
74826         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
74827         accommodate fix in cygwin 1.5.25.
74829 2007-12-01  Jim Meyering  <meyering@redhat.com>
74831         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
74832         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
74833         that would inhibit utf8-optimization of a regexp containing line-
74834         or buffer-anchors, e.g., `^', `$'.
74836 2007-11-30  Bruno Haible  <bruno@clisp.org>
74838         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
74839         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
74840         glthread_recursive_lock_init.
74841         * lib/lock.c (glthread_recursive_lock_init)
74842         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
74843         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74845 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
74847         New function qset_acl, like set_acl but with syscall semantics.
74848         * lib/acl.h (qset_acl): New decl.
74849         * lib/acl.c (qset_acl): New function.
74850         (set_acl): Use new function.  Use more-consistent diagnostics.
74852 2007-11-28  Jim Meyering  <meyering@redhat.com>
74854         * modules/physmem (License): Change from GPL to LGPLv2+.
74856 2007-11-26  Bruno Haible  <bruno@clisp.org>
74858         * lib/vasnprintf.c (decode_long_double): Don't abort if the
74859         'long double' type has excess precision.
74860         Reported by Jim Meyering in
74861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
74863 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74865         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
74866         Sync from <http://gnu.org/licenses>.
74867         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
74868         with license text from same location.
74869         * doc/maintain.texi, doc/standards.texi:  Sync from
74870         <http://savannah.gnu.org/projects/gnustandards>.
74872 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
74873         and Jim Meyering  <meyering@redhat.com>
74875         Adjust getdate' grammar to accept a slightly more regular language.
74876         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
74877         Before, the former was rejected.
74878         * lib/getdate.y (digits_to_date_time): New function, factored
74879         out of ...
74880         (number): ...here.  Just call digits_to_date_time.
74881         (hybrid): New non-terminal to handle an <unsigned number,
74882         signed relative offset> sequence consistently.
74884 2007-11-18  Jim Meyering  <meyering@redhat.com>
74886         Pull my changes from coreutils:
74887         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
74888         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
74889         use of $gnulib_tool_option_extras, so that it's separated from the
74890         preceding argument.
74892         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
74893         * build-aux/bootstrap (cp_mark_as_generated): Create any required
74894         parent destination directories before copying a file into place.
74896 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74898         bootstrap: work also with 4-argument variant of AC_INIT
74899         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
74901 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74903         Port test-getaddrinfo to Solaris.
74904         Problem reported by Bruno Haible in
74905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
74906         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
74907         explanation of setting 'hints'.
74908         Don't reject an implementation merely because it returns EAI_SERVICE.
74909         (EAI_SERVICE): Define to 0 if not defined.
74911 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74913         The license of gnu-make and posix-shell is now "GPLed build tool".
74914         * modules/gnu-make (License): Likewise.
74915         * modules/posix-shell (License): Likewise.
74917         New module posix-shell, for determining a POSIX shell
74918         or perhaps something that is close enough to a POSIX shell.
74919         * m4/posix-shell.m4: New file.
74920         * modules/posix-shell: New file.
74922         * MODULES.html.sh: Mention new module.
74924         New module gnu-make, for determining whether we're using GNU Make.
74925         * m4/gnu-make.m4: New file.
74926         * modules/gnu-make: New file.
74927         * MODULES.html.sh: Mention new module.
74929 2007-11-14  Jim Meyering  <meyering@redhat.com>
74931         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
74932         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
74933         use this macro to create a function _definition_.
74934         Remove useless "#undef ARGMATCH_DIE".
74936 2007-11-14  Bruno Haible  <bruno@clisp.org>
74938         * lib/config.charset: Update for OpenBSD 4.1.
74939         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
74941 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
74943         Document 64-bit #if problems in stdint.texi.
74944         * doc/headers/stdint.texi (stdint.h): Mention problems with
74945         64-bit-#if, and how to work around them.
74947         Don't insist on 'long long int' support in the preprocessor.  It
74948         breaks too many things.  For example, PRIdMAX still uses a 'long
74949         long int' format with the latest Sun compiler, even though
74950         HAVE_LONG_LONG_INT isn't defined due to that compiler's
74951         preprocessor problem.  This causes the latest coreutils to dump
74952         core on Solaris 10 sparc with the Sun C compiler.
74953         Instead, fix the 2007-10-16 problem in a different way, by evaluating
74954         the troublesome expressions at configure-time, not at #if-time.
74955         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
74956         preprocessor.
74957         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
74958         compile-time C checks, done at 'configure'-time.
74959         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
74960         * modules/inttypes (Makefile): Substitute the new symbols that
74961         gl_INTTYPES_H now generates.
74962         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
74964 2007-11-12  Bruno Haible  <bruno@clisp.org>
74966         Tests for Unicode character classification functions.
74968         * modules/unictype/bidicategory-byname-tests: New file.
74969         * modules/unictype/bidicategory-name-tests: New file.
74970         * modules/unictype/bidicategory-of-tests: New file.
74971         * modules/unictype/bidicategory-test-tests: New file.
74972         * modules/unictype/block-list-tests: New file.
74973         * modules/unictype/block-of-tests: New file.
74974         * modules/unictype/block-test-tests: New file.
74975         * modules/unictype/category-C-tests: New file.
74976         * modules/unictype/category-Cc-tests: New file.
74977         * modules/unictype/category-Cf-tests: New file.
74978         * modules/unictype/category-Cn-tests: New file.
74979         * modules/unictype/category-Co-tests: New file.
74980         * modules/unictype/category-Cs-tests: New file.
74981         * modules/unictype/category-L-tests: New file.
74982         * modules/unictype/category-Ll-tests: New file.
74983         * modules/unictype/category-Lm-tests: New file.
74984         * modules/unictype/category-Lo-tests: New file.
74985         * modules/unictype/category-Lt-tests: New file.
74986         * modules/unictype/category-Lu-tests: New file.
74987         * modules/unictype/category-M-tests: New file.
74988         * modules/unictype/category-Mc-tests: New file.
74989         * modules/unictype/category-Me-tests: New file.
74990         * modules/unictype/category-Mn-tests: New file.
74991         * modules/unictype/category-N-tests: New file.
74992         * modules/unictype/category-Nd-tests: New file.
74993         * modules/unictype/category-Nl-tests: New file.
74994         * modules/unictype/category-No-tests: New file.
74995         * modules/unictype/category-P-tests: New file.
74996         * modules/unictype/category-Pc-tests: New file.
74997         * modules/unictype/category-Pd-tests: New file.
74998         * modules/unictype/category-Pe-tests: New file.
74999         * modules/unictype/category-Pf-tests: New file.
75000         * modules/unictype/category-Pi-tests: New file.
75001         * modules/unictype/category-Po-tests: New file.
75002         * modules/unictype/category-Ps-tests: New file.
75003         * modules/unictype/category-S-tests: New file.
75004         * modules/unictype/category-Sc-tests: New file.
75005         * modules/unictype/category-Sk-tests: New file.
75006         * modules/unictype/category-Sm-tests: New file.
75007         * modules/unictype/category-So-tests: New file.
75008         * modules/unictype/category-Z-tests: New file.
75009         * modules/unictype/category-Zl-tests: New file.
75010         * modules/unictype/category-Zp-tests: New file.
75011         * modules/unictype/category-Zs-tests: New file.
75012         * modules/unictype/category-and-not-tests: New file.
75013         * modules/unictype/category-and-tests: New file.
75014         * modules/unictype/category-byname-tests: New file.
75015         * modules/unictype/category-name-tests: New file.
75016         * modules/unictype/category-none-tests: New file.
75017         * modules/unictype/category-of-tests: New file.
75018         * modules/unictype/category-or-tests: New file.
75019         * modules/unictype/category-test-withtable-tests: New file.
75020         * modules/unictype/combining-class-tests: New file.
75021         * modules/unictype/ctype-alnum-tests: New file.
75022         * modules/unictype/ctype-alpha-tests: New file.
75023         * modules/unictype/ctype-blank-tests: New file.
75024         * modules/unictype/ctype-cntrl-tests: New file.
75025         * modules/unictype/ctype-digit-tests: New file.
75026         * modules/unictype/ctype-graph-tests: New file.
75027         * modules/unictype/ctype-lower-tests: New file.
75028         * modules/unictype/ctype-print-tests: New file.
75029         * modules/unictype/ctype-punct-tests: New file.
75030         * modules/unictype/ctype-space-tests: New file.
75031         * modules/unictype/ctype-upper-tests: New file.
75032         * modules/unictype/ctype-xdigit-tests: New file.
75033         * modules/unictype/decimal-digit-tests: New file.
75034         * modules/unictype/digit-tests: New file.
75035         * modules/unictype/mirror-tests: New file.
75036         * modules/unictype/numeric-tests: New file.
75037         * modules/unictype/property-alphabetic-tests: New file.
75038         * modules/unictype/property-ascii-hex-digit-tests: New file.
75039         * modules/unictype/property-bidi-arabic-digit-tests: New file.
75040         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
75041         * modules/unictype/property-bidi-block-separator-tests: New file.
75042         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
75043         * modules/unictype/property-bidi-common-separator-tests: New file.
75044         * modules/unictype/property-bidi-control-tests: New file.
75045         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
75046         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
75047         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
75048         * modules/unictype/property-bidi-european-digit-tests: New file.
75049         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
75050         * modules/unictype/property-bidi-left-to-right-tests: New file.
75051         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
75052         * modules/unictype/property-bidi-other-neutral-tests: New file.
75053         * modules/unictype/property-bidi-pdf-tests: New file.
75054         * modules/unictype/property-bidi-segment-separator-tests: New file.
75055         * modules/unictype/property-bidi-whitespace-tests: New file.
75056         * modules/unictype/property-byname-tests: New file.
75057         * modules/unictype/property-combining-tests: New file.
75058         * modules/unictype/property-composite-tests: New file.
75059         * modules/unictype/property-currency-symbol-tests: New file.
75060         * modules/unictype/property-dash-tests: New file.
75061         * modules/unictype/property-decimal-digit-tests: New file.
75062         * modules/unictype/property-default-ignorable-code-point-tests: New file.
75063         * modules/unictype/property-deprecated-tests: New file.
75064         * modules/unictype/property-diacritic-tests: New file.
75065         * modules/unictype/property-extender-tests: New file.
75066         * modules/unictype/property-format-control-tests: New file.
75067         * modules/unictype/property-grapheme-base-tests: New file.
75068         * modules/unictype/property-grapheme-extend-tests: New file.
75069         * modules/unictype/property-grapheme-link-tests: New file.
75070         * modules/unictype/property-hex-digit-tests: New file.
75071         * modules/unictype/property-hyphen-tests: New file.
75072         * modules/unictype/property-id-continue-tests: New file.
75073         * modules/unictype/property-id-start-tests: New file.
75074         * modules/unictype/property-ideographic-tests: New file.
75075         * modules/unictype/property-ids-binary-operator-tests: New file.
75076         * modules/unictype/property-ids-trinary-operator-tests: New file.
75077         * modules/unictype/property-ignorable-control-tests: New file.
75078         * modules/unictype/property-iso-control-tests: New file.
75079         * modules/unictype/property-join-control-tests: New file.
75080         * modules/unictype/property-left-of-pair-tests: New file.
75081         * modules/unictype/property-line-separator-tests: New file.
75082         * modules/unictype/property-logical-order-exception-tests: New file.
75083         * modules/unictype/property-lowercase-tests: New file.
75084         * modules/unictype/property-math-tests: New file.
75085         * modules/unictype/property-non-break-tests: New file.
75086         * modules/unictype/property-not-a-character-tests: New file.
75087         * modules/unictype/property-numeric-tests: New file.
75088         * modules/unictype/property-other-alphabetic-tests: New file.
75089         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
75090         * modules/unictype/property-other-grapheme-extend-tests: New file.
75091         * modules/unictype/property-other-id-continue-tests: New file.
75092         * modules/unictype/property-other-id-start-tests: New file.
75093         * modules/unictype/property-other-lowercase-tests: New file.
75094         * modules/unictype/property-other-math-tests: New file.
75095         * modules/unictype/property-other-uppercase-tests: New file.
75096         * modules/unictype/property-paired-punctuation-tests: New file.
75097         * modules/unictype/property-paragraph-separator-tests: New file.
75098         * modules/unictype/property-pattern-syntax-tests: New file.
75099         * modules/unictype/property-pattern-white-space-tests: New file.
75100         * modules/unictype/property-private-use-tests: New file.
75101         * modules/unictype/property-punctuation-tests: New file.
75102         * modules/unictype/property-quotation-mark-tests: New file.
75103         * modules/unictype/property-radical-tests: New file.
75104         * modules/unictype/property-sentence-terminal-tests: New file.
75105         * modules/unictype/property-soft-dotted-tests: New file.
75106         * modules/unictype/property-space-tests: New file.
75107         * modules/unictype/property-terminal-punctuation-tests: New file.
75108         * modules/unictype/property-test-tests: New file.
75109         * modules/unictype/property-titlecase-tests: New file.
75110         * modules/unictype/property-unassigned-code-value-tests: New file.
75111         * modules/unictype/property-unified-ideograph-tests: New file.
75112         * modules/unictype/property-uppercase-tests: New file.
75113         * modules/unictype/property-variation-selector-tests: New file.
75114         * modules/unictype/property-white-space-tests: New file.
75115         * modules/unictype/property-xid-continue-tests: New file.
75116         * modules/unictype/property-xid-start-tests: New file.
75117         * modules/unictype/property-zero-width-tests: New file.
75118         * modules/unictype/scripts-tests: New file.
75119         * modules/unictype/syntax-c-ident-tests: New file.
75120         * modules/unictype/syntax-c-whitespace-tests: New file.
75121         * modules/unictype/syntax-java-ident-tests: New file.
75122         * modules/unictype/syntax-java-whitespace-tests: New file.
75123         * tests/unictype/test-bidi_byname.c: New file.
75124         * tests/unictype/test-bidi_name.c: New file.
75125         * tests/unictype/test-bidi_of.c: New file.
75126         * tests/unictype/test-bidi_test.c: New file.
75127         * tests/unictype/test-block_list.c: New file.
75128         * tests/unictype/test-block_of.c: New file.
75129         * tests/unictype/test-block_test.c: New file.
75130         * tests/unictype/test-categ_and.c: New file.
75131         * tests/unictype/test-categ_and_not.c: New file.
75132         * tests/unictype/test-categ_byname.c: New file.
75133         * tests/unictype/test-categ_name.c: New file.
75134         * tests/unictype/test-categ_none.c: New file.
75135         * tests/unictype/test-categ_of.c: New file.
75136         * tests/unictype/test-categ_or.c: New file.
75137         * tests/unictype/test-categ_test_withtable.c: New file.
75138         * tests/unictype/test-combining.c: New file.
75139         * tests/unictype/test-decdigit.c: New file.
75140         * tests/unictype/test-digit.c: New file.
75141         * tests/unictype/test-mirror.c: New file.
75142         * tests/unictype/test-numeric.c: New file.
75143         * tests/unictype/test-pr_byname.c: New file.
75144         * tests/unictype/test-pr_test.c: New file.
75145         * tests/unictype/test-predicate-part1.h: New file.
75146         * tests/unictype/test-predicate-part2.h: New file.
75147         * tests/unictype/test-scripts.c: New file.
75148         * tests/unictype/test-sy_c_ident.c: New file.
75149         * tests/unictype/test-sy_java_ident.c: New file.
75151         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
75152         for Unicode 5.0.0.
75153         * tests/unictype/test-categ_Cc.c: Likewise.
75154         * tests/unictype/test-categ_Cf.c: Likewise.
75155         * tests/unictype/test-categ_Cn.c: Likewise.
75156         * tests/unictype/test-categ_Co.c: Likewise.
75157         * tests/unictype/test-categ_Cs.c: Likewise.
75158         * tests/unictype/test-categ_L.c: Likewise.
75159         * tests/unictype/test-categ_Ll.c: Likewise.
75160         * tests/unictype/test-categ_Lm.c: Likewise.
75161         * tests/unictype/test-categ_Lo.c: Likewise.
75162         * tests/unictype/test-categ_Lt.c: Likewise.
75163         * tests/unictype/test-categ_Lu.c: Likewise.
75164         * tests/unictype/test-categ_M.c: Likewise.
75165         * tests/unictype/test-categ_Mc.c: Likewise.
75166         * tests/unictype/test-categ_Me.c: Likewise.
75167         * tests/unictype/test-categ_Mn.c: Likewise.
75168         * tests/unictype/test-categ_N.c: Likewise.
75169         * tests/unictype/test-categ_Nd.c: Likewise.
75170         * tests/unictype/test-categ_Nl.c: Likewise.
75171         * tests/unictype/test-categ_No.c: Likewise.
75172         * tests/unictype/test-categ_P.c: Likewise.
75173         * tests/unictype/test-categ_Pc.c: Likewise.
75174         * tests/unictype/test-categ_Pd.c: Likewise.
75175         * tests/unictype/test-categ_Pe.c: Likewise.
75176         * tests/unictype/test-categ_Pf.c: Likewise.
75177         * tests/unictype/test-categ_Pi.c: Likewise.
75178         * tests/unictype/test-categ_Po.c: Likewise.
75179         * tests/unictype/test-categ_Ps.c: Likewise.
75180         * tests/unictype/test-categ_S.c: Likewise.
75181         * tests/unictype/test-categ_Sc.c: Likewise.
75182         * tests/unictype/test-categ_Sk.c: Likewise.
75183         * tests/unictype/test-categ_Sm.c: Likewise.
75184         * tests/unictype/test-categ_So.c: Likewise.
75185         * tests/unictype/test-categ_Z.c: Likewise.
75186         * tests/unictype/test-categ_Zl.c: Likewise.
75187         * tests/unictype/test-categ_Zp.c: Likewise.
75188         * tests/unictype/test-categ_Zs.c: Likewise.
75189         * tests/unictype/test-ctype_alnum.c: Likewise.
75190         * tests/unictype/test-ctype_alpha.c: Likewise.
75191         * tests/unictype/test-ctype_blank.c: Likewise.
75192         * tests/unictype/test-ctype_cntrl.c: Likewise.
75193         * tests/unictype/test-ctype_digit.c: Likewise.
75194         * tests/unictype/test-ctype_graph.c: Likewise.
75195         * tests/unictype/test-ctype_lower.c: Likewise.
75196         * tests/unictype/test-ctype_print.c: Likewise.
75197         * tests/unictype/test-ctype_punct.c: Likewise.
75198         * tests/unictype/test-ctype_space.c: Likewise.
75199         * tests/unictype/test-ctype_upper.c: Likewise.
75200         * tests/unictype/test-ctype_xdigit.c: Likewise.
75201         * tests/unictype/test-decdigit.h: Likewise.
75202         * tests/unictype/test-digit.h: Likewise.
75203         * tests/unictype/test-numeric.h: Likewise.
75204         * tests/unictype/test-pr_alphabetic.c: Likewise.
75205         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
75206         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
75207         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
75208         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
75209         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
75210         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
75211         * tests/unictype/test-pr_bidi_control.c: Likewise.
75212         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
75213         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
75214         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
75215         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
75216         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
75217         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
75218         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
75219         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
75220         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
75221         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
75222         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
75223         * tests/unictype/test-pr_combining.c: Likewise.
75224         * tests/unictype/test-pr_composite.c: Likewise.
75225         * tests/unictype/test-pr_currency_symbol.c: Likewise.
75226         * tests/unictype/test-pr_dash.c: Likewise.
75227         * tests/unictype/test-pr_decimal_digit.c: Likewise.
75228         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
75229         * tests/unictype/test-pr_deprecated.c: Likewise.
75230         * tests/unictype/test-pr_diacritic.c: Likewise.
75231         * tests/unictype/test-pr_extender.c: Likewise.
75232         * tests/unictype/test-pr_format_control.c: Likewise.
75233         * tests/unictype/test-pr_grapheme_base.c: Likewise.
75234         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
75235         * tests/unictype/test-pr_grapheme_link.c: Likewise.
75236         * tests/unictype/test-pr_hex_digit.c: Likewise.
75237         * tests/unictype/test-pr_hyphen.c: Likewise.
75238         * tests/unictype/test-pr_id_continue.c: Likewise.
75239         * tests/unictype/test-pr_id_start.c: Likewise.
75240         * tests/unictype/test-pr_ideographic.c: Likewise.
75241         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
75242         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
75243         * tests/unictype/test-pr_ignorable_control.c: Likewise.
75244         * tests/unictype/test-pr_iso_control.c: Likewise.
75245         * tests/unictype/test-pr_join_control.c: Likewise.
75246         * tests/unictype/test-pr_left_of_pair.c: Likewise.
75247         * tests/unictype/test-pr_line_separator.c: Likewise.
75248         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
75249         * tests/unictype/test-pr_lowercase.c: Likewise.
75250         * tests/unictype/test-pr_math.c: Likewise.
75251         * tests/unictype/test-pr_non_break.c: Likewise.
75252         * tests/unictype/test-pr_not_a_character.c: Likewise.
75253         * tests/unictype/test-pr_numeric.c: Likewise.
75254         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
75255         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
75256         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
75257         * tests/unictype/test-pr_other_id_continue.c: Likewise.
75258         * tests/unictype/test-pr_other_id_start.c: Likewise.
75259         * tests/unictype/test-pr_other_lowercase.c: Likewise.
75260         * tests/unictype/test-pr_other_math.c: Likewise.
75261         * tests/unictype/test-pr_other_uppercase.c: Likewise.
75262         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
75263         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
75264         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
75265         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
75266         * tests/unictype/test-pr_private_use.c: Likewise.
75267         * tests/unictype/test-pr_punctuation.c: Likewise.
75268         * tests/unictype/test-pr_quotation_mark.c: Likewise.
75269         * tests/unictype/test-pr_radical.c: Likewise.
75270         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
75271         * tests/unictype/test-pr_soft_dotted.c: Likewise.
75272         * tests/unictype/test-pr_space.c: Likewise.
75273         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
75274         * tests/unictype/test-pr_titlecase.c: Likewise.
75275         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
75276         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
75277         * tests/unictype/test-pr_uppercase.c: Likewise.
75278         * tests/unictype/test-pr_variation_selector.c: Likewise.
75279         * tests/unictype/test-pr_white_space.c: Likewise.
75280         * tests/unictype/test-pr_xid_continue.c: Likewise.
75281         * tests/unictype/test-pr_xid_start.c: Likewise.
75282         * tests/unictype/test-pr_zero_width.c: Likewise.
75283         * tests/unictype/test-sy_c_whitespace.c: Likewise.
75284         * tests/unictype/test-sy_java_whitespace.c: Likewise.
75286 2007-11-12  Bruno Haible  <bruno@clisp.org>
75288         Unicode character classification functions.
75289         * lib/unictype.h: New file.
75290         * modules/unictype/base: New file.
75291         * modules/unictype/category-L: New file.
75292         * modules/unictype/category-Lu: New file.
75293         * modules/unictype/category-Ll: New file.
75294         * modules/unictype/category-Lt: New file.
75295         * modules/unictype/category-Lm: New file.
75296         * modules/unictype/category-Lo: New file.
75297         * modules/unictype/category-M: New file.
75298         * modules/unictype/category-Mn: New file.
75299         * modules/unictype/category-Mc: New file.
75300         * modules/unictype/category-Me: New file.
75301         * modules/unictype/category-N: New file.
75302         * modules/unictype/category-Nd: New file.
75303         * modules/unictype/category-Nl: New file.
75304         * modules/unictype/category-No: New file.
75305         * modules/unictype/category-P: New file.
75306         * modules/unictype/category-Pc: New file.
75307         * modules/unictype/category-Pd: New file.
75308         * modules/unictype/category-Ps: New file.
75309         * modules/unictype/category-Pe: New file.
75310         * modules/unictype/category-Pi: New file.
75311         * modules/unictype/category-Pf: New file.
75312         * modules/unictype/category-Po: New file.
75313         * modules/unictype/category-S: New file.
75314         * modules/unictype/category-Sm: New file.
75315         * modules/unictype/category-Sc: New file.
75316         * modules/unictype/category-Sk: New file.
75317         * modules/unictype/category-So: New file.
75318         * modules/unictype/category-Z: New file.
75319         * modules/unictype/category-Zs: New file.
75320         * modules/unictype/category-Zl: New file.
75321         * modules/unictype/category-Zp: New file.
75322         * modules/unictype/category-C: New file.
75323         * modules/unictype/category-Cc: New file.
75324         * modules/unictype/category-Cf: New file.
75325         * modules/unictype/category-Cs: New file.
75326         * modules/unictype/category-Co: New file.
75327         * modules/unictype/category-Cn: New file.
75328         * modules/unictype/category-or: New file.
75329         * modules/unictype/category-of: New file.
75330         * modules/unictype/category-test: New file.
75331         * modules/unictype/category-test-withtable: New file.
75332         * modules/unictype/category-byname: New file.
75333         * modules/unictype/category-none: New file.
75334         * modules/unictype/category-and: New file.
75335         * modules/unictype/category-and-not: New file.
75336         * modules/unictype/category-name: New file.
75337         * modules/unictype/combining-class: New file.
75338         * modules/unictype/category-all: New file.
75339         * modules/unictype/bidicategory-all: New file.
75340         * modules/unictype/bidicategory-byname: New file.
75341         * modules/unictype/bidicategory-name: New file.
75342         * modules/unictype/bidicategory-of: New file.
75343         * modules/unictype/bidicategory-test: New file.
75344         * modules/unictype/decimal-digit: New file.
75345         * modules/unictype/digit: New file.
75346         * modules/unictype/numeric: New file.
75347         * modules/unictype/mirror: New file.
75348         * modules/unictype/property-white-space: New file.
75349         * modules/unictype/property-alphabetic: New file.
75350         * modules/unictype/property-other-alphabetic: New file.
75351         * modules/unictype/property-not-a-character: New file.
75352         * modules/unictype/property-default-ignorable-code-point: New file.
75353         * modules/unictype/property-other-default-ignorable-code-point: New
75354         file.
75355         * modules/unictype/property-deprecated: New file.
75356         * modules/unictype/property-logical-order-exception: New file.
75357         * modules/unictype/property-variation-selector: New file.
75358         * modules/unictype/property-private-use: New file.
75359         * modules/unictype/property-unassigned-code-value: New file.
75360         * modules/unictype/property-uppercase: New file.
75361         * modules/unictype/property-other-uppercase: New file.
75362         * modules/unictype/property-lowercase: New file.
75363         * modules/unictype/property-other-lowercase: New file.
75364         * modules/unictype/property-titlecase: New file.
75365         * modules/unictype/property-soft-dotted: New file.
75366         * modules/unictype/property-id-start: New file.
75367         * modules/unictype/property-other-id-start: New file.
75368         * modules/unictype/property-id-continue: New file.
75369         * modules/unictype/property-other-id-continue: New file.
75370         * modules/unictype/property-xid-start: New file.
75371         * modules/unictype/property-xid-continue: New file.
75372         * modules/unictype/property-pattern-white-space: New file.
75373         * modules/unictype/property-pattern-syntax: New file.
75374         * modules/unictype/property-join-control: New file.
75375         * modules/unictype/property-grapheme-base: New file.
75376         * modules/unictype/property-grapheme-extend: New file.
75377         * modules/unictype/property-other-grapheme-extend: New file.
75378         * modules/unictype/property-grapheme-link: New file.
75379         * modules/unictype/property-bidi-control: New file.
75380         * modules/unictype/property-bidi-left-to-right: New file.
75381         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
75382         * modules/unictype/property-bidi-arabic-right-to-left: New file.
75383         * modules/unictype/property-bidi-european-digit: New file.
75384         * modules/unictype/property-bidi-eur-num-separator: New file.
75385         * modules/unictype/property-bidi-eur-num-terminator: New file.
75386         * modules/unictype/property-bidi-arabic-digit: New file.
75387         * modules/unictype/property-bidi-common-separator: New file.
75388         * modules/unictype/property-bidi-block-separator: New file.
75389         * modules/unictype/property-bidi-segment-separator: New file.
75390         * modules/unictype/property-bidi-whitespace: New file.
75391         * modules/unictype/property-bidi-non-spacing-mark: New file.
75392         * modules/unictype/property-bidi-boundary-neutral: New file.
75393         * modules/unictype/property-bidi-pdf: New file.
75394         * modules/unictype/property-bidi-embedding-or-override: New file.
75395         * modules/unictype/property-bidi-other-neutral: New file.
75396         * modules/unictype/property-hex-digit: New file.
75397         * modules/unictype/property-ascii-hex-digit: New file.
75398         * modules/unictype/property-ideographic: New file.
75399         * modules/unictype/property-unified-ideograph: New file.
75400         * modules/unictype/property-radical: New file.
75401         * modules/unictype/property-ids-binary-operator: New file.
75402         * modules/unictype/property-ids-trinary-operator: New file.
75403         * modules/unictype/property-zero-width: New file.
75404         * modules/unictype/property-space: New file.
75405         * modules/unictype/property-non-break: New file.
75406         * modules/unictype/property-iso-control: New file.
75407         * modules/unictype/property-format-control: New file.
75408         * modules/unictype/property-dash: New file.
75409         * modules/unictype/property-hyphen: New file.
75410         * modules/unictype/property-punctuation: New file.
75411         * modules/unictype/property-line-separator: New file.
75412         * modules/unictype/property-paragraph-separator: New file.
75413         * modules/unictype/property-quotation-mark: New file.
75414         * modules/unictype/property-sentence-terminal: New file.
75415         * modules/unictype/property-terminal-punctuation: New file.
75416         * modules/unictype/property-currency-symbol: New file.
75417         * modules/unictype/property-math: New file.
75418         * modules/unictype/property-other-math: New file.
75419         * modules/unictype/property-paired-punctuation: New file.
75420         * modules/unictype/property-left-of-pair: New file.
75421         * modules/unictype/property-combining: New file.
75422         * modules/unictype/property-composite: New file.
75423         * modules/unictype/property-decimal-digit: New file.
75424         * modules/unictype/property-numeric: New file.
75425         * modules/unictype/property-diacritic: New file.
75426         * modules/unictype/property-extender: New file.
75427         * modules/unictype/property-ignorable-control: New file.
75428         * modules/unictype/property-test: New file.
75429         * modules/unictype/property-byname: New file.
75430         * modules/unictype/property-all: New file.
75431         * modules/unictype/scripts: New file.
75432         * modules/unictype/scripts-all: New file.
75433         * modules/unictype/block-of: New file.
75434         * modules/unictype/block-test: New file.
75435         * modules/unictype/block-list: New file.
75436         * modules/unictype/block-all: New file.
75437         * modules/unictype/syntax-c-whitespace: New file.
75438         * modules/unictype/syntax-java-whitespace: New file.
75439         * modules/unictype/syntax-c-ident: New file.
75440         * modules/unictype/syntax-java-ident: New file.
75441         * modules/unictype/ctype-alnum: New file.
75442         * modules/unictype/ctype-alpha: New file.
75443         * modules/unictype/ctype-cntrl: New file.
75444         * modules/unictype/ctype-digit: New file.
75445         * modules/unictype/ctype-graph: New file.
75446         * modules/unictype/ctype-lower: New file.
75447         * modules/unictype/ctype-print: New file.
75448         * modules/unictype/ctype-punct: New file.
75449         * modules/unictype/ctype-space: New file.
75450         * modules/unictype/ctype-upper: New file.
75451         * modules/unictype/ctype-xdigit: New file.
75452         * modules/unictype/ctype-blank: New file.
75453         * lib/unictype/bidi_byname.c: New file.
75454         * lib/unictype/bidi_name.c: New file.
75455         * lib/unictype/bidi_of.c: New file.
75456         * lib/unictype/bidi_test.c: New file.
75457         * lib/unictype/bitmap.h: New file.
75458         * lib/unictype/block_test.c: New file.
75459         * lib/unictype/blocks.c: New file.
75460         * lib/unictype/categ_C.c: New file.
75461         * lib/unictype/categ_Cc.c: New file.
75462         * lib/unictype/categ_Cf.c: New file.
75463         * lib/unictype/categ_Cn.c: New file.
75464         * lib/unictype/categ_Co.c: New file.
75465         * lib/unictype/categ_Cs.c: New file.
75466         * lib/unictype/categ_L.c: New file.
75467         * lib/unictype/categ_Ll.c: New file.
75468         * lib/unictype/categ_Lm.c: New file.
75469         * lib/unictype/categ_Lo.c: New file.
75470         * lib/unictype/categ_Lt.c: New file.
75471         * lib/unictype/categ_Lu.c: New file.
75472         * lib/unictype/categ_M.c: New file.
75473         * lib/unictype/categ_Mc.c: New file.
75474         * lib/unictype/categ_Me.c: New file.
75475         * lib/unictype/categ_Mn.c: New file.
75476         * lib/unictype/categ_N.c: New file.
75477         * lib/unictype/categ_Nd.c: New file.
75478         * lib/unictype/categ_Nl.c: New file.
75479         * lib/unictype/categ_No.c: New file.
75480         * lib/unictype/categ_P.c: New file.
75481         * lib/unictype/categ_Pc.c: New file.
75482         * lib/unictype/categ_Pd.c: New file.
75483         * lib/unictype/categ_Pe.c: New file.
75484         * lib/unictype/categ_Pf.c: New file.
75485         * lib/unictype/categ_Pi.c: New file.
75486         * lib/unictype/categ_Po.c: New file.
75487         * lib/unictype/categ_Ps.c: New file.
75488         * lib/unictype/categ_S.c: New file.
75489         * lib/unictype/categ_Sc.c: New file.
75490         * lib/unictype/categ_Sk.c: New file.
75491         * lib/unictype/categ_Sm.c: New file.
75492         * lib/unictype/categ_So.c: New file.
75493         * lib/unictype/categ_Z.c: New file.
75494         * lib/unictype/categ_Zl.c: New file.
75495         * lib/unictype/categ_Zp.c: New file.
75496         * lib/unictype/categ_Zs.c: New file.
75497         * lib/unictype/categ_and.c: New file.
75498         * lib/unictype/categ_and_not.c: New file.
75499         * lib/unictype/categ_byname.c: New file.
75500         * lib/unictype/categ_name.c: New file.
75501         * lib/unictype/categ_none.c: New file.
75502         * lib/unictype/categ_of.c: New file.
75503         * lib/unictype/categ_or.c: New file.
75504         * lib/unictype/categ_test.c: New file.
75505         * lib/unictype/combining.c: New file.
75506         * lib/unictype/ctype_alnum.c: New file.
75507         * lib/unictype/ctype_alpha.c: New file.
75508         * lib/unictype/ctype_blank.c: New file.
75509         * lib/unictype/ctype_cntrl.c: New file.
75510         * lib/unictype/ctype_digit.c: New file.
75511         * lib/unictype/ctype_graph.c: New file.
75512         * lib/unictype/ctype_lower.c: New file.
75513         * lib/unictype/ctype_print.c: New file.
75514         * lib/unictype/ctype_punct.c: New file.
75515         * lib/unictype/ctype_space.c: New file.
75516         * lib/unictype/ctype_upper.c: New file.
75517         * lib/unictype/ctype_xdigit.c: New file.
75518         * lib/unictype/decdigit.c: New file.
75519         * lib/unictype/digit.c: New file.
75520         * lib/unictype/identsyntaxmap.h: New file.
75521         * lib/unictype/mirror.c: New file.
75522         * lib/unictype/numeric.c: New file.
75523         * lib/unictype/pr_alphabetic.c: New file.
75524         * lib/unictype/pr_ascii_hex_digit.c: New file.
75525         * lib/unictype/pr_bidi_arabic_digit.c: New file.
75526         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
75527         * lib/unictype/pr_bidi_block_separator.c: New file.
75528         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
75529         * lib/unictype/pr_bidi_common_separator.c: New file.
75530         * lib/unictype/pr_bidi_control.c: New file.
75531         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
75532         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
75533         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
75534         * lib/unictype/pr_bidi_european_digit.c: New file.
75535         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
75536         * lib/unictype/pr_bidi_left_to_right.c: New file.
75537         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
75538         * lib/unictype/pr_bidi_other_neutral.c: New file.
75539         * lib/unictype/pr_bidi_pdf.c: New file.
75540         * lib/unictype/pr_bidi_segment_separator.c: New file.
75541         * lib/unictype/pr_bidi_whitespace.c: New file.
75542         * lib/unictype/pr_byname.c: New file.
75543         * lib/unictype/pr_byname.gperf: New file.
75544         * lib/unictype/pr_combining.c: New file.
75545         * lib/unictype/pr_composite.c: New file.
75546         * lib/unictype/pr_currency_symbol.c: New file.
75547         * lib/unictype/pr_dash.c: New file.
75548         * lib/unictype/pr_decimal_digit.c: New file.
75549         * lib/unictype/pr_default_ignorable_code_point.c: New file.
75550         * lib/unictype/pr_deprecated.c: New file.
75551         * lib/unictype/pr_diacritic.c: New file.
75552         * lib/unictype/pr_extender.c: New file.
75553         * lib/unictype/pr_format_control.c: New file.
75554         * lib/unictype/pr_grapheme_base.c: New file.
75555         * lib/unictype/pr_grapheme_extend.c: New file.
75556         * lib/unictype/pr_grapheme_link.c: New file.
75557         * lib/unictype/pr_hex_digit.c: New file.
75558         * lib/unictype/pr_hyphen.c: New file.
75559         * lib/unictype/pr_id_continue.c: New file.
75560         * lib/unictype/pr_id_start.c: New file.
75561         * lib/unictype/pr_ideographic.c: New file.
75562         * lib/unictype/pr_ids_binary_operator.c: New file.
75563         * lib/unictype/pr_ids_trinary_operator.c: New file.
75564         * lib/unictype/pr_ignorable_control.c: New file.
75565         * lib/unictype/pr_iso_control.c: New file.
75566         * lib/unictype/pr_join_control.c: New file.
75567         * lib/unictype/pr_left_of_pair.c: New file.
75568         * lib/unictype/pr_line_separator.c: New file.
75569         * lib/unictype/pr_logical_order_exception.c: New file.
75570         * lib/unictype/pr_lowercase.c: New file.
75571         * lib/unictype/pr_math.c: New file.
75572         * lib/unictype/pr_non_break.c: New file.
75573         * lib/unictype/pr_not_a_character.c: New file.
75574         * lib/unictype/pr_numeric.c: New file.
75575         * lib/unictype/pr_other_alphabetic.c: New file.
75576         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
75577         * lib/unictype/pr_other_grapheme_extend.c: New file.
75578         * lib/unictype/pr_other_id_continue.c: New file.
75579         * lib/unictype/pr_other_id_start.c: New file.
75580         * lib/unictype/pr_other_lowercase.c: New file.
75581         * lib/unictype/pr_other_math.c: New file.
75582         * lib/unictype/pr_other_uppercase.c: New file.
75583         * lib/unictype/pr_paired_punctuation.c: New file.
75584         * lib/unictype/pr_paragraph_separator.c: New file.
75585         * lib/unictype/pr_pattern_syntax.c: New file.
75586         * lib/unictype/pr_pattern_white_space.c: New file.
75587         * lib/unictype/pr_private_use.c: New file.
75588         * lib/unictype/pr_punctuation.c: New file.
75589         * lib/unictype/pr_quotation_mark.c: New file.
75590         * lib/unictype/pr_radical.c: New file.
75591         * lib/unictype/pr_sentence_terminal.c: New file.
75592         * lib/unictype/pr_soft_dotted.c: New file.
75593         * lib/unictype/pr_space.c: New file.
75594         * lib/unictype/pr_terminal_punctuation.c: New file.
75595         * lib/unictype/pr_test.c: New file.
75596         * lib/unictype/pr_titlecase.c: New file.
75597         * lib/unictype/pr_unassigned_code_value.c: New file.
75598         * lib/unictype/pr_unified_ideograph.c: New file.
75599         * lib/unictype/pr_uppercase.c: New file.
75600         * lib/unictype/pr_variation_selector.c: New file.
75601         * lib/unictype/pr_white_space.c: New file.
75602         * lib/unictype/pr_xid_continue.c: New file.
75603         * lib/unictype/pr_xid_start.c: New file.
75604         * lib/unictype/pr_zero_width.c: New file.
75605         * lib/unictype/scripts.c: New file.
75606         * lib/unictype/sy_c_ident.c: New file.
75607         * lib/unictype/sy_c_whitespace.c: New file.
75608         * lib/unictype/sy_java_ident.c: New file.
75609         * lib/unictype/sy_java_whitespace.c: New file.
75611         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
75612         Unicode 5.0.0.
75613         * lib/unictype/blocks.h: Likewise.
75614         * lib/unictype/categ_C.h: Likewise.
75615         * lib/unictype/categ_Cc.h: Likewise.
75616         * lib/unictype/categ_Cf.h: Likewise.
75617         * lib/unictype/categ_Cn.h: Likewise.
75618         * lib/unictype/categ_Co.h: Likewise.
75619         * lib/unictype/categ_Cs.h: Likewise.
75620         * lib/unictype/categ_L.h: Likewise.
75621         * lib/unictype/categ_Ll.h: Likewise.
75622         * lib/unictype/categ_Lm.h: Likewise.
75623         * lib/unictype/categ_Lo.h: Likewise.
75624         * lib/unictype/categ_Lt.h: Likewise.
75625         * lib/unictype/categ_Lu.h: Likewise.
75626         * lib/unictype/categ_M.h: Likewise.
75627         * lib/unictype/categ_Mc.h: Likewise.
75628         * lib/unictype/categ_Me.h: Likewise.
75629         * lib/unictype/categ_Mn.h: Likewise.
75630         * lib/unictype/categ_N.h: Likewise.
75631         * lib/unictype/categ_Nd.h: Likewise.
75632         * lib/unictype/categ_Nl.h: Likewise.
75633         * lib/unictype/categ_No.h: Likewise.
75634         * lib/unictype/categ_P.h: Likewise.
75635         * lib/unictype/categ_Pc.h: Likewise.
75636         * lib/unictype/categ_Pd.h: Likewise.
75637         * lib/unictype/categ_Pe.h: Likewise.
75638         * lib/unictype/categ_Pf.h: Likewise.
75639         * lib/unictype/categ_Pi.h: Likewise.
75640         * lib/unictype/categ_Po.h: Likewise.
75641         * lib/unictype/categ_Ps.h: Likewise.
75642         * lib/unictype/categ_S.h: Likewise.
75643         * lib/unictype/categ_Sc.h: Likewise.
75644         * lib/unictype/categ_Sk.h: Likewise.
75645         * lib/unictype/categ_Sm.h: Likewise.
75646         * lib/unictype/categ_So.h: Likewise.
75647         * lib/unictype/categ_Z.h: Likewise.
75648         * lib/unictype/categ_Zl.h: Likewise.
75649         * lib/unictype/categ_Zp.h: Likewise.
75650         * lib/unictype/categ_Zs.h: Likewise.
75651         * lib/unictype/categ_of.h: Likewise.
75652         * lib/unictype/combining.h: Likewise.
75653         * lib/unictype/ctype_alnum.h: Likewise.
75654         * lib/unictype/ctype_alpha.h: Likewise.
75655         * lib/unictype/ctype_blank.h: Likewise.
75656         * lib/unictype/ctype_cntrl.h: Likewise.
75657         * lib/unictype/ctype_digit.h: Likewise.
75658         * lib/unictype/ctype_graph.h: Likewise.
75659         * lib/unictype/ctype_lower.h: Likewise.
75660         * lib/unictype/ctype_print.h: Likewise.
75661         * lib/unictype/ctype_punct.h: Likewise.
75662         * lib/unictype/ctype_space.h: Likewise.
75663         * lib/unictype/ctype_upper.h: Likewise.
75664         * lib/unictype/ctype_xdigit.h: Likewise.
75665         * lib/unictype/decdigit.h: Likewise.
75666         * lib/unictype/digit.h: Likewise.
75667         * lib/unictype/mirror.h: Likewise.
75668         * lib/unictype/numeric.h: Likewise.
75669         * lib/unictype/pr_alphabetic.h: Likewise.
75670         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
75671         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
75672         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
75673         * lib/unictype/pr_bidi_block_separator.h: Likewise.
75674         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
75675         * lib/unictype/pr_bidi_common_separator.h: Likewise.
75676         * lib/unictype/pr_bidi_control.h: Likewise.
75677         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
75678         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
75679         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
75680         * lib/unictype/pr_bidi_european_digit.h: Likewise.
75681         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
75682         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
75683         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
75684         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
75685         * lib/unictype/pr_bidi_pdf.h: Likewise.
75686         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
75687         * lib/unictype/pr_bidi_whitespace.h: Likewise.
75688         * lib/unictype/pr_combining.h: Likewise.
75689         * lib/unictype/pr_composite.h: Likewise.
75690         * lib/unictype/pr_currency_symbol.h: Likewise.
75691         * lib/unictype/pr_dash.h: Likewise.
75692         * lib/unictype/pr_decimal_digit.h: Likewise.
75693         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
75694         * lib/unictype/pr_deprecated.h: Likewise.
75695         * lib/unictype/pr_diacritic.h: Likewise.
75696         * lib/unictype/pr_extender.h: Likewise.
75697         * lib/unictype/pr_format_control.h: Likewise.
75698         * lib/unictype/pr_grapheme_base.h: Likewise.
75699         * lib/unictype/pr_grapheme_extend.h: Likewise.
75700         * lib/unictype/pr_grapheme_link.h: Likewise.
75701         * lib/unictype/pr_hex_digit.h: Likewise.
75702         * lib/unictype/pr_hyphen.h: Likewise.
75703         * lib/unictype/pr_id_continue.h: Likewise.
75704         * lib/unictype/pr_id_start.h: Likewise.
75705         * lib/unictype/pr_ideographic.h: Likewise.
75706         * lib/unictype/pr_ids_binary_operator.h: Likewise.
75707         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
75708         * lib/unictype/pr_ignorable_control.h: Likewise.
75709         * lib/unictype/pr_iso_control.h: Likewise.
75710         * lib/unictype/pr_join_control.h: Likewise.
75711         * lib/unictype/pr_left_of_pair.h: Likewise.
75712         * lib/unictype/pr_line_separator.h: Likewise.
75713         * lib/unictype/pr_logical_order_exception.h: Likewise.
75714         * lib/unictype/pr_lowercase.h: Likewise.
75715         * lib/unictype/pr_math.h: Likewise.
75716         * lib/unictype/pr_non_break.h: Likewise.
75717         * lib/unictype/pr_not_a_character.h: Likewise.
75718         * lib/unictype/pr_numeric.h: Likewise.
75719         * lib/unictype/pr_other_alphabetic.h: Likewise.
75720         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
75721         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
75722         * lib/unictype/pr_other_id_continue.h: Likewise.
75723         * lib/unictype/pr_other_id_start.h: Likewise.
75724         * lib/unictype/pr_other_lowercase.h: Likewise.
75725         * lib/unictype/pr_other_math.h: Likewise.
75726         * lib/unictype/pr_other_uppercase.h: Likewise.
75727         * lib/unictype/pr_paired_punctuation.h: Likewise.
75728         * lib/unictype/pr_paragraph_separator.h: Likewise.
75729         * lib/unictype/pr_pattern_syntax.h: Likewise.
75730         * lib/unictype/pr_pattern_white_space.h: Likewise.
75731         * lib/unictype/pr_private_use.h: Likewise.
75732         * lib/unictype/pr_punctuation.h: Likewise.
75733         * lib/unictype/pr_quotation_mark.h: Likewise.
75734         * lib/unictype/pr_radical.h: Likewise.
75735         * lib/unictype/pr_sentence_terminal.h: Likewise.
75736         * lib/unictype/pr_soft_dotted.h: Likewise.
75737         * lib/unictype/pr_space.h: Likewise.
75738         * lib/unictype/pr_terminal_punctuation.h: Likewise.
75739         * lib/unictype/pr_titlecase.h: Likewise.
75740         * lib/unictype/pr_unassigned_code_value.h: Likewise.
75741         * lib/unictype/pr_unified_ideograph.h: Likewise.
75742         * lib/unictype/pr_uppercase.h: Likewise.
75743         * lib/unictype/pr_variation_selector.h: Likewise.
75744         * lib/unictype/pr_white_space.h: Likewise.
75745         * lib/unictype/pr_xid_continue.h: Likewise.
75746         * lib/unictype/pr_xid_start.h: Likewise.
75747         * lib/unictype/pr_zero_width.h: Likewise.
75748         * lib/unictype/scripts.h: Likewise.
75749         * lib/unictype/scripts_byname.gperf: Likewise.
75750         * lib/unictype/sy_c_ident.h: Likewise.
75751         * lib/unictype/sy_c_whitespace.h: Likewise.
75752         * lib/unictype/sy_java_ident.h: Likewise.
75753         * lib/unictype/sy_java_whitespace.h: Likewise.
75755         * lib/unictype/Makefile: New file.
75756         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
75757         glibc.
75758         * lib/unictype/3level.h: New file, copied from glibc.
75759         * lib/unictype/3levelbit.h: New file.
75761 2007-11-11  Bruno Haible  <bruno@clisp.org>
75763         * modules/gperf: New file.
75764         * modules/iconv_open (Depends-on): Add it.
75765         (Makefile.am): Remove the GPERF definition.
75767 2007-11-11  Bruno Haible  <bruno@clisp.org>
75769         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
75770         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
75772 2007-11-11  Bruno Haible  <bruno@clisp.org>
75774         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
75775         (usage): Remove function.
75777 2007-11-11  Bruno Haible  <bruno@clisp.org>
75779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
75780         gl_FUNC_CEILF_LIBS.
75781         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
75782         gl_FUNC_CEIL_LIBS.
75783         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
75784         gl_FUNC_CEILL_LIBS.
75785         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
75786         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
75787         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
75789 2007-11-11  Bruno Haible  <bruno@clisp.org>
75791         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
75792         roundf were declared but do not exist on functions.
75793         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
75794         roundl were declared but do not exist on functions.
75795         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
75796         HAVE_FLOORL_AND_CEILL, respectively.
75797         Needed for Sun C on Solaris 10.
75799 2007-11-11  Bruno Haible  <bruno@clisp.org>
75801         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
75802         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
75803         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
75804         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
75805         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
75806         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
75807         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
75808         HAVE_DECL_ROUNDF.
75809         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
75810         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
75811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
75812         of HAVE_DECL_ROUND*.
75813         * modules/math (Makefile.am): Update.
75815 2007-11-10  Bruno Haible  <bruno@clisp.org>
75817         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
75818         ptrdiff_t as m4/intl.m4.
75820 2007-11-10  Jim Meyering  <meyering@redhat.com>
75822         Avoid link failure for the argmatch test.
75823         * tests/test-argmatch.c (usage): Define function to avoid a link
75824         failure: argmatch_die requires a usage function.
75826 2007-11-09  Bruno Haible  <bruno@clisp.org>
75828         * doc/functions/snprintf.texi: Mention BeOS deficiency.
75829         * doc/functions/vsnprintf.texi: Likewise.
75830         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
75831         with a size argument < 2.
75833 2007-11-09  Bruno Haible  <bruno@clisp.org>
75835         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
75836         buffer. Fixes an inefficiency introduced on 2007-11-03.
75838 2007-11-09  Bruno Haible  <bruno@clisp.org>
75840         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
75841         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
75843 2007-11-08  Jim Meyering  <meyering@redhat.com>
75845         Change cache variable name prefix "jm_" to "gl_" everywhere.
75846         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
75847         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
75848         * m4/uptime.m4: s/gl_/jm_/
75850 2007-11-07  Bruno Haible  <bruno@clisp.org>
75852         Update to GNU gettext 0.17.
75853         * m4/intl.m4: Update to GNU gettext 0.17.
75854         * m4/po.m4: Likewise.
75855         * modules/gettext (Files): Remove m4/ulonglong.m4.
75856         (configure.ac): Require gettext infrastructure from version 0.17.
75858 2007-11-06  Bruno Haible  <bruno@clisp.org>
75860         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
75861         symbolic values are not defined in a public header.
75862         * lib/freadable.c (freadable) [QNX]: Likewise.
75863         * lib/freadahead.c (freadahead) [QNX]: Likewise.
75864         * lib/freading.c (freading) [QNX]: Likewise.
75865         * lib/fseterr.c (fseterr) [QNX]: Likewise.
75866         * lib/fwritable.c (fwritable) [QNX]: Likewise.
75867         * lib/fwriting.c (fwriting) [QNX]: Likewise.
75868         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
75869         Reported by Alain Magloire.
75871         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
75873 2007-11-05  Bruno Haible  <bruno@clisp.org>
75875         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
75876         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
75877         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
75878         Reported by Eric Blake.
75880 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75881             Bruno Haible  <bruno@clisp.org>
75883         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
75884         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
75885         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
75886         (malloc): Undefine also before including <stdlib.h>.
75887         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
75888         Needed on OSF/1 4.0.
75890 2007-11-05  Jim Meyering  <meyering@redhat.com>
75892         git-version-gen: sync from coreutils.
75893         * build-aux/git-version-gen: Add comments.
75894         Change the first '-' to '.' in the snapshot version string,
75895         e.g., 6.9-377-08144 -> 6.9.377-08144
75896         Remove first parameter.
75897         Don't declare a version "-dirty" merely because a time
75898         stamp has changed.
75900 2007-11-04  Bruno Haible  <bruno@clisp.org>
75902         * lib/lock.h: Protect all macro definitions containing an 'if'
75903         statement through a "do { ... } while (0)".
75904         * lib/tls.h: Likewise.
75906 2007-11-04  Bruno Haible  <bruno@clisp.org>
75908         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
75910 2007-11-04  Bruno Haible  <bruno@clisp.org>
75912         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
75913         * modules/fprintf-posix (Depends-on): Add nocrash.
75914         * modules/snprintf-posix (Depends-on): Likewise.
75915         * modules/sprintf-posix (Depends-on): Likewise.
75916         * modules/vasnprintf-posix (Depends-on): Likewise.
75917         * modules/vasprintf-posix (Depends-on): Likewise.
75918         * modules/vfprintf-posix (Depends-on): Likewise.
75919         * modules/vsnprintf-posix (Depends-on): Likewise.
75920         * modules/vsprintf-posix (Depends-on): Likewise.
75921         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75922         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75923         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75924         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75925         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75926         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75927         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75929 2007-11-04  Bruno Haible  <bruno@clisp.org>
75931         * modules/nocrash: New file.
75932         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
75933         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
75935 2007-11-04  Bruno Haible  <bruno@clisp.org>
75937         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
75938         precision handling.
75939         * tests/test-vasprintf-posix.c (test_function): Likewise.
75940         * tests/test-snprintf-posix.h (test_function): Likewise.
75941         * tests/test-sprintf-posix.h (test_function): Likewise.
75943         Fix *printf behaviour for large precisions on mingw and BeOS.
75944         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
75945         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
75946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
75947         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75949         gl_PRINTF_PRECISION and test its result. Invoke
75950         gl_PREREQ_VASNPRINTF_PRECISION.
75951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75954         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75955         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75958         * doc/functions/fprintf.texi: Update.
75959         * doc/functions/printf.texi: Update.
75960         * doc/functions/snprintf.texi: Update.
75961         * doc/functions/sprintf.texi: Update.
75962         * doc/functions/vfprintf.texi: Update.
75963         * doc/functions/vprintf.texi: Update.
75964         * doc/functions/vsnprintf.texi: Update.
75965         * doc/functions/vsprintf.texi: Update.
75967 2007-11-04  Bruno Haible  <bruno@clisp.org>
75969         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
75971 2007-11-04  Bruno Haible  <bruno@clisp.org>
75973         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
75974         Reported by Sylvain Beucler <beuc@gnu.org>.
75976 2007-11-03  Bruno Haible  <bruno@clisp.org>
75978         * tests/test-fprintf-posix2.sh: New file.
75979         * tests/test-fprintf-posix2.c: New file.
75980         * modules/fprintf-posix-tests (Files): Add them.
75981         (TESTS): Add test-fprintf-posix2.sh.
75982         (configure.ac): Check for getrlimit and setrlimit.
75983         (check_PROGRAMS): Add test-fprintf-posix2.
75985         * tests/test-printf-posix2.sh: New file.
75986         * tests/test-printf-posix2.c: New file.
75987         * modules/printf-posix-tests (Files): Add them.
75988         (TESTS): Add test-printf-posix2.sh.
75989         (configure.ac): Check for getrlimit and setrlimit.
75990         (check_PROGRAMS): Add test-printf-posix2.
75992         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
75993         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
75994         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
75995         (decode_double): New function, copied from decode_long_double.
75996         (scale10_round_decimal_decoded): New function, extracted from
75997         scale10_round_decimal_long_double.
75998         (scale10_round_decimal_long_double): Use it.
75999         (scale10_round_decimal_double): New function.
76000         (floorlog10): New function.
76001         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
76002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
76003         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76004         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76005         gl_PRINTF_ENOMEM and test its result. Invoke
76006         gl_PREREQ_VASNPRINTF_ENOMEM.
76007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76013         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76014         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
76015         * modules/snprintf-posix (Depends-on): Likewise.
76016         * modules/sprintf-posix (Depends-on): Likewise.
76017         * modules/vasnprintf-posix (Depends-on): Likewise.
76018         * modules/vasprintf-posix (Depends-on): Likewise.
76019         * modules/vfprintf-posix (Depends-on): Likewise.
76020         * modules/vsnprintf-posix (Depends-on): Likewise.
76021         * modules/vsprintf-posix (Depends-on): Likewise.
76022         * doc/functions/fprintf.texi: Update.
76023         * doc/functions/printf.texi: Update.
76024         * doc/functions/snprintf.texi: Update.
76025         * doc/functions/sprintf.texi: Update.
76026         * doc/functions/vfprintf.texi: Update.
76027         * doc/functions/vprintf.texi: Update.
76028         * doc/functions/vsnprintf.texi: Update.
76029         * doc/functions/vsprintf.texi: Update.
76031 2007-11-03  Bruno Haible  <bruno@clisp.org>
76033         * modules/frexp-nolibm-tests: New file.
76035         * modules/frexp-nolibm: New file.
76036         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
76038 2007-11-03  Bruno Haible  <bruno@clisp.org>
76040         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
76041         value is C99 compliant.
76042         Needed for OSF/1 5.1.
76044 2007-11-03  Bruno Haible  <bruno@clisp.org>
76046         Fix out-of-memory handling of vasnprintf.
76047         * lib/printf-parse.c: Include <errno.h>.
76048         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
76049         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
76050         is already set.
76052 2007-11-02  Eric Blake  <ebb9@byu.net>
76054         Fix tests on cygwin.
76055         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
76057 2007-11-01  Bruno Haible  <bruno@clisp.org>
76059         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
76060         warning.
76061         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
76062         needed for POSIX compatibility.
76064 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76066         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
76067         for compatibility with GNU.
76069 2007-11-01  Bruno Haible  <bruno@clisp.org>
76071         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
76072         (putenv): Renamed from rpl_putenv. Change argument type from
76073         'const char *' to 'char *'.
76074         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
76075         of defining putenv in config.h, just set REPLACE_PUTENV.
76076         * modules/putenv (Depends-on): Add stdlib.
76077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76078         (Include): Use <stdlib.h>.
76079         * lib/stdlib.in.h (putenv): New declaration.
76080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
76081         REPLACE_PUTENV.
76082         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
76083         REPLACE_PUTENV.
76084         Needed for MacOS X 10.5.0.
76085         Reported by Peter O'Gorman <peter@pogma.com>.
76087 2007-11-01  Jim Meyering  <meyering@redhat.com>
76089         Treat an empty date string exactly like "0".
76090         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
76091         if the remaining date string (to be parsed) is empty, use "0".
76092         Reported by Mischa Molhoek and discussed in this thread:
76093         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
76095 2007-10-31  Bruno Haible  <bruno@clisp.org>
76097         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
76098         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
76099         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
76100         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
76101         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
76102         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
76104 2007-10-31  Bruno Haible  <bruno@clisp.org>
76106         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
76107         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
76108         (AC_TYPE_LONG_LONG_INT): Use it.
76109         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
76110         it as well.
76111         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
76112         to m4/longlong.m4.
76113         * modules/stdint (Files): Remove m4/ulonglong.m4.
76114         * modules/strtoull (Files): Use m4/longlong.m4 instead of
76115         m4/ulonglong.m4.
76116         * modules/strtoumax (Files): Likewise.
76118 2007-10-30  Bruno Haible  <bruno@clisp.org>
76120         * modules/xvasprintf-posix: New file.
76121         Suggested by Eric Blake.
76123 2007-10-30  Bruno Haible  <bruno@clisp.org>
76125         * modules/xprintf-posix-tests: New file.
76126         * tests/test-xprintf-posix.sh: New file.
76127         * tests/test-xprintf-posix.c: New file.
76128         * tests/test-xfprintf-posix.c: New file.
76130         * modules/xprintf-posix: New file.
76132 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76134         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
76135         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
76136         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
76138 2007-10-29  Bruno Haible  <bruno@clisp.org>
76140         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
76141         contain the special marker '_cv_'.
76142         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
76143         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
76144         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
76145         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
76146         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
76147         Reported by Ralf Wildenhues.
76149 2007-10-29  Bruno Haible  <bruno@clisp.org>
76151         * gnulib-tool (func_import): When --lgpl is not specified, set
76152         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
76153         GPLv3.
76154         Reported by Simon Josefsson.
76156 2007-10-28  Bruno Haible  <bruno@clisp.org>
76158         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
76159         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
76160         HAVE_DECL_ISFINITE.
76161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
76162         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
76163         HAVE_DECL_ISFINITE.
76165 2007-10-28  Bruno Haible  <bruno@clisp.org>
76167         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
76168         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
76170 2007-10-28  Bruno Haible  <bruno@clisp.org>
76172         Fix link errors with Sun C 5.0 on Solaris 10.
76173         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
76174         function is declared but not present in the compiler's libm.
76175         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
76176         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
76177         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
76178         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
76179         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
76180         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
76181         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
76182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
76183         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
76184         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
76185         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
76186         HAVE_DECL_FLOORL.
76188 2007-10-28  Bruno Haible  <bruno@clisp.org>
76190         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
76191         gl_FUNC_FLOORL. Cache the result.
76192         (gl_FUNC_FLOORL): Use it.
76193         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
76194         gl_FUNC_CEILL. Cache the result.
76195         (gl_FUNC_CEILL): Use it.
76197         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
76198         gl_FUNC_FLOOR. Cache the result.
76199         (gl_FUNC_FLOOR): Use it.
76200         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
76201         gl_FUNC_CEIL. Cache the result.
76202         (gl_FUNC_CEIL): Use it.
76204         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
76205         gl_FUNC_FLOORF. Cache the result.
76206         (gl_FUNC_FLOORF): Use it.
76207         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
76208         gl_FUNC_CEILF. Cache the result.
76209         (gl_FUNC_CEILF): Use it.
76211 2007-10-28  Bruno Haible  <bruno@clisp.org>
76213         * gnulib-tool: Allow specifying the LGPL version number through
76214         --lgpl=2 or --lgpl=3.
76215         (func_usage): Document --lgpl with argument.
76216         Handle --lgpl=... arguments.
76217         (func_import): Recognize also gl_LGPL calls with an argument. When
76218         --lgpl=2 is used and the module's license is just LGPL, report an
76219         error. Set sed_transform_lib_file according to the lgpl variable. In
76220         the generated files, use --lgpl or gl_LGPL invocations with argument,
76221         if necessary.
76222         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
76223         an LGPv2+ license.
76224         * doc/gnulib-tool.texi (Modified imports): Update explanation of
76225         gl_LGPL macro.
76227 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76228             Bruno Haible  <bruno@clisp.org>
76230         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
76231         (u16_uctomb_aux): Likewise.
76232         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
76233         !HAVE_INLINE.
76234         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
76236 2007-10-28  Bruno Haible  <bruno@clisp.org>
76238         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
76239         Invoke AM_GETTEXT_OPTION if it exists.
76240         * modules/vasprintf: Likewise.
76241         * modules/verror: Likewise.
76242         * modules/xprintf: Likewise.
76243         * modules/xvasprintf: Likewise.
76245 2007-10-27  Ben Pfaff  <blp@gnu.org>
76247         * lib/math.in.h: Define isfinite macro and prototypes for
76248         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
76249         implementations.
76250         * m4/math_h.m4: New substitutions for isfinite module.
76251         * lib/isfinite.c: New file.
76252         * m4/isfinite.m4: New file.
76253         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
76254         * modules/isfinite: New file.
76255         * modules/isfinite-tests: New file.
76256         * tests/tests-isfinite.c: New file.
76257         * doc/functions/isfinite.texi: Mention isfinite module.
76258         * MODULES.html.sh: Mention new module.
76260 2007-10-27  Ben Pfaff  <blp@gnu.org>
76262         Ralf Wildenhues reported that Tru64 4.0D declares the round
76263         functions but does not have definitions.
76264         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
76265         cannot be found in any library, set the output variable to
76266         "missing" instead of "".
76267         * m4/round.m4: Also use our substitute if we cannot find round in
76268         any library, even if it is declared.
76269         * m4/roundf.m4: Likewise for roundf.
76270         * m4/roundl.m4: Likewise for roundl.
76271         * lib/math.in.h: Undefine roundf, round, roundl before defining
76272         their replacements, to allow for hypothetical systems where these
76273         may be defined as macros but not available in libraries.
76275 2007-10-27  Bruno Haible  <bruno@clisp.org>
76277         * doc/gnulib.texi: Invoke @firstparagraphindent.
76278         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
76279         changes in gnulib.
76280         (Source changes): New section.
76282 2007-10-26  Bruno Haible  <bruno@clisp.org>
76284         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
76285         borrowed from autoconf.
76287 2007-10-26  Bruno Haible  <bruno@clisp.org>
76289         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
76290         strerror returned the empty string. Needed on HP-UX 11.00.
76292 2007-10-24  Micah Cowan  <micah@cowan.name>
76294         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
76295         * build-aux/bootstrap: Remove support for now-unnecessary option,
76296         --cvs-user, and envvars CVS_USER, CVS_RSH.
76298 2007-10-24  Jim Meyering  <meyering@redhat.com>
76300         Avoid diagnostics from sha1sum when there is no cached checksum.
76301         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
76302         if the po.s1 file hasn't been created yet.
76304         * build-aux/bootstrap: Sync from coreutils:
76305         2007-10-24  Jim Meyering  <meyering@redhat.com>
76306         Get gnulib from the git repository, not from an obsolete cvs one.
76307         * build-aux/bootstrap: Suggestion from Micah Cowan.
76308         2007-10-04  Jim Meyering  <jim@meyering.net>
76309         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
76310         (update_po_files): Work also when there are no .po files in po/.
76312 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76314         * README: Append ".git" to git and cg examples.
76315         Problem reported by Benoit Sigoure.
76317 2007-10-23  Micah Cowan  <micah@cowan.name>
76319         * users.txt: Add wget.
76321 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76323         Fix linking of some unistdio tests on FreeBSD.
76324         * modules/unistdio/u16-vsnprintf-tests
76325         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
76326         * modules/unistdio/u16-vsprintf-tests
76327         (test_u16_vsnprintf1_LDADD): Likewise.
76328         * modules/unistdio/u32-vsnprintf-tests
76329         (test_u32_vsnprintf1_LDADD): Likewise.
76330         * modules/unistdio/u32-vsprintf-tests
76331         (test_u32_vsprintf1_LDADD): Likewise.
76332         * modules/unistdio/u8-vsnprintf-tests
76333         (test_u8_vsnprintf1_LDADD): Likewise.
76334         * modules/unistdio/u8-vsprintf-tests
76335         (test_u8_vsprintf1_LDADD): Likewise.
76336         * modules/unistdio/ulc-vsnprintf-tests
76337         (test_ulc_vsnprintf1_LDADD): Likewise.
76338         * modules/unistdio/ulc-vsprintf-tests
76339         (test_ulc_vsprintf1_LDADD): Likewise.
76341         Fix linking of some uniconv tests on FreeBSD.
76342         * modules/uniconv/u16-conv-from-enc-tests
76343         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
76344         * modules/uniconv/u16-conv-to-enc-tests
76345         (test_u16_conv_to_enc_LDADD): Likewise.
76346         * modules/uniconv/u16-strconv-from-enc-tests
76347         (test_u16_strconv_from_enc_LDADD): Likewise.
76348         * modules/uniconv/u16-strconv-to-enc-tests
76349         (test_u16_strconv_to_enc_LDADD): Likewise.
76350         * modules/uniconv/u32-conv-from-enc-tests
76351         (test_u32_conv_from_enc_LDADD): Likewise.
76352         * modules/uniconv/u32-conv-to-enc-tests
76353         (test_u32_conv_to_enc_LDADD): Likewise.
76354         * modules/uniconv/u32-strconv-from-enc-tests
76355         (test_u32_strconv_from_enc_LDADD): Likewise.
76356         * modules/uniconv/u32-strconv-to-enc-tests
76357         (test_u32_strconv_to_enc_LDADD): Likewise.
76358         * modules/uniconv/u8-conv-from-enc-tests
76359         (test_u8_conv_from_enc_LDADD): Likewise.
76360         * modules/uniconv/u8-conv-to-enc-tests
76361         (test_u8_conv_to_enc_LDADD): Likewise.
76362         * modules/uniconv/u8-strconv-from-enc-tests
76363         (test_u8_strconv_from_enc_LDADD): Likewise.
76364         * modules/uniconv/u8-strconv-to-enc-tests
76365         (test_u8_strconv_to_enc_LDADD): Likewise.
76367 2007-10-22  Bruno Haible  <bruno@clisp.org>
76369         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
76370         size.
76372 2007-10-22  Eric Blake  <ebb9@byu.net>
76374         Tweak x*printf documentation.
76375         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
76376         variable name and comments.
76377         Suggested by Bruno Haible.
76379 2007-10-22  Bruno Haible  <bruno@clisp.org>
76381         * lib/acl.c (copy_acl): Fix file name in comment.
76383 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76385         Fix Tru64 problem with stdbool.h.
76386         * lib/stdbool.in.h (false, true):
76387         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
76388         Don't declare as an enum in this situation; it runs afoul of Tru64.
76389         Problem reported by Steven M. Schweda in
76390         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
76392 2007-10-22  Eric Blake  <ebb9@byu.net>
76394         Also wrap vf?printf.
76395         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
76396         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
76397         (xvprintf, xvfprintf): New functions.
76399 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76401         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
76402         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
76404         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
76405         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
76407 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76409         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
76410         by Bruno Haible.
76412 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76414         * lib/getloadavg.c
76415         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
76416         Undef `sys' after including sys/table.h, for Tru64 4.0D.
76418         * tests/test-i-ring.c: Work for C89.
76420 2007-10-22  Bruno Haible  <bruno@clisp.org>
76422         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
76423         -1u, in preprocessor expression, so that we don't test for the bug
76424         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
76425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
76427 2007-10-22  Eric Blake  <ebb9@byu.net>
76429         * tests/test-yesno.sh: Silence stderr during test.
76431 2007-10-22  Simon Josefsson  <simon@josefsson.org>
76433         * modules/crypto/gc-camellia: New file.
76435         * m4/gc-camellia.m4: New file.
76437         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
76439         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
76441 2007-10-22  Simon Josefsson  <simon@josefsson.org>
76443         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
76444         --help to stdout.  Reported by sms@antinode.org (Steven
76445         M. Schweda).
76447 2007-10-22  Simon Josefsson  <simon@josefsson.org>
76449         * users.txt: Fix link to libksba.
76451 2007-10-21  Ben Pfaff  <blp@gnu.org>
76453         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
76454         round.c roundf implementation that depends on floorf and ceilf to
76455         be tested unconditionally.
76457 2007-10-21  Ben Pfaff  <blp@gnu.org>
76459         * m4/check-libm-func.m4: Removed.
76460         * m4/check-math-lib.m4: New file.
76461         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
76462         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
76463         definition and lack of AC_LIBOBJ([roundf]).
76464         * m4/roundl.m4: Ditto, and similarly for roundl.
76465         * modules/round: Reference new m4 file.
76466         * modules/roundf: Ditto.
76467         * modules/roundl: Ditto.
76468         * tests/test-round2.c (main): Use ROUND instead of round.
76469         Bug report from Bruno Haible.
76471 2007-10-21  Bruno Haible  <bruno@clisp.org>
76473         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
76474         context.
76476 2007-10-21  Bruno Haible  <bruno@clisp.org>
76478         * tests/test-wcwidth.c (main): Allow negative result for some control
76479         characters.
76481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
76482         Needed on OSF/1 5.1.
76484 2007-10-21  Bruno Haible  <bruno@clisp.org>
76486         * tests/test-floorf1.c: Include isnanf.h.
76487         (main): Use isnanf() instead of isnan().
76488         * tests/test-ceilf1.c: Include isnanf.h.
76489         (main): Use isnanf() instead of isnan().
76490         * tests/test-truncf1.c: Include isnanf.h.
76491         (main): Use isnanf() instead of isnan().
76492         * tests/test-roundf1.c: Include isnanf.h.
76493         (main): Use isnanf() instead of isnan().
76495 2007-10-21  Eric Blake  <ebb9@byu.net>
76497         * users.txt: Update URL for m4.
76499 2007-10-21  Bruno Haible  <bruno@clisp.org>
76501         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
76503 2007-10-21  Bruno Haible  <bruno@clisp.org>
76505         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
76506         Git's management files if the CVS files are not present.
76508 2007-10-20  Bruno Haible  <bruno@clisp.org>
76510         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
76511         gcc-3.4.x.
76513 2007-10-20  Ben Pfaff  <blp@gnu.org>
76515         * lib/math.in.h: Declare round, roundf, roundl if we are providing
76516         implementations.
76517         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
76518         * lib/round.c: New file.
76519         * lib/roundf.c: New file.
76520         * lib/roundl.c: New file.
76521         * m4/round.m4: New file.
76522         * m4/roundf.m4: New file.
76523         * m4/roundl.m4: New file.
76524         * m4/check-libm-func-m4: New file.
76525         * modules/math: Replace round, roundf, roundl related @VARS@ in
76526         math.in.h.
76527         * modules/round: New file.
76528         * modules/round-tests: New file.
76529         * modules/roundf: New file.
76530         * modules/roundf-tests: New file.
76531         * modules/roundl: New file.
76532         * modules/roundl-tests: New file.
76533         * tests/test-round1.c: New file.
76534         * tests/test-round2.c: New file.
76535         * tests/test-roundf1.c: New file.
76536         * tests/test-roundf2.c: New file.
76537         * tests/test-roundl.c: New file.
76538         * doc/functions/round.texi: Mention round module.
76539         * doc/functions/roundf.texi: Mention roundf module.
76540         * doc/functions/roundl.texi: Mention roundl module.
76541         * MODULES.html.sh: Mention new modules.
76542         Thanks to Bruno Haible for suggestions.
76544 2007-10-20  Jim Meyering  <meyering@redhat.com>
76546         * lib/xprintf.c: Include <config.h> unconditionally.
76548         Change xprintf's license to GPL.
76549         * modules/xprintf (License): s/LGPL/GPL/, since this module
76550         depends on modules (exit and exitfail) which are GPL.
76551         Suggestion from Bruno Haible.
76553         xprintf fixes.
76554         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
76555         Use a clearer diagnostic.
76556         Patch from Bruno Haible.
76558 2007-10-20  Bruno Haible  <bruno@clisp.org>
76560         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
76561         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
76562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76564 2007-10-20  Bruno Haible  <bruno@clisp.org>
76566         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
76567         precision in the comparison result > x - 1 or similar.
76568         * tests/test-ceilf2.c (correct_result_p): Likewise.
76569         * tests/test-truncf2.c (correct_result_p): Likewise.
76570         * tests/test-trunc2.c (correct_result_p): Likewise.
76571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76573 2007-10-20  Bruno Haible  <bruno@clisp.org>
76575         * modules/ceil: New file.
76576         * m4/ceil.m4: New file.
76577         * doc/functions/ceil.texi: Mention the 'ceil' module.
76579 2007-10-20  Bruno Haible  <bruno@clisp.org>
76581         * modules/floor: New file.
76582         * m4/floor.m4: New file.
76583         * doc/functions/floor.texi: Mention the 'floor' module.
76585 2007-10-20  Bruno Haible  <bruno@clisp.org>
76587         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
76588         of %a.
76589         * modules/floorf-tests (Depends-on): Likewise.
76590         * modules/truncf-tests (Depends-on): Likewise.
76591         * modules/trunc-tests (Depends-on): Likewise.
76592         Reported by Ben Pfaff.
76594 2007-10-19  Jim Meyering  <meyering@redhat.com>
76596         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
76597         Don't bother testing specific errno values.  Just test ferror.
76599         New module: xprintf
76600         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
76602 2007-10-19  Bruno Haible  <bruno@clisp.org>
76604         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
76605         syntax.
76606         * modules/javaexec (Makefile.am): Likewise.
76607         * modules/relocatable-prog (Makefile.am): Likewise.
76608         Suggested by Jim Meyering.
76610 2007-10-18  Bruno Haible  <bruno@clisp.org>
76612         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
76613         Reported by Jim Meyering.
76615 2007-10-18  Eric Blake  <ebb9@byu.net>
76617         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
76619 2007-10-18  Bruno Haible  <bruno@clisp.org>
76621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
76622         the format string into writable memory. Needed in Fortify conditions.
76624 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
76625             Bruno Haible  <bruno@clisp.org>
76627         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
76628         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
76629         * modules/trim (Depends-on): Add mbchar.
76630         (configure.ac): Add gl_FUNC_MBRTOWC.
76631         (Makefile.am): Augment lib_SOURCES.
76633 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76635         Modify glob.c to use fstatat and dirfd, to simplify it.
76636         Suggested by Eric Blake.
76637         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
76638         Don't include <stdbool.h>; not used.
76639         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
76640         (link_exists_p): Simplify implementation, since we can now assume
76641         dirfd and fstatat.
76642         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
76644 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76646         * gnulib-tool (func_get_dependencies): Fix sed script to
76647         match only tests.
76649 2007-10-17  Bruno Haible  <bruno@clisp.org>
76651         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
76652         allow locale names without encoding suffix.
76653         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
76654         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
76656 2007-10-16  Bruno Haible  <bruno@clisp.org>
76658         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
76659         * lib/getgroups.c (getgroups): Likewise.
76660         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
76662 2007-10-16  Bruno Haible  <bruno@clisp.org>
76664         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
76665         * modules/malloc-posix (License): Likewise.
76666         * modules/realloc-posix (License): Likewise.
76667         * modules/calloc-posix (License): Likewise.
76668         * modules/intprops (License): Change from GPL to LGPL, with
76669         Paul Eggert's approval.
76671 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76673         Merge glibc changes into lib/glob.c.
76675         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
76676         2007-10-15 04:59:03 UTC.  Here are the changes:
76678         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
76680         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
76682         * lib/glob.c: Add some branch prediction throughout.
76684         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
76686         [BZ #5103]
76687         * lib/glob.c (glob): Recognize patterns starting \/.
76689         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
76691         [BZ #3996]
76692         * lib/glob.c (attribute_hidden): Define if not defined.
76693         (glob): Unescape dirname, filename or username when needed and not
76694         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
76695         is NULL.  Handle unescaped [ in pattern without closing ].
76696         Don't pass GLOB_CHECK down to recursive glob for directories.
76697         (__glob_pattern_type): New function.
76698         (__glob_pattern_p): Implement using __glob_pattern_type.
76699         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
76700         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
76701         Remove unreachable code.
76703         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
76705         * lib/glob.c (glob_in_dir): Add some comments and asserts to
76706         explain why there are no leaks.
76708         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
76710         [BZ #3253]
76711         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
76712         time, rather allocate increasingly bigger arrays of pointers, if
76713         possible with alloca, if too large with malloc.
76715 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76717         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
76718         Problem reported by H.Merijn Brand in
76719         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
76720         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
76721         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76723 2007-10-15  Bruno Haible  <bruno@clisp.org>
76725         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
76726         with explicit rpl_ prefix.
76727         * lib/fopen.c (fopen): Likewise.
76728         * lib/freopen.c (freopen): Likewise.
76729         * lib/iconv.c (iconv): Likewise.
76730         * lib/iconv_close.c (iconv_close): Likewise.
76732 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76734         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
76736 2007-10-15  Bruno Haible  <bruno@clisp.org>
76738         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
76739         <stddef.h> instead of <stdlib.h> since we only need NULL.
76740         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76742 2007-10-15  Bruno Haible  <bruno@clisp.org>
76744         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
76745         Replace paragraph talking about LIBOBJS.
76746         Reported by Colin Watson <cjwatson@debian.org>.
76748 2007-10-15  Bruno Haible  <bruno@clisp.org>
76750         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
76751         <stdlib.h> before using NULL.
76753 2007-10-15  Simon Josefsson  <simon@josefsson.org>
76755         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
76756         Reported by Albert Chin <china@thewrittenword.com>.
76758 2007-10-14  Bruno Haible  <bruno@clisp.org>
76760         * modules/iconv_open-utf-tests: New file.
76761         * tests/test-iconv-utf.c: New file.
76763         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
76764         * modules/iconv_open-utf: New file.
76765         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
76766         (iconv, iconv_close): New declarations.
76767         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
76768         be defined.
76769         (iconv_open): Add special handling of conversion between UTF-8 and
76770         UTF-{16,32}{BE,LE}.
76771         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
76772         * lib/iconv_close.c: New file.
76773         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
76774         gl_FUNC_ICONV_OPEN.
76775         (gl_FUNC_ICONV_OPEN): Use it.
76776         (gl_FUNC_ICONV_OPEN_UTF): New macro.
76777         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
76778         and REPLACE_ICONV_UTF.
76779         * modules/iconv_open (Depends-on): Add c-strcase.
76780         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
76781         ICONV_CONST.
76782         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
76784 2007-10-13  Albert Chin  <china@thewrittenword.com>
76785             Bruno Haible  <bruno@clisp.org>
76787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
76788         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
76790 2007-10-13  Bruno Haible  <bruno@clisp.org>
76792         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
76793         defined, use the ISO C99 inline semantics.
76794         * lib/argp.h (ARGP_EI): Likewise.
76796 2007-10-13  Bruno Haible  <bruno@clisp.org>
76798         Handle 'inline' change in gcc 4.3.0.
76799         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
76800         argp_fmtstream_write, argp_fmtstream_set_lmargin,
76801         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
76802         argp_fmtstream_point): Disable 'extern' declaration if the function
76803         definition is going to be provided inline.
76804         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
76805         semantics, not the ISO C99 inline semantics.
76806         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
76807         'extern' declaration if the function definition is going to be provided
76808         inline.
76809         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
76810         the GNU C inline semantics, not the ISO C99 inline semantics. With
76811         GCC 4.2, avoid a warning.
76813 2007-10-13  Bruno Haible  <bruno@clisp.org>
76815         * lib/freading.h (freading): Enable the use of __freading for
76816         glibc >= 2.7.
76817         * lib/freading.c (freading): Likewise.
76819 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76821         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
76822         "warning: C99 inline functions are not supported; using GNU89".
76824 2007-10-12  Bruno Haible  <bruno@clisp.org>
76826         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
76827         of 2.
76828         * tests/test-ceilf2.c: New file.
76829         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
76831         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
76832         * modules/ceilf-tests: Update.
76834 2007-10-12  Bruno Haible  <bruno@clisp.org>
76836         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
76837         of 2.
76838         * tests/test-floorf2.c: New file.
76839         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
76841         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
76842         * modules/floorf-tests: Update.
76844 2007-10-12  Bruno Haible  <bruno@clisp.org>
76846         * tests/test-trunc2.c: New file.
76847         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
76849         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
76850         * modules/trunc-tests: Update.
76852 2007-10-12  Bruno Haible  <bruno@clisp.org>
76854         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
76855         of 2.
76856         * tests/test-truncf2.c: New file.
76857         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
76859         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
76860         * modules/truncf-tests: Update.
76862 2007-10-11  Eric Blake  <ebb9@byu.net>
76864         Don't claim strerror is broken on Interix.
76865         * doc/functions/strerror.texi (strerror): Known broken systems are
76866         now Solaris 8, and not Interix.
76867         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
76868         Interix on cross-compile.
76869         Reported by Martin Koeppe in
76870         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
76872 2007-10-11  Bruno Haible  <bruno@clisp.org>
76874         * modules/i-ring-tests: New file.
76875         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
76876         instead of assert.
76878 2007-10-11  Bruno Haible  <bruno@clisp.org>
76880         * modules/filenamecat-tests: New file.
76881         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
76882         * lib/filenamecat.c: Remove test code.
76884 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76886         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
76888         * lib/strerror.c: Include <string.h> always, to test interface,
76889         and to remove the need for the dummy.
76890         Include intprops.h to compute width instead of doing it ourselves
76891         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
76892         (strerror): Define it to return NULL if there's no system strerror.
76893         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
76894         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
76895         ancient pre-strerror Unix systems well any more.  Saying "unknown
76896         system error" is enough.
76897         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
76898         simpler strerror.c implementation.
76899         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
76900         Simplify the tests to reflect the simpler strerror implementation.
76901         * modules/strerror (Depends-on): Add intprops.
76903 2007-10-09  Eric Blake  <ebb9@byu.net>
76905         Silence test-fpending.
76906         * modules/fpending-tests (Files): Add wrapper script.
76907         * tests/test-fpending.sh: New file.
76909 2007-10-09  Bruno Haible  <bruno@clisp.org>
76911         * MODULES.html.sh (func_module): Don't create a hyperlink for
76912         function names like 'printf_frexp'.
76913         (Misc): Add crc, memxor.
76914         (Characteristics of floating types): New section.
76915         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
76916         isnanf-nolibm, signbit, trunc, truncf, truncl.
76917         (Enhancements for ISO C 99 functions): New subsection Input/output.
76918         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
76919         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
76920         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
76921         (Compatibility checks for POSIX:2001 functions): Add clock-time.
76922         (Enhancements for POSIX:2001 functions): Add chdir-long.
76923         (File system functions): Add areadlink, chdir-safer, read-file.
76924         Remove cycle-check.
76925         (File system as inode set): New section.
76926         (Date and time): Add gethrxtime.
76927         (Multithreading): Add openmp.
76928         (Internationalization functions): Add localename.
76929         (Unicode string functions): Add unistr/u*-mbsnlen.
76930         (Support for maintaining and releasing projects): Add git-version-gen.
76931         (Lone files): Remove directories.
76933 2007-10-08  Ben Pfaff  <blp@gnu.org>
76935         * lib/xmalloca.h: Fix typo in comment.
76937 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76939         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
76940         when avoiding problems with integer overflow.  Use a portable test
76941         instead.
76943 2007-10-08  Simon Josefsson  <simon@josefsson.org>
76945         * modules/dummy (License): Change to LGPLv2+.
76946         * modules/float (License): Likewise
76947         * modules/realloc (License): Likewise
76948         * modules/stdlib (License): Likewise
76950 2007-10-07  Bruno Haible  <bruno@clisp.org>
76952         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
76953         * floor.c (TWO_MANT_DIG): Likewise.
76954         * ceil.c (TWO_MANT_DIG): Likewise.
76955         Reported by Ben Pfaff.
76957 2007-10-07  Bruno Haible  <bruno@clisp.org>
76959         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
76960         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
76961         * lib/frexp.c (FUNC): Likewise.
76962         * lib/printf-frexp.h (printf_frexp): Likewise.
76963         * lib/printf-frexpl.h (printf_frexpl): Likewise.
76964         * lib/printf-frexp.c (FUNC): Likewise.
76965         Suggested by Jim Meyering.
76967 2007-10-07  Jim Meyering  <meyering@redhat.com>
76969         Make xnanosleep's integer overflow test more robust.
76970         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
76971         so that gcc-4.3.0 doesn't optimize away this test for overflow.
76973 2007-10-07  Bruno Haible  <bruno@clisp.org>
76975         * NEWS: Mention the license change.
76977         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
76978         abbreviations in the modules files.
76980         Change copyright notice from GPLv2+ to GPLv3+.
76981         * README: Change copyright notice.
76982         * MODULES.html.sh: Likewise.
76983         * build-aux/bootstrap.conf: Likewise.
76984         * build-aux/config.libpath: Likewise.
76985         * build-aux/csharpcomp.sh.in: Likewise.
76986         * build-aux/csharpexec.sh.in: Likewise.
76987         * build-aux/install-reloc: Likewise.
76988         * build-aux/javacomp.sh.in: Likewise.
76989         * build-aux/javaexec.sh.in: Likewise.
76990         * build-aux/ldd.sh.in: Likewise.
76991         * build-aux/reloc-ldflags: Likewise.
76992         * build-aux/relocatable.sh.in: Likewise.
76993         * build-aux/x-to-1.in: Likewise.
76994         * check-module: Likewise.
76995         * config/srclistvars.sh: Likewise.
76996         * gnulib-tool: Likewise.
76997         * lib/acl-internal.h: Likewise.
76998         * lib/acl.c: Likewise.
76999         * lib/acl.h: Likewise.
77000         * lib/acl_entries.c: Likewise.
77001         * lib/areadlink-with-size.c: Likewise.
77002         * lib/areadlink.c: Likewise.
77003         * lib/areadlink.h: Likewise.
77004         * lib/argmatch.c: Likewise.
77005         * lib/argmatch.h: Likewise.
77006         * lib/argp-ba.c: Likewise.
77007         * lib/argp-eexst.c: Likewise.
77008         * lib/argp-fmtstream.c: Likewise.
77009         * lib/argp-fmtstream.h: Likewise.
77010         * lib/argp-fs-xinl.c: Likewise.
77011         * lib/argp-help.c: Likewise.
77012         * lib/argp-namefrob.h: Likewise.
77013         * lib/argp-parse.c: Likewise.
77014         * lib/argp-pin.c: Likewise.
77015         * lib/argp-pv.c: Likewise.
77016         * lib/argp-pvh.c: Likewise.
77017         * lib/argp-xinl.c: Likewise.
77018         * lib/argp.h: Likewise.
77019         * lib/at-func.c: Likewise.
77020         * lib/atanl.c: Likewise.
77021         * lib/backupfile.c: Likewise.
77022         * lib/backupfile.h: Likewise.
77023         * lib/basename.c: Likewise.
77024         * lib/binary-io.h: Likewise.
77025         * lib/byteswap.in.h: Likewise.
77026         * lib/c-stack.c: Likewise.
77027         * lib/c-stack.h: Likewise.
77028         * lib/c-strcasestr.c: Likewise.
77029         * lib/c-strcasestr.h: Likewise.
77030         * lib/c-strstr.c: Likewise.
77031         * lib/c-strstr.h: Likewise.
77032         * lib/c-strtod.c: Likewise.
77033         * lib/calloc.c: Likewise.
77034         * lib/canon-host.c: Likewise.
77035         * lib/canon-host.h: Likewise.
77036         * lib/canonicalize-lgpl.c: Likewise.
77037         * lib/canonicalize.c: Likewise.
77038         * lib/canonicalize.h: Likewise.
77039         * lib/ceil.c: Likewise.
77040         * lib/ceilf.c: Likewise.
77041         * lib/ceill.c: Likewise.
77042         * lib/chdir-long.c: Likewise.
77043         * lib/chdir-long.h: Likewise.
77044         * lib/chdir-safer.c: Likewise.
77045         * lib/chdir-safer.h: Likewise.
77046         * lib/chown.c: Likewise.
77047         * lib/classpath.c: Likewise.
77048         * lib/classpath.h: Likewise.
77049         * lib/clean-temp.c: Likewise.
77050         * lib/clean-temp.h: Likewise.
77051         * lib/cloexec.c: Likewise.
77052         * lib/close-stream.c: Likewise.
77053         * lib/closein.c: Likewise.
77054         * lib/closein.h: Likewise.
77055         * lib/closeout.c: Likewise.
77056         * lib/closeout.h: Likewise.
77057         * lib/concat-filename.c: Likewise.
77058         * lib/copy-file.c: Likewise.
77059         * lib/copy-file.h: Likewise.
77060         * lib/count-one-bits.h: Likewise.
77061         * lib/crc.c: Likewise.
77062         * lib/crc.h: Likewise.
77063         * lib/creat-safer.c: Likewise.
77064         * lib/csharpcomp.c: Likewise.
77065         * lib/csharpcomp.h: Likewise.
77066         * lib/csharpexec.c: Likewise.
77067         * lib/csharpexec.h: Likewise.
77068         * lib/cycle-check.c: Likewise.
77069         * lib/cycle-check.h: Likewise.
77070         * lib/diacrit.c: Likewise.
77071         * lib/diacrit.h: Likewise.
77072         * lib/diffseq.h: Likewise.
77073         * lib/dirchownmod.c: Likewise.
77074         * lib/dirent.in.h: Likewise.
77075         * lib/dirfd.c: Likewise.
77076         * lib/dirfd.h: Likewise.
77077         * lib/dirname.c: Likewise.
77078         * lib/dirname.h: Likewise.
77079         * lib/dummy.c: Likewise.
77080         * lib/dup-safer.c: Likewise.
77081         * lib/dup2.c: Likewise.
77082         * lib/eealloc.h: Likewise.
77083         * lib/error.c: Likewise.
77084         * lib/error.h: Likewise.
77085         * lib/euidaccess.c: Likewise.
77086         * lib/exclude.c: Likewise.
77087         * lib/exclude.h: Likewise.
77088         * lib/execute.c: Likewise.
77089         * lib/execute.h: Likewise.
77090         * lib/exitfail.c: Likewise.
77091         * lib/exitfail.h: Likewise.
77092         * lib/expl.c: Likewise.
77093         * lib/fatal-signal.c: Likewise.
77094         * lib/fatal-signal.h: Likewise.
77095         * lib/fbufmode.c: Likewise.
77096         * lib/fbufmode.h: Likewise.
77097         * lib/fchdir.c: Likewise.
77098         * lib/fchmodat.c: Likewise.
77099         * lib/fchownat.c: Likewise.
77100         * lib/fcntl--.h: Likewise.
77101         * lib/fcntl-safer.h: Likewise.
77102         * lib/fcntl.in.h: Likewise.
77103         * lib/fd-safer.c: Likewise.
77104         * lib/fflush.c: Likewise.
77105         * lib/file-has-acl.c: Likewise.
77106         * lib/file-set.c: Likewise.
77107         * lib/file-type.c: Likewise.
77108         * lib/file-type.h: Likewise.
77109         * lib/fileblocks.c: Likewise.
77110         * lib/filemode.c: Likewise.
77111         * lib/filemode.h: Likewise.
77112         * lib/filename.h: Likewise.
77113         * lib/filenamecat.c: Likewise.
77114         * lib/filenamecat.h: Likewise.
77115         * lib/findprog.c: Likewise.
77116         * lib/findprog.h: Likewise.
77117         * lib/float.in.h: Likewise.
77118         * lib/floor.c: Likewise.
77119         * lib/floorf.c: Likewise.
77120         * lib/floorl.c: Likewise.
77121         * lib/fopen-safer.c: Likewise.
77122         * lib/fopen.c: Likewise.
77123         * lib/fpending.c: Likewise.
77124         * lib/fpending.h: Likewise.
77125         * lib/fprintf.c: Likewise.
77126         * lib/fprintftime.h: Likewise.
77127         * lib/fpucw.h: Likewise.
77128         * lib/fpurge.c: Likewise.
77129         * lib/fpurge.h: Likewise.
77130         * lib/freadable.c: Likewise.
77131         * lib/freadable.h: Likewise.
77132         * lib/freadahead.c: Likewise.
77133         * lib/freadahead.h: Likewise.
77134         * lib/freading.c: Likewise.
77135         * lib/freading.h: Likewise.
77136         * lib/free.c: Likewise.
77137         * lib/freopen.c: Likewise.
77138         * lib/frexp.c: Likewise.
77139         * lib/frexpl.c: Likewise.
77140         * lib/fseek.c: Likewise.
77141         * lib/fseterr.c: Likewise.
77142         * lib/fseterr.h: Likewise.
77143         * lib/fstatat.c: Likewise.
77144         * lib/fstrcmp.c: Likewise.
77145         * lib/fstrcmp.h: Likewise.
77146         * lib/fsusage.c: Likewise.
77147         * lib/fsusage.h: Likewise.
77148         * lib/ftell.c: Likewise.
77149         * lib/ftello.c: Likewise.
77150         * lib/fts-cycle.c: Likewise.
77151         * lib/fts.c: Likewise.
77152         * lib/fts_.h: Likewise.
77153         * lib/full-read.c: Likewise.
77154         * lib/full-read.h: Likewise.
77155         * lib/full-write.c: Likewise.
77156         * lib/full-write.h: Likewise.
77157         * lib/fwritable.c: Likewise.
77158         * lib/fwritable.h: Likewise.
77159         * lib/fwriteerror.c: Likewise.
77160         * lib/fwriteerror.h: Likewise.
77161         * lib/fwriting.c: Likewise.
77162         * lib/fwriting.h: Likewise.
77163         * lib/gcd.c: Likewise.
77164         * lib/gcd.h: Likewise.
77165         * lib/getcwd.c: Likewise.
77166         * lib/getdate.h: Likewise.
77167         * lib/getdate.y: Likewise.
77168         * lib/getdomainname.c: Likewise.
77169         * lib/getdomainname.h: Likewise.
77170         * lib/getgroups.c: Likewise.
77171         * lib/gethostname.c: Likewise.
77172         * lib/gethrxtime.c: Likewise.
77173         * lib/gethrxtime.h: Likewise.
77174         * lib/getloadavg.c: Likewise.
77175         * lib/getndelim2.c: Likewise.
77176         * lib/getndelim2.h: Likewise.
77177         * lib/getnline.c: Likewise.
77178         * lib/getnline.h: Likewise.
77179         * lib/getopt.c: Likewise.
77180         * lib/getopt.in.h: Likewise.
77181         * lib/getopt1.c: Likewise.
77182         * lib/getopt_int.h: Likewise.
77183         * lib/getpagesize.h: Likewise.
77184         * lib/getsubopt.c: Likewise.
77185         * lib/gettime.c: Likewise.
77186         * lib/getugroups.c: Likewise.
77187         * lib/getugroups.h: Likewise.
77188         * lib/getusershell.c: Likewise.
77189         * lib/gl_anyavltree_list1.h: Likewise.
77190         * lib/gl_anyavltree_list2.h: Likewise.
77191         * lib/gl_anyhash_list1.h: Likewise.
77192         * lib/gl_anyhash_list2.h: Likewise.
77193         * lib/gl_anylinked_list1.h: Likewise.
77194         * lib/gl_anylinked_list2.h: Likewise.
77195         * lib/gl_anyrbtree_list1.h: Likewise.
77196         * lib/gl_anyrbtree_list2.h: Likewise.
77197         * lib/gl_anytree_list1.h: Likewise.
77198         * lib/gl_anytree_list2.h: Likewise.
77199         * lib/gl_anytree_oset.h: Likewise.
77200         * lib/gl_anytreehash_list1.h: Likewise.
77201         * lib/gl_anytreehash_list2.h: Likewise.
77202         * lib/gl_array_list.c: Likewise.
77203         * lib/gl_array_list.h: Likewise.
77204         * lib/gl_array_oset.c: Likewise.
77205         * lib/gl_array_oset.h: Likewise.
77206         * lib/gl_avltree_list.c: Likewise.
77207         * lib/gl_avltree_list.h: Likewise.
77208         * lib/gl_avltree_oset.c: Likewise.
77209         * lib/gl_avltree_oset.h: Likewise.
77210         * lib/gl_avltreehash_list.c: Likewise.
77211         * lib/gl_avltreehash_list.h: Likewise.
77212         * lib/gl_carray_list.c: Likewise.
77213         * lib/gl_carray_list.h: Likewise.
77214         * lib/gl_linked_list.c: Likewise.
77215         * lib/gl_linked_list.h: Likewise.
77216         * lib/gl_linkedhash_list.c: Likewise.
77217         * lib/gl_linkedhash_list.h: Likewise.
77218         * lib/gl_list.c: Likewise.
77219         * lib/gl_list.h: Likewise.
77220         * lib/gl_oset.c: Likewise.
77221         * lib/gl_oset.h: Likewise.
77222         * lib/gl_rbtree_list.c: Likewise.
77223         * lib/gl_rbtree_list.h: Likewise.
77224         * lib/gl_rbtree_oset.c: Likewise.
77225         * lib/gl_rbtree_oset.h: Likewise.
77226         * lib/gl_rbtreehash_list.c: Likewise.
77227         * lib/gl_rbtreehash_list.h: Likewise.
77228         * lib/gl_sublist.c: Likewise.
77229         * lib/gl_sublist.h: Likewise.
77230         * lib/group-member.c: Likewise.
77231         * lib/group-member.h: Likewise.
77232         * lib/hard-locale.c: Likewise.
77233         * lib/hard-locale.h: Likewise.
77234         * lib/hash-pjw.c: Likewise.
77235         * lib/hash-pjw.h: Likewise.
77236         * lib/hash-triple.c: Likewise.
77237         * lib/hash.c: Likewise.
77238         * lib/hash.h: Likewise.
77239         * lib/human.c: Likewise.
77240         * lib/human.h: Likewise.
77241         * lib/i-ring.c: Likewise.
77242         * lib/i-ring.h: Likewise.
77243         * lib/idcache.c: Likewise.
77244         * lib/imaxabs.c: Likewise.
77245         * lib/imaxdiv.c: Likewise.
77246         * lib/inet_pton.c: Likewise.
77247         * lib/inet_pton.h: Likewise.
77248         * lib/intprops.h: Likewise.
77249         * lib/inttostr.c: Likewise.
77250         * lib/inttostr.h: Likewise.
77251         * lib/inttypes.in.h: Likewise.
77252         * lib/isapipe.c: Likewise.
77253         * lib/isdir.c: Likewise.
77254         * lib/isnan.c: Likewise.
77255         * lib/isnan.h: Likewise.
77256         * lib/isnanf.c: Likewise.
77257         * lib/isnanf.h: Likewise.
77258         * lib/isnanl-nolibm.h: Likewise.
77259         * lib/isnanl.c: Likewise.
77260         * lib/isnanl.h: Likewise.
77261         * lib/javacomp.c: Likewise.
77262         * lib/javacomp.h: Likewise.
77263         * lib/javaexec.c: Likewise.
77264         * lib/javaexec.h: Likewise.
77265         * lib/javaversion.c: Likewise.
77266         * lib/javaversion.h: Likewise.
77267         * lib/javaversion.java: Likewise.
77268         * lib/lbrkprop.h: Likewise.
77269         * lib/lchmod.h: Likewise.
77270         * lib/lchown.c: Likewise.
77271         * lib/ldexpl.c: Likewise.
77272         * lib/linebreak.c: Likewise.
77273         * lib/linebreak.h: Likewise.
77274         * lib/linebuffer.c: Likewise.
77275         * lib/linebuffer.h: Likewise.
77276         * lib/locale.in.h: Likewise.
77277         * lib/logl.c: Likewise.
77278         * lib/long-options.c: Likewise.
77279         * lib/long-options.h: Likewise.
77280         * lib/lstat.c: Likewise.
77281         * lib/lstat.h: Likewise.
77282         * lib/math.in.h: Likewise.
77283         * lib/mbchar.c: Likewise.
77284         * lib/mbchar.h: Likewise.
77285         * lib/mbfile.h: Likewise.
77286         * lib/mbiter.h: Likewise.
77287         * lib/mbscasecmp.c: Likewise.
77288         * lib/mbscasestr.c: Likewise.
77289         * lib/mbschr.c: Likewise.
77290         * lib/mbscspn.c: Likewise.
77291         * lib/mbslen.c: Likewise.
77292         * lib/mbsncasecmp.c: Likewise.
77293         * lib/mbsnlen.c: Likewise.
77294         * lib/mbspbrk.c: Likewise.
77295         * lib/mbspcasecmp.c: Likewise.
77296         * lib/mbsrchr.c: Likewise.
77297         * lib/mbssep.c: Likewise.
77298         * lib/mbsspn.c: Likewise.
77299         * lib/mbsstr.c: Likewise.
77300         * lib/mbstok_r.c: Likewise.
77301         * lib/mbswidth.c: Likewise.
77302         * lib/mbswidth.h: Likewise.
77303         * lib/mbuiter.h: Likewise.
77304         * lib/memcasecmp.c: Likewise.
77305         * lib/memcasecmp.h: Likewise.
77306         * lib/memchr.c: Likewise.
77307         * lib/memcmp.c: Likewise.
77308         * lib/memcoll.c: Likewise.
77309         * lib/memcoll.h: Likewise.
77310         * lib/memcpy.c: Likewise.
77311         * lib/memrchr.c: Likewise.
77312         * lib/mkancesdirs.c: Likewise.
77313         * lib/mkdir-p.c: Likewise.
77314         * lib/mkdir-p.h: Likewise.
77315         * lib/mkdir.c: Likewise.
77316         * lib/mkdirat.c: Likewise.
77317         * lib/mkdtemp.c: Likewise.
77318         * lib/mkstemp-safer.c: Likewise.
77319         * lib/mkstemp.c: Likewise.
77320         * lib/modechange.c: Likewise.
77321         * lib/modechange.h: Likewise.
77322         * lib/mountlist.c: Likewise.
77323         * lib/mountlist.h: Likewise.
77324         * lib/mpsort.c: Likewise.
77325         * lib/nanosleep.c: Likewise.
77326         * lib/obstack.c: Likewise.
77327         * lib/obstack.h: Likewise.
77328         * lib/open-safer.c: Likewise.
77329         * lib/open.c: Likewise.
77330         * lib/openat-die.c: Likewise.
77331         * lib/openat-priv.h: Likewise.
77332         * lib/openat-proc.c: Likewise.
77333         * lib/openat.c: Likewise.
77334         * lib/openat.h: Likewise.
77335         * lib/pagealign_alloc.c: Likewise.
77336         * lib/pagealign_alloc.h: Likewise.
77337         * lib/physmem.c: Likewise.
77338         * lib/physmem.h: Likewise.
77339         * lib/pipe-safer.c: Likewise.
77340         * lib/pipe.c: Likewise.
77341         * lib/pipe.h: Likewise.
77342         * lib/posixtm.c: Likewise.
77343         * lib/posixtm.h: Likewise.
77344         * lib/posixver.c: Likewise.
77345         * lib/printf-frexp.c: Likewise.
77346         * lib/printf-frexp.h: Likewise.
77347         * lib/printf-frexpl.c: Likewise.
77348         * lib/printf-frexpl.h: Likewise.
77349         * lib/printf.c: Likewise.
77350         * lib/progname.c: Likewise.
77351         * lib/progname.h: Likewise.
77352         * lib/progreloc.c: Likewise.
77353         * lib/putenv.c: Likewise.
77354         * lib/quote.c: Likewise.
77355         * lib/quote.h: Likewise.
77356         * lib/quotearg.c: Likewise.
77357         * lib/quotearg.h: Likewise.
77358         * lib/raise.c: Likewise.
77359         * lib/readline.c: Likewise.
77360         * lib/readline.h: Likewise.
77361         * lib/readlink.c: Likewise.
77362         * lib/readtokens.c: Likewise.
77363         * lib/readtokens.h: Likewise.
77364         * lib/readtokens0.c: Likewise.
77365         * lib/readtokens0.h: Likewise.
77366         * lib/readutmp.c: Likewise.
77367         * lib/readutmp.h: Likewise.
77368         * lib/realloc.c: Likewise.
77369         * lib/relocwrapper.c: Likewise.
77370         * lib/rename-dest-slash.c: Likewise.
77371         * lib/rename.c: Likewise.
77372         * lib/rmdir.c: Likewise.
77373         * lib/rpmatch.c: Likewise.
77374         * lib/safe-read.c: Likewise.
77375         * lib/safe-read.h: Likewise.
77376         * lib/safe-write.c: Likewise.
77377         * lib/safe-write.h: Likewise.
77378         * lib/same-inode.h: Likewise.
77379         * lib/same.c: Likewise.
77380         * lib/same.h: Likewise.
77381         * lib/save-cwd.c: Likewise.
77382         * lib/save-cwd.h: Likewise.
77383         * lib/savedir.c: Likewise.
77384         * lib/savedir.h: Likewise.
77385         * lib/savewd.c: Likewise.
77386         * lib/savewd.h: Likewise.
77387         * lib/search.in.h: Likewise.
77388         * lib/setenv.c: Likewise.
77389         * lib/setenv.h: Likewise.
77390         * lib/settime.c: Likewise.
77391         * lib/sh-quote.c: Likewise.
77392         * lib/sh-quote.h: Likewise.
77393         * lib/sig2str.c: Likewise.
77394         * lib/sig2str.h: Likewise.
77395         * lib/signal.in.h: Likewise.
77396         * lib/signbitd.c: Likewise.
77397         * lib/signbitf.c: Likewise.
77398         * lib/signbitl.c: Likewise.
77399         * lib/sigprocmask.c: Likewise.
77400         * lib/sincosl.c: Likewise.
77401         * lib/sleep.c: Likewise.
77402         * lib/sprintf.c: Likewise.
77403         * lib/sqrtl.c: Likewise.
77404         * lib/stat-time.h: Likewise.
77405         * lib/stdio--.h: Likewise.
77406         * lib/stdio-safer.h: Likewise.
77407         * lib/stdlib--.h: Likewise.
77408         * lib/stdlib-safer.h: Likewise.
77409         * lib/stdlib.in.h: Likewise.
77410         * lib/stpcpy.c: Likewise.
77411         * lib/stpncpy.c: Likewise.
77412         * lib/strchrnul.c: Likewise.
77413         * lib/strcspn.c: Likewise.
77414         * lib/strerror.c: Likewise.
77415         * lib/strftime.c: Likewise.
77416         * lib/strftime.h: Likewise.
77417         * lib/striconveh.c: Likewise.
77418         * lib/striconveh.h: Likewise.
77419         * lib/striconveha.c: Likewise.
77420         * lib/striconveha.h: Likewise.
77421         * lib/stripslash.c: Likewise.
77422         * lib/strnlen1.c: Likewise.
77423         * lib/strnlen1.h: Likewise.
77424         * lib/strtod.c: Likewise.
77425         * lib/strtoimax.c: Likewise.
77426         * lib/strtok_r.c: Likewise.
77427         * lib/strtol.c: Likewise.
77428         * lib/strtoll.c: Likewise.
77429         * lib/strtoul.c: Likewise.
77430         * lib/strtoull.c: Likewise.
77431         * lib/sysexits.in.h: Likewise.
77432         * lib/tempname.c: Likewise.
77433         * lib/tempname.h: Likewise.
77434         * lib/timespec.h: Likewise.
77435         * lib/tls.c: Likewise.
77436         * lib/tls.h: Likewise.
77437         * lib/tmpdir.c: Likewise.
77438         * lib/tmpdir.h: Likewise.
77439         * lib/tmpfile-safer.c: Likewise.
77440         * lib/tmpfile.c: Likewise.
77441         * lib/trigl.c: Likewise.
77442         * lib/trigl.h: Likewise.
77443         * lib/trim.c: Likewise.
77444         * lib/trim.h: Likewise.
77445         * lib/trunc.c: Likewise.
77446         * lib/truncf.c: Likewise.
77447         * lib/truncl.c: Likewise.
77448         * lib/tsearch.c: Likewise.
77449         * lib/unicodeio.c: Likewise.
77450         * lib/unicodeio.h: Likewise.
77451         * lib/unistd--.h: Likewise.
77452         * lib/unistd-safer.h: Likewise.
77453         * lib/unistdio/ulc-fprintf.c: Likewise.
77454         * lib/unistdio/ulc-vfprintf.c: Likewise.
77455         * lib/unlinkdir.c: Likewise.
77456         * lib/unlinkdir.h: Likewise.
77457         * lib/unlocked-io.h: Likewise.
77458         * lib/unsetenv.c: Likewise.
77459         * lib/userspec.c: Likewise.
77460         * lib/utime.c: Likewise.
77461         * lib/utimecmp.c: Likewise.
77462         * lib/utimecmp.h: Likewise.
77463         * lib/utimens.c: Likewise.
77464         * lib/verify.h: Likewise.
77465         * lib/verror.c: Likewise.
77466         * lib/verror.h: Likewise.
77467         * lib/version-etc-fsf.c: Likewise.
77468         * lib/version-etc.c: Likewise.
77469         * lib/version-etc.h: Likewise.
77470         * lib/vfprintf.c: Likewise.
77471         * lib/vprintf.c: Likewise.
77472         * lib/vsprintf.c: Likewise.
77473         * lib/w32spawn.h: Likewise.
77474         * lib/wait-process.c: Likewise.
77475         * lib/wait-process.h: Likewise.
77476         * lib/wcwidth.c: Likewise.
77477         * lib/write-any-file.c: Likewise.
77478         * lib/xalloc-die.c: Likewise.
77479         * lib/xalloc.h: Likewise.
77480         * lib/xasprintf.c: Likewise.
77481         * lib/xgetcwd.c: Likewise.
77482         * lib/xgetcwd.h: Likewise.
77483         * lib/xgetdomainname.c: Likewise.
77484         * lib/xgetdomainname.h: Likewise.
77485         * lib/xgethostname.c: Likewise.
77486         * lib/xmalloc.c: Likewise.
77487         * lib/xmalloca.c: Likewise.
77488         * lib/xmalloca.h: Likewise.
77489         * lib/xmemcoll.c: Likewise.
77490         * lib/xnanosleep.c: Likewise.
77491         * lib/xreadlink.c: Likewise.
77492         * lib/xreadlink.h: Likewise.
77493         * lib/xsetenv.c: Likewise.
77494         * lib/xsetenv.h: Likewise.
77495         * lib/xstriconv.c: Likewise.
77496         * lib/xstriconv.h: Likewise.
77497         * lib/xstrndup.c: Likewise.
77498         * lib/xstrndup.h: Likewise.
77499         * lib/xstrtod.c: Likewise.
77500         * lib/xstrtod.h: Likewise.
77501         * lib/xstrtol-error.c: Likewise.
77502         * lib/xstrtol.c: Likewise.
77503         * lib/xstrtol.h: Likewise.
77504         * lib/xtime.h: Likewise.
77505         * lib/xvasprintf.c: Likewise.
77506         * lib/xvasprintf.h: Likewise.
77507         * lib/yesno.c: Likewise.
77508         * lib/yesno.h: Likewise.
77509         * posix-modules: Likewise.
77510         * tests/test-alloca-opt.c: Likewise.
77511         * tests/test-arcfour.c: Likewise.
77512         * tests/test-arctwo.c: Likewise.
77513         * tests/test-argmatch.c: Likewise.
77514         * tests/test-argp-2.sh: Likewise.
77515         * tests/test-argp.c: Likewise.
77516         * tests/test-arpa_inet.c: Likewise.
77517         * tests/test-array_list.c: Likewise.
77518         * tests/test-array_oset.c: Likewise.
77519         * tests/test-atexit.c: Likewise.
77520         * tests/test-avltree_list.c: Likewise.
77521         * tests/test-avltree_oset.c: Likewise.
77522         * tests/test-avltreehash_list.c: Likewise.
77523         * tests/test-base64.c: Likewise.
77524         * tests/test-binary-io.c: Likewise.
77525         * tests/test-byteswap.c: Likewise.
77526         * tests/test-c-ctype.c: Likewise.
77527         * tests/test-c-strcasecmp.c: Likewise.
77528         * tests/test-c-strcasestr.c: Likewise.
77529         * tests/test-c-strncasecmp.c: Likewise.
77530         * tests/test-c-strstr.c: Likewise.
77531         * tests/test-canonicalize-lgpl.c: Likewise.
77532         * tests/test-canonicalize.c: Likewise.
77533         * tests/test-carray_list.c: Likewise.
77534         * tests/test-ceilf.c: Likewise.
77535         * tests/test-ceill.c: Likewise.
77536         * tests/test-count-one-bits.c: Likewise.
77537         * tests/test-crc.c: Likewise.
77538         * tests/test-dirname.c: Likewise.
77539         * tests/test-fbufmode.c: Likewise.
77540         * tests/test-fcntl.c: Likewise.
77541         * tests/test-fflush.c: Likewise.
77542         * tests/test-floorf.c: Likewise.
77543         * tests/test-floorl.c: Likewise.
77544         * tests/test-fopen.c: Likewise.
77545         * tests/test-fprintf-posix.c: Likewise.
77546         * tests/test-fprintf-posix.h: Likewise.
77547         * tests/test-fpurge.c: Likewise.
77548         * tests/test-freadable.c: Likewise.
77549         * tests/test-freadahead.c: Likewise.
77550         * tests/test-freading.c: Likewise.
77551         * tests/test-freopen.c: Likewise.
77552         * tests/test-frexp.c: Likewise.
77553         * tests/test-frexpl.c: Likewise.
77554         * tests/test-fseek.c: Likewise.
77555         * tests/test-fseeko.c: Likewise.
77556         * tests/test-fseterr.c: Likewise.
77557         * tests/test-fstrcmp.c: Likewise.
77558         * tests/test-ftell.c: Likewise.
77559         * tests/test-ftello.c: Likewise.
77560         * tests/test-fwritable.c: Likewise.
77561         * tests/test-fwriting.c: Likewise.
77562         * tests/test-getaddrinfo.c: Likewise.
77563         * tests/test-getpass.c: Likewise.
77564         * tests/test-gettimeofday.c: Likewise.
77565         * tests/test-hmac-md5.c: Likewise.
77566         * tests/test-hmac-sha1.c: Likewise.
77567         * tests/test-iconv.c: Likewise.
77568         * tests/test-iconvme.c: Likewise.
77569         * tests/test-inttypes.c: Likewise.
77570         * tests/test-isnan.c: Likewise.
77571         * tests/test-isnanf.c: Likewise.
77572         * tests/test-isnanl-nolibm.c: Likewise.
77573         * tests/test-isnanl.c: Likewise.
77574         * tests/test-isnanl.h: Likewise.
77575         * tests/test-ldexpl.c: Likewise.
77576         * tests/test-linked_list.c: Likewise.
77577         * tests/test-linkedhash_list.c: Likewise.
77578         * tests/test-locale.c: Likewise.
77579         * tests/test-localename.c: Likewise.
77580         * tests/test-lock.c: Likewise.
77581         * tests/test-lseek.c: Likewise.
77582         * tests/test-malloca.c: Likewise.
77583         * tests/test-math.c: Likewise.
77584         * tests/test-mbscasecmp.c: Likewise.
77585         * tests/test-mbscasestr1.c: Likewise.
77586         * tests/test-mbscasestr2.c: Likewise.
77587         * tests/test-mbscasestr3.c: Likewise.
77588         * tests/test-mbscasestr4.c: Likewise.
77589         * tests/test-mbschr.c: Likewise.
77590         * tests/test-mbscspn.c: Likewise.
77591         * tests/test-mbsncasecmp.c: Likewise.
77592         * tests/test-mbspbrk.c: Likewise.
77593         * tests/test-mbspcasecmp.c: Likewise.
77594         * tests/test-mbsrchr.c: Likewise.
77595         * tests/test-mbsspn.c: Likewise.
77596         * tests/test-mbsstr1.c: Likewise.
77597         * tests/test-mbsstr2.c: Likewise.
77598         * tests/test-mbsstr3.c: Likewise.
77599         * tests/test-md5.c: Likewise.
77600         * tests/test-memmem.c: Likewise.
77601         * tests/test-netinet_in.c: Likewise.
77602         * tests/test-open.c: Likewise.
77603         * tests/test-printf-frexp.c: Likewise.
77604         * tests/test-printf-frexpl.c: Likewise.
77605         * tests/test-printf-posix.c: Likewise.
77606         * tests/test-printf-posix.h: Likewise.
77607         * tests/test-rbtree_list.c: Likewise.
77608         * tests/test-rbtree_oset.c: Likewise.
77609         * tests/test-rbtreehash_list.c: Likewise.
77610         * tests/test-read-file.c: Likewise.
77611         * tests/test-rijndael.c: Likewise.
77612         * tests/test-search.c: Likewise.
77613         * tests/test-signbit.c: Likewise.
77614         * tests/test-sleep.c: Likewise.
77615         * tests/test-snprintf-posix.c: Likewise.
77616         * tests/test-snprintf-posix.h: Likewise.
77617         * tests/test-snprintf.c: Likewise.
77618         * tests/test-sprintf-posix.c: Likewise.
77619         * tests/test-sprintf-posix.h: Likewise.
77620         * tests/test-stat-time.c: Likewise.
77621         * tests/test-stdbool.c: Likewise.
77622         * tests/test-stdint.c: Likewise.
77623         * tests/test-stdio.c: Likewise.
77624         * tests/test-stdlib.c: Likewise.
77625         * tests/test-stpncpy.c: Likewise.
77626         * tests/test-strcasestr.c: Likewise.
77627         * tests/test-striconv.c: Likewise.
77628         * tests/test-striconveh.c: Likewise.
77629         * tests/test-striconveha.c: Likewise.
77630         * tests/test-string.c: Likewise.
77631         * tests/test-sys_select.c: Likewise.
77632         * tests/test-sys_socket.c: Likewise.
77633         * tests/test-sys_stat.c: Likewise.
77634         * tests/test-sys_time.c: Likewise.
77635         * tests/test-sysexits.c: Likewise.
77636         * tests/test-time.c: Likewise.
77637         * tests/test-tls.c: Likewise.
77638         * tests/test-trunc.c: Likewise.
77639         * tests/test-truncf.c: Likewise.
77640         * tests/test-truncl.c: Likewise.
77641         * tests/test-unistd.c: Likewise.
77642         * tests/test-vasnprintf-posix.c: Likewise.
77643         * tests/test-vasnprintf-posix2.c: Likewise.
77644         * tests/test-vasnprintf.c: Likewise.
77645         * tests/test-vasprintf-posix.c: Likewise.
77646         * tests/test-vasprintf.c: Likewise.
77647         * tests/test-verify.c: Likewise.
77648         * tests/test-vfprintf-posix.c: Likewise.
77649         * tests/test-vprintf-posix.c: Likewise.
77650         * tests/test-vsnprintf-posix.c: Likewise.
77651         * tests/test-vsnprintf.c: Likewise.
77652         * tests/test-vsprintf-posix.c: Likewise.
77653         * tests/test-wchar.c: Likewise.
77654         * tests/test-wctype.c: Likewise.
77655         * tests/test-wcwidth.c: Likewise.
77656         * tests/test-xstrtol.c: Likewise.
77657         * tests/test-xvasprintf.c: Likewise.
77658         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
77659         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
77660         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
77661         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
77662         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
77663         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
77664         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
77665         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
77666         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
77667         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
77668         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
77669         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
77670         * tests/uniname/test-uninames.c: Likewise.
77671         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
77672         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
77673         * tests/unistdio/test-u16-printf1.h: Likewise.
77674         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
77675         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
77676         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
77677         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
77678         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
77679         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
77680         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
77681         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
77682         * tests/unistdio/test-u32-printf1.h: Likewise.
77683         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
77684         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
77685         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
77686         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
77687         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
77688         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
77689         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
77690         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
77691         * tests/unistdio/test-u8-printf1.h: Likewise.
77692         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
77693         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
77694         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
77695         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
77696         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
77697         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
77698         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
77699         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
77700         * tests/unistdio/test-ulc-printf1.h: Likewise.
77701         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
77702         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
77703         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
77704         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
77705         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
77706         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
77707         * tests/uniwidth/test-u16-strwidth.c: Likewise.
77708         * tests/uniwidth/test-u16-width.c: Likewise.
77709         * tests/uniwidth/test-u32-strwidth.c: Likewise.
77710         * tests/uniwidth/test-u32-width.c: Likewise.
77711         * tests/uniwidth/test-u8-strwidth.c: Likewise.
77712         * tests/uniwidth/test-u8-width.c: Likewise.
77713         * tests/uniwidth/test-uc_width.c: Likewise.
77714         * config/srclist-update: Likewise.
77715         (fixlicense): Update to GPLv3+.
77717         Change copyright notice from LGPLv2.1+ to LGPLv3+.
77718         * tests/test-tsearch.c: Change copyright notice.
77720         Change copyright notice from LGPLv2.0+ to LGPLv3+.
77721         * lib/c-strcaseeq.h: Change copyright notice.
77722         * lib/streq.h: Likewise.
77723         * lib/uniconv.h: Likewise.
77724         * lib/uniconv/u-conv-from-enc.h: Likewise.
77725         * lib/uniconv/u-conv-to-enc.h: Likewise.
77726         * lib/uniconv/u-strconv-from-enc.h: Likewise.
77727         * lib/uniconv/u-strconv-to-enc.h: Likewise.
77728         * lib/uniconv/u16-conv-from-enc.c: Likewise.
77729         * lib/uniconv/u16-conv-to-enc.c: Likewise.
77730         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
77731         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
77732         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
77733         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
77734         * lib/uniconv/u32-conv-from-enc.c: Likewise.
77735         * lib/uniconv/u32-conv-to-enc.c: Likewise.
77736         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
77737         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
77738         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
77739         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
77740         * lib/uniconv/u8-conv-from-enc.c: Likewise.
77741         * lib/uniconv/u8-conv-to-enc.c: Likewise.
77742         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
77743         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
77744         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
77745         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
77746         * lib/uniname.h: Likewise.
77747         * lib/uniname/uniname.c: Likewise.
77748         * lib/unistdio.h: Likewise.
77749         * lib/unistdio/u-asnprintf.h: Likewise.
77750         * lib/unistdio/u-asprintf.h: Likewise.
77751         * lib/unistdio/u-printf-args.c: Likewise.
77752         * lib/unistdio/u-printf-args.h: Likewise.
77753         * lib/unistdio/u-printf-parse.h: Likewise.
77754         * lib/unistdio/u-snprintf.h: Likewise.
77755         * lib/unistdio/u-sprintf.h: Likewise.
77756         * lib/unistdio/u-vasprintf.h: Likewise.
77757         * lib/unistdio/u-vsnprintf.h: Likewise.
77758         * lib/unistdio/u-vsprintf.h: Likewise.
77759         * lib/unistdio/u16-asnprintf.c: Likewise.
77760         * lib/unistdio/u16-asprintf.c: Likewise.
77761         * lib/unistdio/u16-printf-parse.c: Likewise.
77762         * lib/unistdio/u16-snprintf.c: Likewise.
77763         * lib/unistdio/u16-sprintf.c: Likewise.
77764         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
77765         * lib/unistdio/u16-u16-asprintf.c: Likewise.
77766         * lib/unistdio/u16-u16-snprintf.c: Likewise.
77767         * lib/unistdio/u16-u16-sprintf.c: Likewise.
77768         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
77769         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
77770         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
77771         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
77772         * lib/unistdio/u16-vasnprintf.c: Likewise.
77773         * lib/unistdio/u16-vasprintf.c: Likewise.
77774         * lib/unistdio/u16-vsnprintf.c: Likewise.
77775         * lib/unistdio/u16-vsprintf.c: Likewise.
77776         * lib/unistdio/u32-asnprintf.c: Likewise.
77777         * lib/unistdio/u32-asprintf.c: Likewise.
77778         * lib/unistdio/u32-printf-parse.c: Likewise.
77779         * lib/unistdio/u32-snprintf.c: Likewise.
77780         * lib/unistdio/u32-sprintf.c: Likewise.
77781         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
77782         * lib/unistdio/u32-u32-asprintf.c: Likewise.
77783         * lib/unistdio/u32-u32-snprintf.c: Likewise.
77784         * lib/unistdio/u32-u32-sprintf.c: Likewise.
77785         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
77786         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
77787         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
77788         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
77789         * lib/unistdio/u32-vasnprintf.c: Likewise.
77790         * lib/unistdio/u32-vasprintf.c: Likewise.
77791         * lib/unistdio/u32-vsnprintf.c: Likewise.
77792         * lib/unistdio/u32-vsprintf.c: Likewise.
77793         * lib/unistdio/u8-asnprintf.c: Likewise.
77794         * lib/unistdio/u8-asprintf.c: Likewise.
77795         * lib/unistdio/u8-printf-parse.c: Likewise.
77796         * lib/unistdio/u8-snprintf.c: Likewise.
77797         * lib/unistdio/u8-sprintf.c: Likewise.
77798         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
77799         * lib/unistdio/u8-u8-asprintf.c: Likewise.
77800         * lib/unistdio/u8-u8-snprintf.c: Likewise.
77801         * lib/unistdio/u8-u8-sprintf.c: Likewise.
77802         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
77803         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
77804         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
77805         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
77806         * lib/unistdio/u8-vasnprintf.c: Likewise.
77807         * lib/unistdio/u8-vasprintf.c: Likewise.
77808         * lib/unistdio/u8-vsnprintf.c: Likewise.
77809         * lib/unistdio/u8-vsprintf.c: Likewise.
77810         * lib/unistdio/ulc-asnprintf.c: Likewise.
77811         * lib/unistdio/ulc-asprintf.c: Likewise.
77812         * lib/unistdio/ulc-printf-parse.c: Likewise.
77813         * lib/unistdio/ulc-snprintf.c: Likewise.
77814         * lib/unistdio/ulc-sprintf.c: Likewise.
77815         * lib/unistdio/ulc-vasnprintf.c: Likewise.
77816         * lib/unistdio/ulc-vasprintf.c: Likewise.
77817         * lib/unistdio/ulc-vsnprintf.c: Likewise.
77818         * lib/unistdio/ulc-vsprintf.c: Likewise.
77819         * lib/unistr.h: Likewise.
77820         * lib/unistr/u-cpy-alloc.h: Likewise.
77821         * lib/unistr/u-cpy.h: Likewise.
77822         * lib/unistr/u-endswith.h: Likewise.
77823         * lib/unistr/u-move.h: Likewise.
77824         * lib/unistr/u-set.h: Likewise.
77825         * lib/unistr/u-startswith.h: Likewise.
77826         * lib/unistr/u-stpcpy.h: Likewise.
77827         * lib/unistr/u-stpncpy.h: Likewise.
77828         * lib/unistr/u-strcat.h: Likewise.
77829         * lib/unistr/u-strcpy.h: Likewise.
77830         * lib/unistr/u-strcspn.h: Likewise.
77831         * lib/unistr/u-strdup.h: Likewise.
77832         * lib/unistr/u-strlen.h: Likewise.
77833         * lib/unistr/u-strncat.h: Likewise.
77834         * lib/unistr/u-strncpy.h: Likewise.
77835         * lib/unistr/u-strnlen.h: Likewise.
77836         * lib/unistr/u-strpbrk.h: Likewise.
77837         * lib/unistr/u-strspn.h: Likewise.
77838         * lib/unistr/u-strstr.h: Likewise.
77839         * lib/unistr/u-strtok.h: Likewise.
77840         * lib/unistr/u16-check.c: Likewise.
77841         * lib/unistr/u16-chr.c: Likewise.
77842         * lib/unistr/u16-cmp.c: Likewise.
77843         * lib/unistr/u16-cpy-alloc.c: Likewise.
77844         * lib/unistr/u16-cpy.c: Likewise.
77845         * lib/unistr/u16-endswith.c: Likewise.
77846         * lib/unistr/u16-mblen.c: Likewise.
77847         * lib/unistr/u16-mbsnlen.c: Likewise.
77848         * lib/unistr/u16-mbtouc-aux.c: Likewise.
77849         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
77850         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
77851         * lib/unistr/u16-mbtouc.c: Likewise.
77852         * lib/unistr/u16-mbtoucr.c: Likewise.
77853         * lib/unistr/u16-move.c: Likewise.
77854         * lib/unistr/u16-next.c: Likewise.
77855         * lib/unistr/u16-prev.c: Likewise.
77856         * lib/unistr/u16-set.c: Likewise.
77857         * lib/unistr/u16-startswith.c: Likewise.
77858         * lib/unistr/u16-stpcpy.c: Likewise.
77859         * lib/unistr/u16-stpncpy.c: Likewise.
77860         * lib/unistr/u16-strcat.c: Likewise.
77861         * lib/unistr/u16-strchr.c: Likewise.
77862         * lib/unistr/u16-strcmp.c: Likewise.
77863         * lib/unistr/u16-strcpy.c: Likewise.
77864         * lib/unistr/u16-strcspn.c: Likewise.
77865         * lib/unistr/u16-strdup.c: Likewise.
77866         * lib/unistr/u16-strlen.c: Likewise.
77867         * lib/unistr/u16-strmblen.c: Likewise.
77868         * lib/unistr/u16-strmbtouc.c: Likewise.
77869         * lib/unistr/u16-strncat.c: Likewise.
77870         * lib/unistr/u16-strncmp.c: Likewise.
77871         * lib/unistr/u16-strncpy.c: Likewise.
77872         * lib/unistr/u16-strnlen.c: Likewise.
77873         * lib/unistr/u16-strpbrk.c: Likewise.
77874         * lib/unistr/u16-strrchr.c: Likewise.
77875         * lib/unistr/u16-strspn.c: Likewise.
77876         * lib/unistr/u16-strstr.c: Likewise.
77877         * lib/unistr/u16-strtok.c: Likewise.
77878         * lib/unistr/u16-to-u32.c: Likewise.
77879         * lib/unistr/u16-to-u8.c: Likewise.
77880         * lib/unistr/u16-uctomb-aux.c: Likewise.
77881         * lib/unistr/u16-uctomb.c: Likewise.
77882         * lib/unistr/u32-check.c: Likewise.
77883         * lib/unistr/u32-chr.c: Likewise.
77884         * lib/unistr/u32-cmp.c: Likewise.
77885         * lib/unistr/u32-cpy-alloc.c: Likewise.
77886         * lib/unistr/u32-cpy.c: Likewise.
77887         * lib/unistr/u32-endswith.c: Likewise.
77888         * lib/unistr/u32-mblen.c: Likewise.
77889         * lib/unistr/u32-mbsnlen.c: Likewise.
77890         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
77891         * lib/unistr/u32-mbtouc.c: Likewise.
77892         * lib/unistr/u32-mbtoucr.c: Likewise.
77893         * lib/unistr/u32-move.c: Likewise.
77894         * lib/unistr/u32-next.c: Likewise.
77895         * lib/unistr/u32-prev.c: Likewise.
77896         * lib/unistr/u32-set.c: Likewise.
77897         * lib/unistr/u32-startswith.c: Likewise.
77898         * lib/unistr/u32-stpcpy.c: Likewise.
77899         * lib/unistr/u32-stpncpy.c: Likewise.
77900         * lib/unistr/u32-strcat.c: Likewise.
77901         * lib/unistr/u32-strchr.c: Likewise.
77902         * lib/unistr/u32-strcmp.c: Likewise.
77903         * lib/unistr/u32-strcpy.c: Likewise.
77904         * lib/unistr/u32-strcspn.c: Likewise.
77905         * lib/unistr/u32-strdup.c: Likewise.
77906         * lib/unistr/u32-strlen.c: Likewise.
77907         * lib/unistr/u32-strmblen.c: Likewise.
77908         * lib/unistr/u32-strmbtouc.c: Likewise.
77909         * lib/unistr/u32-strncat.c: Likewise.
77910         * lib/unistr/u32-strncmp.c: Likewise.
77911         * lib/unistr/u32-strncpy.c: Likewise.
77912         * lib/unistr/u32-strnlen.c: Likewise.
77913         * lib/unistr/u32-strpbrk.c: Likewise.
77914         * lib/unistr/u32-strrchr.c: Likewise.
77915         * lib/unistr/u32-strspn.c: Likewise.
77916         * lib/unistr/u32-strstr.c: Likewise.
77917         * lib/unistr/u32-strtok.c: Likewise.
77918         * lib/unistr/u32-to-u16.c: Likewise.
77919         * lib/unistr/u32-to-u8.c: Likewise.
77920         * lib/unistr/u32-uctomb.c: Likewise.
77921         * lib/unistr/u8-check.c: Likewise.
77922         * lib/unistr/u8-chr.c: Likewise.
77923         * lib/unistr/u8-cmp.c: Likewise.
77924         * lib/unistr/u8-cpy-alloc.c: Likewise.
77925         * lib/unistr/u8-cpy.c: Likewise.
77926         * lib/unistr/u8-endswith.c: Likewise.
77927         * lib/unistr/u8-mblen.c: Likewise.
77928         * lib/unistr/u8-mbsnlen.c: Likewise.
77929         * lib/unistr/u8-mbtouc-aux.c: Likewise.
77930         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
77931         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
77932         * lib/unistr/u8-mbtouc.c: Likewise.
77933         * lib/unistr/u8-mbtoucr.c: Likewise.
77934         * lib/unistr/u8-move.c: Likewise.
77935         * lib/unistr/u8-next.c: Likewise.
77936         * lib/unistr/u8-prev.c: Likewise.
77937         * lib/unistr/u8-set.c: Likewise.
77938         * lib/unistr/u8-startswith.c: Likewise.
77939         * lib/unistr/u8-stpcpy.c: Likewise.
77940         * lib/unistr/u8-stpncpy.c: Likewise.
77941         * lib/unistr/u8-strcat.c: Likewise.
77942         * lib/unistr/u8-strchr.c: Likewise.
77943         * lib/unistr/u8-strcmp.c: Likewise.
77944         * lib/unistr/u8-strcpy.c: Likewise.
77945         * lib/unistr/u8-strcspn.c: Likewise.
77946         * lib/unistr/u8-strdup.c: Likewise.
77947         * lib/unistr/u8-strlen.c: Likewise.
77948         * lib/unistr/u8-strmblen.c: Likewise.
77949         * lib/unistr/u8-strmbtouc.c: Likewise.
77950         * lib/unistr/u8-strncat.c: Likewise.
77951         * lib/unistr/u8-strncmp.c: Likewise.
77952         * lib/unistr/u8-strncpy.c: Likewise.
77953         * lib/unistr/u8-strnlen.c: Likewise.
77954         * lib/unistr/u8-strpbrk.c: Likewise.
77955         * lib/unistr/u8-strrchr.c: Likewise.
77956         * lib/unistr/u8-strspn.c: Likewise.
77957         * lib/unistr/u8-strstr.c: Likewise.
77958         * lib/unistr/u8-strtok.c: Likewise.
77959         * lib/unistr/u8-to-u16.c: Likewise.
77960         * lib/unistr/u8-to-u32.c: Likewise.
77961         * lib/unistr/u8-uctomb-aux.c: Likewise.
77962         * lib/unistr/u8-uctomb.c: Likewise.
77963         * lib/unitypes.h: Likewise.
77964         * lib/uniwidth.h: Likewise.
77965         * lib/uniwidth/cjk.h: Likewise.
77966         * lib/uniwidth/u16-strwidth.c: Likewise.
77967         * lib/uniwidth/u16-width.c: Likewise.
77968         * lib/uniwidth/u32-strwidth.c: Likewise.
77969         * lib/uniwidth/u32-width.c: Likewise.
77970         * lib/uniwidth/u8-strwidth.c: Likewise.
77971         * lib/uniwidth/u8-width.c: Likewise.
77972         * lib/uniwidth/width.c: Likewise.
77974 2007-10-07  Bruno Haible  <bruno@clisp.org>
77976         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
77977         The file is still under LGPL (see modules/inttypes).
77979 2007-10-06  Bruno Haible  <bruno@clisp.org>
77981         * modules/trunc (Dependencies): Add 'extensions'.
77982         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
77983         Reported by Ben Pfaff <blp@gnu.org>.
77985 2007-10-06  Bruno Haible  <bruno@clisp.org>
77987         * modules/freopen-tests: New file.
77988         * tests/test-freopen.c: New file.
77990         * modules/fopen-tests: New file.
77991         * tests/test-fopen.c: New file.
77993         * modules/fopen: New file.
77994         * lib/fopen.c: New file.
77995         * m4/fopen.m4: New file.
77996         * modules/freopen: New file.
77997         * lib/freopen.c: New file.
77998         * m4/freopen.m4: New file.
77999         * lib/stdio.in.h (fopen, freopen): New declarations.
78000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
78001         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
78002         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
78003         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
78004         * doc/functions/fopen.texi: Mention the 'fopen' module.
78005         * doc/functions/freopen.texi: Mention the 'freopen' module.
78007 2007-10-06  Bruno Haible  <bruno@clisp.org>
78009         * modules/open-tests: New file.
78010         * tests/test-open.c: New file.
78012         * modules/open: New file.
78013         * lib/open.c: New file.
78014         * m4/open.m4: New file.
78015         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
78016         lib/open.c does.
78017         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
78018         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
78019         macros.
78020         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
78021         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
78022         REPLACE_OPEN.
78023         * doc/functions/open.texi: Mention the 'open' module.
78025 2007-10-04  Bruno Haible  <bruno@clisp.org>
78027         * modules/ceill-tests: New file.
78028         * tests/test-ceill.c: New file.
78030         * modules/ceill: New file.
78031         * lib/ceill.c: Replace entire file.
78032         * m4/ceill.m4: New file.
78033         * lib/math.in.h (ceill): Replace declaration.
78034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
78035         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
78036         * doc/functions/ceill.texi: Mention the 'ceill' module.
78037         * modules/mathl (Files): Remove lib/ceill.c.
78038         (Depends-on): Add ceill.
78040 2007-10-04  Bruno Haible  <bruno@clisp.org>
78042         * modules/ceilf-tests: New file.
78043         * tests/test-ceilf.c: New file.
78045         * modules/ceilf: New file.
78046         * lib/ceil.c: New file.
78047         * lib/ceilf.c: New file.
78048         * m4/ceilf.m4: New file.
78049         * lib/math.in.h (ceilf): New declaration.
78050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
78051         HAVE_DECL_CEILF.
78052         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
78053         HAVE_DECL_CEILF.
78054         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
78056 2007-10-04  Bruno Haible  <bruno@clisp.org>
78058         * modules/floorl-tests: New file.
78059         * tests/test-floorl.c: New file.
78061         * modules/floorl: New file.
78062         * lib/floorl.c: Replace entire file.
78063         * m4/floorl.m4: New file.
78064         * lib/math.in.h (floorl): Replace declaration.
78065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
78066         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
78067         * doc/functions/floorl.texi: Mention the 'floorl' module.
78068         * modules/mathl (Files): Remove lib/floorl.c.
78069         (Depends-on): Add floorl.
78071 2007-10-04  Bruno Haible  <bruno@clisp.org>
78073         * modules/floorf-tests: New file.
78074         * tests/test-floorf.c: New file.
78076         * modules/floorf: New file.
78077         * lib/floor.c: New file.
78078         * lib/floorf.c: New file.
78079         * m4/floorf.m4: New file.
78080         * lib/math.in.h (floorf): New declaration.
78081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
78082         HAVE_DECL_FLOORF.
78083         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
78084         HAVE_DECL_FLOORF.
78085         * doc/functions/floorf.texi: Mention the 'floorf' module.
78087 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
78088             Bruno Haible  <bruno@clisp.org>
78090         Advertise for the Git server instead of the CVS server.
78091         * doc/gnulib-intro.texi (Steady Development): Mention the Git
78092         repository instead of the CVS one.
78093         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
78094         about all VCS systems generically.
78095         * doc/gnulib.texi (Introduction): Capitalize `Git'.
78097 2007-10-04  Bruno Haible  <bruno@clisp.org>
78099         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
78100         means.
78101         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
78103 2007-10-04  Bruno Haible  <bruno@clisp.org>
78105         * modules/truncl-tests: New file.
78106         * tests/test-truncl.c: New file.
78108         * modules/truncl: New file.
78109         * lib/truncl.c: New file.
78110         * m4/truncl.m4: New file.
78111         * lib/math.in.h (truncl): New declaration.
78112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
78113         HAVE_DECL_TRUNCL.
78114         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
78115         HAVE_DECL_TRUNCL.
78116         * doc/functions/truncl.texi: Mention the 'truncl' module.
78118 2007-10-04  Bruno Haible  <bruno@clisp.org>
78120         * modules/truncf-tests: New file.
78121         * tests/test-truncf.c: New file.
78123         * modules/truncf: New file.
78124         * lib/trunc.c: Make paramerizable through USE_* macros.
78125         * lib/truncf.c: New file.
78126         * m4/truncf.m4: New file.
78127         * lib/math.in.h (truncf): New declaration.
78128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
78129         HAVE_DECL_TRUNCF.
78130         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
78131         HAVE_DECL_TRUNCF.
78132         * doc/functions/truncf.texi: Mention the 'truncf' module.
78134 2007-10-03  Bruno Haible  <bruno@clisp.org>
78136         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
78137         augmentation also for tests modules.
78138         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
78139         * modules/atexit-tests (Makefile.am): Likewise.
78140         * modules/binary-io-tests (Makefile.am): Likewise.
78141         * modules/c-strcase-tests (Makefile.am): Likewise.
78142         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
78143         * modules/canonicalize-tests (Makefile.am): Likewise.
78144         * modules/closein-tests (Makefile.am): Likewise.
78145         * modules/fprintf-posix-tests (Makefile.am): Likewise.
78146         * modules/freadahead-tests (Makefile.am): Likewise.
78147         * modules/fseek-tests (Makefile.am): Likewise.
78148         * modules/fseeko-tests (Makefile.am): Likewise.
78149         * modules/ftell-tests (Makefile.am): Likewise.
78150         * modules/ftello-tests (Makefile.am): Likewise.
78151         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
78152         * modules/isnanl-tests (Makefile.am): Likewise.
78153         * modules/lseek-tests (Makefile.am): Likewise.
78154         * modules/mbscasecmp-tests (Makefile.am): Likewise.
78155         * modules/mbscasestr-tests (Makefile.am): Likewise.
78156         * modules/mbschr-tests (Makefile.am): Likewise.
78157         * modules/mbscspn-tests (Makefile.am): Likewise.
78158         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
78159         * modules/mbspbrk-tests (Makefile.am): Likewise.
78160         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
78161         * modules/mbsrchr-tests (Makefile.am): Likewise.
78162         * modules/mbsspn-tests (Makefile.am): Likewise.
78163         * modules/mbsstr-tests (Makefile.am): Likewise.
78164         * modules/printf-posix-tests (Makefile.am): Likewise.
78165         * modules/snprintf-posix-tests (Makefile.am): Likewise.
78166         * modules/sprintf-posix-tests (Makefile.am): Likewise.
78167         * modules/tsearch-tests (Makefile.am): Likewise.
78168         * modules/uniname/uniname-tests (Makefile.am): Likewise.
78169         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
78170         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
78171         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
78172         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
78173         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
78174         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
78175         * modules/vprintf-posix-tests (Makefile.am): Likewise.
78176         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
78177         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
78178         * modules/xstrtoimax-tests (Makefile.am): Likewise.
78179         * modules/xstrtol-tests (Makefile.am): Likewise.
78180         * modules/xstrtoumax-tests (Makefile.am): Likewise.
78181         * modules/yesno-tests (Makefile.am): Likewise.
78183 2007-10-03  Bruno Haible  <bruno@clisp.org>
78185         * modules/trunc-tests: New file.
78186         * tests/test-trunc.c: New file.
78188         * modules/trunc: New file.
78189         * lib/trunc.c: New file.
78190         * m4/trunc.m4: New file.
78191         * lib/math.in.h (trunc): New declaration.
78192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
78193         HAVE_DECL_TRUNC.
78194         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
78195         HAVE_DECL_TRUNC.
78196         * doc/functions/trunc.texi: Mention the 'trunc' module.
78198 2007-10-03  Bruno Haible  <bruno@clisp.org>
78200         * tests/test-fpending.c: New file, mostly copied
78201         from coreutils/lib/t-fpending.c.
78202         * modules/fpending-tests: New file.
78204 2007-10-03  Bruno Haible  <bruno@clisp.org>
78206         Port the stdio extensions to QNX (untested).
78207         * lib/fseterr.c (fseterr): Add support for QNX.
78208         * lib/fbufmode.c (fbufmode): Likewise.
78209         * lib/freadable.c (freadable): Likewise.
78210         * lib/fwritable.c (fwritable): Likewise.
78211         * lib/freading.c (freading): Likewise.
78212         * lib/fwriting.c (fwriting): Likewise.
78213         * lib/freadahead.c (freadahed): Likewise.
78214         * lib/fpurge.c (fpurge): Likewise.
78215         * lib/fseeko.c (rpl_fseeko): Likewise.
78217 2007-10-03  Bruno Haible  <bruno@clisp.org>
78218             Jim Meyering  <jim@meyering.net>
78219             Eric Blake  <ebb9@byu.net>
78221         * doc/relocatable.texi: Use @command instead of @program.
78223 2007-10-02  Jim Meyering  <jim@meyering.net>
78225         Perform one more "_.h" -> ".in.h" substitution.
78226         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
78227         instead of unistd_.h here, too.
78229 2007-10-01  Bruno Haible  <bruno@clisp.org>
78231         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
78232         Needed for the alloca-opt module.
78234 2007-09-30  Bruno Haible  <bruno@clisp.org>
78236         * lib/alloca.in.h: Renamed from lib/alloca_.h.
78237         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
78238         alloca_.h.
78239         * lib/argz.in.h: Renamed from lib/argz_.h.
78240         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
78241         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
78242         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
78243         byteswap_.h.
78244         * lib/dirent.in.h: Renamed from lib/dirent_.h.
78245         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
78246         dirent_.h.
78247         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
78248         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
78249         fcntl_.h.
78250         * lib/float.in.h: Renamed from lib/float_.h.
78251         * modules/float (Files, Makefile.am): Use float.in.h instead of
78252         float_.h.
78253         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
78254         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
78255         fnmatch_.h.
78256         * lib/getopt.in.h: Renamed from lib/getopt_.h.
78257         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
78258         getopt_.h.
78259         * lib/glob.in.h: Renamed from lib/glob_.h.
78260         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
78261         * lib/iconv.in.h: Renamed from lib/iconv_.h.
78262         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
78263         iconv_.h.
78264         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
78265         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
78266         inttypes_.h.
78267         * lib/locale.in.h: Renamed from lib/locale_.h.
78268         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
78269         locale_.h.
78270         * lib/math.in.h: Renamed from lib/math_.h.
78271         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
78272         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
78273         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
78274         of netinet_in_.h. Add dependency.
78275         * lib/poll.in.h: Renamed from lib/poll_.h.
78276         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
78277         * lib/search.in.h: Renamed from lib/search_.h.
78278         * modules/search (Files, Makefile.am): Use search.in.h instead of
78279         search_.h.
78280         * lib/signal.in.h: Renamed from lib/signal_.h.
78281         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
78282         _signal.h.
78283         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
78284         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
78285         stdbool_.h.
78286         * lib/stdint.in.h: Renamed from lib/stdint_.h.
78287         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
78288         stdint_.h.
78289         * lib/stdio.in.h: Renamed from lib/stdio_.h.
78290         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
78291         stdio_.h.
78292         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
78293         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
78294         stdlib_.h.
78295         * lib/string.in.h: Renamed from lib/string_.h.
78296         * modules/string (Files, Makefile.am): Use string.in.h instead of
78297         string_.h.
78298         * doc/gnulib-tool.texi (Initial import): Update.
78299         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
78300         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
78301         of sys_select_.h. Add dependency.
78302         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
78303         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
78304         of sys_socket_.h.
78305         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
78306         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
78307         sys_stat_.h.
78308         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
78309         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
78310         sys_time_.h.
78311         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
78312         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
78313         sysexits_.h.
78314         * lib/time.in.h: Renamed from lib/time_.h.
78315         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
78316         * lib/unistd.in.h: Renamed from lib/unistd_.h.
78317         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
78318         unistd_.h.
78319         * lib/wchar.in.h: Renamed from lib/wchar_.h.
78320         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
78321         wchar_.h.
78322         * lib/wctype.in.h: Renamed from lib/wctype_.h.
78323         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
78324         wctype_.h.
78325         * build-aux/bootstrap (slurp): Update.
78326         * lib/.cppi-disable: Update.
78328 2007-09-30  Bruno Haible  <bruno@clisp.org>
78330         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
78331         Needed on BeOS.
78333 2007-09-30  Bruno Haible  <bruno@clisp.org>
78335         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
78337 2007-09-29  Bruno Haible  <bruno@clisp.org>
78339         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
78341 2007-09-29  Bruno Haible  <bruno@clisp.org>
78343         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
78344         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
78345         * build-aux/install-reloc: Compile also areadlink.c.
78346         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
78348 2007-09-29  Bruno Haible  <bruno@clisp.org>
78350         * gnulib-tool (func_emit_initmacro_done): Indentation.
78352 2007-09-29  Bruno Haible  <bruno@clisp.org>
78354         * README: Add CVS checkout update instructions.
78355         Info from Bob Proulx <bob@proulx.com>.
78357 2007-09-28  Eric Blake  <ebb9@byu.net>
78359         Provide move-if-change.
78360         * build-aux/move-if-change: New file, based on best practice
78361         rather than any canonical upstream location.
78363 2007-09-28  Jim Meyering  <jim@meyering.net>
78365         Fix canonicalize loop-detection corner case.
78366         Do not attempt to stat the symlink values stored via seen_triple.
78367         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
78368         on linux-2.6.18, (but not 2.6.22).
78369         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
78370         triple_compare.  The former compares dev,ino,filename, while the latter
78371         would actually stat dirname(filename) when dev and ino were equal.
78372         * lib/hash-triple.c: Install <string.h>.
78373         (STREQ): Define.
78374         (triple_compare_ino_str): New function.
78375         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
78377 2007-09-28  Eric Blake  <ebb9@byu.net>
78379         Enforce that AC_REPLACE_FUNCS files exist.
78380         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
78381         override check for typos.
78383         Fix test-closein on Solaris 10.
78384         * tests/test-closein.c (main): Don't assume stdin can be inherited
78385         closed on all systems.
78386         * tests/test-closein.sh: Likewise.
78387         Reported by Piotr Tarnowski.
78389 2007-09-28  Jim Meyering  <jim@meyering.net>
78391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
78393 2007-09-27  Jim Meyering  <jim@meyering.net>
78395         canonicalize: Avoid a false-positive cycle failure.
78396         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
78397         Sort.  Remove cycle-check.
78398         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
78399         not cycle-check.h.
78400         (seen_triple): New function.
78401         (canonicalize_filename_mode): Use it instead of cycle-check.
78402         * tests/test-canonicalize.c: Add a test for this bug.
78403         * tests/test-canonicalize.sh: Set up and run the test.
78405         New module, file-set, from coreutils.
78406         * modules/file-set: Define it.
78407         * lib/file-set.c, lib/file-set.h: Implement.
78409         New module, hash-triple, from coreutils.
78410         * modules/hash-triple: Define it.
78411         * lib/hash-triple.c, lib/hash-triple.h: Implement.
78413 2007-09-25  Eric Blake  <ebb9@byu.net>
78415         Fix strerror on Interix.
78416         * lib/string_.h (strerror): Declare replacement.
78417         * doc/functions/strerror.texi (strerror): Document the Interix
78418         shortcoming.
78419         * modules/string (Makefile.am): Support new hooks.
78420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
78421         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
78422         gl_FUNC_STRERROR_SEPARATE.
78423         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
78424         * lib/strerror.c (rpl_strerror): Provide replacement.
78425         * modules/strerror (Depends-on): Add string.
78426         (configure.ac): Detect use of module.
78427         * tests/test-strerror.c: New file.
78428         * modules/strerror-tests: New test module.
78429         * modules/argp (Depends-on): Add strerror.
78430         * modules/error (Depends-on): Likewise.
78431         Reported by Martin Koeppe.
78433 2007-09-24  Bruno Haible  <bruno@clisp.org>
78435         * README: Update git instructions.
78437 2007-09-24  Eric Blake  <ebb9@byu.net>
78439         Revert fpending breakage from 2007-09-08.
78440         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
78441         __fpending.c.
78443 2007-09-24  Jim Meyering  <jim@meyering.net>
78445         filenamecat.c: Add a test.
78446         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
78447         showing how the function works when DIR is the empty string.
78449 2007-09-21  Simon Josefsson  <simon@josefsson.org>
78451         * tests/test-canonicalize.sh: Turn on executable bit.
78453 2007-09-19  Eric Blake  <ebb9@byu.net>
78455         * README: Update CVS instructions.
78457 2007-09-18  Bruno Haible  <bruno@clisp.org>
78459         * modules/areadlink: New file.
78460         * lib/areadlink.h (areadlink): New declaration.
78461         * lib/areadlink.c: New file, based on lib/xreadlink.c.
78463 2007-09-17  Jim Meyering  <jim@meyering.net>
78465         * lib/savewd.c (ESTALE) [!defined]: Define.
78466         Reported to be required on Interix by Martin Koeppe.
78468 2007-09-17  Bruno Haible  <bruno@clisp.org>
78470         * gnulib-tool (func_version): Use $version.
78472 2007-09-16  Bruno Haible  <bruno@clisp.org>
78474         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
78475         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
78476         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
78477         Reported by Greg Schafer <gschafer@zip.com.au>.
78479 2007-09-15  Bruno Haible  <bruno@clisp.org>
78481         * gnulib-tool (sed): Try a little harder to make bash understand the
78482         alias.
78483         Reported by Bruce Korb <bruce.korb@gmail.com>.
78485 2007-09-13  Eric Blake  <ebb9@byu.net>
78487         * ChangeLog: Remove conflict markers.
78489 2007-09-13  Simon Josefsson  <simon@josefsson.org>
78491         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
78492         Reported by Bruno Haible <bruno@clisp.org>.
78494 2007-09-12  Bruno Haible  <bruno@clisp.org>
78496         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
78497         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
78498         is not defined.
78500 2007-09-12  Eric Blake  <ebb9@byu.net>
78502         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
78503         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
78504         Autoconf definition.
78505         * modules/euidaccess (Depends-on): Add extensions, for
78506         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
78507         * modules/fnmatch (Depends-on): Likewise.
78508         * modules/getaddrinfo (Depends-on): Likewise.
78509         * modules/getdelim (Depends-on): Likewise.
78510         * modules/getline (Depends-on): Likewise.
78511         * modules/getsubopt (Depends-on): Likewise.
78512         * modules/gettext (Depends-on): Likewise.
78513         * modules/group-member (Depends-on): Likewise.
78514         * modules/mbchar (Depends-on): Likewise.
78515         * modules/memmem (Depends-on): Likewise.
78516         * modules/mempcpy (Depends-on): Likewise.
78517         * modules/memrchr (Depends-on): Likewise.
78518         * modules/pagealign_alloc (Depends-on): Likewise.
78519         * modules/readutmp (Depends-on): Likewise.
78520         * modules/stpcpy (Depends-on): Likewise.
78521         * modules/stpncpy (Depends-on): Likewise.
78522         * modules/strchrnul (Depends-on): Likewise.
78523         * modules/strndup (Depends-on): Likewise.
78524         * modules/strsep (Depends-on): Likewise.
78525         * modules/strverscmp (Depends-on): Likewise.
78526         * modules/vasprintf (Depends-on): Likewise.
78527         * modules/wcwidth (Depends-on): Likewise.
78528         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
78529         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
78530         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
78531         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
78532         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
78533         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
78534         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
78535         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78536         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
78537         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
78538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
78539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
78540         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
78541         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
78542         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
78543         * m4/readutmp.m4 (gl_READUTMP): Likewise.
78544         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
78545         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
78546         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
78547         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
78548         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
78549         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
78550         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
78551         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
78552         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
78553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
78554         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
78555         so that lock.m4 can be used in gettext without extensions module.
78557 2007-09-11  Bruno Haible  <bruno@clisp.org>
78559         * m4/isc-posix.m4: Remove file.
78560         Suggested by Eric Blake.
78562 2007-09-11  Eric Blake  <ebb9@byu.net>
78564         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
78566 2007-09-10  Bruno Haible  <bruno@clisp.org>
78568         * posix-modules: Fix typo in error message.
78569         Reported by Matt <mkraai@beckman.com>.
78571 2007-09-09  Bruno Haible  <bruno@clisp.org>
78573         * doc/functions/getdelim.texi: Update list of platforms lacking the
78574         function.
78575         * doc/functions/getline.texi: Likewise.
78577 2007-09-09  Jim Meyering  <jim@meyering.net>
78579         * lib/hash.c (hash_initialize): Detect calloc failure.
78580         Reported by Bruno Haible.
78582 2007-09-09  Bruno Haible  <bruno@clisp.org>
78584         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
78585         malloc or realloc fails.
78587 2007-09-09  Bruno Haible  <bruno@clisp.org>
78589         * modules/getcwd (Depends-on): Add malloc-posix.
78590         * modules/glob (Depends-on): Likewise.
78591         * modules/putenv (Depends-on): Likewise.
78592         * modules/strdup (Depends-on): Likewise.
78593         * modules/getdelim (Depends-on): Add realloc-posix.
78594         * modules/read-file (Depends-on): Likewise.
78596 2007-09-09  Bruno Haible  <bruno@clisp.org>
78598         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
78599         (gl_FUNC_MALLOC_POSIX): Require it.
78600         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
78601         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
78602         * modules/realloc (Files): Add m4/malloc.m4.
78603         * modules/calloc (Files): Likewise.
78605 2007-09-09  Bruno Haible  <bruno@clisp.org>
78607         * modules/malloc-posix: New file.
78608         * modules/malloc (Depends-on): Add malloc-posix.
78609         * lib/malloc.c: Include errno.h.
78610         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
78611         and a POSIX-compatible malloc into a single function. Set ENOMEM
78612         when returning NULL.
78613         * m4/malloc.m4: New file.
78614         * doc/functions/malloc.texi: Mention the malloc-posix module.
78615         * lib/stdlib_.h (malloc): New declaration.
78616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
78617         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
78618         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
78619         and HAVE_MALLOC_POSIX.
78621 2007-09-09  Bruno Haible  <bruno@clisp.org>
78623         * modules/realloc-posix: New file.
78624         * modules/realloc (Depends-on): Add realloc-posix.
78625         * lib/realloc.c: Include errno.h.
78626         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
78627         and a POSIX-compatible realloc into a single function. Set ENOMEM
78628         when returning NULL.
78629         * m4/realloc.m4: New file.
78630         * doc/functions/realloc.texi: Mention the realloc-posix module.
78631         * lib/stdlib_.h (realloc): New declaration.
78632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
78633         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
78634         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
78635         and HAVE_REALLOC_POSIX.
78637 2007-09-09  Bruno Haible  <bruno@clisp.org>
78639         * modules/calloc-posix: New file.
78640         * modules/calloc (Depends-on): Add calloc-posix.
78641         * lib/calloc.c: Include errno.h.
78642         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
78643         and a POSIX-compatible calloc into a single function. Set ENOMEM
78644         when returning NULL.
78645         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
78646         * doc/functions/calloc.texi: Mention the calloc-posix module.
78647         * lib/stdlib_.h (calloc): New declaration.
78648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
78649         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
78650         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
78651         and HAVE_CALLOC_POSIX.
78653 2007-09-09  Bruno Haible  <bruno@clisp.org>
78655         Allow for modules to show an arbitrary notice.
78656         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
78657         * gnulib-tool: New option --extract-notice.
78658         (func_usage): Document it.
78659         (sed_extract_prog): Update.
78660         (func_get_notice): New function.
78661         (func_modules_notice): New function.
78662         (func_import, func_create_testdir): Invoke it.
78663         Suggested by Jim Meyering.
78665 2007-09-09  Bruno Haible  <bruno@clisp.org>
78667         * gnulib-tool: New options --verbose, --quiet.
78668         (func_usage): Document them.
78669         (verbose): New variable.
78670         (func_execute_command): New function.
78671         (func_import): Don't show the module list and the file list if
78672         $verbose < 0.
78673         (func_create_testdir): Likewise. Use func_execute_command.
78674         (func_create_megatestdir): Use func_execute_command.
78676 2007-09-08  Bruno Haible  <bruno@clisp.org>
78678         * gnulib-tool (func_import): Prefer rsync over wget when available,
78679         for fetching the PO files.
78681 2007-09-08  Bruno Haible  <bruno@clisp.org>
78683         * posix-modules: New file. Portions copied from gnulib-tool.
78684         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
78686 2007-09-08  Jim Meyering  <jim@meyering.net>
78688         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
78689         * lib/fpending.h: Rename from __fpending.h.
78690         * lib/fpending.c: Rename from __fpending.c.
78691         Include "fpending.h", not "__fpending.h".
78692         * lib/__fpending.h, lib/__fpending.c: Remove files.
78693         * modules/fpending (Files): Reflect new file names.
78694         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
78696 2007-09-08  Bruno Haible  <bruno@clisp.org>
78698         * m4/inttypes-h.m4: Remove stub file.
78700 2007-09-07  Simon Josefsson  <simon@josefsson.org>
78702         * doc/headers/stdint.texi: Discuss #include_next issue.
78704 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78706         * build-aux/bootstrap: Remove obsolete comment about wget --help.
78708 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78710         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
78711         in variable name.
78713 2007-09-03  Jim Meyering  <jim@meyering.net>
78715         New module: git-version-gen.
78716         * modules/git-version-gen: New file.
78718         Import changes from coreutils for bootstrap script.
78720         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
78722         bootstrap: uses rsync to download the .po files
78723         * build-aux/bootstrap (po_download_command_format): New global.
78724         (download_po_files): Use rsync.
78725         (update_po_files): Don't remove .po files after download,
78726         so future rsync runs can take advantage of the copies.
78728         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
78730         Solve the unnecessary-.po-file-regeneration problem once and for all.
78731         * build-aux/bootstrap (download_po_files): New function, renamed from
78732         get_translations.  Now, downloads, but doesn't update LINGUAS.
78733         (update_po_files): New function.
78735         bootstrap: Ignore more.
78736         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
78737         uniwidth to e.g., lib/.gitignore.
78738         (slurp): Handle the sys_stat_.h -> sys mapping, too.
78740         * build-aux/bootstrap: New setting: vc_ignore.
78741         (insert_sorted_if_absent): Create $file if absent.
78742         Adapt to new, possibly empty, list: $vc_ignore.
78744         bootstrap: generate more ignorable names
78745         * build-aux/bootstrap (slurp): When generating ignorable names,
78746         also map .sin to .sed, .gperf to .c, and .y to .c.
78748 2007-09-03  Jim Meyering  <jim@meyering.net>
78750         * build-aux/git-version-gen: New file, from coreutils.  For details, see
78751         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
78753 2007-09-02  Bruno Haible  <bruno@clisp.org>
78755         Fix mis-recognition of 'mcs' on QNX 6.
78756         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
78757         output contains the string "Mono".
78758         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
78759         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
78761 2007-09-01  Bruno Haible  <bruno@clisp.org>
78763         Fix collision between uniwidth/* and linebreak modules.
78764         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
78765         u32_width): Remove declarations.
78766         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
78767         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
78768         streq3, streq2, streq1, streq0): Remove functions.
78769         (STREQ): Remove macro.
78770         (is_cjk_encoding): Remove function.
78771         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
78772         (uc_width, u8_width, u16_width, u32_width): Remove functions.
78773         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
78774         * NEWS: Document the change.
78776 2007-09-01  Bruno Haible  <bruno@clisp.org>
78778         * lib/streq.h: Add double-inclusion guard.
78780 2007-09-01  Karl Berry  <karl@gnu.org>
78782         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
78784 2007-08-28  Jim Meyering  <jim@meyering.net>
78786         Rename mreadlink_with_size to areadlink_with_size.
78787         * NEWS: Document the change.
78788         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
78789         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
78790         * lib/mreadlink.h: Rename this to...
78791         * lib/areadlink.h: ...this.
78792         * modules/mreadlink-with-size: Rename this to...
78793         * modules/areadlink-with-size: ...this.
78794         * lib/canonicalize.c: Reflect the renaming.
78795         * modules/canonicalize: Likewise.
78797 2007-08-26  Bruno Haible  <bruno@clisp.org>
78799         * gnulib-tool (func_import): When deciding which files to remove,
78800         consider also dangling symbolic links.
78801         Reported by Eric Blake.
78803 2007-08-26  Bruno Haible  <bruno@clisp.org>
78805         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
78807 2007-08-23  Simon Josefsson  <simon@josefsson.org>
78809         * lib/readline.c: Don't include getline.h, the prototype is now
78810         found in stdio.h.
78812 2007-08-23  Jim Meyering  <jim@meyering.net>
78814         Getdelim touchup.
78815         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
78816         around the funlockfile call, since funlockfile never sets errno.
78817         Don't set errno upon failed realloc.
78819 2007-08-22  Eric Blake  <ebb9@byu.net>
78821         Getline touchups.
78822         * lib/getdelim.c (getdelim): Revert regression that required *n to
78823         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
78824         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
78825         getdelim, rather than whether implementation is missing.
78826         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
78827         * lib/stdio_.h (getline): Also declare if replacement is
78828         required.
78829         * doc/functions/getdelim.texi: New file.
78830         * doc/functions/getline.texi: Likewise.
78831         * doc/gnulib.texi (Function Substitutes): Add new files.
78832         Reported by Bruno Haible.
78834 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
78836         * users.txt: Add Guile.
78838 2007-08-22  Eric Blake  <ebb9@byu.net>
78840         * tests/test-getdelim.c (main): Use remove, not unlink.
78841         * tests/test-getline.c (main): Likewise.
78843         Move getline and getdelim into stdio.h, per POSIX 200x.
78844         * modules/getline (Files): Remove getline.h.
78845         (Depends-on): Add stdio.
78846         (configure.ac): Add module indicator.
78847         * modules/getdelim (Files): Remove getdelim.h.
78848         (Depends-on): Add stdio.
78849         (configure.ac): Add module indicator.
78850         * modules/stdio (Makefile.am): Work with new indicators.
78851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
78852         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
78853         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
78854         * lib/getdelim.h: Delete.
78855         * lib/getline.h: Delete.
78856         * lib/stdio_.h (getdelim, getline): Declare.
78857         * modules/getdelim-tests: New module.
78858         * modules/getline-tests: Likewise.
78859         * tests/test-getdelim.c: New file.
78860         * tests/test-getline.c: Likewise.
78861         * NEWS: Document the change.
78862         * lib/getline.c: Update choice of header.
78863         * lib/csharpcomp.c: Likewise.
78864         * lib/getpass.c: Likewise.
78865         * lib/javacomp.c: Likewise.
78866         * lib/javaversion.c: Likewise.
78867         * lib/yesno.c: Likewise.
78868         * lib/getdelim.c: Likewise.
78869         (getdelim): Set errno on failure, and avoid memory leak.
78871 2007-08-19  Bruno Haible  <bruno@clisp.org>
78873         * modules/closein (Depends-on): Add freadahead.
78874         * lib/closein.c: Include freadahead.h.
78875         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
78876         is zero.
78878 2007-08-19  Bruno Haible  <bruno@clisp.org>
78880         * modules/freadahead-tests: New file.
78881         * tests/test-freadahead.sh: New file.
78882         * tests/test-freadahead.c: New file.
78884         * modules/freadahead: New file.
78885         * lib/freadahead.h: New file.
78886         * lib/freadahead.c: New file.
78887         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
78888         fbufmode, fpurge, freadable, fwritable.
78890 2007-08-19  Eric Blake  <ebb9@byu.net>
78892         Test yesno in combination with closein.
78893         * lib/yesno.c (yesno): Document use of stdin.
78894         * modules/yesno-tests (Files): New module.
78895         * tests/test-yesno.c (main): New file.
78896         * tests/test-yesno.sh: Likewise.
78898 2007-08-19  Bruno Haible  <bruno@clisp.org>
78900         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
78901         * lib/fseeko.c (rpl_fseeko): Likewise.
78902         * lib/fseterr.c (fseterr): Likewise.
78904 2007-08-19  Bruno Haible  <bruno@clisp.org>
78906         * tests/test-lseek.c (main): Disable a test for BeOS.
78907         * doc/functions/lseek.texi: Document the BeOS bug.
78909 2007-08-19  Bruno Haible  <bruno@clisp.org>
78910             Eric Blake  <ebb9@byu.net>
78912         * lib/lseek.c: Include <sys/stat.h>.
78913         (rpl_lseek): Add workaround code also for Unix platforms.
78914         Needed for BeOS.
78915         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
78916         * doc/functions/lseek.texi: Document BeOS definiency.
78918 2007-08-18  Bruno Haible  <bruno@clisp.org>
78920         * modules/fstrcmp-tests: New file.
78921         * tests/test-fstrcmp.c: New file.
78923 2007-08-18  Bruno Haible  <bruno@clisp.org>
78925         * modules/fstrcmp: New file, from GNU gettext with modifications.
78926         * lib/fstrcmp.h: New file, from GNU gettext.
78927         * lib/fstrcmp.c: New file, from GNU gettext.
78928         * MODULES.html.sh (String handling): Add fstrcmp.
78930 2007-08-18  Bruno Haible  <bruno@clisp.org>
78932         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
78933         'bool'.
78934         (diag, compareseq): Remove const from the ctxt argument.
78935         (USE_HEURISTIC): Undefine at the end.
78937 2007-08-18  Jim Meyering  <jim@meyering.net>
78939         New file: lib/idcache.h
78940         * NEWS: Mention the addition.
78941         * modules/idcache (Files): Add lib/idcache.h
78942         * lib/idcache.c: Include "idcache.h".
78943         Don't include <sys/types.h>.
78944         Add a FIXME comment.
78945         Move file-scoped "static" declarations to the top.
78946         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
78948 2007-08-17  Bruno Haible  <bruno@clisp.org>
78949         and Paul Eggert  <eggert@cs.ucla.edu>
78951         * MODULES.html.sh: Add diffseq.
78952         * modules/diffseq: New file.
78953         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
78954         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
78956 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78958         Import changes from coreutils for bootstrap script.
78960         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
78962         * build-aux/bootstrap (slurp): Work even in environments where
78963         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
78964         current code does not slurp files whose names start with ".", and
78965         this looks like it might be a troublesome area.
78967         2007-07-11  Jim Meyering  <jim@meyering.net>
78969         If there's a GPL vN copyright comment, require that N == 3.
78971         2007-07-08  Jim Meyering  <jim@meyering.net>
78973         Run the coreutils-specific code only if tests/Makefile.am.in exists.
78974         * build-aux/bootstrap (mam_template): Move definition out of loop.
78976         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
78978         * build-aux/bootstrap (symlink_to_dir): Rename function from
78979         symlink_to_gnulib.  Add a directory parameter.  Update all
78980         callers.
78981         (cp_mark_as_generated): Also check for -- and link to -- files in
78982         gl/.
78984         2007-07-08  Jim Meyering  <jim@meyering.net>
78986         Adapt to deeper hierarchy in gnulib.
78987         * build-aux/bootstrap (symlink_to_dir): If the destination
78988         directory doesn't exist, create it. This is required at least for
78989         "lib/uniwidth/cjk.h".
78991         2007-05-15  Jim Meyering  <jim@meyering.net>
78993         * build-aux/bootstrap: Now that generated Makefile.am files
78994         are no longer under version control, they must be created at
78995         bootstrap time.
78997 2007-08-14  Ben Pfaff  <blp@gnu.org>
78999         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
79001 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79003         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
79004         given the changes below.
79005         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
79006         even on hosts that have padding bits beyond the supported 64.
79008 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79010         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
79011         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
79012         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
79013         depends on it.
79014         (xstrtol_error): Remove.
79015         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
79016         but with a different signature.
79017         (ATTRIBUTE_NORETURN, __attribute__): New macros.
79018         * lib/xstrtol-error.c: Include exitfail.h.
79019         (xstrtol_fatal): New function, with a different signature from the
79020         old xstrtol_error, so that the caller need not worry about passing
79021         in an exit status, or about storage management of the option argument.
79022         (xstrtol_error): Now a static function.  Redo signature to
79023         implement xstrtol_fatal.  Output the correct number of hyphens in
79024         front of the option so that the caller need not worry about
79025         storage management.
79026         (N_): New macro.
79027         (_): Remove; not used now.
79028         * modules/xstrtol: Depend on getopt.
79029         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
79030         of old STRTOL_FATAL_ERROR macro.
79031         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
79032         of test program.
79033         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
79034         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
79036 2007-08-08  Eric Blake  <ebb9@byu.net>
79038         * lib/xstrtol-error.c: Add missing include.
79040         Move xstrtol messages into gnulib domain, when --pobase is used.
79041         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
79042         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
79043         * modules/xstrtol (Files): Distribute new file.
79044         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
79045         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
79046         * tests/test-xstrtol.c: ...into new file.
79047         * tests/test-xstrtoul.c: Also test xstrtoul.
79048         * tests/test-xstrtoimax.c: Also test xstrtoimax.
79049         * tests/test-xstrtoumax.c: Also test xstrtoumax.
79050         * tests/test-xstrtol.sh: Drive the tests.
79051         * tests/test-xstrtoimax.sh: Likewise.
79052         * tests/test-xstrtoumax.sh: Likewise.
79053         * modules/xstrtol-tests: New module.
79054         * modules/xstrtoimax-tests: Likewise.
79055         * modules/xstrtoumax-tests: Likewise.
79057 2007-08-08  Jim Meyering  <jim@meyering.net>
79059         New function: mfile_name_concat.
79060         * lib/filenamecat.c (mfile_name_concat): New function, just like
79061         file_name_concat, but return NULL upon failure rather than exiting
79062         with a diagnostic.
79063         * lib/filenamecat.h: Declare it.
79065 2007-08-07  Bruno Haible  <bruno@clisp.org>
79067         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
79068         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
79069         warning from gcc.
79070         Reported by Eric Blake.
79072 2007-08-07  Simon Josefsson  <simon@josefsson.org>
79074         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
79075         * modules/crypto/arcfour (License): Likewise.
79076         * modules/crypto/des-tests (License): Likewise.
79077         * modules/crypto/gc-arctwo-tests (License): Likewise.
79078         * modules/crypto/gc-des-tests (License): Likewise.
79079         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
79080         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
79081         * modules/crypto/gc-md2-tests (License): Likewise.
79082         * modules/crypto/gc-md4-tests (License): Likewise.
79083         * modules/crypto/gc-md5-tests (License): Likewise.
79084         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
79085         * modules/crypto/gc-rijndael-tests (License): Likewise.
79086         * modules/crypto/gc-sha1-tests (License): Likewise.
79087         * modules/crypto/gc-tests (License): Likewise.
79088         * modules/crypto/hmac-md5 (License): Likewise.
79089         * modules/crypto/hmac-sha1 (License): Likewise.
79090         * modules/crypto/md2-tests (License): Likewise.
79091         * modules/crypto/md4-tests (License): Likewise.
79092         * modules/crypto/md5 (License): Likewise.
79093         * modules/crypto/rijndael (License): Likewise.
79094         * modules/crypto/sha1 (License): Likewise.
79095         * modules/memxor (License): Likewise.
79097 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79098         and Bruno Haible  <bruno@clisp.org>
79100         * NEWS: Describe interface changes to human, xstrtol.
79101         * lib/human.h: Include <xstrtol.h>.
79102         (human_options): Return enum strtol_error, not int.  Remove
79103         bool arg; take int * instead.
79104         * lib/human.c: Don't include "gettext.h".
79105         (_): Remove; no longer used.
79106         Don't include <xstrtol.h>, since human.h does it.
79107         (human_options): Adjust to abovementioned interface changes.
79108         Do not report error to stderr; that's now the caller's
79109         responsibility.
79110         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
79111         interface change.
79112         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
79113         Str, Argument_type_string.  All uses changed.  Put " argument"
79114         in diagnostics to make them clearer.  Change wording of suffix
79115         message for clarity.
79116         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
79117         Argument_type_string.
79118         (STRTOL_FATAL_WARN): Remove; no longer used.
79119         * modules/human (Depends-on): Remove gettext-h.
79121 2007-08-06  Simon Josefsson  <simon@josefsson.org>
79123         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
79125 2007-07-31  Bruno Haible  <bruno@clisp.org>
79127         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
79128         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
79129         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
79131 2007-07-31  Bruno Haible  <bruno@clisp.org>
79133         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
79134         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
79136 2007-07-30  Bruno Haible  <bruno@clisp.org>
79138         * modules/base64 (License): Use the synonymous term "LGPLv2+".
79139         * modules/c-ctype (License): Likewise.
79140         * modules/c-strcase (License): Likewise.
79141         * modules/check-version (License): Likewise.
79142         * modules/iconv (License): Likewise.
79143         * modules/iconv_open (License): Likewise.
79144         * modules/read-file (License): Likewise.
79145         * modules/striconv (License): Likewise.
79146         * modules/strverscmp (License): Likewise.
79147         * modules/vasprintf (License): Likewise.
79148         * modules/crypto/des (License): Likewise.
79149         * modules/crypto/gc (License): Likewise.
79150         * modules/crypto/gc-arcfour (License): Likewise.
79151         * modules/crypto/gc-arctwo (License): Likewise.
79152         * modules/crypto/gc-des (License): Likewise.
79153         * modules/crypto/gc-hmac-md5 (License): Likewise.
79154         * modules/crypto/gc-hmac-sha1 (License): Likewise.
79155         * modules/crypto/gc-md2 (License): Likewise.
79156         * modules/crypto/gc-md4 (License): Likewise.
79157         * modules/crypto/gc-md5 (License): Likewise.
79158         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
79159         * modules/crypto/gc-random (License): Likewise.
79160         * modules/crypto/gc-rijndael (License): Likewise.
79161         * modules/crypto/gc-sha1 (License): Likewise.
79162         * modules/crypto/md2 (License): Likewise.
79163         * modules/crypto/md4 (License): Likewise.
79165 2007-07-30  Jim Meyering  <jim@meyering.net>
79167         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
79168         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
79169         it has valid stat data.  This bug would cause du not to count the
79170         sizes of inaccessible directories.
79171         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
79172         in <http://bugzilla.redhat.com/250077>.
79174 2007-07-25  Peter O'Gorman  <peter@pogma.com>
79175             Bruno Haible  <bruno@clisp.org>
79177         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
79178         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
79179         #include_next, gives a diagnostic about it, but reports no error in
79180         the exit code.
79181         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
79183 2007-07-24  Ben Pfaff  <blp@gnu.org>
79185         Improve name: "count-one-bits" is better than "popcount".
79186         * MODULES.html.sh: Update name.
79187         * lib/popcount.h: Renamed lib/count-one-bits.h.
79188         (popcount): Renamed count_one_bits.
79189         (popcountl): Renamed count_one_bits_l.
79190         (popcountll): Renamed count_one_bits_ll.
79191         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
79192         * modules/popcount: Renamed module/count-one-bits.
79193         * modules/popcount-tests: Renamed module/count-one-bits-tests.
79194         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
79196 2007-07-23  Ben Pfaff  <blp@gnu.org>
79198         * lib/popcount.h (popcount32): Reduce size of constants, to allow
79199         better code generation, and add U to large constants to avoid
79200         warnings, in non-GCC case.
79201         Suggested by Bruno Haible.
79203 2007-07-23  Ben Pfaff  <blp@gnu.org>
79205         * lib/popcount.h: Use verify_true instead of if...abort.
79206         * modules/popcount: Depend on verify module.
79207         Suggested by Jim Meyering.
79209 2007-07-23  Bruno Haible  <bruno@clisp.org>
79211         * gnulib-tool (func_import): Create a .cvsignore file also when the
79212         directory is not yet in CVS but the toplevel directory is. When
79213         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
79214         Reported by Karl Berry.
79216 2007-07-22  Ben Pfaff  <blp@gnu.org>
79218         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
79219         case.
79220         Suggested by Eric Blake.
79222 2007-07-22  Ben Pfaff  <blp@gnu.org>
79224         New module: popcount.
79225         * MODULES.html.sh: Add popcount.
79226         * modules/popcount: New file.
79227         * modules/popcount-tests: New file.
79228         * tests/test-popcount.c: New file.
79229         * lib/popcount.h: New file.
79230         * m4/popcount.m4: New file.
79232 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79234         * build-aux/announce-gen: Update to GPLv3.
79236         * build-aux/config.guess: Update from config.
79238 2007-07-21  Bruno Haible  <bruno@clisp.org>
79240         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
79241         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
79243 2007-07-20  Jim Meyering  <jim@meyering.net>
79245         * check-module: Diagnose a self-dependency.
79247 2007-07-19  Bruno Haible  <bruno@clisp.org>
79249         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
79250         empty.
79251         Reported by Eric Blake.
79253 2007-07-18  Bruno Haible  <bruno@clisp.org>
79255         * gnulib-tool: New options --po-base, --po-domain.
79256         (func_usage): Document them.
79257         (pobase, po_domain): New variables.
79258         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
79259         DEFAULT_TEXT_DOMAIN.
79260         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
79261         (func_import): Consider pobase and po_domain. Create a po/ directory.
79262         (func_create_testdir): Set pobase and po_domain to empty.
79263         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
79264         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
79266 2007-07-18  Bruno Haible  <bruno@clisp.org>
79268         * gnulib-tool (func_get_automake_snippet): Synthesize also an
79269         EXTRA_DIST augmentation for files in build-aux/.
79271 2007-07-16  Bruno Haible  <bruno@clisp.org>
79273         * modules/lseek (License): Use the synonymous term "LGPLv2+".
79274         * modules/getdelim (License): Likewise.
79276 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79278         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
79279         * modules/d-type (License): Likewise.
79280         * modules/extensions (License): Likewise.
79281         * modules/fnmatch (License): Likewise.
79282         * modules/fseeko (License): Likewise.
79283         * modules/getaddrinfo (License): Likewise.
79284         * modules/getline (License): Likewise.
79285         * modules/getlogin_r (License): Likewise.
79286         * modules/getpass (License): Likewise.
79287         * modules/gettimeofday (License): Likewise.
79288         * modules/glob (License): Likewise.
79289         * modules/inet_ntop (License): Likewise.
79290         * modules/malloc (License): Likewise.
79291         * modules/malloca (License): Likewise.
79292         * modules/memmem (License): Likewise.
79293         * modules/mempcpy (License): Likewise.
79294         * modules/memset (License): Likewise.
79295         * modules/minmax (License): Likewise.
79296         * modules/mktime (License): Likewise.
79297         * modules/netinet_in (License): Likewise.
79298         * modules/pathmax (License): Likewise.
79299         * modules/poll (License): Likewise.
79300         * modules/regex (License): Likewise.
79301         * modules/snprintf (License): Likewise.
79302         * modules/stdbool (License): Likewise.
79303         * modules/stdint (License): Likewise.
79304         * modules/stdio (License): Likewise.
79305         * modules/strcase (License): Likewise.
79306         * modules/strcasestr (License): Likewise.
79307         * modules/strdup (License): Likewise.
79308         * modules/string (License): Likewise.
79309         * modules/strndup (License): Likewise.
79310         * modules/strnlen (License): Likewise.
79311         * modules/strpbrk (License): Likewise.
79312         * modules/strptime (License): Likewise.
79313         * modules/strsep (License): Likewise.
79314         * modules/sys_select (License): Likewise.
79315         * modules/sys_socket (License): Likewise.
79316         * modules/sys_stat (License): Likewise.
79317         * modules/sys_time (License): Likewise.
79318         * modules/time (License): Likewise.
79319         * modules/time_r (License): Likewise.
79320         * modules/timegm (License): Likewise.
79321         * modules/unistd (License): Likewise.
79322         * modules/vsnprintf (License): Likewise.
79323         * modules/wctype (License): Likewise.
79325 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79327         * modules/argz (License): LGPLv2+.
79329 2007-07-15  Karl Berry  <karl@gnu.org>
79331         * doc/gnulib.texi: revise node structure per new fdl.texi.
79333 2007-07-14  Bruno Haible  <bruno@clisp.org>
79335         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
79336         the output file.
79337         * lib/uniname/uninames.h: Regenerated.
79339 2007-07-14  Karl Berry  <karl@gnu.org>
79341         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
79342         omitting sectioning and index commands.
79344 2007-07-13  Bruno Haible  <bruno@clisp.org>
79346         New gnulib-tool option --more-symlinks.
79347         * gnulib-tool (func_usage): Document --more-symlinks.
79348         (do_copyrights): New variable.
79349         Recognize option --more-symlinks.
79350         (func_import): Don't add a copyright notice transform to
79351         sed_transform_lib_file if do_copyrights is empty.
79353 2007-07-13  Bruno Haible  <bruno@clisp.org>
79355         * lib/vasnprintf.c (decimal_point_char): Define also if
79356         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
79357         && !NEED_PRINTF_DIRECTIVE_A.
79358         Reported by Clemens Koller <clemens.koller@anagramm.de> via
79359         Gary V. Vaughan <gary@gnu.org>.
79361 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
79363         * lib/inttypes_.h: Undo previous change, since it was fixed
79364         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
79366 2007-07-13  Bruno Haible  <bruno@clisp.org>
79368         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
79369         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
79371 2007-07-13  Jim Meyering  <jim@meyering.net>
79373         df: Don't fail for Tru64's "file-on-file mount".
79374         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
79375         so we fall through and use statfs instead.  Details here:
79376         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
79377         Reported by Albert Chin.
79379 2007-07-13  Bruno Haible  <bruno@clisp.org>
79381         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
79382         * modules/configmake (License): Likewise.
79383         * modules/gettext (License): Likewise.
79384         * modules/gettext-h (License): Likewise.
79385         * modules/include_next (License): Likewise.
79386         * modules/link-warning (License): Likewise.
79387         * modules/localcharset (License): Likewise.
79388         * modules/localename (License): Likewise.
79389         * modules/lock (License): Likewise.
79390         * modules/relocatable-lib-lgpl (License): Likewise.
79391         * modules/size_max (License): Likewise.
79392         * modules/vasnprintf (License): Likewise.
79393         * modules/wchar (License): Likewise.
79394         * modules/xsize (License): Likewise.
79396 2007-07-13  Bruno Haible  <bruno@clisp.org>
79398         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
79399         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
79401 2007-07-12  Bruno Haible  <bruno@clisp.org>
79403         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
79404         in the modules files.
79406 2007-07-11  Karl Berry  <karl@gnu.org>
79408         * MODULES.html.sh (func_module): use
79409          sed -e '\|^'"${includefile}"'$|d'
79410          instead of /.../d, to avoid errors on $includefile's containing /.
79412 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79414         * gnulib-tool (func_import): Avoid duplication of --avoid
79415         statements
79416         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
79417         names to `_' in variable names.
79419 2007-07-10  Eric Blake  <ebb9@byu.net>
79421         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
79422         * NEWS: Document this change.
79424 2007-07-08  Bruno Haible  <bruno@clisp.org>
79426         Update to Unicode 5.0.
79427         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
79428         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
79429         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
79430         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
79431         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
79432         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
79433         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
79434         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
79435         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
79436         U+10A3F, U+1D242..U+1D244.
79437         (nonspacing_table_ind): Update.
79438         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
79439         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
79441 2007-07-08  Bruno Haible  <bruno@clisp.org>
79443         Update to Unicode 5.0.
79444         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
79445         code transform. Extend the name index field of unicode_name_to_code and
79446         unicode_code_to_name from 16 to 24 bits.
79447         * lib/uniname/uniname.c (unicode_character_name,
79448         unicode_name_character): Add the range 0x12xxx to the code transform.
79449         * lib/uniname/uninames.h: Regenerated.
79450         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
79452 2007-07-07  Bruno Haible  <bruno@clisp.org>
79454         * modules/wcwidth-tests: New file.
79455         * tests/test-wcwidth.c: New file.
79457         Work around MacOS X wcwidth() bug.
79458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
79459         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
79460         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
79461         original wcwidth in non-UTF-8 locales.
79462         * modules/wcwidth (Depends-on): Add localcharset, streq,
79463         uniwidth/width.
79464         * doc/functions/wcwidth.texi: Update.
79466 2007-07-07  Bruno Haible  <bruno@clisp.org>
79468         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
79469         (wcwidth): New declaration.
79470         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
79471         macros.
79472         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
79473         here. Prepare for creating <wchar.h> unconditionally.
79474         * modules/wchar (Depends-on): Add link-warning.
79475         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
79476         REPLACE_WCWIDTH, and GL_LINK_WARNING.
79477         * lib/wcwidth.h: Remove file.
79478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
79479         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
79480         * modules/wcwidth (Files): Remove lib/wcwidth.h.
79481         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
79482         (Include): Replace wcwidth.h with <wchar.h>.
79483         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
79484         * lib/mbchar.h: Don't include wcwidth.h.
79485         * lib/mbswidth.c: Likewise.
79486         * NEWS: Mention the change.
79488 2007-07-07  Bruno Haible  <bruno@clisp.org>
79490         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
79491         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
79492         definition with an external declaration.
79493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
79494         defined as a function. Remove AC_C_INLINE requirement.
79495         * modules/wcwidth (Files): Add lib/wcwidth.c.
79496         (Makefile.am): Remove redundant statement.
79498 2007-07-07  Bruno Haible  <bruno@clisp.org>
79500         * MODULES.html.sh (Unicode string functions): Add the new modules.
79502         * tests/uniwidth/test-u32-strwidth.c: New file.
79503         * modules/uniwidth/u32-strwidth-tests: New file.
79505         * lib/uniwidth/u32-strwidth.c: New file.
79506         * modules/uniwidth/u32-strwidth: New file.
79508         * tests/uniwidth/test-u16-strwidth.c: New file.
79509         * modules/uniwidth/u16-strwidth-tests: New file.
79511         * lib/uniwidth/u16-strwidth.c: New file.
79512         * modules/uniwidth/u16-strwidth: New file.
79514         * tests/uniwidth/test-u8-strwidth.c: New file.
79515         * modules/uniwidth/u8-strwidth-tests: New file.
79517         * lib/uniwidth/u8-strwidth.c: New file.
79518         * modules/uniwidth/u8-strwidth: New file.
79520         * tests/uniwidth/test-u32-width.c: New file.
79521         * modules/uniwidth/u32-width-tests: New file.
79523         * lib/uniwidth/u32-width.c: New file.
79524         * modules/uniwidth/u32-width: New file.
79526         * tests/uniwidth/test-u16-width.c: New file.
79527         * modules/uniwidth/u16-width-tests: New file.
79529         * lib/uniwidth/u16-width.c: New file.
79530         * modules/uniwidth/u16-width: New file.
79532         * tests/uniwidth/test-u8-width.c: New file.
79533         * modules/uniwidth/u8-width-tests: New file.
79535         * lib/uniwidth/u8-width.c: New file.
79536         * modules/uniwidth/u8-width: New file.
79538         * tests/uniwidth/test-uc_width.c: New file.
79539         * modules/uniwidth/width-tests: New file.
79541         * lib/uniwidth/width.c: New file, from GNU libiconv.
79542         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
79543         * modules/uniwidth/width: New file.
79545         * lib/uniwidth.h: New file, from GNU libiconv.
79546         * modules/uniwidth/base: New file.
79548 2007-07-07  Bruno Haible  <bruno@clisp.org>
79550         * lib/uniname.h: New file, from GNU gettext.
79551         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
79552         * lib/uniname/uninames.h: New file, from GNU gettext.
79553         * lib/uniname/uniname.c: New file, from GNU gettext.
79554         * tests/uniname/test-uninames.sh: New file.
79555         * tests/uniname/test-uninames.c: New file, from GNU gettext.
79556         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
79557         * modules/uniname/base: New file.
79558         * modules/uniname/uniname: New file.
79559         * modules/uniname/uniname-tests: New file.
79560         * MODULES.html.sh (Unicode string functions): Add the new modules.
79562 2007-07-06  Bruno Haible  <bruno@clisp.org>
79564         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
79566 2007-07-06  Bruno Haible  <bruno@clisp.org>
79568         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
79569         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
79570         includes <cygwin/sys_time.h> which includes <sys/select.h> which
79571         include <sys/time.h>.
79572         Reported by Eric Blake.
79574 2007-07-06  Eric Blake  <ebb9@byu.net>
79576         Fix testing canonicalize on cygwin.
79577         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
79578         Revert patch from 2007-06-19.
79579         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
79580         canonicalize module is also in use.
79581         * tests/test-canonicalize.c: New file.
79582         * tests/test-canonicalize.sh: Likewise.
79583         * modules/canonicalize-tests: Likewise.
79585 2007-07-06  Jim Meyering  <jim@meyering.net>
79587         * lib/getugroups.c (getugroups): Detect getgrent failure.
79588         Adjust comment to reflect reality: this function may return -1.
79590 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
79592         * build-aux/bootstrap (TP_URL,get_translations): Update to use
79593         the new TP address.
79594         (usage): Fix typo
79595         (gnulib_mk): New variable.
79597 2007-07-05  Jim Meyering  <jim@meyering.net>
79599         Don't let endgrent clobber errno, no matter how improbable.
79600         * lib/getugroups.c (getugroups): Save and restore errno around
79601         endgrent call.
79603         Close the group DB even when failing with 2^31 or more members.
79604         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
79606 2007-07-04  Jim Meyering  <jim@meyering.net>
79608         * lib/getugroups.h: New file.
79609         * lib/getugroups.c: Include "getugroups.h".
79610         Remove uses of "register" keyword.
79611         Move local variable, "cp", down into scope where used.
79612         Give "username" parameter the "const" attribute.
79613         * modules/getugroups (Files): Add lib/getugroups.h
79615 2007-07-04  Karl Berry  <karl@gnu.org>
79617         * MODULES.html.sh (func_all_modules): Complete rename of
79618         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
79620 2007-07-02  Bruno Haible  <bruno@clisp.org>
79622         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
79623         mode, when inttypes.h comes from gnulib.
79624         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
79626 2007-07-02  Simon Josefsson  <simon@josefsson.org>
79628         * NEWS: Mention lgpl module name change.
79630         * modules/lgpl-2.1: Renamed from lgpl.
79632         * NEWS: Mention gpl module name change.
79634         * modules/gpl-3.0: New file, based on gpl-2.0.
79636         * modules/gpl-2.0: Renamed from gpl.
79638         * modules/gpl: Fix filename, doc/gpl.texi is now found at
79639         doc/gpl-2.0.texi.
79641 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79643         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
79644         #define __STDC_LIMIT_MACROS temporarily while including
79645         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
79646         Problem reported by Joel E. Denny in
79647         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
79649 2007-07-01  Bruno Haible  <bruno@clisp.org>
79651         * lib/unistdio.h: New file.
79652         * lib/unistdio/u-asnprintf.h: New file.
79653         * lib/unistdio/u-asprintf.h: New file.
79654         * lib/unistdio/u-printf-args.c: New file.
79655         * lib/unistdio/u-printf-args.h: New file.
79656         * lib/unistdio/u-printf-parse.h: New file.
79657         * lib/unistdio/u-snprintf.h: New file.
79658         * lib/unistdio/u-sprintf.h: New file.
79659         * lib/unistdio/u-vasprintf.h: New file.
79660         * lib/unistdio/u-vsnprintf.h: New file.
79661         * lib/unistdio/u-vsprintf.h: New file.
79662         * lib/unistdio/ulc-asnprintf.c: New file.
79663         * lib/unistdio/ulc-asprintf.c: New file.
79664         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
79665         * lib/unistdio/ulc-printf-parse.c: New file.
79666         * lib/unistdio/ulc-snprintf.c: New file.
79667         * lib/unistdio/ulc-sprintf.c: New file.
79668         * lib/unistdio/ulc-vasnprintf.c: New file.
79669         * lib/unistdio/ulc-vasprintf.c: New file.
79670         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
79671         * lib/unistdio/ulc-vsnprintf.c: New file.
79672         * lib/unistdio/ulc-vsprintf.c: New file.
79673         * lib/unistdio/u8-asnprintf.c: New file.
79674         * lib/unistdio/u8-asprintf.c: New file.
79675         * lib/unistdio/u8-printf-parse.c: New file.
79676         * lib/unistdio/u8-snprintf.c: New file.
79677         * lib/unistdio/u8-sprintf.c: New file.
79678         * lib/unistdio/u8-vasnprintf.c: New file.
79679         * lib/unistdio/u8-vasprintf.c: New file.
79680         * lib/unistdio/u8-vsnprintf.c: New file.
79681         * lib/unistdio/u8-vsprintf.c: New file.
79682         * lib/unistdio/u8-u8-asnprintf.c: New file.
79683         * lib/unistdio/u8-u8-asprintf.c: New file.
79684         * lib/unistdio/u8-u8-snprintf.c: New file.
79685         * lib/unistdio/u8-u8-sprintf.c: New file.
79686         * lib/unistdio/u8-u8-vasnprintf.c: New file.
79687         * lib/unistdio/u8-u8-vasprintf.c: New file.
79688         * lib/unistdio/u8-u8-vsnprintf.c: New file.
79689         * lib/unistdio/u8-u8-vsprintf.c: New file.
79690         * lib/unistdio/u16-asnprintf.c: New file.
79691         * lib/unistdio/u16-asprintf.c: New file.
79692         * lib/unistdio/u16-printf-parse.c: New file.
79693         * lib/unistdio/u16-snprintf.c: New file.
79694         * lib/unistdio/u16-sprintf.c: New file.
79695         * lib/unistdio/u16-vasnprintf.c: New file.
79696         * lib/unistdio/u16-vasprintf.c: New file.
79697         * lib/unistdio/u16-vsnprintf.c: New file.
79698         * lib/unistdio/u16-vsprintf.c: New file.
79699         * lib/unistdio/u16-u16-asnprintf.c: New file.
79700         * lib/unistdio/u16-u16-asprintf.c: New file.
79701         * lib/unistdio/u16-u16-snprintf.c: New file.
79702         * lib/unistdio/u16-u16-sprintf.c: New file.
79703         * lib/unistdio/u16-u16-vasnprintf.c: New file.
79704         * lib/unistdio/u16-u16-vasprintf.c: New file.
79705         * lib/unistdio/u16-u16-vsnprintf.c: New file.
79706         * lib/unistdio/u16-u16-vsprintf.c: New file.
79707         * lib/unistdio/u32-asnprintf.c: New file.
79708         * lib/unistdio/u32-asprintf.c: New file.
79709         * lib/unistdio/u32-printf-parse.c: New file.
79710         * lib/unistdio/u32-snprintf.c: New file.
79711         * lib/unistdio/u32-sprintf.c: New file.
79712         * lib/unistdio/u32-vasnprintf.c: New file.
79713         * lib/unistdio/u32-vasprintf.c: New file.
79714         * lib/unistdio/u32-vsnprintf.c: New file.
79715         * lib/unistdio/u32-vsprintf.c: New file.
79716         * lib/unistdio/u32-u32-asnprintf.c: New file.
79717         * lib/unistdio/u32-u32-asprintf.c: New file.
79718         * lib/unistdio/u32-u32-snprintf.c: New file.
79719         * lib/unistdio/u32-u32-sprintf.c: New file.
79720         * lib/unistdio/u32-u32-vasnprintf.c: New file.
79721         * lib/unistdio/u32-u32-vasprintf.c: New file.
79722         * lib/unistdio/u32-u32-vsnprintf.c: New file.
79723         * lib/unistdio/u32-u32-vsprintf.c: New file.
79724         * tests/unistdio/test-ulc-asnprintf1.c: New file.
79725         * tests/unistdio/test-ulc-asnprintf1.h: New file.
79726         * tests/unistdio/test-ulc-printf1.h: New file.
79727         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
79728         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
79729         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
79730         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
79731         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
79732         * tests/unistdio/test-ulc-vasprintf1.c: New file.
79733         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
79734         * tests/unistdio/test-ulc-vsprintf1.c: New file.
79735         * tests/unistdio/test-u8-asnprintf1.c: New file.
79736         * tests/unistdio/test-u8-asnprintf1.h: New file.
79737         * tests/unistdio/test-u8-printf1.h: New file.
79738         * tests/unistdio/test-u8-vasnprintf1.c: New file.
79739         * tests/unistdio/test-u8-vasnprintf2.c: New file.
79740         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
79741         * tests/unistdio/test-u8-vasnprintf3.c: New file.
79742         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
79743         * tests/unistdio/test-u8-vasprintf1.c: New file.
79744         * tests/unistdio/test-u8-vsnprintf1.c: New file.
79745         * tests/unistdio/test-u8-vsprintf1.c: New file.
79746         * tests/unistdio/test-u16-asnprintf1.c: New file.
79747         * tests/unistdio/test-u16-asnprintf1.h: New file.
79748         * tests/unistdio/test-u16-printf1.h: New file.
79749         * tests/unistdio/test-u16-vasnprintf1.c: New file.
79750         * tests/unistdio/test-u16-vasnprintf2.c: New file.
79751         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
79752         * tests/unistdio/test-u16-vasnprintf3.c: New file.
79753         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
79754         * tests/unistdio/test-u16-vasprintf1.c: New file.
79755         * tests/unistdio/test-u16-vsnprintf1.c: New file.
79756         * tests/unistdio/test-u16-vsprintf1.c: New file.
79757         * tests/unistdio/test-u32-asnprintf1.c: New file.
79758         * tests/unistdio/test-u32-asnprintf1.h: New file.
79759         * tests/unistdio/test-u32-printf1.h: New file.
79760         * tests/unistdio/test-u32-vasnprintf1.c: New file.
79761         * tests/unistdio/test-u32-vasnprintf2.c: New file.
79762         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
79763         * tests/unistdio/test-u32-vasnprintf3.c: New file.
79764         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
79765         * tests/unistdio/test-u32-vasprintf1.c: New file.
79766         * tests/unistdio/test-u32-vsnprintf1.c: New file.
79767         * tests/unistdio/test-u32-vsprintf1.c: New file.
79768         * modules/unistdio/base: New file.
79769         * modules/unistdio/u-printf-args: New file.
79770         * modules/unistdio/ulc-asnprintf: New file.
79771         * modules/unistdio/ulc-asprintf: New file.
79772         * modules/unistdio/ulc-fprintf: New file.
79773         * modules/unistdio/ulc-printf-parse: New file.
79774         * modules/unistdio/ulc-snprintf: New file.
79775         * modules/unistdio/ulc-sprintf: New file.
79776         * modules/unistdio/ulc-vasnprintf: New file.
79777         * modules/unistdio/ulc-vasprintf: New file.
79778         * modules/unistdio/ulc-vfprintf: New file.
79779         * modules/unistdio/ulc-vsnprintf: New file.
79780         * modules/unistdio/ulc-vsprintf: New file.
79781         * modules/unistdio/u8-asnprintf: New file.
79782         * modules/unistdio/u8-asprintf: New file.
79783         * modules/unistdio/u8-printf-parse: New file.
79784         * modules/unistdio/u8-snprintf: New file.
79785         * modules/unistdio/u8-sprintf: New file.
79786         * modules/unistdio/u8-vasnprintf: New file.
79787         * modules/unistdio/u8-vasprintf: New file.
79788         * modules/unistdio/u8-vsnprintf: New file.
79789         * modules/unistdio/u8-vsprintf: New file.
79790         * modules/unistdio/u8-u8-asnprintf: New file.
79791         * modules/unistdio/u8-u8-asprintf: New file.
79792         * modules/unistdio/u8-u8-snprintf: New file.
79793         * modules/unistdio/u8-u8-sprintf: New file.
79794         * modules/unistdio/u8-u8-vasnprintf: New file.
79795         * modules/unistdio/u8-u8-vasprintf: New file.
79796         * modules/unistdio/u8-u8-vsnprintf: New file.
79797         * modules/unistdio/u8-u8-vsprintf: New file.
79798         * modules/unistdio/u16-asnprintf: New file.
79799         * modules/unistdio/u16-asprintf: New file.
79800         * modules/unistdio/u16-printf-parse: New file.
79801         * modules/unistdio/u16-snprintf: New file.
79802         * modules/unistdio/u16-sprintf: New file.
79803         * modules/unistdio/u16-vasnprintf: New file.
79804         * modules/unistdio/u16-vasprintf: New file.
79805         * modules/unistdio/u16-vsnprintf: New file.
79806         * modules/unistdio/u16-vsprintf: New file.
79807         * modules/unistdio/u16-u16-asnprintf: New file.
79808         * modules/unistdio/u16-u16-asprintf: New file.
79809         * modules/unistdio/u16-u16-snprintf: New file.
79810         * modules/unistdio/u16-u16-sprintf: New file.
79811         * modules/unistdio/u16-u16-vasnprintf: New file.
79812         * modules/unistdio/u16-u16-vasprintf: New file.
79813         * modules/unistdio/u16-u16-vsnprintf: New file.
79814         * modules/unistdio/u16-u16-vsprintf: New file.
79815         * modules/unistdio/u32-asnprintf: New file.
79816         * modules/unistdio/u32-asprintf: New file.
79817         * modules/unistdio/u32-printf-parse: New file.
79818         * modules/unistdio/u32-snprintf: New file.
79819         * modules/unistdio/u32-sprintf: New file.
79820         * modules/unistdio/u32-vasnprintf: New file.
79821         * modules/unistdio/u32-vasprintf: New file.
79822         * modules/unistdio/u32-vsnprintf: New file.
79823         * modules/unistdio/u32-vsprintf: New file.
79824         * modules/unistdio/u32-u32-asnprintf: New file.
79825         * modules/unistdio/u32-u32-asprintf: New file.
79826         * modules/unistdio/u32-u32-snprintf: New file.
79827         * modules/unistdio/u32-u32-sprintf: New file.
79828         * modules/unistdio/u32-u32-vasnprintf: New file.
79829         * modules/unistdio/u32-u32-vasprintf: New file.
79830         * modules/unistdio/u32-u32-vsnprintf: New file.
79831         * modules/unistdio/u32-u32-vsprintf: New file.
79832         * modules/unistdio/ulc-asnprintf-tests: New file.
79833         * modules/unistdio/ulc-vasnprintf-tests: New file.
79834         * modules/unistdio/ulc-vasprintf-tests: New file.
79835         * modules/unistdio/ulc-vsnprintf-tests: New file.
79836         * modules/unistdio/ulc-vsprintf-tests: New file.
79837         * modules/unistdio/u8-asnprintf-tests: New file.
79838         * modules/unistdio/u8-vasnprintf-tests: New file.
79839         * modules/unistdio/u8-vasprintf-tests: New file.
79840         * modules/unistdio/u8-vsnprintf-tests: New file.
79841         * modules/unistdio/u8-vsprintf-tests: New file.
79842         * modules/unistdio/u16-asnprintf-tests: New file.
79843         * modules/unistdio/u16-vasnprintf-tests: New file.
79844         * modules/unistdio/u16-vasprintf-tests: New file.
79845         * modules/unistdio/u16-vsnprintf-tests: New file.
79846         * modules/unistdio/u16-vsprintf-tests: New file.
79847         * modules/unistdio/u32-asnprintf-tests: New file.
79848         * modules/unistdio/u32-vasnprintf-tests: New file.
79849         * modules/unistdio/u32-vasprintf-tests: New file.
79850         * modules/unistdio/u32-vsnprintf-tests: New file.
79851         * modules/unistdio/u32-vsprintf-tests: New file.
79852         * MODULES.html.sh (Unicode string functions): Add the new modules.
79854 2007-07-01  Bruno Haible  <bruno@clisp.org>
79856         * lib/sprintf.c (sprintf): Limit the available length estimation,
79857         to avoid address wraparound.
79858         * lib/vsprintf.c (vsprintf): Likewise.
79859         * modules/sprintf-posix (Dependencies): Add stdint.
79860         * modules/vsprintf-posix (Dependencies): Likewise.
79862 2007-07-01  Bruno Haible  <bruno@clisp.org>
79864         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
79865         Windows PATH as well. Conservative double-quoting. Comments.
79867 2007-07-01  Bruno Haible  <bruno@clisp.org>
79868             Eric Blake  <ebb9@byu.net>
79869             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79871         * gnulib-tool (self_abspathname): Fix algorithm to cope with
79872         empty components in $PATH, denoting '.'.
79874 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79876         * gnulib-tool: Fix indentation.
79877         (func_create_megatestdir): Likewise.
79878         Report by Bruno Haible.
79880 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79882         Sync from Automake.
79883         * build-aux/gnupload: Fix shell portability issues with for loops.
79884         Report by Karl Berry.
79886 2007-06-29  Simon Josefsson  <simon@josefsson.org>
79888         * build-aux/maint.mk (POURL): Use translationproject.org.
79890 2007-06-27  Simon Josefsson  <simon@josefsson.org>
79891             Bruno Haible  <bruno@clisp.org>
79893         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
79894         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
79895         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
79896         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
79897         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
79899 2007-06-27  Bruno Haible  <bruno@clisp.org>
79901         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
79902         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
79904 2007-06-26  Karl Berry  <karl@gnu.org>
79906         * MODULES.html.sh: remove xreadlink-with-size.
79908 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79910         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
79911         method that I hope also handles the double-include problem noted
79912         by Bruno Haible in
79913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
79915 2007-06-23  Bruno Haible  <bruno@clisp.org>
79917         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79918         Don't let the 'mostlyclean' target fail if the last subdirectory could
79919         not be removed.
79920         Reported by Karl Berry.
79922 2007-06-23  Bruno Haible  <bruno@clisp.org>
79924         * gnulib-tool (echo): Add a speedier workaround for ksh.
79925         * tests/test-echo.sh: Likewise.
79927 2007-06-23  Bruno Haible  <bruno@clisp.org>
79929         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
79930         * tests/test-echo.sh: Likewise.
79932 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79934         * gnulib-tool (IFS): Initialize early, so we don't set it to
79935         empty later.
79936         (self_abspathname): Rewrite algorithm to set it, reindent.
79937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
79938         (func_create_megatestdir): Merge some sed scripts.
79940 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79942         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
79943         exposed by Sun Studio 11 cc on Solaris 8.
79945 2007-06-22  Bruno Haible  <bruno@clisp.org>
79947         * gnulib-tool (echo): Ensure the echo primitive does not interpret
79948         backslashes.
79949         * tests/test-echo.sh: New file.
79951 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79953         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
79954         simplify `sed_replace_build_aux' scripts, they are portable but
79955         echoing them with `echo' is not.
79956         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
79958 2007-06-21  Karl Berry  <karl@gnu.org>
79960         * config/srclist.txt: guess we can't handle the licenses via
79961         srclist at the moment.
79963 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79965         * MODULES.html.sh: Add include_next.
79966         * modules/include_next: New file.
79968 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
79971         INCLUDE_NEXT.
79972         (gl_CHECK_NEXT_HEADERS): New macro.
79973         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
79974         the obsolescent gl_ABSOLUTE_HEADER.
79975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
79976         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
79977         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
79978         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79979         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
79980         * m4/math_h.m4 (gl_MATH_H): Likewise.
79981         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79982         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
79983         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
79984         * m4/stdint.m4 (gl_STDINT_H): Likewise.
79985         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
79986         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
79987         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
79988         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79990         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
79991         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
79992         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79993         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
79994         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
79995         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
79996         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79997         * m4/inttypes.m4 (gl_INTTYPES_H): Define
79998         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
79999         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
80000         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
80001         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
80002         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
80003         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
80004         * lib/float_.h: Likewise.
80005         * lib/inttypes_.h: Likewise.
80006         * lib/math_.h: Likewise.
80007         * lib/search_.h: Likewise.
80008         * lib/signal_.h: Likewise.
80009         * lib/stdint_.h: Likewise.
80010         * lib/stdio_.h: Likewise.
80011         * lib/stdlib_.h: Likewise.
80012         * lib/string_.h: Likewise.
80013         * lib/sys_stat_.h: Likewise.
80014         * lib/sys_time_.h: Likewise.
80015         * lib/time_.h: Likewise.
80016         * lib/unistd_.h: Likewise.
80017         * lib/wchar_.h: Likewise.
80018         * lib/wctype_.h: Likewise.
80019         * lib/dirent_.h: Likewise.
80020         * lib/iconv_.h: Likewise.
80021         * lib/locale_.h: Likewise.
80022         * lib/netinet_in_.h: Likewise.
80023         * lib/sys_select_.h: Likewise.
80024         * lib/sys_socket_.h: Likewise.
80025         * lib/sysexits_.h: Likewise.
80026         * modules/fcntl (Depends-on): Depend on include_next, not
80027         absolute_header.
80028         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
80029         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
80030         * modules/fchdir: Likewise.
80031         * modules/float: Likewise.
80032         * modules/iconv_open: Likewise.
80033         * modules/inttypes: Likewise.
80034         * modules/locale: Likewise.
80035         * modules/math: Likewise.
80036         * modules/netinet_in: Likewise.
80037         * modules/search: Likewise.
80038         * modules/signal: Likewise.
80039         * modules/stdint: Likewise.
80040         * modules/stdio: Likewise.
80041         * modules/stdlib: Likewise.
80042         * modules/string: Likewise.
80043         * modules/sys_select: Likewise.
80044         * modules/sys_socket: Likewise.
80045         * modules/sys_stat: Likewise.
80046         * modules/sys_time: Likewise.
80047         * modules/sysexits: Likewise.
80048         * modules/time: Likewise.
80049         * modules/unistd: Likewise.
80050         * modules/wchar: Likewise.
80051         * modules/wctype: Likewise.
80052         * modules/sys_stat: Change maintainer to "all".
80053         * modules/unistd: Likewise.
80055 2007-06-20  Karl Berry  <karl@gnu.org>
80057         * config/srclist.txt: track www changes in license files.
80059 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
80061         * build-aux/bootstrap: Remove stray dot.
80062         Make sure build_aux settings are honored when linking
80063         gnulib_extra_files.
80065 2007-06-19  Eric Blake  <ebb9@byu.net>
80067         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
80068         Allow compilation on cygwin.
80070 2007-06-19  Jim Meyering  <jim@meyering.net>
80072         xreadlink-with-size: Remove module.  No longer used.
80073         Ex-callers now use xreadlink or mreadlink-with-size.
80074         * modules/xreadlink-with-size: Remove module.
80075         * lib/xreadlink-with-size.c: Remove file.
80076         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
80077         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
80078         just before the function definition *is* accurate.
80080         Eliminate one way canonicalize_filename_mode could exit.
80081         * lib/canonicalize.c (canonicalize_filename_mode):
80082         Use mreadlink_with_size, not xreadlink_with_size.
80084 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
80086         Detect porting problems to FreeBSD/arm, which has time_t wider than
80087         long int.  Original problem reported for GNU diff by Xin Li in
80088         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
80089         * modules/getdate (Depends-on): Add intprops, verify.
80090         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
80091         is an integer type no wider than long int.
80093 2007-06-18  Jim Meyering  <jim@meyering.net>
80095         New module: mreadlink-with-size.
80096         * MODULES.html.sh: Add mreadlink-with-size.
80097         * modules/mreadlink-with-size: New module
80098         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
80099         not xreadlink-with-size.
80100         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
80102 2007-06-16  Bruno Haible  <bruno@clisp.org>
80104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
80105         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
80106         Reported by Gary V. Vaughan <gary@gnu.org>.
80108 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
80110         Revamp lchown so that it lives in unistd.h where it belongs.
80111         * lib/lchown.h: Remove.
80112         * lib/dirchownmod.c: Don't include lib/lchown.h.
80113         * lib/fchownat.c: Likewise.
80114         * lib/openat.c: Likewise.
80115         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
80116         does not follow symlinks.
80117         (EOPNOTSUPP): Define if not defined.
80118         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
80119         is defined to 0.
80120         (lchown): New decl.
80121         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
80122         Do not check for lchown decl.
80123         Set REPLACE_LCHOWN.
80124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
80125         REPLACE_LCHOWN.
80126         * modules/chown: Make it clear it follows symlinks.
80127         * modules/lchown: Make it clear it doesn't follow symlinks.
80128         (Files): Remove lib/lchown.h
80129         (Depends-on): Add unistd.
80130         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
80131         (Include): Include <unistd.h>, not "lchown.h".
80132         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
80133         REPLACE_LCHOWN.
80135 2007-06-15  Jim Meyering  <jim@meyering.net>
80137         Change license (GPL to LGPL) of fsusage and dependents.
80138         * modules/fsusage (License): Change to LGPL.
80139         * modules/full-read (License): Likewise.
80140         * modules/full-write (License): Likewise.
80141         * modules/safe-read (License): Likewise.
80142         * modules/safe-write (License): Likewise.
80144 2007-06-14  Ben Pfaff  <blp@gnu.org>
80146         Missing part of allocsa -> malloca transition.
80147         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
80148         gl_MALLOCA.
80150 2007-06-12  Bruno Haible  <bruno@clisp.org>
80152         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
80153         to ia64, x86_64, i386.
80154         Reported by Eric Blake.
80156 2007-06-12  Bruno Haible  <bruno@clisp.org>
80158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
80159         cross-compiling to x86_64.
80161 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
80163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
80164         glitch reported by Ralf Wildenhues in
80165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
80167         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
80168         Vin Shelton.
80170 2007-06-11  Bruno Haible  <bruno@clisp.org>
80172         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
80173         replacement string.
80174         Reported by Eric Blake.
80176 2007-06-10  Bruno Haible  <bruno@clisp.org>
80178         Prepare vasnprintf code for use with Unicode strings.
80179         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
80180         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
80181         TYPE_U32_STRING.
80182         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
80183         a_u32_string variants.
80184         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
80185         * lib/printf-args.c: Don't include config.h and the specification
80186         header if PRINTF_FETCHARGS is already defined.
80187         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
80188         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
80189         TYPE_U16_STRING, TYPE_U32_STRING.
80190         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
80191         u16_directive, u16_directives, u32_directive, u32_directives): New
80192         types.
80193         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
80194         New declarations.
80195         * lib/printf-parse.c: Don't include config.h and the specification
80196         header if PRINTF_PARSE is already defined. Eliminate the set of
80197         parameters for WIDE_CHAR_VERSION; the user of this file must provide
80198         them now. Include c-ctype.h.
80199         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
80200         directive and CHAR_T_ONLY_ASCII.
80201         * lib/vasnprintf.c: Don't include config.h and the specification header
80202         if VASNPRINTF is already defined.
80203         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
80204         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
80205         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
80206         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
80207         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
80208         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
80209         code accordingly.
80210         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
80211         pad_ourselves also in this case, with the 'c' and 's' directives, and
80212         with a different notion of "width".
80213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
80215 2007-06-10  Bruno Haible  <bruno@clisp.org>
80217         * modules/unistr/u32-mbsnlen: New file.
80218         * lib/unistr/u32-mbsnlen.c: New file.
80220         * modules/unistr/u16-mbsnlen: New file.
80221         * lib/unistr/u16-mbsnlen.c: New file.
80223         * modules/unistr/u8-mbsnlen: New file.
80224         * lib/unistr/u8-mbsnlen.c: New file.
80226         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
80227         declarations.
80229 2007-06-10  Bruno Haible  <bruno@clisp.org>
80231         * lib/string_.h (mbsnlen): New declaration.
80232         * lib/mbsnlen.c: New file.
80233         * m4/mbsnlen.m4: New file.
80234         * modules/mbsnlen: New file.
80235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
80236         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
80237         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
80239 2007-06-10  Bruno Haible  <bruno@clisp.org>
80241         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
80243 2007-06-10  Bruno Haible  <bruno@clisp.org>
80245         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
80246         * lib/mbuiter.h: Likewise.
80248 2007-06-10  Bruno Haible  <bruno@clisp.org>
80250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
80251         declaration.
80253 2007-06-10  Karl Berry  <karl@gnu.org>
80255         * config/srclist.txt: remove gettext entries, Bruno prefers
80256         to update individually.
80258 2007-06-10  Bruno Haible  <bruno@clisp.org>
80260         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
80261         'maxlen'. Ensure only length + width bytes are allocated, not
80262         length + 1 + width.
80264 2007-06-09  Bruno Haible  <bruno@clisp.org>
80266         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
80267         (CHAR_T): Remove macro.
80268         (VASNPRINTF): Update.
80270 2007-06-09  Bruno Haible  <bruno@clisp.org>
80272         * MODULES.html.sh (Unicode string functions): Add the new modules.
80274         * modules/uniconv/u32-conv-to-enc: New file.
80275         * lib/uniconv/u32-conv-to-enc.c: New file.
80276         * modules/uniconv/u32-conv-to-enc-tests: New file.
80277         * tests/uniconv/test-u32-conv-to-enc.c: New file.
80279         * modules/uniconv/u16-conv-to-enc: New file.
80280         * lib/uniconv/u16-conv-to-enc.c: New file.
80281         * lib/uniconv/u-conv-to-enc.h: New file.
80282         * modules/uniconv/u16-conv-to-enc-tests: New file.
80283         * tests/uniconv/test-u16-conv-to-enc.c: New file.
80285         * modules/uniconv/u8-conv-to-enc: New file.
80286         * lib/uniconv/u8-conv-to-enc.c: New file.
80287         * modules/uniconv/u8-conv-to-enc-tests: New file.
80288         * tests/uniconv/test-u8-conv-to-enc.c: New file.
80290         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80291         u32_conv_to_encoding): New declarations.
80293 2007-06-09  Bruno Haible  <bruno@clisp.org>
80295         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
80297 2007-06-09  Bruno Haible  <bruno@clisp.org>
80299         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
80300         * modules/malloca: Renamed from modules/allocsa, updated.
80301         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
80302         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
80303         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
80304         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
80305         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
80306         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
80307         * modules/xmalloca: Renamed from modules/xallocsa, updated.
80308         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
80309         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
80310         * modules/c-strcasestr (Depends-on): Update.
80311         * lib/c-strcasestr.c: Update.
80312         * modules/c-strstr (Depends-on): Update.
80313         * lib/c-strstr.c: Update.
80314         * modules/canonicalize-lgpl (Depends-on): Update.
80315         * lib/canonicalize-lgpl.c: Update.
80316         * modules/clean-temp (Depends-on): Update.
80317         * lib/clean-temp.c: Update.
80318         * modules/csharpcomp (Depends-on): Update.
80319         * lib/csharpcomp.c: Update.
80320         * modules/csharpexec (Depends-on): Update.
80321         * lib/csharpexec.c: Update.
80322         * modules/javacomp (Depends-on): Update.
80323         * lib/javacomp.c: Update.
80324         * modules/javaexec (Depends-on): Update.
80325         * lib/javaexec.c: Update.
80326         * modules/mbscasestr (Depends-on): Update.
80327         * lib/mbscasestr.c: Update.
80328         * modules/mbsstr (Depends-on): Update.
80329         * lib/mbsstr.c: Update.
80330         * modules/setenv (Depends-on): Update.
80331         * lib/setenv.c: Update.
80332         * modules/strcasestr (Depends-on): Update.
80333         * lib/strcasestr.c: Update.
80334         * modules/striconveha (Depends-on): Update.
80335         * lib/striconveha.c: Update.
80336         * modules/relocatable-prog-wrapper (Files): Update.
80337         * lib/relocwrapper.c: Update.
80338         * build-aux/install-reloc: Update.
80339         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
80341 2007-06-08  Bruno Haible  <bruno@clisp.org>
80343         Port to uClibc.
80344         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
80345         * lib/fpurge.c (fpurge): Likewise.
80346         * lib/freading.c (freading): Likewise.
80347         * lib/fseeko.c (rpl_fseeko): Likewise.
80348         * lib/fseterr.c (fseterr): Likewise.
80349         * lib/fwriting.c (fwriting): Likewise.
80350         * tests/test-fflush.c (main): Avoid a failure on uClibc.
80352 2007-06-08  Bruno Haible  <bruno@clisp.org>
80354         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
80355         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
80356         * modules/gettext (Files): Add m4/intlmacosx.m4.
80358 2007-06-07  Bruno Haible  <bruno@clisp.org>
80360         * modules/localename-tests: New file.
80361         * tests/test-localename.c: New file.
80363         New module 'localename'.
80364         * lib/localename.h: New file.
80365         * lib/localename.c: New file, from GNU gettext.
80366         * m4/localename.m4: New file.
80367         * modules/localename: New file.
80369 2007-06-07  Bruno Haible  <bruno@clisp.org>
80371         Work around the lack of <wchar.h> on some builds of uClibc.
80372         * doc/headers/wchar.texi: Update.
80373         * lib/wchar_.h: Include <wchar.h> only if it exists.
80374         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
80375         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
80376         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
80377         doesn't exist.
80378         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
80379         * modules/mbfile (Depends-on): Add wchar.
80380         * modules/mbiter (Depends-on): Likewise.
80381         * modules/mbuiter (Depends-on): Likewise.
80382         Reported by Simon Josefsson.
80384 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80386         Work around problem reported by Steven M. Schweda in
80387         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
80388         Tru64 5.1B with the Compaq compiler environment installed declares
80389         an 'isblank' function but does not define it in the C library.
80390         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
80391         * lib/regex_internal.h (isblank): Likewise.
80392         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
80393         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
80395 2007-06-05  Bruno Haible  <bruno@clisp.org>
80397         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
80398         ia64.
80399         * modules/printf-safe: New file.
80400         * modules/fprintf-posix (Depends-on): Add printf-safe.
80401         * modules/printf-posix (Depends-on): Likewise.
80402         * modules/snprintf-posix (Depends-on): Likewise.
80403         * modules/sprintf-posix (Depends-on): Likewise.
80404         * modules/vasnprintf-posix (Depends-on): Likewise.
80405         * modules/vasprintf-posix (Depends-on): Likewise.
80406         * modules/vfprintf-posix (Depends-on): Likewise.
80407         * modules/vprintf-posix (Depends-on): Likewise.
80408         * modules/vsnprintf-posix (Depends-on): Likewise.
80409         * modules/vsprintf-posix (Depends-on): Likewise.
80410         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
80411         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
80412         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
80413         "no" on i386, x86_64, ia64.
80414         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
80415         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
80416         on i386, x86_64, ia64.
80417         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
80418         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
80419         on i386, x86_64, ia64.
80420         * tests/test-vasnprintf-posix.c: Include float.h.
80421         (LDBL80_WORDS): New macro.
80422         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
80423         on i386, x86_64, ia64.
80424         * tests/test-vasprintf-posix.c: Include float.h.
80425         (LDBL80_WORDS): New macro.
80426         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
80427         on i386, x86_64, ia64.
80428         * tests/test-snprintf-posix.c: Include float.h.
80429         * tests/test-sprintf-posix.c: Likewise.
80430         * tests/test-vsnprintf-posix.c: Likewise.
80431         * tests/test-vsprintf-posix.c: Likewise.
80433 2007-06-05  Bruno Haible  <bruno@clisp.org>
80435         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
80436         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
80437         non-IEEE numbers on i386, x86_64, ia64.
80438         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
80439         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
80440         * tests/test-isnanl.h: Include float.h.
80441         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
80443 2007-06-05  Bruno Haible  <bruno@clisp.org>
80445         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
80446         also the %a / %A. Handle the %a / %A code before this extra handling.
80448 2007-06-05  Bruno Haible  <bruno@clisp.org>
80450         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
80451         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
80453 2007-06-05  Bruno Haible  <bruno@clisp.org>
80455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
80456         typo in variable name.
80458 2007-06-05  Eric Blake  <ebb9@byu.net>
80460         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
80461         Reported by Simon Josefsson.
80463 2007-06-04  Bruno Haible  <bruno@clisp.org>
80465         Avoid test failures on some PowerPC platforms.
80466         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
80467         Define differently for PowerPC.
80468         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
80469         Reported by Gary V. Vaughan <gary@gnu.org>.
80471 2007-06-02  Bruno Haible  <bruno@clisp.org>
80473         Fix test-stdint failure on FreeBSD/ia64.
80474         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
80475         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
80476         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
80477         * doc/headers/stdint.texi: Update.
80479 2007-06-01  Bruno Haible  <bruno@clisp.org>
80481         * tests/test-binary-io.c (main): Pass a third argument to open().
80482         Reported by Gary V. Vaughan <gary@gnu.org>.
80484 2007-06-01  Bruno Haible  <bruno@clisp.org>
80486         * doc/functions/frexpl.texi: Update for mingw.
80488 2007-06-01  Bruno Haible  <bruno@clisp.org>
80490         * tests/test-lseek.c (main): Disable test of errno for invalid third
80491         argument.
80492         * doc/functions/lseek.texi: Update.
80493         Reported by Gary V. Vaughan <gary@gnu.org>.
80495 2007-05-28  Bruno Haible  <bruno@clisp.org>
80497         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
80499 2007-05-31  Eric Blake  <ebb9@byu.net>
80501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
80502         cross compiling.
80504 2007-05-30  Eric Blake  <ebb9@byu.net>
80505         and Bruno Haible  <bruno@clisp.org>
80507         Work around mingw test failures exposed by m4-1.4.9b.
80508         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
80509         * tests/test-unistd.c: Disable uid_t and git_t tests for the
80510         moment.
80512 2007-05-30  Bruno Haible  <bruno@clisp.org>
80514         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
80515         assuming that they are closed. Needed on HP-UX 11.
80517 2007-05-29  Bruno Haible  <bruno@clisp.org>
80519         Fix a problem with #include_next.
80520         * lib/dirent_.h: Split the double-inclusion guard.
80521         * lib/fcntl_.h: Likewise.
80522         * lib/float_.h: Likewise.
80523         * lib/iconv_.h: Likewise.
80524         * lib/inttypes_.h: Likewise.
80525         * lib/locale_.h: Likewise.
80526         * lib/math_.h: Likewise.
80527         * lib/netinet_in_.h: Likewise.
80528         * lib/search_.h: Likewise.
80529         * lib/signal_.h: Likewise.
80530         * lib/stdint_.h: Likewise.
80531         * lib/stdio_.h: Likewise.
80532         * lib/stdlib_.h: Likewise.
80533         * lib/string_.h: Likewise.
80534         * lib/sys_select_.h: Likewise.
80535         * lib/sys_socket_.h: Likewise.
80536         * lib/sys_stat_.h: Likewise.
80537         * lib/sys_time_.h: Likewise.
80538         * lib/sysexits_.h: Likewise.
80539         * lib/time_.h: Likewise.
80540         * lib/unistd_.h: Likewise.
80541         * lib/wchar_.h: Likewise.
80542         * lib/wctype_.h: Likewise.
80544 2007-05-29  Bruno Haible  <bruno@clisp.org>
80546         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
80547         for the moment.
80549 2007-05-29  Bruno Haible  <bruno@clisp.org>
80551         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
80552         invocation.
80553         Reported by Eric Blake.
80555 2007-05-29  Bruno Haible  <bruno@clisp.org>
80557         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
80558         compiling case.
80560 2007-05-29  Eric Blake  <ebb9@byu.net>
80561             Bruno Haible  <bruno@clisp.org>
80563         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
80564         cross compiles.
80566 2007-05-28  Eric Blake  <ebb9@byu.net>
80568         * modules/closein-tests (test_closein_LDADD): Support test on
80569         cygwin with libtool.
80571 2007-05-28  Bruno Haible  <bruno@clisp.org>
80573         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
80574         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
80575         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
80576         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
80577         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
80578         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
80579         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
80580         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
80581         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
80583 2007-05-28  Eric Blake  <ebb9@byu.net>
80585         Unconditionally include <config.h> in unit tests.
80586         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
80587         * tests/test-allocsa.c, tests/test-arcfour.c,
80588         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
80589         tests/test-array_list.c, tests/test-array_oset.c,
80590         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
80591         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
80592         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
80593         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
80594         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
80595         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
80596         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
80597         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
80598         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
80599         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
80600         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
80601         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
80602         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
80603         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
80604         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
80605         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
80606         test-md5.c, test-memmem.c, test-printf-posix.c,
80607         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
80608         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
80609         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
80610         test-strcasestr.c, test-striconv.c, test-striconveh.c,
80611         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
80612         test-vasnprintf-posix2.c, test-vasnprintf.c,
80613         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
80614         test-vfprintf-posix.c, test-vprintf-posix.c,
80615         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
80616         test-xvasprintf.c: Likewise.
80618 2007-05-28  Bruno Haible  <bruno@clisp.org>
80620         * gnulib-tool (func_import): Remember the --with-tests command-line
80621         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
80622         Reported by Eric Blake.
80624 2007-05-28  Bruno Haible  <bruno@clisp.org>
80626         * modules/ftell-tests: New file.
80627         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
80628         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
80630         * lib/ftell.c: New file.
80631         * modules/ftell: New file.
80632         * m4/ftell.m4: New file.
80633         * doc/functions/ftell.texi: Update.
80634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
80635         REPLACE_FTELL.
80636         * lib/stdio_.h (rpl_ftell): New declaration.
80637         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
80638         REPLACE_FTELL.
80640 2007-05-28  Eric Blake  <ebb9@byu.net>
80642         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
80644 2007-05-28  Bruno Haible  <bruno@clisp.org>
80646         * modules/fseek-tests: New file.
80647         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
80648         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
80650         * lib/fseek.c: New file.
80651         * modules/fseek: New file.
80652         * m4/fseek.m4: New file.
80653         * doc/functions/fseek.texi: Update.
80654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
80655         REPLACE_FSEEK.
80656         * lib/stdio_.h (rpl_fseek): New declaration.
80657         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
80658         REPLACE_FSEEK.
80660 2007-05-28  Bruno Haible  <bruno@clisp.org>
80662         * lib/stdio_.h (fflush): More comments.
80664 2007-05-28  Bruno Haible  <bruno@clisp.org>
80666         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
80667         runtime test.
80669 2007-05-28  Eric Blake  <ebb9@byu.net>
80671         Improve lseek module.
80672         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
80673         * lib/unistd_.h (lseek): Scale back link warning message.
80674         * tests/test-lseek.c: Beef up test.
80675         * tests/test-lseek.sh: Exercise more facets of lseek.
80676         Reported by Bruno Haible.
80678 2007-05-28  Bruno Haible  <bruno@clisp.org>
80680         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
80681         to define.
80683 2007-05-27  Bruno Haible  <bruno@clisp.org>
80685         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
80687 2007-05-27  Bruno Haible  <bruno@clisp.org>
80689         * modules/openmp: New file.
80690         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
80691         Noah Misch.
80693 2007-05-26  Bruno Haible  <bruno@clisp.org>
80695         * modules/chdir-long (Depends-on): Add fchdir.
80696         * modules/chdir-safer (Depends-on): Likewise.
80697         * modules/fts (Depends-on): Likewise.
80698         * modules/fts-lgpl (Depends-on): Likewise.
80699         * modules/openat (Depends-on): Likewise.
80700         * modules/savewd (Depends-on): Likewise.
80702 2007-05-24  Eric Blake  <ebb9@byu.net>
80704         Fix lseek on mingw.
80705         * modules/lseek: New module.
80706         * m4/lseek.m4: New file.
80707         * lib/lseek.c: New file.
80708         * modules/lseek-tests: New file.
80709         * tests/test-lseek.c: New file.
80710         * tests/test-lseek.sh: New file.
80711         * MODULES.html.sh: Document lseek module.
80712         * modules/fflush (Depends-on): Add lseek, fseeko.
80713         * modules/fseeko (Depends-on): Likewise.
80714         * modules/ftello (Depends-on): Likewise.
80715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
80716         broken.
80717         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
80718         broken.
80719         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
80720         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
80721         * lib/ftello.c (rpl_ftello): Likewise.
80722         * tests/test-fseeko.c (main): Test this.
80723         * tests/test-fseeko.sh: Likewise.
80724         * tests/test-ftello.c (main): Likewise.
80725         * tests/test-ftello.sh: Likewise.
80726         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
80727         implies replacing fseek.
80728         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
80729         HAVE_FTELLO.
80730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
80731         * modules/unistd (Makefile.am): Likewise.
80732         * lib/unistd_.h (lseek): Declare a replacement.
80733         * doc/functions/lseek.texi (lseek): Document this fix.
80734         * doc/functions/fseek.texi (fseek): Likewise.
80735         * doc/functions/ftell.texi (ftell): Likewise.
80737 2007-05-24  Bruno Haible  <bruno@clisp.org>
80739         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
80740         in the printed representation of a NaN.
80741         * tests/test-vasprintf-posix.c (test_function): Likewise.
80742         * tests/test-snprintf-posix.h (test_function): Likewise.
80743         * tests/test-sprintf-posix.h (test_function): Likewise.
80744         Reported by Eric Blake.
80746 2007-05-23  Eric Blake  <ebb9@byu.net>
80748         Fix fseeko/ftello on cygwin 1.5.24.
80749         * doc/functions/fseeko.texi (fseeko): Document the fix.
80750         * doc/functions/ftello.texi (ftello): Document the fix.
80751         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
80752         * doc/functions/stdout.text (stdout): New file.
80753         * doc/functions/stderr.text (stderr): New file.
80754         * doc/gnulib.texi (Function Substitutes): Use new files.
80755         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
80756         prior to 1.7.0.
80757         * tests/test-ftello.c (main): Likewise for ftello.
80758         * tests/test-fseeko.sh: New file.
80759         * tests/test-ftello.sh: New file.
80760         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
80761         with seekable stdin.
80762         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
80763         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
80764         (gl_REPLACE_FSEEKO): New macro.
80765         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
80766         * modules/fseeko (Files): Distribute fseeko.c.
80767         * modules/ftello (Files): Distribute ftello.c.
80768         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
80769         mode.
80770         * lib/ftello.c (rpl_ftello): New file.
80771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
80772         fseeko, ftello.
80773         (gl_STDIN_LARGE_OFFSET): New macro.
80774         * modules/stdio (Makefile.am): Perform the replacement.
80775         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
80777 2007-05-23  Bruno Haible  <bruno@clisp.org>
80779         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
80780         GNULIB_POSIXCHECK is defined.
80782 2007-05-21  Bruno Haible  <bruno@clisp.org>
80784         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
80785         Check also the output for NaN arguments. When cross-compiling, guess
80786         no on IRIX.
80787         * lib/vasnprintf.c: Update comments.
80788         * tests/test-vasnprintf-posix.c (strisnan): New function.
80789         (test_function): Use it.
80790         * tests/test-vasprintf-posix.c (strisnan): New function.
80791         (test_function): Use it.
80792         * tests/test-snprintf-posix.h (strisnan): New function.
80793         (test_function): Use it.
80794         * tests/test-sprintf-posix.h (strisnan): New function.
80795         (test_function): Use it.
80796         Reported by Eric Blake.
80798 2007-05-20  Bruno Haible  <bruno@clisp.org>
80800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
80801         numbers that fails on BeOS.
80802         * doc/functions/frexpl.texi: Update.
80804 2007-05-20  Jim Meyering  <jim@meyering.net>
80806         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
80807         forced upon us by glibc-2.6.
80809 2007-05-20  Bruno Haible  <bruno@clisp.org>
80811         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
80812         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
80813         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
80814         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
80815         NEED_PRINTF_INFINITE.
80816         (is_infinitel): New function.
80817         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
80818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
80819         gl_PREREQ_VASNPRINTF_INFINITE.
80820         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
80821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80822         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
80823         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
80824         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
80825         gl_PREREQ_VASNPRINTF_INFINITE.
80826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80827         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80833         * doc/functions/fprintf.texi: Update.
80834         * doc/functions/printf.texi: Update.
80835         * doc/functions/snprintf.texi: Update.
80836         * doc/functions/sprintf.texi: Update.
80837         * doc/functions/vfprintf.texi: Update.
80838         * doc/functions/vprintf.texi: Update.
80839         * doc/functions/vsnprintf.texi: Update.
80840         * doc/functions/vsprintf.texi: Update.
80842 2007-05-20  Bruno Haible  <bruno@clisp.org>
80844         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
80845         was not found in libc.
80846         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
80848 2007-05-20  Bruno Haible  <bruno@clisp.org>
80850         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
80851         printed as "-nan" instead of "nan".
80852         * tests/test-vasprintf-posix.c (test_function): Likewise.
80853         * tests/test-snprintf-posix.h (test_function): Likewise.
80854         * tests/test-sprintf-posix.h (test_function): Likewise.
80855         Needed for HP-UX 11.
80857 2007-05-20  Jim Meyering  <jim@meyering.net>
80859         Fix buggy test for the fchownat-deref bug.
80860         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
80861         symlink required for the run-test.  Without it, this test would
80862         always declare that fchownat doesn't work, and client code would
80863         unnecessarily use the replacement function with fixed libc.
80864         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
80865         Reported by Greg Schafer.
80867 2007-05-19  Bruno Haible  <bruno@clisp.org>
80869         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
80870         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
80871         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
80872         Needed for IRIX 6.5 and Solaris 2.5.1.
80874 2007-05-19  Bruno Haible  <bruno@clisp.org>
80876         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
80877         (test_function): Skip tests involving -0.0 on platforms where
80878         -0.0 = 0.0.
80879         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
80880         (test_function): Skip tests involving -0.0 on platforms where
80881         -0.0 = 0.0.
80882         * tests/test-snprintf-posix.h (have_minus_zero): New function.
80883         (test_function): Skip tests involving -0.0 on platforms where
80884         -0.0 = 0.0.
80885         * tests/test-sprintf-posix.h (have_minus_zero): New function.
80886         (test_function): Skip tests involving -0.0 on platforms where
80887         -0.0 = 0.0.
80888         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
80889         tests.
80890         * tests/test-printf-posix.h (test_function): Likewise.
80891         * tests/test-printf-posix.output: Remove all -0.0 related results.
80892         Needed for IRIX 6.5.
80894 2007-05-19  Bruno Haible  <bruno@clisp.org>
80896         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
80897         printed as "nan0x7fffffff" instead of "nan".
80898         * tests/test-vasprintf-posix.c (test_function): Likewise.
80899         * tests/test-snprintf-posix.h (test_function): Likewise.
80900         * tests/test-sprintf-posix.h (test_function): Likewise.
80901         * tests/test-fprintf-posix.h (NaN): Remove macro.
80902         (test_function): Remove all NaN related tests.
80903         * tests/test-printf-posix.h (NaN): Remove macro.
80904         (test_function): Remove all NaN related tests.
80905         * tests/test-printf-posix.output: Remove all NaN related results.
80906         Needed for IRIX 6.5.
80908 2007-05-19  Bruno Haible  <bruno@clisp.org>
80910         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
80911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
80913 2007-05-19  Bruno Haible  <bruno@clisp.org>
80915         * lib/float_.h: New file.
80916         * m4/float_h.m4: New file.
80917         * modules/float: New file.
80918         * modules/isnanl (Dependencies): Add float.
80919         * modules/isnanl-nolibm (Dependencies): Likewise.
80920         * modules/mathl (Dependencies): Likewise.
80921         * modules/printf-frexpl (Dependencies): Likewise.
80922         * modules/signbit (Dependencies): Likewise.
80923         * modules/vasnprintf (Dependencies): Likewise.
80924         * doc/headers/float.texi: Update.
80926 2007-05-19  Jim Meyering  <jim@meyering.net>
80928         * lib/utimens.c (gl_futimens): Rename from futimens,
80929         now that glibc-2.6 declares futimens.
80930         * lib/utimens.h: Likewise.
80932 2007-05-19  Bruno Haible  <bruno@clisp.org>
80934         Avoid test failures on mingw.
80935         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
80936         * tests/test-printf-posix.sh: Likewise.
80937         * tests/test-vfprintf-posix.sh: Likewise.
80938         * tests/test-vprintf-posix.sh: Likewise.
80940 2007-05-19  Bruno Haible  <bruno@clisp.org>
80942         Fix *printf result for NaN, Inf, -0.0 on mingw.
80943         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
80944         * lib/vasnprintf.c: Include math.h and isnan.h.
80945         (is_infinite_or_zero): New function.
80946         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
80947         values in the %f, %F, %e, %E, %g, %G directives.
80948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
80949         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80950         gl_PRINTF_INFINITE and test its result. Invoke
80951         gl_PREREQ_VASNPRINTF_INFINITE.
80952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80956         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80957         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80958         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80959         * doc/functions/fprintf.texi: Update.
80960         * doc/functions/printf.texi: Update.
80961         * doc/functions/snprintf.texi: Update.
80962         * doc/functions/sprintf.texi: Update.
80963         * doc/functions/vfprintf.texi: Update.
80964         * doc/functions/vprintf.texi: Update.
80965         * doc/functions/vsnprintf.texi: Update.
80966         * doc/functions/vsprintf.texi: Update.
80968 2007-05-19  Bruno Haible  <bruno@clisp.org>
80970         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
80971         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
80972         Instead of multiplying with 10^k, set extra_zeroes to k.
80973         (scale10_round_long_double): Remove function.
80975 2007-05-18  Bruno Haible  <bruno@clisp.org>
80977         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
80978         introduced on 2007-05-06.
80980 2007-05-18  Bruno Haible  <bruno@clisp.org>
80982         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
80983         %g directives.
80984         * tests/test-vasprintf-posix.c (test_function): Likewise.
80985         * tests/test-snprintf-posix.h (test_function): Likewise.
80986         * tests/test-sprintf-posix.h (test_function): Likewise.
80988 2007-05-18  Bruno Haible  <bruno@clisp.org>
80990         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
80991         (strmatch): New function.
80992         (test_function): Test the %f directive on numbers of various exponents.
80993         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
80994         (strmatch): New function.
80995         (test_function): Test the %f directive on numbers of various exponents.
80996         * tests/test-snprintf-posix.h (strmatch): New function.
80997         (test_function): Test the %f directive on numbers of various exponents.
80998         * tests/test-sprintf-posix.h (strmatch): New function.
80999         (test_function): Test the %f directive on numbers of various exponents.
81000         * tests/test-snprintf-posix.c (SIZEOF): New macro.
81001         * tests/test-sprintf-posix.c (SIZEOF): New macro.
81002         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
81003         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
81005 2007-05-18  Bruno Haible  <bruno@clisp.org>
81007         Add support for 'long double' number output.
81008         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
81009         * lib/vasnprintf.c: Include math.h and float+.h.
81010         (mp_limb_t): New type.
81011         (GMP_LIMB_BITS): New macro.
81012         (mp_twolimb_t): New type.
81013         (GMP_TWOLIMB_BITS): New macro.
81014         (mpn_t): New type.
81015         (multiply, divide, convert_to_decimal, decode_long_double,
81016         scale10_round_long_double, scale10_round_decimal_long_double,
81017         floorlog10l): New functions.
81018         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
81019         for the %f, %F, %e, %E, %g, %G directives.
81020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
81021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81022         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
81023         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
81024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81028         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81031         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
81032         * modules/snprintf-posix (Depends-on): Likewise.
81033         * modules/sprintf-posix (Depends-on): Likewise.
81034         * modules/vasnprintf-posix (Depends-on): Likewise.
81035         * modules/vasprintf-posix (Depends-on): Likewise.
81036         * modules/vfprintf-posix (Depends-on): Likewise.
81037         * modules/vsnprintf-posix (Depends-on): Likewise.
81038         * modules/vsprintf-posix (Depends-on): Likewise.
81039         * modules/vasnprintf (Files): Add lib/float+.h.
81040         * doc/functions/fprintf.texi: Update.
81041         * doc/functions/printf.texi: Update.
81042         * doc/functions/snprintf.texi: Update.
81043         * doc/functions/sprintf.texi: Update.
81044         * doc/functions/vfprintf.texi: Update.
81045         * doc/functions/vprintf.texi: Update.
81046         * doc/functions/vsnprintf.texi: Update.
81047         * doc/functions/vsprintf.texi: Update.
81049 2007-05-18  Bruno Haible  <bruno@clisp.org>
81051         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
81053 2007-05-18  Bruno Haible  <bruno@clisp.org>
81055         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
81056         for printing 64-bit integers. Needed for mingw.
81058 2007-05-18  Bruno Haible  <bruno@clisp.org>
81060         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
81061         gl_FUNC_FREXPL_WORKS.
81062         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
81064 2007-05-18  Bruno Haible  <bruno@clisp.org>
81066         * modules/frexpl-nolibm-tests: New file.
81068         * modules/frexpl-nolibm: New file.
81069         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
81071 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81073         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
81074         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
81075         GCC 4.2, which otherwise issues a lot of warnings.
81076         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
81077         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
81078         Likewise.
81079         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
81080         * modules/iconv_open (iconv.h): Likewise.
81081         * modules/locale (locale.h): Likewise.
81082         * modules/netinet_in (netinet/in.h): Likewise.
81083         * modules/sys_select (sys_select.h): Likewise.
81084         * modules/sys_socket (sys/socket.h): Likewise.
81085         * modules/sys_stat (sys/stat.h): Likewise.
81086         * modules/sysexits (sysexits.h): Likewise.
81087         * modules/unistd (unistd.h): Likewise.
81089 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81091         * modules/closein-tests (Makefile.am): Distribute
81092         `test-closein.sh'.
81094 2007-05-17  Bruno Haible  <bruno@clisp.org>
81096         * tests/test-printf-posix.output: Renamed from
81097         tests/test-fprintf-posix.out.
81098         * modules/fprintf-posix-tests: Update.
81099         * modules/printf-posix-tests: Update.
81100         * modules/vfprintf-posix-tests: Update.
81101         * modules/vprintf-posix-tests: Update.
81102         * tests/test-fprintf-posix.sh: Update.
81103         * tests/test-printf-posix.sh: Update.
81104         * tests/test-vfprintf-posix.sh: Update.
81105         * tests/test-vprintf-posix.sh: Update.
81106         Reported by Ralf Wildenhues.
81108 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81110         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
81111         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
81112         GCC 4.2, which otherwise issues a lot of warnings.
81113         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
81114         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
81115         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
81116         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
81117         it should no longer be needed.
81118         * lib/string_.h: Likewise.
81119         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
81120         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
81121         * modules/inttypes (inttypes.h): Likewise.
81122         * modules/math (math.h): Likewise.
81123         * modules/search (search.h): Likewise.
81124         * modules/signal (signal.h): Likewise.
81125         * modules/stdint (stdint.h): Likewise.
81126         * modules/stdio (stdio.h): Likewise.
81127         * modules/stdlib (stdlib.h): Likewise.
81128         * modules/string (string.h): Likewise.
81129         * modules/sys_time (sys/time.h): Likewise.
81130         * modules/time (time.h): Likewise.
81131         * modules/wchar (wchar.h): Likewise.
81132         * modules/wctype (wtype.h): Likewise.
81134 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
81136         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
81138 2007-05-13  Bruno Haible  <bruno@clisp.org>
81140         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
81141         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
81142         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
81143         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81144         (gl_PREREQ_STRTOK_R): Don't require it here.
81146 2007-05-13  Bruno Haible  <bruno@clisp.org>
81148         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
81149         when used in C++ mode.
81151 2007-05-12  Bruno Haible  <bruno@clisp.org>
81153         * lib/linebuffer.h: Tweak doc.
81154         * lib/linebuffer.c: Likewise.
81156 2007-05-12  James Youngman  <jay@gnu.org>
81158         * lib/linebuffer.c (readlinebuffer_delim): New function,
81159         like readlinebuffer, but use a caller-specified delimiter.
81160         (readlinebuffer): Just call readlinebuffer_delim with '\n'
81161         as the delimiter.
81162         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
81164 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81166         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
81167         * modules/openat (Files): Remove openat-die.c.
81168         (Depends-on): Add openat-die.
81169         * modules/openat-die: New module.
81171 2007-05-06  Bruno Haible  <bruno@clisp.org>
81173         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
81174         Update with info about Cygwin.
81175         * doc/functions/fprintf.texi: Update.
81176         * doc/functions/printf.texi: Update.
81177         * doc/functions/snprintf.texi: Update.
81178         * doc/functions/sprintf.texi: Update.
81179         * doc/functions/vfprintf.texi: Update.
81180         * doc/functions/vprintf.texi: Update.
81181         * doc/functions/vsnprintf.texi: Update.
81182         * doc/functions/vsprintf.texi: Update.
81183         Reported by Eric Blake.
81185 2007-05-06  Bruno Haible  <bruno@clisp.org>
81187         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
81188         padding ourselves for the floating-point directives.
81189         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
81190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
81191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81192         gl_PRINTF_FLAG_ZERO and test its result. Invoke
81193         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
81194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81195         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
81196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81198         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81199         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81200         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81201         * tests/test-snprintf-posix.h (test_function): Also check the width
81202         and some flags in the %f directive.
81203         * tests/test-sprintf-posix.h (test_function): Likewise.
81204         * tests/test-vasnprintf-posix.c (test_function): Likewise.
81205         * tests/test-vasprintf-posix.c (test_function): Likewise.
81206         * doc/functions/fprintf.texi: Update.
81207         * doc/functions/printf.texi: Update.
81208         * doc/functions/snprintf.texi: Update.
81209         * doc/functions/sprintf.texi: Update.
81210         * doc/functions/vfprintf.texi: Update.
81211         * doc/functions/vprintf.texi: Update.
81212         * doc/functions/vsnprintf.texi: Update.
81213         * doc/functions/vsprintf.texi: Update.
81215 2007-05-06  Bruno Haible  <bruno@clisp.org>
81217         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
81218         pass the ' flag character to sprintf or snprintf.
81219         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
81220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
81221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81222         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
81223         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
81224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
81226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81231         * tests/test-snprintf-posix.h (test_function): Also check the grouping
81232         flag.
81233         * tests/test-sprintf-posix.h (test_function): Likewise.
81234         * tests/test-vasnprintf-posix.c (test_function): Likewise.
81235         * tests/test-vasprintf-posix.c (test_function): Likewise.
81236         * doc/functions/fprintf.texi: Update.
81237         * doc/functions/printf.texi: Update.
81238         * doc/functions/snprintf.texi: Update.
81239         * doc/functions/sprintf.texi: Update.
81240         * doc/functions/vfprintf.texi: Update.
81241         * doc/functions/vprintf.texi: Update.
81242         * doc/functions/vsnprintf.texi: Update.
81243         * doc/functions/vsprintf.texi: Update.
81245 2007-05-01  Bruno Haible  <bruno@clisp.org>
81247         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
81249 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
81251         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
81252         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
81254 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81256         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
81257         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
81258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
81260 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
81262         * lib/argp-help.c (struct hol_entry): New member `ord'.
81263         (HOL_ENTRY_PTRCMP): Use ord for comparison
81264         (hol_sort): Initialize ord.
81266 2007-05-01  Bruno Haible  <bruno@clisp.org>
81268         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
81269         Reported by Eric Blake.
81270         * doc/gnulib.texi (Function Substitutes): Update.
81272 2007-05-01  Bruno Haible  <bruno@clisp.org>
81274         * doc/functions.texi: Remove file, now redundant through
81275         doc/functions/*.texi.
81277 2007-05-01  Bruno Haible  <bruno@clisp.org>
81279         * modules/argp (Depends-on): Add sleep.
81281 2007-05-01  Bruno Haible  <bruno@clisp.org>
81283         * modules/sleep-tests: New file.
81284         * tests/test-sleep.c: New file.
81286         * modules/sleep: New file.
81287         * lib/sleep.c: New file.
81288         * m4/sleep.m4: New file.
81289         * lib/unistd_.h (sleep): New declaration.
81290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
81291         HAVE_SLEEP.
81292         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
81293         * doc/functions/sleep.texi: Document the sleep module.
81295 2007-05-01  Bruno Haible  <bruno@clisp.org>
81297         * lib/sigprocmask.h: Remove file.
81298         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
81299         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
81300         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
81301         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
81302         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
81303         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
81304         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
81305         HAVE_SIGSET_T as a shell variable.
81306         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
81307         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
81308         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
81309         (Depends-on): Add signal. Remove verify.
81310         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
81311         (Include): Mention <signal.h> instead of sigprocmask.h.
81312         * NEWS: Mention the change.
81313         * lib/fatal-signal.c: Don't include sigprocmask.h.
81315 2007-05-01  Bruno Haible  <bruno@clisp.org>
81317         * modules/signal: New file.
81318         * lib/signal_.h: New file.
81319         * m4/signal_h.m4: New file.
81321 2007-05-01  Bruno Haible  <bruno@clisp.org>
81323         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
81324         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
81325         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
81326         HAVE_WCTYPE_CTMP_BUG into wctype.h.
81328 2007-05-01  Bruno Haible  <bruno@clisp.org>
81330         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
81331         configure time.
81332         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
81333         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
81334         * modules/sys_stat (Makefile.am): Substitute their values into
81335         sys/stat.h.
81337 2007-05-01  Bruno Haible  <bruno@clisp.org>
81339         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
81340         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
81341         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
81343 2007-05-01  Bruno Haible  <bruno@clisp.org>
81345         * doc/header/assert.texi: Undo last change: don't mention the gnulib
81346         'assert' module here.
81348 2007-05-01  Bruno Haible  <bruno@clisp.org>
81350         * doc/functions/*.texi: New files.
81351         * doc/functions/google-ranking.txt: New file.
81352         * doc/gnulib.texi (Function Substitutes): New chapter.
81353         (ctime, inet_ntoa): Remove sections.
81354         * doc/ctime.texi: Remove file.
81355         * doc/inet_ntoa.texi: Remove file.
81356         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
81357         dependencies.
81358         (%.info): New rule, specifying a --reference-limit.
81360 2007-05-01  Bruno Haible  <bruno@clisp.org>
81362         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
81364 2007-05-01  Bruno Haible  <bruno@clisp.org>
81366         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
81367         the portability of 'mkdir' to mingw systems.
81369 2007-05-01  Bruno Haible  <bruno@clisp.org>
81371         * doc/headers/google-ranking.txt: New file.
81373 2007-04-30  Eric Blake  <ebb9@byu.net>
81375         Prefer fseeko to fseek.
81376         * modules/getpass (Depends-on): Add fseeko.
81377         * lib/getpass.c (getpass): Use fseeko, not fseek.
81379 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
81381         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
81382         assumes the sorting is stable, while most qsort implementations
81383         are not.  Use argument addresses to ensure they never compare as
81384         equal.
81386         * tests/test-argp-2.sh (usage-indent test): Fix output
81387         (func_compare): Restore diff options
81388         * tests/test-argp.c: Restore #include "progname.h"
81390 2007-04-29  Bruno Haible  <bruno@clisp.org>
81392         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
81393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81394         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
81395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81396         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
81397         (configure.ac): Define CHECK_SNPRINTF_POSIX.
81398         (TESTS, check_PROGRAMS): Add test-snprintf.
81399         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
81400         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
81401         (TESTS, check_PROGRAMS): Add test-vsnprintf.
81402         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
81403         assertions that fail on HP-UX, OSF/1, or IRIX.
81404         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
81406 2007-04-29  Bruno Haible  <bruno@clisp.org>
81408         * MODULES.html.sh (posix_functions): Remove 'contents'.
81410 2007-04-29  Karl Berry  <karl@gnu.org>
81412         * config/srclist.txt (gendocs_template_min): new entry.
81414 2007-04-29  Bruno Haible  <bruno@clisp.org>
81416         Work around fpurge bug on BSD systems.
81417         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
81418         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
81419         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
81420         fpurge to rpl_fpurge if the system already has this function.
81421         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
81422         the case where the system already has this function. Correct invariants
81423         on BSD systems.
81424         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
81425         BSD systems.
81427 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
81429         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
81430         proposed by Sven Verdoolaege.
81432         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
81433         options.
81434         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
81435         (usage and help tests): Update
81437 2007-04-29  Bruno Haible  <bruno@clisp.org>
81439         * tests/test-fflush.c (main): Use a file of size 17, not 10.
81440         Print more information in case of failure. Disable a test on BeOS.
81442 2007-04-29  Bruno Haible  <bruno@clisp.org>
81444         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
81445         This helps debugging on systems on which no gdb is available.
81447 2007-04-29  Bruno Haible  <bruno@clisp.org>
81449         * lib/freading.h: Improve comments.
81450         * lib/fwriting.h: Likewise.
81451         * tests/test-freading.c (main): Don't check freading immediately after
81452         repositioning. Needed for glibc.
81454 2007-04-29  Bruno Haible  <bruno@clisp.org>
81456         * lib/freading.c (freading): Trivial simplification.
81458 2007-04-28  Bruno Haible  <bruno@clisp.org>
81460         * tests/test-fwriting.c (main): Also test the interaction between
81461         fflush and fwriting.
81462         * modules/fwriting-tests (Depends-on): Add fflush.
81464         * tests/test-freading.c (main): Also test the interaction between
81465         fflush and freading.
81466         * modules/freading-tests (Depends-on): Add fflush.
81468 2007-04-28  Bruno Haible  <bruno@clisp.org>
81470         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
81471         fseeko and ftello.
81472         Suggested by Eric Blake.
81474 2007-04-28  Jim Meyering  <jim@meyering.net>
81476         Avoid false-negative in gl_STDINT_H's C99 conformance test.
81477         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
81478         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
81480 2007-04-27  Eric Blake  <ebb9@byu.net>
81482         * doc/headers/assert.texi (assert.h): Document assert module use.
81484 2007-04-27  Bruno Haible  <bruno@clisp.org>
81486         * doc/headers/*.texi: New files.
81487         * doc/gnulib.texi (Header File Substitutes): New chapter.
81488         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
81489         dependencies.
81490         (standards.info ,standards.html, standards.dvi): Update dependencies.
81491         (mostlyclean, clean): New targets.
81493 2007-04-27  Bruno Haible  <bruno@clisp.org>
81495         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
81496         * modules/sysexits (Files, Makefile.am): Update.
81498         * lib/sys_socket_.h: Renamed from lib/socket_.h.
81499         * modules/sys_socket (Files, Makefile.am): Update.
81501         * lib/sys_stat_.h: Renamed from lib/stat_.h.
81502         * modules/sys_stat (Files, Makefile.am): Update.
81504 2007-04-27  Eric Blake  <ebb9@byu.net>
81506         * lib/freading.h: Improve comments.
81507         * lib/fwriting.h: Likewise.
81508         * lib/fflush.c: Likewise.
81510         Fix closein for mingw.
81511         * modules/closein-tests: Add tests for closein.
81512         * tests/test-closein.c: New file.
81513         * tests/test-closein.sh: Likewise.
81514         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
81515         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
81517 2007-04-27  Bruno Haible  <bruno@clisp.org>
81519         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
81520         version is < 6.
81521         * lib/math_.h [__DECC]: Likewise.
81522         * lib/stdio_.h [__DECC]: Likewise.
81523         * lib/stdlib_.h [__DECC]: Likewise.
81524         * lib/string_.h [__DECC]: Likewise.
81525         * lib/time_.h [__DECC]: Likewise.
81526         * lib/wchar_.h [__DECC]: Likewise.
81527         * lib/wctype_.h [__DECC]: Likewise.
81529 2007-04-27  Bruno Haible  <bruno@clisp.org>
81531         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
81533 2007-04-27  Bruno Haible  <bruno@clisp.org>
81535         * lib/fflush.c: Add comments.
81536         * modules/fpurge-tests (Depends-on): Add fflush.
81537         * modules/freadable-tests (Depends-on): Likewise.
81538         * modules/fwritable-tests (Depends-on): Likewise.
81540 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
81542         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
81543         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
81544         Report by Bruno Haible <bruno@clisp.org>.
81546 2007-04-26  Eric Blake  <ebb9@byu.net>
81548         Fix fflush on mingw.
81549         * modules/fflush (Depends-on): Add freading.
81550         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
81551         but unread data.
81553 2007-04-26  Eric Blake  <ebb9@byu.net>
81554         and Bruno Haible  <bruno@clisp.org>
81556         Implement freading and fwriting.
81557         * lib/freading.c: New file.
81558         * lib/freading.h: Likewise.
81559         * m4/freading.m4: Likewise.
81560         * modules/freading: Likewise.
81561         * modules/freading-tests: Likewise.
81562         * tests/test-freading.c: Likewise.
81563         * lib/fwriting.c: New file.
81564         * lib/fwriting.h: Likewise.
81565         * m4/fwriting.m4: Likewise.
81566         * modules/fwriting: Likewise.
81567         * modules/fwriting-tests: Likewise.
81568         * tests/test-fwriting.c: Likewise.
81569         * MODULES.html.sh (File stream based Input/Output): Mention them.
81571 2007-04-26  Bruno Haible  <bruno@clisp.org>
81573         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
81574         'long' when we assume it.
81575         Suggested by Eric Blake.
81577 2007-04-26  Bruno Haible  <bruno@clisp.org>
81579         Ensure fseeko, ftello are declared on glibc systems.
81580         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
81581         * modules/fseeko (configure.ac-early): Likewise.
81582         * modules/ftello (configure.ac-early): Likewise.
81583         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
81584         AC_FUNC_FSEEKO for this.
81585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
81586         (gl_CHECK_FSEEKO): Remove macro.
81588 2007-04-26  Bruno Haible  <bruno@clisp.org>
81590         * tests/test-fflush.c (main): Also check the ftell result after
81591         fflush and fseek/fseeko.
81592         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
81593         file descriptor position cache in the stream.
81594         * lib/fseeko.c (rpl_fseeko): Likewise.
81596 2007-04-26  Bruno Haible  <bruno@clisp.org>
81598         * modules/fflush-tests (Depends-on): Add fseeko.
81600 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
81601             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81603         * lib/argz_.h: ensure error_t definition is obtained in same
81604         mechanism system argz.h would have.
81605         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
81606         argz facilities are known bad.  Err on the side of caution if
81607         cross-compiling.
81609 2007-04-25  Eric Blake  <ebb9@byu.net>
81611         * lib/fpurge.c (includes): Use stdlib.h for free.
81612         * tests/test-fflush.c (main): Also test fflush-fseeko.
81614 2007-04-25  Bruno Haible  <bruno@clisp.org>
81616         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
81617         * lib/fseeko.c: New file.
81618         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
81619         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
81620         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
81621         gl_FUNC_FSEEKO.
81622         (gl_FUNC_FSEEKO): Invoke it.
81623         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
81624         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
81625         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
81627 2007-04-25  Bruno Haible  <bruno@clisp.org>
81629         * modules/fflush (Depends-on): Add ftello.
81631 2007-04-25  Bruno Haible  <bruno@clisp.org>
81633         * modules/ftello-tests: New file.
81634         * tests/test-ftello.c: New file.
81636         * modules/ftello: New file.
81637         * m4/ftello.m4: New file.
81638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
81639         HAVE_FTELLO.
81640         * lib/stdio_.h (ftello): New declaration.
81641         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
81642         HAVE_FTELLO.
81644 2007-04-25  Bruno Haible  <bruno@clisp.org>
81646         * modules/fseeko-tests: New file.
81647         * tests/test-fseeko.c: New file.
81649         * modules/fseeko: New file.
81650         * m4/fseeko.m4: New file.
81651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
81652         HAVE_FSEEKO.
81653         * lib/stdio_.h (fseeko): New declaration.
81654         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
81655         HAVE_FSEEKO.
81657 2007-04-25  Bruno Haible  <bruno@clisp.org>
81659         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
81661 2007-04-25  Bruno Haible  <bruno@clisp.org>
81663         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
81664         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
81665         * tests/test-unistd.c: Likewise.
81666         * tests/test-fcntl.c: Likewise.
81668 2007-04-23  Eric Blake  <ebb9@byu.net>
81670         * lib/fflush.c: Fix missing include.
81671         Reported by Bruno Haible.
81673 2007-04-23  Bruno Haible  <bruno@clisp.org>
81675         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
81676         Reported by Eric Blake.
81678 2007-04-23  Bruno Haible  <bruno@clisp.org>
81680         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
81682 2007-04-23  Bruno Haible  <bruno@clisp.org>
81684         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
81686 2007-04-23  Bruno Haible  <bruno@clisp.org>
81688         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
81689         Needed on HP-UX 11.
81691 2007-04-16  Eric Blake  <ebb9@byu.net>
81693         Make fflush rely on fpurge.
81694         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
81695         open coding all variants.
81696         * modules/fflush (Depends-on): Add fpurge and unistd.
81697         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
81698         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
81700         Fix --with-tests compilation on cygwin.
81701         * modules/argmatch-tests (Makefile.am): List gnulib library first
81702         in LDADD.
81703         * modules/argp-tests (Makefile.am): Likewise.
81704         * modules/array-list-tests (Makefile.am): Likewise.
81705         * modules/array-oset-tests (Makefile.am): Likewise.
81706         * modules/avltree-list-tests (Makefile.am): Likewise.
81707         * modules/avltree-oset-tests (Makefile.am): Likewise.
81708         * modules/avltreehash-list-tests (Makefile.am): Likewise.
81709         * modules/carray-list-tests (Makefile.am): Likewise.
81710         * modules/dirname-tests (Makefile.am): Likewise.
81711         * modules/frexp-tests (Makefile.am): Likewise.
81712         * modules/isnanl-tests (Makefile.am): Likewise.
81713         * modules/linked-list-tests (Makefile.am): Likewise.
81714         * modules/linkedhash-list-tests (Makefile.am): Likewise.
81715         * modules/lock-tests (Makefile.am): Likewise.
81716         * modules/rbtree-list-tests (Makefile.am): Likewise.
81717         * modules/rbtree-oset-tests (Makefile.am): Likewise.
81718         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
81719         * modules/tls-tests (Makefile.am): Likewise.
81720         * modules/tsearch-tests (Makefile.am): Likewise.
81721         * modules/xvasprintf-tests (Makefile.am): Likewise.
81723         Fix fpurge for cygwin.
81724         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
81725         value.
81726         * modules/fpurge-tests (Depends-on): Clean up trash.
81728 2007-04-16  Simon Josefsson  <simon@josefsson.org>
81730         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
81732         * m4/autobuild.m4: Re-indent.
81734 2007-04-13  Bruno Haible  <bruno@clisp.org>
81736         * modules/fpurge-tests: New file.
81737         * tests/test-fpurge.c: New file.
81739         * modules/fpurge: New file.
81740         * lib/fpurge.h: New file.
81741         * lib/fpurge.c: New file.
81742         * m4/fpurge.m4: New file.
81744 2007-04-13  Bruno Haible  <bruno@clisp.org>
81746         * modules/fbufmode-tests: New file.
81747         * tests/test-fbufmode.c: New file.
81749         * modules/fbufmode: New file.
81750         * lib/fbufmode.h: New file.
81751         * lib/fbufmode.c: New file.
81752         * m4/fbufmode.m4: New file.
81754 2007-04-13  Bruno Haible  <bruno@clisp.org>
81756         * modules/fwritable-tests: New file.
81757         * tests/test-fwritable.c: New file.
81759         * modules/fwritable: New file.
81760         * lib/fwritable.h: New file.
81761         * lib/fwritable.c: New file.
81762         * m4/fwritable.m4: New file.
81764 2007-04-13  Bruno Haible  <bruno@clisp.org>
81766         * modules/freadable-tests: New file.
81767         * tests/test-freadable.c: New file.
81769         * modules/freadable: New file.
81770         * lib/freadable.h: New file.
81771         * lib/freadable.c: New file.
81772         * m4/freadable.m4: New file.
81774 2007-04-13  Bruno Haible  <bruno@clisp.org>
81776         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
81777         MOSTLYCLEANFILES.
81779 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81781         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
81782         gzip bootstrap.conf to avoid dragging in i18n machinery.
81783         (gnulib_tool_option): Use it.
81785 2007-04-13  Bruno Haible  <bruno@clisp.org>
81787         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
81788         %F directives.
81789         * tests/test-vasprintf-posix.c (test_function): Likewise.
81790         * tests/test-snprintf-posix.h (test_function): Likewise.
81791         * tests/test-sprintf-posix.h (test_function): Likewise.
81792         * tests/test-fprintf-posix.h (test_function): Likewise.
81793         * tests/test-printf-posix.h (test_function): Likewise.
81794         * tests/test-fprintf-posix.out: Likewise.
81796 2007-04-13  Bruno Haible  <bruno@clisp.org>
81798         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
81799         * modules/tls-tests (configure.ac): Likewise.
81800         Reported by Arto C. Nirkko <anirkko@insel.ch>.
81802 2007-04-13  Bruno Haible  <bruno@clisp.org>
81804         * lib/tls.c (glthread_tls_get): Fix return type.
81805         Patch by Arto C. Nirkko <anirkko@insel.ch>.
81807 2007-04-12  Eric Blake  <ebb9@byu.net>
81809         * modules/gettime (Depends-on): Remove gettime.
81810         Reported by Dmitry V. Levin.
81812 2007-04-12  Bruno Haible  <bruno@clisp.org>
81814         * modules/fflush (Include): Mention <stdio.h>.
81815         * modules/strtoimax (Include): Mention <inttypes.h>.
81816         * modules/strtoumax (Include): Likewise.
81818 2007-04-12  Eric Blake  <ebb9@byu.net>
81820         * .cvsignore: New file.
81821         * .gitignore: Likewise.
81823 2007-04-12  Bruno Haible  <bruno@clisp.org>
81825         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
81826         not before, since $(LDADD) often contains libgnu.a.
81827         * modules/striconv-tests (test_striconv_LDADD): Likewise.
81828         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
81829         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
81830         Needed on Cygwin.
81832 2007-04-12  Eric Blake  <ebb9@byu.net>
81834         Work around glibc's failure to flush stdin on fclose.
81835         * lib/closein.c (close_stdin): Flush stdin before closing.
81837         Work around glibc's failure to reset seekable stdin on exit.
81838         * modules/closein: New module.
81839         * lib/closein.c: New file.
81840         * lib/closein.h: Likewise.
81841         * m4/closein.m4: Likewise.
81842         * MODULES.html.sh (File stream based Input/Output): Document it.
81844 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81846         * gnulib-tool: Rename generated 'autobuild' script to
81847         'do-autobuild' in --create-megatestdir output.
81849         * doc/gnulib.texi (Build robot for gnulib): Fix.
81851 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81853         * modules/sysexits (Depends-on): Add absolute-header.
81855 2007-04-12  Eric Blake  <ebb9@byu.net>
81857         No need to preserve errno on success.
81858         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
81859         Reported by Bruno Haible.
81861 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81863         * MODULES.html.sh (Support for maintaining and releasing
81864         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
81866 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81868         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
81870 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81872         * modules/autobuild: New module.
81874         * m4/autobuild.m4: New file.
81876 2007-04-11  Bruno Haible  <bruno@clisp.org>
81878         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
81879         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
81880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
81881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
81882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81883         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81884         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81886         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81887         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
81889         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81890         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
81892         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81893         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
81895         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81896         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81897         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
81898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81900         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
81901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
81904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81906         Reported by Eric Blake.
81908 2007-04-11  Bruno Haible  <bruno@clisp.org>
81910         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
81912 2007-04-10  Bruno Haible  <bruno@clisp.org>
81914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
81915         for NaN and Infinity. Needed on FreeBSD 6.1.
81916         * tests/test-vasnprintf-posix.c (test_function): Undo last change
81917         regarding results for "%010a" of Infinity and NaN.
81918         * tests/test-vasprintf-posix.c (test_function): Likewise.
81919         * tests/test-snprintf-posix.h (test_function): Likewise.
81920         * tests/test-sprintf-posix.h (test_function): Likewise.
81921         * tests/test-fprintf-posix.h (test_function): Likewise.
81922         * tests/test-printf-posix.h (test_function): Likewise.
81923         * tests/test-fprintf-posix.out: Likewise.
81925 2007-04-10  Bruno Haible  <bruno@clisp.org>
81927         * modules/locale-tests: New file.
81928         * tests/test-locale.c: New file.
81930         * modules/locale: New file.
81931         * lib/locale_.h: New file.
81932         * m4/locale_h.m4: New file.
81934 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
81935             Bruno Haible  <bruno@clisp.org>
81937         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
81938         be determined, test for availability of the copysignf, copysign,
81939         copysignl functions.
81940         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
81941         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
81942         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
81944 2007-04-09  Eric Blake  <ebb9@byu.net>
81946         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
81947         * modules/stdio (Makefile.am): Support fflush.
81948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81949         * modules/fflush: New file.
81950         * lib/fflush.c: Likewise.
81951         * m4/fflush.m4: Likewise.
81952         * modules/fflush-tests: New test.
81953         * tests/test-fflush.c: Likewise.
81954         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
81956 2007-04-06  Bruno Haible  <bruno@clisp.org>
81958         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
81959         (VASNPRINTF): Use signbit for faster determination whether to print a
81960         minus sign.
81961         * modules/vasnprintf (Files): Remove lib/float+.h.
81962         * modules/fprintf-posix (Depends-on): Add signbit.
81963         * modules/snprintf-posix (Depends-on): Likewise.
81964         * modules/sprintf-posix (Depends-on): Likewise.
81965         * modules/vasnprintf-posix (Depends-on): Likewise.
81966         * modules/vasprintf-posix (Depends-on): Likewise.
81967         * modules/vfprintf-posix (Depends-on): Likewise.
81968         * modules/vsnprintf-posix (Depends-on): Likewise.
81969         * modules/vsprintf-posix (Depends-on): Likewise.
81971 2007-04-06  Bruno Haible  <bruno@clisp.org>
81973         * tests/test-frexp.c (main): Test also the sign bit of zero results.
81974         * tests/test-frexpl.c (main): Likewise.
81975         * tests/test-ldexpl.c (main): Likewise.
81976         * modules/frexp-tests (Depends-on): Add signbit.
81977         * modules/frexpl-tests (Depdends-on): Likewise.
81978         * modules/ldexpl-tests (Depdends-on): Likewise.
81980 2007-04-06  Bruno Haible  <bruno@clisp.org>
81982         * modules/signbit-tests: New file.
81983         * tests/test-signbit.c: New file.
81985         * modules/signbit: New file.
81986         * lib/signbitf.c: New file.
81987         * lib/signbitd.c: New file.
81988         * lib/signbitl.c: New file.
81989         * m4/signbit.m4: New file.
81990         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
81991         (signbit): New macro.
81992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
81993         REPLACE_SIGNBIT.
81994         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
81995         REPLACE_FREXPL into math.h.
81997 2007-04-06  Bruno Haible  <bruno@clisp.org>
81999         * modules/isnanf-nolibm-tests: New file.
82000         * tests/test-isnanf.c: New file.
82002         * modules/isnanf-nolibm: New file.
82003         * lib/isnanf.h: New file.
82004         * lib/isnanf.c: New file.
82005         * lib/isnan.c: Consider the USE_FLOAT macro.
82006         * m4/isnanf.m4: New file.
82008 2007-04-06  Bruno Haible  <bruno@clisp.org>
82010         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
82011         (Link): New section.
82013         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
82015 2007-04-06  Bruno Haible  <bruno@clisp.org>
82017         Assume the 'long double' type.
82018         * m4/longdouble.m4: Remove file.
82019         * config/srclist.txt: Don't mention longdouble.m4.
82020         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
82021         * lib/float+.h: Likewise.
82022         * lib/frexp.c: Likewise.
82023         * lib/printf-args.h: Likewise.
82024         * lib/printf-args.c: Likewise.
82025         * lib/printf-frexp.c: Likewise.
82026         * lib/printf-parse.c: Likewise.
82027         * lib/vasnprintf.c: Likewise.
82028         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
82029         * m4/intl.m4: Likewise.
82030         * m4/isnanl.m4: Likewise.
82031         * m4/printf.m4: Likewise.
82032         * m4/printf-frexpl.m4: Likewise.
82033         * m4/vasnprintf.m4: Likewise.
82034         * modules/allocsa (Files): Remove m4/longdouble.m4.
82035         * modules/gettext (Files): Likewise.
82036         * modules/relocatable-prog-wrapper (Files): Likewise.
82037         * modules/vasnprintf (Files): Likewise.
82038         * modules/isnanl (Files): Likewise.
82039         (Include): Simplify.
82040         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
82041         (Include): Simplify.
82042         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
82043         (Include): Simplify.
82044         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
82045         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82046         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
82047         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82048         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
82049         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82050         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
82051         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82052         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
82053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82054         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
82055         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82056         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
82057         * tests/test-isnanl.c: Likewise.
82058         * tests/test-snprintf-posix.h: Likewise.
82059         * tests/test-sprintf-posix.h: Likewise.
82060         * tests/test-vasnprintf-posix.c: Likewise.
82061         * tests/test-vasnprintf-posix2.c: Likewise.
82062         * tests/test-vasprintf-posix.c: Likewise.
82064 2007-04-06  Bruno Haible  <bruno@clisp.org>
82066         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
82067         * lib/math_.h [__DECC]: Include the overridden include file through
82068         #include_next, outside the double-inclusion guard.
82069         * lib/stdio_.h [__DECC]: Likewise.
82070         * lib/stdlib_.h [__DECC]: Likewise.
82071         * lib/string_.h [__DECC]: Likewise.
82072         * lib/time_.h [__DECC]: Likewise.
82073         * lib/wchar_.h [__DECC]: Likewise.
82074         * lib/wctype_.h [__DECC]: Likewise.
82075         * lib/inttypes_.h [__DECC]: Likewise.
82076         Reported by Albert Chin <china@thewrittenword.com> in
82077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
82079 2007-04-04  Eric Blake  <ebb9@byu.net>
82081         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
82082         1.5.x.
82084 2007-04-04  Bruno Haible  <bruno@clisp.org>
82086         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
82087         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
82089 2007-04-04  Bruno Haible  <bruno@clisp.org>
82091         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
82092         results for "%010a" of Infinity and NaN.
82093         * tests/test-vasprintf-posix.c (test_function): Likewise.
82094         * tests/test-snprintf-posix.h (test_function): Likewise.
82095         * tests/test-sprintf-posix.h (test_function): Likewise.
82096         * tests/test-fprintf-posix.h (test_function): Remove these tests.
82097         * tests/test-printf-posix.h (test_function): Likewise.
82098         * tests/test-fprintf-posix.out: Update.
82099         Needed for FreeBSD 6.1.
82101 2007-04-04  Bruno Haible  <bruno@clisp.org>
82103         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
82104         directly used by the gnulib modules nor by gnulib-tool.
82106 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82108         * DEPENDENCIES: Give overall description of version dependency
82109         desirability.  Use more-typical names for apps.
82110         Add shell, coreutils, diffutils, grep, tar, gzip.
82112 2007-04-04  Simon Josefsson  <simon@josefsson.org>
82114         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
82116 2007-04-04  Karl Berry  <karl@gnu.org>
82118         * MODULES.html.sh (func_module): missing '.
82120 2007-04-03  Bruno Haible  <bruno@clisp.org>
82122         * modules/argmatch-tests (Makefile.am): New variable
82123         test_argmatch_LDADD.
82124         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
82125         * modules/array-list-tests (Makefile.am): New variable
82126         test_array_list_LDADD.
82127         * modules/array-oset-tests (Makefile.am): New variable
82128         test_array_oset_LDADD.
82129         * modules/avltree-list-tests (Makefile.am): New variable
82130         test_avltree_list_LDADD.
82131         * modules/avltree-oset-tests (Makefile.am): New variable
82132         test_avltree_oset_LDADD.
82133         * modules/avltreehash-list-tests (Makefile.am): New variable
82134         test_avltreehash_list_LDADD.
82135         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
82136         test_canonicalize_lgpl_LDADD.
82137         * modules/carray-list-tests (Makefile.am): New variable
82138         test_carray_list_LDADD.
82139         * modules/dirname-tests (Makefile.am): New variable
82140         test_dirname_LDADD.
82141         * modules/linked-list-tests (Makefile.am): New variable
82142         test_linked_list_LDADD.
82143         * modules/linkedhash-list-tests (Makefile.am): New variable
82144         test_linkedhash_list_LDADD.
82145         * modules/rbtree-list-tests (Makefile.am): New variable
82146         test_rbtree_list_LDADD.
82147         * modules/rbtree-oset-tests (Makefile.am): New variable
82148         test_rbtree_oset_LDADD.
82149         * modules/rbtreehash-list-tests (Makefile.am): New variable
82150         test_rbtreehash_list_LDADD.
82151         * modules/xvasprintf-tests (Makefile.am): New variable
82152         test_xvasprintf_LDADD.
82153         Reported by Eric Blake.
82155 2007-04-03  Eric Blake  <ebb9@byu.net>
82157         * DEPENDENCIES: Weaken m4 requirements.
82159 2007-04-03  Bruno Haible  <bruno@clisp.org>
82161         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
82162         * modules/isnanl-tests (configure.ac): Likewise.
82164 2007-04-03  Ben Pfaff  <blp@gnu.org>
82166         * modules/iconv_open: Add $(srcdir)/ to source directory
82167         references in Makefile fragments that call gperf, to fix VPATH
82168         builds.
82170 2007-04-03  Bruno Haible  <bruno@clisp.org>
82172         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
82173         * lib/ldexpl.c: Undo last change.
82175 2007-04-03  Bruno Haible  <bruno@clisp.org>
82177         * modules/printf-frexpl (Depends-on): Undo last change.
82178         (Files): Add m4/ldexpl.m4.
82180 2007-04-03  Bruno Haible  <bruno@clisp.org>
82182         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
82183         * modules/isnanl (Link): New section.
82185         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
82186         * modules/frexp (Link): New section.
82188         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
82189         * modules/frexpl (Link): New section.
82191         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
82192         * modules/ldexpl (Link): New section.
82194 2007-04-03  Bruno Haible  <bruno@clisp.org>
82196         * modules/TEMPLATE-EXTENDED: New file.
82197         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
82199 2007-04-03  Bruno Haible  <bruno@clisp.org>
82201         * DEPENDENCIES: New file.
82202         Suggested by Simon Josefsson.
82204 2007-04-03  Bruno Haible  <bruno@clisp.org>
82206         * doc/gnulib.texi: Escape @.
82208 2007-04-03  James Youngman  <jay@gnu.org>
82209         and Paul Eggert  <eggert@cs.ucla.edu>
82211         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
82212         birthtime on all systems that have birthtime, not just those which
82213         use st_birthtimensec rather than st_birthtim.  Putting zero in
82214         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
82215         that the birth time is not available for files on an NFS mount.
82217 2007-04-03  Simon Josefsson  <simon@josefsson.org>
82219         * modules/memxor: Move back from crypto/, suggested by Bruno.
82220         * modules/crypto/hmac-sha1: Fix memxor dependency.
82222         * modules/crypto/gc: Moved from ../.
82224 2007-04-02  Eric Blake  <ebb9@byu.net>
82226         * lib/ldexpl.c (includes): Avoid libm.
82228         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
82230 2007-04-02  Bruno Haible  <bruno@clisp.org>
82232         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
82233         on IRIX.
82235 2007-04-02  Bruno Haible  <bruno@clisp.org>
82237         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
82238         x86 or x86_64 platforms running MacOS X.
82239         Reported by Ryan Schmidt <@ryandesign.com>.
82241 2007-04-02  Bruno Haible  <bruno@clisp.org>
82243         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
82244         i386.
82246 2007-04-01  Simon Josefsson  <simon@josefsson.org>
82248         * modules/crypto/arcfour: Moved from ../.
82249         * modules/crypto/arcfour-tests: Moved from ../.
82250         * modules/crypto/arctwo: Moved from ../.
82251         * modules/crypto/arctwo-tests: Moved from ../.
82252         * modules/crypto/des: Moved from ../.
82253         * modules/crypto/des-tests: Moved from ../.
82254         * modules/crypto/gc-arcfour: Moved from ../.
82255         * modules/crypto/gc-arcfour-tests: Moved from ../.
82256         * modules/crypto/gc-arctwo: Moved from ../.
82257         * modules/crypto/gc-arctwo-tests: Moved from ../.
82258         * modules/crypto/gc-des: Moved from ../.
82259         * modules/crypto/gc-des-tests: Moved from ../.
82260         * modules/crypto/gc-hmac-md5: Moved from ../.
82261         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
82262         * modules/crypto/gc-hmac-sha1: Moved from ../.
82263         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
82264         * modules/crypto/gc-md2: Moved from ../.
82265         * modules/crypto/gc-md2-tests: Moved from ../.
82266         * modules/crypto/gc-md4: Moved from ../.
82267         * modules/crypto/gc-md4-tests: Moved from ../.
82268         * modules/crypto/gc-md5: Moved from ../.
82269         * modules/crypto/gc-md5-tests: Moved from ../.
82270         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
82271         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
82272         * modules/crypto/gc-random: Moved from ../.
82273         * modules/crypto/gc-rijndael: Moved from ../.
82274         * modules/crypto/gc-rijndael-tests: Moved from ../.
82275         * modules/crypto/gc-sha1: Moved from ../.
82276         * modules/crypto/gc-sha1-tests: Moved from ../.
82277         * modules/crypto/gc-tests: Moved from ../.
82278         * modules/crypto/hmac-md5: Moved from ../.
82279         * modules/crypto/hmac-md5-tests: Moved from ../.
82280         * modules/crypto/hmac-sha1: Moved from ../.
82281         * modules/crypto/hmac-sha1-tests: Moved from ../.
82282         * modules/crypto/md2: Moved from ../.
82283         * modules/crypto/md2-tests: Moved from ../.
82284         * modules/crypto/md4: Moved from ../.
82285         * modules/crypto/md4-tests: Moved from ../.
82286         * modules/crypto/md5: Moved from ../.
82287         * modules/crypto/md5-tests: Moved from ../.
82288         * modules/crypto/memxor: Moved from ../.
82289         * modules/crypto/rijndael: Moved from ../.
82290         * modules/crypto/rijndael-tests: Moved from ../.
82291         * modules/crypto/sha1: Moved from ../.
82293 2007-03-30  James Youngman  <jay@gnu.org>
82295         * tests/test-stat-time.c (prepare_test): use chmod() rather than
82296         rename() to change the ctime of a file (because ctime is unaffected
82297         by rename on jfs2 on AIX 5.1).
82298         (main): Start by doing cleanup, in case a previous run failed leaving
82299         test files behind.
82301 2007-03-31  Bruno Haible  <bruno@clisp.org>
82303         Support old proprietary implementations of iconv.
82304         * modules/iconv_open: New file.
82305         * lib/iconv_.h: New file.
82306         * m4/iconv_h.m4: New file.
82307         * lib/iconv_open.c: New file.
82308         * lib/iconv_open-aix.gperf: New file.
82309         * lib/iconv_open-hpux.gperf: New file.
82310         * lib/iconv_open-irix.gperf: New file.
82311         * lib/iconv_open-osf.gperf: New file.
82312         * m4/iconv_open.m4: New file.
82313         * modules/linebreak (Depends-on): Add iconv_open.
82314         * modules/striconv (Depends-on): Likewise.
82315         * modules/striconveh (Depends-on): Likewise.
82316         * modules/unicodeio (Depends-on): Likewise.
82317         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
82318         (iconv_t)(-1).
82319         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
82320         conversion if cd is (iconv_t)(-1).
82321         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
82322         is not possible.
82324 2007-03-31  Bruno Haible  <bruno@clisp.org>
82326         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
82327         work on Solaris either. Protect also second use of "autodetect_jp".
82329 2007-03-31  Bruno Haible  <bruno@clisp.org>
82331         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
82332         the function is not present.
82334 2007-03-31  Bruno Haible  <bruno@clisp.org>
82336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
82337         the function is not present.
82339 2007-03-31  Bruno Haible  <bruno@clisp.org>
82341         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
82342         a bug in HP-UX iconv_open().
82344 2007-03-31  Bruno Haible  <bruno@clisp.org>
82346         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
82347         (Mathematics <math.h>): New section, add fpieee.
82348         (Input/output <stdio.h>): Add fseterr.
82349         (Mathematics <math.h>): New section, add printf-frexp.
82350         (Container data structures): Add sublist.
82351         (Core language properties): Add fpucw, inline.
82352         (Functions for greatest-width integer types <inttypes.h>): Add
82353         imaxabs, imaxdiv, inttypes.
82354         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
82355         isnanl-nolibm, ldexp.
82356         (Mathematics <math.h>): New section, add printf-frexpl.
82357         (Support for systems lacking POSIX:2001): Add fprintf-posix,
82358         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
82359         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
82360         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
82361         (Unicode string functions): Add unistr/u*-mbtoucr.
82362         (Java): Add javacomp-script, javaexec-script.
82363         (C#): Add csharpcomp-script, csharpexec-script.
82364         (Support for building libraries and executables): Add havelib,
82365         relocatable-*.
82366         (Support for maintaining and releasing projects): Renamed from
82367         'Support for maintaining and release projects'. Add announce-gen.
82369 2007-03-31  Bruno Haible  <bruno@clisp.org>
82371         * README: Talk primarily about git.
82372         (git and CVS): Renamed from CVS.
82373         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
82374         gnulib is available through git.
82375         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
82377 2007-03-30  Bruno Haible  <bruno@clisp.org>
82379         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
82380         * lib/poll_.h: Likewise.
82381         * lib/stat_.h: Likewise.
82382         * lib/sys_time_.h: Likewise.
82383         * lib/sysexit_.h: Likewise.
82384         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
82385         * lib/stdbool_.h: Likewise.
82386         * lib/byteswap_.h: Add double-inclusion guard.
82388 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
82390         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
82392 2007-03-30  Karl Berry  <karl@gnu.org>
82394         * config/srclist-update: double space after USA in the license
82395         substitution, since that's how it's usually (?) written.
82397 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
82399         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
82400         reported by Bruno Haible.
82402 2007-03-29  Bruno Haible  <bruno@clisp.org>
82404         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
82405         a bug in AIX iconv().
82407 2007-03-29  Bruno Haible  <bruno@clisp.org>
82409         * modules/ldexpl-tests: New file.
82410         * tests/test-ldexpl.c: New file.
82412 2007-03-29  Bruno Haible  <bruno@clisp.org>
82414         * lib/ldexpl.c: Include fpucw.h.
82415         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
82416         multiplication.
82417         * modules/ldexpl (Depends-on): Add fpucw.
82419 2007-03-29  Bruno Haible  <bruno@clisp.org>
82421         * modules/ldexpl: New file.
82422         * m4/ldexpl.m4: New file.
82423         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
82424         set.
82425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
82426         REPLACE_LDEXPL.
82427         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
82428         REPLACE_LDEXPL.
82429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
82430         gl_FUNC_LDEXPL_WORKS.
82431         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
82432         * modules/mathl (Files): Remove lib/ldexpl.c.
82433         (Depends-on): Add ldexpl.
82435 2007-03-29  Bruno Haible  <bruno@clisp.org>
82437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
82439 2007-03-29  Bruno Haible  <bruno@clisp.org>
82441         * tests/test-striconveh.c (main): Don't assume that a direct conversion
82442         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
82443         and possibly also HP-UX.
82444         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
82445         work on AIX, IRIX, HP-UX, OSF/1.
82446         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
82447         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
82448         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
82449         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
82450         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
82451         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
82453 2007-03-29  Bruno Haible  <bruno@clisp.org>
82455         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
82457 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
82459         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
82460         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
82462 2007-03-29  Eric Blake  <ebb9@byu.net>
82464         * lib/acl-internal.h: Remove redundant include.
82465         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
82466         Cygwin when a file is locked.
82468 2007-03-29  Bruno Haible  <bruno@clisp.org>
82470         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
82471         file.
82472         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
82474 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
82476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
82477         try to remove a parent directory if the child couldn't be removed
82478         (except for the first rmdir, which could fail because the child
82479         doesn't exist).  Problem reported by Jeff Blaine in
82480         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
82482 2007-03-28  Bruno Haible  <bruno@clisp.org>
82484         * lib/striconveh.c (utf8conv_carefully): New function.
82485         (mem_cd_iconveh_internal): Invoke it.
82487 2007-03-28  Bruno Haible  <bruno@clisp.org>
82489         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
82490         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
82491         input.
82492         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
82493         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
82494         unistr/u8-uctomb.
82496 2007-03-28  Bruno Haible  <bruno@clisp.org>
82498         * modules/unistr/u8-mbtoucr: New file.
82499         * lib/unistr/u8-mbtoucr.c: New file.
82500         * modules/unistr/u16-mbtoucr: New file.
82501         * lib/unistr/u16-mbtoucr.c: New file.
82502         * modules/unistr/u16-mbtoucr: New file.
82503         * lib/unistr/u16-mbtoucr.c: New file.
82504         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
82506 2007-03-27  Simon Josefsson  <simon@josefsson.org>
82507             Bruno Haible  <bruno@clisp.org>
82509         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
82510         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
82511         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
82513         * m4/stdio_h.m4: Add stubs for vasprintf too.
82515         * modules/stdio: Support vasprintf in sed command.
82517         * modules/vasprintf: Depend on stdio for prototypes.  Remove
82518         vasprintf.h.  Add stdio module indicator.
82520         * lib/stdio_.h: Declare asprintf and vasprintf, based on
82521         vasprintf.h.
82523         * lib/vasprintf.h: File removed.
82525         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
82526         * lib/vasprintf.c: Ditto.
82527         * lib/xvasprintf.c: Ditto.
82528         * tests/test-vasprintf-posix.c: Ditto.
82529         * tests/test-vasprintf.c: Ditto.
82531 2007-03-27  Bruno Haible  <bruno@clisp.org>
82533         Make vasnprintf multithread-safe.
82534         * lib/vasnprintf.c (decimal_point_char): New function.
82535         (VASNPRINTF): Use it.
82536         Suggested by Simon Josefsson.
82538 2007-03-27  Eric Blake  <ebb9@byu.net>
82540         Support sub-second birthtime on cygwin.
82541         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
82542         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
82543         (get_stat_birthtime): Also work with st_birthtim.
82545 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
82547         * lib/stat-time.h (USE_BIRTHTIME): Remove.
82548         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
82549         (get_stat_birthtime_ns): Do not try to use "spare" fields.
82550         (get_stat_birthtime_ns): Simplify compile-time tests.
82551         (get_stat_birthtime): Change the API to look like
82552         get_stat_mtime etc., except return a negative tv_nsec on error.
82553         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
82554         Don't check for "spare" fields.
82555         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
82556         or for struct stat.st_birthtime, as these tests aren't used.
82557         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
82559 2007-03-27  Bruno Haible  <bruno@clisp.org>
82561         * lib/stat-time.h: Include <sys/stat.h>.
82563 2007-03-27  James Youngman  <jay@gnu.org>
82565         * lib/stat-time.h (get_stat_birthtime): New function for
82566           retrieving st_birthtime as provided by UFS2 (hence *BSD).
82567         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
82568           and its variants.
82569         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
82570         * modules/stat-time-test: New file.
82571         * tests/test-stat-time.c: New test, devised by Bruno Haible.
82573 2007-03-26  Bruno Haible  <bruno@clisp.org>
82575         Better support of signalling NaNs.
82576         * lib/atanl.c: Include isnanl.h.
82577         (atanl): Perform test for NaN at the beginning of the function and
82578         through a call to isnanl.
82579         * lib/cosl.c: Include isnanl.h.
82580         (cosl): Perform test for NaN at the beginning of the function and
82581         through a call to isnanl.
82582         * lib/ldexpl.c: Include isnanl.h.
82583         (ldexpl): Perform test for NaN through a call to isnanl.
82584         * lib/logl.c: Include isnanl.h.
82585         (logl): Perform test for NaN at the beginning of the function and
82586         through a call to isnanl.
82587         * lib/sinl.c: Include isnanl.h.
82588         (sinl): Perform test for NaN at the beginning of the function and
82589         through a call to isnanl.
82590         * lib/sqrtl.c: Include isnanl.h.
82591         (sqrtl): Perform test for NaN at the beginning of the function and
82592         through a call to isnanl.
82593         * lib/tanl.c: Include isnanl.h.
82594         (tanl): Perform test for NaN at the beginning of the function and
82595         through a call to isnanl.
82596         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
82597         * modules/mathl (Depends-on): Add isnanl.
82599 2007-03-26  Eric Blake  <ebb9@byu.net>
82601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
82602         regression in logic sense of previous patch.
82604 2007-03-26  Bruno Haible  <bruno@clisp.org>
82606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
82607         unportable shell command "if ! ...".
82608         Reported by Ralf Wildenhues.
82610 2007-03-25  Bruno Haible  <bruno@clisp.org>
82612         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
82613         <sysexits.h> file, and only add EX_CONFIG.
82614         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
82615         absolute file name and whether it is sufficient. Substitute also
82616         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
82617         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
82618         ABSOLUTE_SYSEXITS_H into sysexits.h.
82620 2007-03-25  Bruno Haible  <bruno@clisp.org>
82622         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
82623         hints is NULL.
82625 2007-03-25  Bruno Haible  <bruno@clisp.org>
82627         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
82628         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
82630 2007-03-25  Bruno Haible  <bruno@clisp.org>
82632         * lib/vasnprintf.c: Include langinfo.h.
82633         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
82634         multithread-safe.
82635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
82636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
82637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
82643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82644         Reported by Simon Josefsson.
82646 2007-03-25  Bruno Haible  <bruno@clisp.org>
82648         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
82649         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
82650         * modules/vasnprintf (Depends-on): Add stdint.
82652 2007-03-25  Bruno Haible  <bruno@clisp.org>
82654         * modules/fpieee: New file.
82655         * m4/fpieee.m4: New file.
82656         * modules/isnan-nolibm (Depends-on): Add fpieee.
82657         * modules/isnanl-nolibm (Depends-on): Add fpieee.
82658         * modules/isnanl (Depends-on): Add fpieee.
82660 2007-03-25  Bruno Haible  <bruno@clisp.org>
82662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
82664 2007-03-25  Bruno Haible  <bruno@clisp.org>
82666         Avoid test failures on IRIX 6.5.
82667         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
82668         (main): Use it.
82669         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
82670         macros.
82671         (main): Use them.
82673 2007-03-25  Bruno Haible  <bruno@clisp.org>
82675         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
82676         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
82677         exists but doesn't work.
82678         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
82679         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
82680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
82681         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
82682         math.h.
82684 2007-03-25  Bruno Haible  <bruno@clisp.org>
82686         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
82687         returns inf. Needed on IRIX 6.5.
82689 2007-03-25  Bruno Haible  <bruno@clisp.org>
82691         * tests/test-frexpl.c: Include isnanl-nolibm.h.
82692         (main): Use isnanl instead of x != x idiom.
82693         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
82695         * tests/test-frexp.c: Include isnan.h.
82696         (main): Use isnan instead of x != x idiom.
82697         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
82699 2007-03-25  Bruno Haible  <bruno@clisp.org>
82701         * tests/test-frexp.c (NaN): New function/macro.
82702         (main): Use it instead of 0.0 / 0.0.
82703         * tests/test-isnan.c (NaN): New function/macro.
82704         (main): Use it instead of 0.0 / 0.0.
82705         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
82706         (test_function): Use it instead of 0.0 / 0.0.
82707         * tests/test-vasprintf-posix.c (NaN): New function/macro.
82708         (test_function): Use it instead of 0.0 / 0.0.
82709         * tests/test-snprintf-posix.h (NaN): New function/macro.
82710         (test_function): Use it instead of 0.0 / 0.0.
82711         * tests/test-sprintf-posix.h (NaN): New function/macro.
82712         (test_function): Use it instead of 0.0 / 0.0.
82713         * tests/test-fprintf-posix.h (NaN): New function/macro.
82714         (test_function): Use it instead of 0.0 / 0.0.
82715         * tests/test-printf-posix.h (NaN): New function/macro.
82716         (test_function): Use it instead of 0.0 / 0.0.
82718         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
82720 2007-03-25  Bruno Haible  <bruno@clisp.org>
82722         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
82724 2007-03-25  Bruno Haible  <bruno@clisp.org>
82726         * lib/regexec.c (merge_state_with_log): Make static.
82728 2007-03-25  Bruno Haible  <bruno@clisp.org>
82730         * lib/trigl.c (kernel_rem_pio2): Make static.
82732 2007-03-25  Bruno Haible  <bruno@clisp.org>
82734         * lib/sincosl.c (sincosl_table): Make static.
82736 2007-03-25  Bruno Haible  <bruno@clisp.org>
82738         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
82739         if the compiler does not support C99.
82741 2007-03-25  Bruno Haible  <bruno@clisp.org>
82743         * modules/time (Makefile.am): Ensure all rule action lines start with a
82744         tab.
82746 2007-03-24  Bruno Haible  <bruno@clisp.org>
82748         * modules/tsearch-tests: New file.
82749         * tests/test-tsearch.sh: New file.
82750         * tests/test-tsearch.c: New file, mostly copied from glibc.
82752         * modules/search-tests: New file.
82753         * tests/test-search.c: New file.
82755         * modules/search: New file.
82756         * lib/search_.h: New file, incorporating lib/tsearch.h.
82757         * m4/search_h.m4: New file.
82758         * lib/tsearch.h: Remove file.
82759         * lib/tsearch.c: Include search.h instead of tsearch.h.
82760         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
82761         HAVE_TSEARCH.
82762         * modules/tsearch (Files): Remove lib/tsearch.h.
82763         (Depends-on): Add search.
82764         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
82765         (Include): Change tsearch.h into search.h.
82767 2007-03-24  Bruno Haible  <bruno@clisp.org>
82769         * modules/fpucw: New file.
82770         * lib/fpucw.h: New file.
82771         * lib/frexp.c: Include fpucw.h.
82772         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
82773         (FUNC): Use them.
82774         * lib/printf-frexp.c: Include fpucw.h.
82775         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
82776         (FUNC): Use them.
82777         * lib/vasnprintf.c: Include fpucw.h.
82778         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
82779         'long double' calculations.
82780         * tests/test-frexpl.c: Include fpucw.h.
82781         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
82782         * tests/test-printf-frexpl.c: Include fpucw.h.
82783         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
82784         * modules/frexpl (Depends-on): Add fpucw.
82785         * modules/printf-frexpl (Depends-on): Likewise.
82786         * modules/fprintf-posix (Depends-on): Likewise.
82787         * modules/snprintf-posix (Depends-on): Likewise.
82788         * modules/sprintf-posix (Depends-on): Likewise.
82789         * modules/vasnprintf-posix (Depends-on): Likewise.
82790         * modules/vasprintf-posix (Depends-on): Likewise.
82791         * modules/vfprintf-posix (Depends-on): Likewise.
82792         * modules/vsnprintf-posix (Depends-on): Likewise.
82793         * modules/vsprintf-posix (Depends-on): Likewise.
82794         * modules/frexpl-tests (Depends-on): Likewise.
82795         * modules/printf-frexpl-tests (Depends-on): Likewise.
82797 2007-03-24  Bruno Haible  <bruno@clisp.org>
82799         * lib/float+.h: New file.
82800         * lib/isnan.c: Include float+.h.
82801         (SIZE): New macro.
82802         (FUNC): Compare only SIZE bytes of the value.
82803         * lib/vasnprintf.c: Include float+.h.
82804         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
82805         SIZEOF_LDBL or SIZEOF_DBL bytes.
82806         * modules/isnan-nolibm (Files): Add lib/float+.h.
82807         * modules/isnanl-nolibm (Files): Add lib/float+.h.
82808         * modules/isnanl (Files): Add lib/float+.h.
82809         * modules/vasnprintf (Files): Add lib/float+.h.
82811 2007-03-24  Bruno Haible  <bruno@clisp.org>
82813         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
82814         include isnanl-nolibm.h.
82816 2007-03-24  Bruno Haible  <bruno@clisp.org>
82818         * tests/test-read-file.c (main): Don't produce spurious output for
82819         expected situations. Make the test fail if it encountered unexpected
82820         results.
82822 2007-03-24  Bruno Haible  <bruno@clisp.org>
82824         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
82825         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
82827 2007-03-24  Bruno Haible  <bruno@clisp.org>
82829         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
82831 2007-03-24  Bruno Haible  <bruno@clisp.org>
82833         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
82834         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
82836         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
82837         * modules/utf8-ucs4: Turn into a symbolic link to module
82838         unistr/u8-mbtouc.
82840         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
82841         utf8-ucs4-unsafe.
82842         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
82843         unistr/u8-mbtouc-unsafe.
82845         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
82846         * modules/utf16-ucs4: Turn into a symbolic link to module
82847         unistr/u16-mbtouc.
82849         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
82850         utf16-ucs4-unsafe.
82851         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
82852         unistr/u16-mbtouc-unsafe.
82854         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
82855         * modules/ucs4-utf8: Turn into a symbolic link to module
82856         unistr/u8-ubtomb.
82858         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
82859         * modules/ucs4-utf16: Turn into a symbolic link to module
82860         unistr/u16-ubtomb.
82862 2007-03-24  Bruno Haible  <bruno@clisp.org>
82864         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
82865         Enable the function only if HAVE_INLINE.
82866         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
82867         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
82868         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
82869         Enable the function only if HAVE_INLINE.
82870         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
82871         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
82872         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
82873         Enable the function only if HAVE_INLINE.
82874         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
82875         Enable the function only if HAVE_INLINE.
82876         * modules/utf8-ucs4: Update.
82877         * modules/utf8-ucs4-unsafe: Update.
82878         * modules/utf16-ucs4: Update.
82879         * modules/utf16-ucs4-unsafe: Update.
82880         * modules/ucs4-utf8: Update.
82881         * modules/ucs4-utf16: Update.
82883 2007-03-24  Bruno Haible  <bruno@clisp.org>
82885         * lib/utf8-ucs4.h: Remove file.
82886         * lib/utf8-ucs4-unsafe.h: Remove file.
82887         * lib/utf16-ucs4.h: Remove file.
82888         * lib/utf16-ucs4-unsafe.h: Remove file.
82889         * lib/ucs4-utf8.h: Remove file.
82890         * lib/ucs4-utf16.h: Remove file.
82891         * lib/unistr.h: Include their previous contents.
82892         * m4/utf-ucs4.m4: Remove file.
82893         * m4/ucs4-utf.m4: Remove file.
82894         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
82895         (Depends-on): Add unistr/base.
82896         (configure.ac): Remove gl_UTF_UCS4.
82897         (Makefile.am): Update.
82898         (Include): Change to unistr.h.
82899         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
82900         (Depends-on): Add unistr/base.
82901         (configure.ac): Remove gl_UTF_UCS4.
82902         (Makefile.am): Update.
82903         (Include): Change to unistr.h.
82904         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
82905         (Depends-on): Add unistr/base.
82906         (configure.ac): Remove gl_UTF_UCS4.
82907         (Makefile.am): Update.
82908         (Include): Change to unistr.h.
82909         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
82910         (Depends-on): Add unistr/base.
82911         (configure.ac): Remove gl_UTF_UCS4.
82912         (Makefile.am): Update.
82913         (Include): Change to unistr.h.
82914         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
82915         (Depends-on): Add unistr/base.
82916         (configure.ac): Remove gl_UCS4_UTF.
82917         (Makefile.am): Update.
82918         (Include): Change to unistr.h.
82919         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
82920         (Depends-on): Add unistr/base.
82921         (configure.ac): Remove gl_UCS4_UTF.
82922         (Makefile.am): Update.
82923         (Include): Change to unistr.h.
82924         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
82925         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
82926         utf8-ucs4-unsafe.h.
82927         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
82928         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
82929         utf16-ucs4-unsafe.h.
82930         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
82931         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
82932         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
82933         * lib/unistr/u8-strchr.c: Likewise.
82934         * lib/unistr/u8-strrchr.c: Likewise.
82935         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
82936         * lib/unistr/u16-strchr.c: Likewise.
82937         * lib/unistr/u16-strrchr.c: Likewise.
82938         * lib/striconveh.c: Update.
82939         * lib/linebreak.c: Update.
82941 2007-03-24  Bruno Haible  <bruno@clisp.org>
82943         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
82944         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
82946 2007-03-22  Bruno Haible  <bruno@clisp.org>
82948         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
82950 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82952         * MODULES.html.sh (File system functions): New module write-any-file.
82953         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
82954         * m4/write-any-file.m4: New files.
82956 2007-03-23  Eric Blake  <ebb9@byu.net>
82958         * gnulib-tool: Rearrange space-tab sequences, since some editors
82959         like to eat them.
82961 2007-03-23  Eric Blake  <ebb9@byu.net>
82963         * lib/version-etc.c (version_etc_va): Update license wording to
82964         be more concise.  Recommended by Richard Stallman.
82966 2007-03-22  Bruno Haible  <bruno@clisp.org>
82968         * lib/poll.c (MSG_PEEK): New fallback definition.
82970 2007-03-22  Bruno Haible  <bruno@clisp.org>
82972         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
82973         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
82974         (main): Update.
82975         Fixes a compilation error on BeOS.
82977 2007-03-22  Bruno Haible  <bruno@clisp.org>
82979         * modules/frexpl-tests: New file.
82980         * tests/test-frexpl.c: New file.
82982         * modules/frexpl: New file.
82983         * m4/frexpl.m4: New file.
82984         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
82985         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
82986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
82987         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
82988         (Depends-on): Add frexpl. Remove isnanl-nolibm.
82989         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
82991 2007-03-22  Bruno Haible  <bruno@clisp.org>
82993         * lib/frexpl.c: Share code with lib/frexp.c.
82994         * modules/mathl (Files): Add lib/frexp.c.
82995         (Depends-on): Add isnanl-nolibm.
82997 2007-03-22  Bruno Haible  <bruno@clisp.org>
82999         * modules/printf-frexp (Files): Add m4/frexp.m4.
83000         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
83001         only if the found frexp function actually works.
83003 2007-03-22  Bruno Haible  <bruno@clisp.org>
83005         * lib/frexp.c: Remove older implementation that uses divisions.
83007 2007-03-21  Bruno Haible  <bruno@clisp.org>
83009         * modules/frexp-tests: New file.
83010         * tests/test-frexp.c: New file.
83012         * modules/frexp: New file.
83013         * lib/frexp.c: New file.
83014         * m4/frexp.m4: New file.
83015         * lib/math_.h (frexp): New declaration.
83016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
83017         REPLACE_FREXP.
83018         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
83020 2007-03-21  Bruno Haible  <bruno@clisp.org>
83022         * modules/isnanl-tests: New file.
83023         * tests/test-isnanl.c: New file.
83025         * modules/isnanl: New file.
83026         * lib/isnanl.h: New file.
83027         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
83028         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
83029         gl_FUNC_ISNANL_WORKS.
83030         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
83031         New macros.
83033 2007-03-21  Bruno Haible  <bruno@clisp.org>
83035         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
83036         lib/isnanl.h.
83037         (Include): Update.
83038         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
83039         * lib/vasnprintf.c: Update.
83040         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
83041         tests/test-isnanl.h, remove tests/test-isnanl.c.
83042         (Makefile.am): Update.
83043         * tests/test-isnanl-nolibm.c: New file.
83044         * tests/test-isnanl.h: New file.
83045         * tests/test-isnanl.c: Remove file.
83047 2007-03-21  Jim Meyering  <jim@meyering.net>
83049         When trying to open ".", treat ESTALE like EACCES.
83050         * lib/savewd.c (savewd_save): Resort to forking not just upon
83051         failure with EACCES, but also when errno is ESTALE.
83053 2007-03-20  Bruno Haible  <bruno@clisp.org>
83055         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
83056         Needed on AIX 5.1. Reported by Matthew Woehlke.
83058 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
83060         Suggestions by Bruno Haible:
83061         * lib/acl-internal.h: Include "gettext.h" rather than rolling
83062         our own.
83063         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
83064         * modules/acl (Depends-on): Add gettext.
83066 2007-03-19  Bruno Haible  <bruno@clisp.org>
83068         * modules/iconvme: Remove file.
83069         * lib/iconvme.h: Remove file.
83070         * lib/iconvme.c: Remove file.
83071         * m4/iconvme.m4: Remove file.
83073 2007-03-19  Bruno Haible  <bruno@clisp.org>
83075         * doc/relocatable-maint.texi: Break long shell script line.
83076         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
83078 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
83080         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
83081         handle file_has_acl.
83082         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
83083         * lib/acl.c: Move header inclusions and related macro defns into
83084         lib/acl-internal.h.
83085         (S_ISLNK): Remove defn, since that's now done for us.
83086         (file_has_acl): Move to lib/file-has-acl.c.
83087         Call acl_trivial if available.  This is the crucial part of the fix.
83088         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
83089         shared within the library.  Rewrite a bit, partly to make it compatible
83090         with the GNU coding style.
83091         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
83092         Remove unnecessary double-quotes.
83093         Don't test for acl_to_text; the build will catch that.
83094         Replace acl_entries if it doesn't exist and it is needed.
83095         Check for -lsec and acl_trivial (as used on Solaris 10).
83096         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
83097         lib/file-has-acl.c.
83098         (Depends-on): Add sys_stat, for S_ISLNK.
83100 2007-03-19  Ben Pfaff  <blp@gnu.org>
83102         * doc/gnulib.texi: Fix typos.
83103         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
83105 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
83107         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
83108         If size is zero here, buf must be zero.
83110 2007-03-19  Simon Josefsson  <simon@josefsson.org>
83112         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
83113         <bruno@clisp.org>.
83115 2007-03-18  Bruno Haible  <bruno@clisp.org>
83117         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
83118         Suggested by Eric Blake.
83120 2007-03-18  Ben Pfaff  <blp@gnu.org>
83122         * doc/relocatable.texi: Recommend using as prefix a directory
83123         that does not exist and will never be created.  Based on
83124         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
83125         and others.
83127 2007-03-17  Bruno Haible  <bruno@clisp.org>
83129         * lib/fchownat.c: Include lchown.h.
83131 2007-03-17  Bruno Haible  <bruno@clisp.org>
83133         Fix endless loop when the given allocated size was > INT_MAX.
83134         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
83135         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
83136         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
83137         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
83138         * lib/sprintf.c (sprintf): Likewise.
83140 2007-03-17  Bruno Haible  <bruno@clisp.org>
83142         * tests/test-argp-2.sh (func_compare): Output a context diff.
83144 2007-03-17  Bruno Haible  <bruno@clisp.org>
83146         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
83147         locale's decimal-point character.
83149 2007-03-17  Bruno Haible  <bruno@clisp.org>
83151         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
83152         before comparing it. Needed because on some platforms (e.g. x86) a
83153         'long double' occupies less bytes than sizeof (long double).
83155 2007-03-17  Bruno Haible  <bruno@clisp.org>
83157         * tests/test-crc.c (main): Make printf statements 64-bit clean.
83158         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
83159         * tests/test-getaddrinfo.c (simple): Likewise.
83160         * tests/test-read-file.c (main): Likewise.
83162 2007-03-17  Bruno Haible  <bruno@clisp.org>
83164         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
83166 2007-03-17  Bruno Haible  <bruno@clisp.org>
83168         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
83169         unused variable.
83171 2007-03-17  Bruno Haible  <bruno@clisp.org>
83173         * tests/test-c-strcasecmp.c: Include c-strcase.h.
83174         * tests/test-c-strncasecmp.c: Likewise.
83176 2007-03-17  Bruno Haible  <bruno@clisp.org>
83178         * modules/stdlib (Depends-on): Add unistd.
83179         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
83180         Needed for MacOS X 10.3.
83182 2007-03-17  Bruno Haible  <bruno@clisp.org>
83184         * lib/unistr/u-strdup.h: Include <stdlib.h>.
83186 2007-03-17  Bruno Haible  <bruno@clisp.org>
83188         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
83190 2007-03-17  Bruno Haible  <bruno@clisp.org>
83192         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
83193         to reflect files copied from gnulib (with or without modifications).
83194         Suggested by Jim Meyering.
83196 2007-03-17  Eric Blake  <ebb9@byu.net>
83198         * NEWS: Document stdlib change from 2007-02-18.
83200 2007-03-17  Jim Meyering  <jim@meyering.net>
83202         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
83203         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
83204         someone uses a name containing shell meta-characters.
83205         Reported by Alfred M. Szmidt.
83207         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
83209 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
83211         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
83212         and copy gettext configuration files only if configure.ac contains
83213         a use of AM_GNU_GETTEXT_VERSION.
83215 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
83217         * build-aux/bootstrap (gnulib_name): New variable.
83218         (gnulib_tool_options): Use it.
83220 2007-03-13  Simon Josefsson  <simon@josefsson.org>
83222         * tests/test-des.c: Use new namespace.
83224 2007-03-15  Bruno Haible  <bruno@clisp.org>
83226         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
83227         Reported by James Youngman <jay@gnu.org>.
83229 2007-03-15  Bruno Haible  <bruno@clisp.org>
83231         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
83232         declared prototype. Needed with cc on OSF/1 5.1.
83234 2007-03-15  Bruno Haible  <bruno@clisp.org>
83236         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
83237         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
83238         (struct gl_list_implementation): Add dispose_fn argument to the
83239         'create_empty', 'create' methods.
83240         (struct gl_list_impl_base): Add field 'dispose_fn'.
83241         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
83242         argument.
83243         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
83244         dispose_fn argument.
83245         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
83246         dispose_fn on the dropped values.
83247         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
83248         dispose_fn argument.
83249         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
83250         dropped values.
83251         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
83252         (gl_tree_remove_node): Call dispose_fn on the dropped value.
83253         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
83254         (gl_tree_remove_node): Call dispose_fn on the dropped value.
83255         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
83256         argument.
83257         (gl_tree_list_free): Call dispose_fn on the dropped values.
83258         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
83259         the dropped values.
83260         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
83261         Add dispose_fn argument.
83262         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
83263         Call dispose_fn on the dropped values.
83264         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
83265         Add dispose_fn argument.
83266         (gl_sublist_create): Initialize the 'dispose_fn' field.
83267         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
83268         * tests/test-array_list.c (main): Update.
83269         * tests/test-carray_list.c (main): Update.
83270         * tests/test-avltree_list.c (main): Update.
83271         * tests/test-rbtree_list.c (main): Update.
83272         * tests/test-avltreehash_list.c (main): Update.
83273         * tests/test-rbtreehash_list.c (main): Update.
83274         * tests/test-linked_list.c (main): Update.
83275         * tests/test-linkedhash_list.c (main): Update.
83276         * tests/test-array_oset.c (main): Update.
83278 2007-03-15  Bruno Haible  <bruno@clisp.org>
83280         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
83281         (gl_oset_create_empty): Add dispose_fn argument.
83282         (struct gl_oset_implementation): Add dispose_fn argument to
83283         'create_empty' method.
83284         (struct gl_oset_impl_base): Add dispose_fn field.
83285         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
83286         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
83287         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
83288         values.
83289         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
83290         (gl_tree_oset_free): Call dispose_fn on the dropped values.
83291         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
83292         dropped value.
83293         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
83294         dropped value.
83295         * tests/test-array_oset.c (main): Update.
83296         * tests/test-avltree_oset.c (main): Update.
83297         * tests/test-rbtree_oset.c (main): Update.
83298         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
83300 2007-03-13  Bruno Haible  <bruno@clisp.org>
83302         * tests/test-stdbool.c (i): Update after last patch.
83304 2007-03-12  Bruno Haible  <bruno@clisp.org>
83306         * lib/quotearg.c: Include <wctype.h> early, before the definition of
83307         the iswprint macro. Needed on Solaris 2.5.1.
83309 2007-03-12  Bruno Haible  <bruno@clisp.org>
83311         * tests/test-printf-frexp.c (main): Declare x as volatile.
83313 2007-03-12  Simon Josefsson  <simon@josefsson.org>
83315         * doc/gnulib.texi (Build robot for gnulib): New section.
83317 2007-03-12  Jim Meyering  <jim@meyering.net>
83319         * build-aux/bootstrap: New file.
83320         * build-aux/bootstrap.conf: New file, from coreutils.
83322 2007-03-11  Bruno Haible  <bruno@clisp.org>
83324         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
83326 2007-03-12  Simon Josefsson  <simon@josefsson.org>
83328         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
83329         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
83330         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
83332 2007-03-11  Bruno Haible  <bruno@clisp.org>
83334         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
83335         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
83337 2007-03-11  Bruno Haible  <bruno@clisp.org>
83339         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
83340         formula. Needed for SunPRO C 5.0.
83342 2007-03-11  Bruno Haible  <bruno@clisp.org>
83344         * modules/long-options (Depends-on): Add getopt.
83346 2007-03-11  Bruno Haible  <bruno@clisp.org>
83348         * modules/modechange (Depends-on): Add stdbool.
83350 2007-03-11  Bruno Haible  <bruno@clisp.org>
83352         * modules/i-ring (Depends-on): Add stdbool.
83354 2007-03-11  Bruno Haible  <bruno@clisp.org>
83356         * modules/gc-des (Depends-on): Add stdbool.
83358 2007-03-11  Bruno Haible  <bruno@clisp.org>
83360         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
83362 2007-03-11  Bruno Haible  <bruno@clisp.org>
83364         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
83366 2007-03-11  Bruno Haible  <bruno@clisp.org>
83368         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
83370 2007-03-11  Bruno Haible  <bruno@clisp.org>
83372         * lib/vasnprintf.c (sprintf): Undefine.
83374 2007-03-11  Bruno Haible  <bruno@clisp.org>
83376         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
83377         initializers in SunPRO C and Compaq C compilers.
83379 2007-03-11  Bruno Haible  <bruno@clisp.org>
83381         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
83382         decrementing code ANSI C compliant.
83384 2007-03-11  Bruno Haible  <bruno@clisp.org>
83386         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
83387         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
83389 2007-03-11  Bruno Haible  <bruno@clisp.org>
83391         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
83392         <stdbool.h> substitute doesn't pass.
83394 2007-03-11  Bruno Haible  <bruno@clisp.org>
83396         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
83398 2007-03-11  Bruno Haible  <bruno@clisp.org>
83400         * gnulib-tool (func_create_megatestdir): Create also an autobuild
83401         script, for submission to autobuild.josefsson.org.
83403 2007-03-10  Bruno Haible  <bruno@clisp.org>
83405         * modules/canonicalize-lgpl-tests: New file.
83406         * tests/test-canonicalize-lgpl.sh: New file.
83407         * tests/test-canonicalize-lgpl.c: New file.
83409         * modules/c-strcase-tests: New file.
83410         * tests/test-c-strcase.sh: New file.
83411         * tests/test-c-strcasecmp.c: New file.
83412         * tests/test-c-strncasecmp.c: New file.
83414         * modules/atexit-tests: New file.
83415         * tests/test-atexit.sh: New file.
83416         * tests/test-atexit.c: New file.
83418 2007-03-10  Bruno Haible  <bruno@clisp.org>
83420         * tests/test-binary-io.sh: Use temporary filenames that are not so
83421         likely to clash with those of other tests (in a parallel make).
83422         * tests/test-binary-io.c: Likewise.
83424 2007-03-10  Bruno Haible  <bruno@clisp.org>
83426         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
83427         fallback; use #error instead.
83428         Suggested by Simon Josefsson.
83430 2007-03-10  Bruno Haible  <bruno@clisp.org>
83432         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
83433         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
83434         first and the last.
83436 2007-03-10  Bruno Haible  <bruno@clisp.org>
83438         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
83440 2007-03-10  Bruno Haible  <bruno@clisp.org>
83442         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
83443         "make distcheck".
83444         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
83445         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
83446         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
83448 2007-03-10  Bruno Haible  <bruno@clisp.org>
83450         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
83451         variable.
83452         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
83453         variable.
83455 2007-03-09  Eric Blake  <ebb9@byu.net>
83456         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
83458         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
83459         types are not being provided by gnulib.
83460         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
83461         types are supported.
83463 2007-03-10  Bruno Haible  <bruno@clisp.org>
83465         * lib/stdio_.h (__attribute__): New macro.
83466         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
83467         vsprintf): Specify __attribute__ __format__ for GCC.
83468         Suggested by Eric Blake.
83470 2007-03-09  Bruno Haible  <bruno@clisp.org>
83472         * modules/printf-posix-tests: New file.
83473         * tests/test-printf-posix.sh: New file.
83474         * tests/test-printf-posix.c: New file.
83476         * modules/printf-posix: New file.
83477         * lib/printf.c: New file.
83478         * m4/printf-posix-rpl.m4: New file.
83479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
83480         REPLACE_PRINTF.
83481         * lib/stdio_.h (printf): New declaration.
83482         (format, __format__, ____printf____, ____scanf____, ____strftime____,
83483         ____strfmon____): New macros.
83484         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
83485         REPLACE_PRINTF.
83487 2007-03-09  Bruno Haible  <bruno@clisp.org>
83489         * tests/test-vasnprintf-posix2.sh: New file.
83490         * tests/test-vasnprintf-posix2.c: New file.
83491         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
83492         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83493         (Makefile.am): Activate test-vasnprintf-posix2.sh.
83495         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
83496         a locale dependent decimal point, rather than always '.'.
83498 2007-03-09  Eric Blake  <ebb9@byu.net>
83500         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
83501         spite of platforms like Tandem/NSK that define it to -1.
83503 2007-03-08  Bruno Haible  <bruno@clisp.org>
83505         * modules/vprintf-posix-tests: New file.
83506         * tests/test-vprintf-posix.sh: New file.
83507         * tests/test-vprintf-posix.c: New file.
83508         * tests/test-printf-posix.h: New file.
83510         * modules/vprintf-posix: New file.
83511         * lib/vprintf.c: New file.
83512         * m4/vprintf-posix.m4: New file.
83513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
83514         REPLACE_VPRINTF.
83515         * lib/stdio_.h (vprintf): New declaration.
83516         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
83517         REPLACE_VPRINTF.
83519 2007-03-08  Bruno Haible  <bruno@clisp.org>
83521         * modules/fprintf-posix-tests: New file.
83522         * tests/test-fprintf-posix.sh: New file.
83523         * tests/test-fprintf-posix.c: New file.
83525         * modules/fprintf-posix: New file.
83526         * lib/fprintf.c: New file.
83527         * m4/fprintf-posix.m4: New file.
83528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
83529         REPLACE_FPRINTF.
83530         * lib/stdio_.h (fprintf): New declaration.
83531         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
83532         REPLACE_FPRINTF.
83534 2007-03-08  Bruno Haible  <bruno@clisp.org>
83536         * modules/vfprintf-posix-tests: New file.
83537         * tests/test-vfprintf-posix.sh: New file.
83538         * tests/test-vfprintf-posix.c: New file.
83539         * tests/test-fprintf-posix.h: New file.
83540         * tests/test-fprintf-posix.out: New file.
83542         * modules/vfprintf-posix: New file.
83543         * lib/vfprintf.c: New file.
83544         * m4/vfprintf-posix.m4: New file.
83545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
83546         REPLACE_VFPRINTF.
83547         * lib/stdio_.h (vfprintf): New declaration.
83548         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
83549         REPLACE_VFPRINTF.
83551 2007-03-08  Bruno Haible  <bruno@clisp.org>
83553         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
83555 2007-03-08  Bruno Haible  <bruno@clisp.org>
83557         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
83558         instead of 'expr' invocations.
83559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83564         Suggested by Paul Eggert.
83566 2007-03-08  Bruno Haible  <bruno@clisp.org>
83568         * modules/fseterr-tests: New file.
83569         * tests/test-fseterr.c: New file.
83571         * modules/fseterr: New file.
83572         * lib/fseterr.h: New file.
83573         * lib/fseterr.c: New file.
83575 2007-03-08  Bruno Haible  <bruno@clisp.org>
83577         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
83578         * lib/getopt_.h: Likewise.
83579         * lib/mbswidth.h: Likewise.
83580         * lib/setenv.h: Likewise.
83581         * lib/vasnprintf.h: Likewise.
83582         * lib/vasprintf.h: Likewise.
83583         * lib/verror.h: Likewise.
83584         * lib/xsetenv.h: Likewise.
83585         * lib/xvasprintf.h: Likewise.
83587 2007-03-08  Jim Meyering  <jim@meyering.net>
83589         * users.txt: Add parted.
83591         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
83593 2007-03-07  Bruno Haible  <bruno@clisp.org>
83595         * m4/printf.m4: Make the shell script snippets copy&pastable.
83597 2007-03-02  Bruno Haible  <bruno@clisp.org>
83599         * lib/netinet_in_.h: New file.
83600         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
83601         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
83602         * modules/netinet_in (Files): Add lib/netinet_in_.h.
83603         (Depends-on): Add absolute-header.
83604         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
83605         into netinet/in.h.
83607 2007-03-03  Bruno Haible  <bruno@clisp.org>
83609         * lib/sys_select_.h: New file.
83610         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
83611         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
83612         * modules/sys_select (Files): Add lib/sys_select_.h.
83613         (Depends-on): Add absolute-header.
83614         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
83615         into sys/select.h.
83617 2007-03-02  Bruno Haible  <bruno@clisp.org>
83619         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
83620         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
83621         values.
83622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
83623         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
83624         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
83625         * modules/sys_socket (Depends-on): Add absolute-header.
83626         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
83627         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
83628         (Include): Remove requirement of inclusion of <sys/types.h>.
83630 2007-03-02  Bruno Haible  <bruno@clisp.org>
83632         * lib/byteswap_.h (bswap_32): Fix formula.
83634 2007-03-06  Bruno Haible  <bruno@clisp.org>
83636         * modules/sprintf-posix-tests: New file.
83637         * tests/test-sprintf-posix.c: New file.
83639         * modules/sprintf-posix: New file.
83640         * lib/sprintf.c: New file.
83641         * m4/sprintf-posix.m4: New file.
83642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
83643         REPLACE_SPRINTF.
83644         * lib/stdio_.h (sprintf): New declaration.
83645         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
83646         REPLACE_SPRINTF.
83648 2007-03-06  Bruno Haible  <bruno@clisp.org>
83650         * modules/vsprintf-posix-tests: New file.
83651         * tests/test-vsprintf-posix.c: New file.
83652         * tests/test-sprintf-posix.h: New file.
83654         * modules/vsprintf-posix: New file.
83655         * lib/vsprintf.c: New file.
83656         * m4/vsprintf-posix.m4: New file.
83657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
83658         REPLACE_VSPRINTF.
83659         * lib/stdio_.h (vsprintf): New declaration.
83660         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
83661         REPLACE_VSPRINTF.
83663 2007-03-06  Bruno Haible  <bruno@clisp.org>
83665         * modules/vsnprintf (Depend-on): Remove minmax.
83667 2007-03-06  Bruno Haible  <bruno@clisp.org>
83669         * modules/snprintf-posix-tests: New file.
83670         * tests/test-snprintf-posix.c: New file.
83672         * modules/snprintf-posix: New file.
83673         * m4/snprintf-posix.m4: New file.
83674         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
83675         gl_FUNC_SNPRINTF.
83676         (gl_FUNC_SNPRINTF): Invoke it.
83677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
83678         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
83679         is set.
83680         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
83682 2007-03-06  Bruno Haible  <bruno@clisp.org>
83684         * modules/vsnprintf-posix-tests: New file.
83685         * tests/test-vsnprintf-posix.c: New file.
83686         * tests/test-snprintf-posix.h: New file.
83688         * modules/vsnprintf-posix: New file.
83689         * m4/vsnprintf-posix.m4: New file.
83690         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
83691         gl_FUNC_VSNPRINTF.
83692         (gl_FUNC_VSNPRINTF): Invoke it.
83693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
83694         * lib/stdio_.h (vsnprintf): Define as a replacement if
83695         REPLACE_VSNPRINTF is set.
83696         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
83698 2007-03-06  Bruno Haible  <bruno@clisp.org>
83700         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
83701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
83703 2007-03-06  Bruno Haible  <bruno@clisp.org>
83705         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
83706         (asinl): Declare also if HAVE_DECL_ASINL is set.
83707         (atanl): Declare also if HAVE_DECL_ATANL is set.
83708         (ceill): Declare also if HAVE_DECL_CEILL is set.
83709         (cosl): Declare also if HAVE_DECL_COSL is set.
83710         (expl): Declare also if HAVE_DECL_EXPL is set.
83711         (floorl): Declare also if HAVE_DECL_FLOORL is set.
83712         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
83713         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
83714         (logl): Declare also if HAVE_DECL_LOGL is set.
83715         (sinl): Declare also if HAVE_DECL_SINL is set.
83716         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
83717         (tanl): Declare also if HAVE_DECL_TANL is set.
83718         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
83719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
83720         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
83721         declaration of frexpl, ldexpl.
83722         * modules/printf-frexpl (Depends-on): Add math.
83723         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
83725 2007-03-05  Bruno Haible  <bruno@clisp.org>
83727         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
83728         frexpl and ldexpl are declared.
83729         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
83731 2007-03-05  Bruno Haible  <bruno@clisp.org>
83733         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
83734         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
83736 2007-03-05  Bruno Haible  <bruno@clisp.org>
83738         * lib/stdio_.h: Include <stddef.h>.
83740 2007-03-05  Bruno Haible  <bruno@clisp.org>
83742         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
83744 2007-03-05  Bruno Haible  <bruno@clisp.org>
83746         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
83747         NetBSD 4, from Ralf Wildenhues.
83749 2007-03-04  Bruno Haible  <bruno@clisp.org>
83751         * lib/vasprintf.h: Update #if logic for the case when the functions
83752         exist but are overridden.
83754 2007-03-04  Bruno Haible  <bruno@clisp.org>
83756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
83757         implementations: glibc-2.4 and MacOS X 10.3.
83758         * tests/test-vasnprintf-posix.c (test_function): Test also the case
83759         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
83760         * tests/test-vasprintf-posix.c (test_function): Likewise.
83762 2007-03-04  Bruno Haible  <bruno@clisp.org>
83764         * modules/vasprintf-posix-tests: New file.
83765         * tests/test-vasprintf-posix.c: New file.
83767         * modules/vasprintf-posix: New file.
83768         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
83769         defined.
83770         * m4/vasprintf-posix.m4: New file.
83771         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
83772         gl_FUNC_VASPRINTF.
83773         (gl_FUNC_VASPRINTF): Invoke it.
83774         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
83775         here.
83776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
83778 2007-03-04  Bruno Haible  <bruno@clisp.org>
83780         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
83781         REPLACE_GETTIMEOFDAY.
83782         * modules/sys_time (Makefile.am): Likewise.
83783         * m4/sys_time_h.m4: Likewise.
83784         * m4/gettimeofday.m4: Likewise.
83786 2007-03-04  Bruno Haible  <bruno@clisp.org>
83788         * modules/vasnprintf-posix-tests: New file.
83789         * tests/test-vasnprintf-posix.c: New file.
83791         * modules/vasnprintf-posix: New file.
83792         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
83793         printf-frexpl.h.
83794         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
83795         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
83796         REPLACE_VASNPRINTF is defined.
83797         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
83798         gl_FUNC_VASNPRINTF.
83799         (gl_FUNC_VASNPRINTF): Invoke it.
83800         * m4/vasnprintf-posix.m4: New file.
83801         * m4/printf.m4: New file.
83803 2007-03-04  Bruno Haible  <bruno@clisp.org>
83805         Compile progreloc.c only if --enable-relocatable is specified.
83806         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
83807         if --enable-relocatable was specified.
83808         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
83809         lib_SOURCES.
83811 2007-03-04  Jim Meyering  <jim@meyering.net>
83813         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
83814         Use it consistently, rather than enumerating errno constants.
83816 2007-03-04  Bruno Haible  <bruno@clisp.org>
83818         * modules/xvasprintf-tests: New file.
83819         * tests/test-xvasprintf.c: New file.
83821         * modules/vasprintf-tests: New file.
83822         * tests/test-vasprintf.c: New file.
83824         * modules/vasnprintf-tests: New file.
83825         * tests/test-vasnprintf.c: New file.
83827         * modules/vsnprintf-tests: New file.
83828         * tests/test-vsnprintf.c: New file.
83830         * modules/snprintf-tests: New file.
83831         * tests/test-snprintf.c: New file.
83833 2007-03-04  Bruno Haible  <bruno@clisp.org>
83835         Compile relocatable.c only if --enable-relocatable is specified.
83836         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
83837         gl_RELOCATABLE_LIBRARY.
83838         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
83839         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
83840         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
83841         gl_RELOCATABLE_LIBRARY.
83842         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
83843         (Makefile.am): Remove lib_SOURCES.
83844         * modules/relocatable-lib-lgpl (configure.ac): Invoke
83845         gl_RELOCATABLE_LIBRARY.
83846         (Makefile.am): Remove lib_SOURCES.
83847         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
83848         always.
83849         * modules/relocatable-prog-wrapper (configure.ac): Invoke
83850         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
83852 2007-03-04  Bruno Haible  <bruno@clisp.org>
83854         * modules/argmatch-tests: New file.
83855         * tests/test-argmatch.c: New file.
83857         * tests/test-allocsa.c (main): Halve the number of loop runs.
83859         * modules/alloca-opt-tests: New file.
83860         * tests/test-alloca-opt.c: New file.
83862 2007-03-04  Jim Meyering  <jim@meyering.net>
83864         Work around difference between Linux ACLs and Solaris 10 ZFS.
83865         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
83866         for EINVAL.
83868 2007-03-03  Bruno Haible  <bruno@clisp.org>
83870         * modules/relocatable-prog (Depends-on): Add back progreloc's
83871         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
83873 2007-03-03  Bruno Haible  <bruno@clisp.org>
83875         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
83876         * modules/relocatable-lib: New file.
83878 2007-03-03  Bruno Haible  <bruno@clisp.org>
83880         * modules/relocatable-prog: Renamed from modules/relocatable.
83881         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
83883 2007-03-03  Bruno Haible  <bruno@clisp.org>
83885         * modules/relocatable-script (Files): Add doc/relocatable.texi,
83886         m4/relocatable-lib.m4.
83887         (Depends-on): Remove 'relocatable'.
83888         (configure.ac): Add gl_RELOCATABLE_NOP.
83890 2007-03-03  Bruno Haible  <bruno@clisp.org>
83892         * modules/relocatable-prog-wrapper: New file.
83893         * modules/relocatable (Depends-on): Add it. Remove all other
83894         dependencies except progname.
83895         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
83897         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
83898         (gl_FUNC_STRERROR): Nop.
83899         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
83901         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
83902         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
83904         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
83905         (gl_FUNC_READLINK): Update.
83907         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
83909 2007-03-03  Bruno Haible  <bruno@clisp.org>
83911         * lib/xreadlink.c: Include <unistd.h> unconditionally.
83912         * modules/xreadlink (Depends-on): Add unistd.
83913         * modules/xreadlink-with-size (Depends-on): Likewise.
83915 2007-03-03  Bruno Haible  <bruno@clisp.org>
83917         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
83918         extracted from gt_FUNC_SETENV.
83919         (gt_FUNC_SETENV): Remove macro.
83920         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
83921         remove gt_FUNC_SETENV.
83923 2007-03-03  Bruno Haible  <bruno@clisp.org>
83925         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
83926         ENABLE_RELOCATABLE here.
83927         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
83929 2007-03-03  Bruno Haible  <bruno@clisp.org>
83931         * modules/rbtreehash-list-tests (Depends-on): Add progname.
83932         * tests/test-rbtreehash_list.c: Include progname.h.
83933         (main): Call set_program_name.
83935         * modules/rbtree-oset-tests (Depends-on): Add progname.
83936         * tests/test-rbtree_oset.c: Include progname.h.
83937         (main): Call set_program_name.
83939         * modules/rbtree-list-tests (Depends-on): Add progname.
83940         * tests/test-rbtree_list.c: Include progname.h.
83941         (main): Call set_program_name.
83943         * modules/linked-list-tests (Depends-on): Add progname.
83944         * tests/test-linked_list.c: Include progname.h.
83945         (main): Call set_program_name.
83947 2007-03-03  Bruno Haible  <bruno@clisp.org>
83949         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
83950         All uses of __restrict changed to _Restrict_.
83951         * lib/glob_.h (__restrict): Remove macro.
83953 2007-03-02  Bruno Haible  <bruno@clisp.org>
83955         * modules/gettext (configure.ac): Require gettext infrastructure
83956         from version 0.16.1.
83958 2007-03-02  Bruno Haible  <bruno@clisp.org>
83960         * modules/linkedhash-list-tests (Depends-on): Add progname.
83961         * tests/test-linkedhash_list.c: Include progname.h.
83962         (main): Call set_program_name.
83964         * modules/carray-list-tests (Depends-on): Add progname.
83965         * tests/test-carray_list.c: Include progname.h.
83966         (main): Call set_program_name.
83968         * modules/avltreehash-list-tests (Depends-on): Add progname.
83969         * tests/test-avltreehash_list.c: Include progname.h.
83970         (main): Call set_program_name.
83972         * modules/avltree-oset-tests (Depends-on): Add progname.
83973         * tests/test-avltree_oset.c: Include progname.h.
83974         (main): Call set_program_name.
83976         * modules/avltree-list-tests (Depends-on): Add progname.
83977         * tests/test-avltree_list.c: Include progname.h.
83978         (main): Call set_program_name.
83980         * modules/array-oset-tests (Depends-on): Add progname.
83981         * tests/test-array_oset.c: Include progname.h.
83982         (main): Call set_program_name.
83984         * modules/array-list-tests (Depends-on): Add progname.
83985         * tests/test-array_list.c: Include progname.h.
83986         (main): Call set_program_name.
83988         * modules/argp-tests (Depends-on): Add progname.
83989         * tests/test-argp.c: Include argp.h first. Include progname.h.
83990         (main): Call set_program_name.
83992 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
83994         * doc/gnulib-tool.texi (Initial import): Reword description of
83995         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
83996         limited effect even if defined after the first system include.
83998 2007-03-01  Bruno Haible  <bruno@clisp.org>
84000         * build-aux/config.libpath: Update to libtool-1.5.22.
84001         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84003 2007-03-01  Bruno Haible  <bruno@clisp.org>
84005         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
84006         foo_CFLAGS.
84007         Reported by Ralf Wildenhues.
84009 2007-03-01  Bruno Haible  <bruno@clisp.org>
84011         * build-aux/install-reloc: Remove object files left over by some
84012         compilers.
84013         Reported by Ralf Wildenhues.
84015 2007-03-01  Bruno Haible  <bruno@clisp.org>
84017         * build-aux/install-reloc: Break long lines.
84019 2007-03-01  Bruno Haible  <bruno@clisp.org>
84021         * doc/relocatable.texi: Document that it may not work on OpenBSD.
84022         Reported by Ralf Wildenhues.
84024 2007-03-01  Bruno Haible  <bruno@clisp.org>
84026         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
84027         include ordering constraints.
84029 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84031         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
84032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
84033         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
84034         as another example.
84035         * lib/time_.h: Fix misspelling.
84036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
84037         Require gl_HEADER_TIME_H_DEFAULTS.
84038         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
84039         * m4/time_r.m4 (gl_TIME_R): Likewise.
84040         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
84042 2007-03-01  Bruno Haible  <bruno@clisp.org>
84044         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
84045         * m4/utimens.m4 (gl_UTIMENS): Likewise.
84047 2007-03-01  Jim Meyering  <jim@meyering.net>
84049         * modules/xreadlink (Maintainer): Add my name.
84050         * modules/xreadlink-with-size (Depends-on): Alphabetize.
84052 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
84053             Bruno Haible  <bruno@clisp.org>
84055         * build-aux/install-reloc: Compile also c-ctype.c.
84056         * build-aux/relocatable.sh.in: New file.
84057         * doc/relocatable.texi: New file.
84058         * doc/relocatable-maint.texi: New file.
84059         * doc/gnulib.texi: Include relocatable-maint.texi.
84060         * lib/progreloc.c: Include unistd.h unconditionally.
84061         * lib/relocwrapper.c: Include unistd.h unconditionally.
84062         Include c-ctype.h.
84063         (add_dotbin): Use c_tolower.
84064         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
84065         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
84066         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
84067         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
84068         to m4/relocatable-lib.m4.
84069         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
84070         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
84071         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
84072         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
84073         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
84074         * modules/relocatable: New file.
84075         * modules/relocatable-lib: New file.
84076         * modules/relocatable-script: New file.
84078 2007-02-28  Bruno Haible  <bruno@clisp.org>
84080         Import --enable-relocatable infrastructure.
84081         * build-aux/config.libpath: New file, from GNU gettext.
84082         * build-aux/install-reloc: New file, from GNU gettext.
84083         * build-aux/reloc-ldflags: New file, from GNU gettext.
84084         * lib/relocatable.h: New file, from GNU gettext.
84085         * lib/relocatable.c: New file, from GNU gettext.
84086         * lib/relocwrapper.c: New file, from GNU gettext.
84087         * m4/relocatable.m4: New file, from GNU gettext.
84089 2007-02-28  Bruno Haible  <bruno@clisp.org>
84091         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
84093         * modules/xreadlink: New file, from GNU gettext with modifications.
84094         * lib/xreadlink.c: New file, from GNU gettext.
84095         * lib/xreadlink.h: Add comments.
84096         (xreadlink): New declaration.
84098         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
84099         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
84100         lib/xreadlink-with-size.c.
84101         (configure.ac): Remove gl_XREADLINK invocation.
84102         (Makefile.am): Augment lib_SOURCES.
84103         * m4/xreadlink.m4: Remove file.
84104         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
84105         (xreadlink_with_size): Renamed from xreadink.
84106         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
84107         * modules/canonicalize (Depends-on): Replace xreadlink with
84108         xreadlink-with-size.
84109         * lib/canonicalize.c (canonicalize_filename_mode): Update.
84111 2007-02-25  Jim Meyering  <jim@meyering.net>
84113         * build-aux/announce-gen: When complaining about excess arguments,
84114         list them.
84116 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84118         * README: Document signed integer overflow situation more
84119         accurately.
84121 2007-02-25  Bruno Haible  <bruno@clisp.org>
84123         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
84124         'a' or 'A' conversion.
84126 2007-02-25  Bruno Haible  <bruno@clisp.org>
84128         * modules/filename: Renamed from modules/pathname.
84129         (Files): Replace lib/pathname.h with lib/filename.h. Replace
84130         lib/concatpath.c with lib/concat-filename.c.
84131         (Makefile.am): Update.
84132         (Include): Replace pathname.h with filename.h.
84133         * lib/filename.h: Renamed from lib/pathname.h.
84134         (concatenated_filename): Renamed from concatenated_pathname.
84135         * lib/concat-filename.c: Renamed from lib/concatpath.c.
84136         (concatenated_filename): Renamed from concatenated_pathname.
84137         * lib/findprog.c: Include filename.h instead of pathname.h.
84138         (find_in_path): Update.
84139         * lib/javacomp.c: Include filename.h instead of pathname.h.
84140         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
84141         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
84142         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
84143         is_oldgcj_14_13_usable, is_javac_usable): Update.
84144         * lib/javaexec.c: Include filename.h instead of pathname.h.
84145         (execute_java_class): Update.
84146         * modules/findprog: Update.
84147         * modules/javacomp: Update.
84148         * modules/javaexec: Update.
84149         * MODULES.html.sh (File system functions): Add 'filename', remove
84150         'pathname'.
84152 2007-02-25  Bruno Haible  <bruno@clisp.org>
84154         * modules/printf-frexpl-tests: New file.
84155         * tests/test-printf-frexpl.c: New file.
84157         * modules/printf-frexpl: New file.
84158         * lib/printf-frexpl.h: New file.
84159         * lib/printf-frexpl.c: New file.
84160         * m4/printf-frexpl.m4: New file.
84162 2007-02-25  Bruno Haible  <bruno@clisp.org>
84164         * modules/printf-frexp-tests: New file.
84165         * tests/test-printf-frexp.c: New file.
84167         * modules/printf-frexp: New file.
84168         * lib/printf-frexp.h: New file.
84169         * lib/printf-frexp.c: New file.
84170         * m4/printf-frexp.m4: New file.
84172 2007-02-25  Bruno Haible  <bruno@clisp.org>
84174         Assume automake >= 1.10 for the tests.
84175         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
84176         * modules/arctwo-tests: Likewise.
84177         * modules/argp-tests: Likewise.
84178         * modules/avltree-list-tests: Likewise.
84179         * modules/avltree-oset-tests: Likewise.
84180         * modules/avltreehash-list-tests: Likewise.
84181         * modules/carray-list-tests: Likewise.
84182         * modules/crc-tests: Likewise.
84183         * modules/des-tests: Likewise.
84184         * modules/gc-arcfour-tests: Likewise.
84185         * modules/gc-arctwo-tests: Likewise.
84186         * modules/gc-des-tests: Likewise.
84187         * modules/gc-hmac-md5-tests: Likewise.
84188         * modules/gc-hmac-sha1-tests: Likewise.
84189         * modules/gc-md2-tests: Likewise.
84190         * modules/gc-md4-tests: Likewise.
84191         * modules/gc-md5-tests: Likewise.
84192         * modules/gc-pbkdf2-sha1-tests: Likewise.
84193         * modules/gc-rijndael-tests: Likewise.
84194         * modules/gc-sha1-tests: Likewise.
84195         * modules/gc-tests: Likewise.
84196         * modules/getaddrinfo-tests: Likewise.
84197         * modules/hmac-md5-tests: Likewise.
84198         * modules/hmac-sha1-tests: Likewise.
84199         * modules/linked-list-tests: Likewise.
84200         * modules/linkedhash-list-tests: Likewise.
84201         * modules/lock-tests: Likewise.
84202         * modules/md2-tests: Likewise.
84203         * modules/md4-tests: Likewise.
84204         * modules/md5-tests: Likewise.
84205         * modules/rbtree-list-tests: Likewise.
84206         * modules/rbtree-oset-tests: Likewise.
84207         * modules/rbtreehash-list-tests: Likewise.
84208         * modules/read-file-tests: Likewise.
84209         * modules/rijndael-tests: Likewise.
84210         * modules/stdint-tests: Likewise.
84211         * modules/tls-tests: Likewise.
84213 2007-02-24  Bruno Haible  <bruno@clisp.org>
84215         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
84216         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
84217         function; instead check whether isnan with a double argument links.
84218         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
84219         function; instead check whether isnan with a 'long double' argument
84220         links.
84221         Reported by Eric Blake <ebb9@byu.net>.
84223 2007-02-24  Bruno Haible  <bruno@clisp.org>
84225         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
84226         defined.
84227         * lib/isnanl.c: Remove all code. Just include isnan.c.
84228         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
84230 2007-02-25  Jim Meyering  <jim@meyering.net>
84232         Avoid conflicting types for 'unsetenv' on FreeBSD.
84233         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
84234         conflicting with FreeBSD's (5.0 and 6.1) function declaration
84235         in stdlib.h.
84237 2007-02-24  Bruno Haible  <bruno@clisp.org>
84239         * modules/isnanl-nolibm-tests: New file.
84240         * tests/test-isnanl.c: New file.
84242         * modules/isnanl-nolibm: New file.
84243         * lib/isnanl.h: New file.
84244         * lib/isnanl.c: New file.
84245         * m4/isnanl.m4: New file.
84247 2007-02-24  Bruno Haible  <bruno@clisp.org>
84249         * modules/isnan-nolibm-tests: New file.
84250         * tests/test-isnan.c: New file.
84252         * modules/isnan-nolibm: New file.
84253         * lib/isnan.h: New file.
84254         * lib/isnan.c: New file.
84255         * m4/isnan.m4: New file.
84257 2007-02-24  Bruno Haible  <bruno@clisp.org>
84259         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
84260         assume that an exponent fits in 20 bits.
84262 2007-02-24  Jim Meyering  <jim@meyering.net>
84264         * m4/regex.m4: Update the description of the configure-time option,
84265         --without-included-regex, to state accurately what the defaults are,
84266         and perhaps to give people an idea why using this option is risky.
84268 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
84270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
84271         loops on small arguments.  This attempts to avoid the problem
84272         Bruno Haible reported for AIX 4.3.2 in
84273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
84275 2007-02-23  Bruno Haible  <bruno@clisp.org>
84277         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
84278         Needed for help2man.
84280 2007-02-23  Karl Berry  <karl@gnu.org>
84282         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
84283         exists, foo.h should be cvs-ignored, not committed.
84285 2007-02-23  Eric Blake  <ebb9@byu.net>
84287         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
84288         * lib/stat-time.h (includes): Likewise.
84289         * lib/utimecmp.c (includes): Likewise.
84290         * lib/utimens.h (includes): Likewise.
84291         * lib/getdate.y (includes): Also include "timespec.h" for use
84292         internal to the module.
84293         * modules/utimens (Depends-on): Revert yesterday's patch.
84294         * modules/nanosleep (Depends-on): Add missing dependency.
84296 2007-02-22  Bruno Haible  <bruno@clisp.org>
84298         * lib/glob.c: Don't include getlogin_r.h.
84300 2007-02-22  Jim Meyering  <jim@meyering.net>
84302         * modules/utimens (Depends-on): Add timespec, required for
84303         utimens.h's inclusion of timespec.h.
84305 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
84307         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
84308         long unreadable paths in GNU/Linux.  Problem reported by Andreas
84309         Schwab in
84310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
84311         I'll try to think of a better way to fix the Solaris problem.
84313         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
84314         like glibc; on Solaris 10, it fails with errno == EINVAL.
84315         POSIX says the behavior is unspecified if the first argument is NULL,
84316         so play it safe and never pass NULL to the system getcwd.
84318 2007-02-21  Jim Meyering  <jim@meyering.net>
84320         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
84321         of gettimeofday.  It would conflict with the one now always
84322         provided via sys_time_.h.  Reported by Matthew Woehlke, as
84323         an IRIX 6.5 build failure.
84325 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
84327         Minor fixups to port to Solaris 10 with Sun C 5.8.
84328         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
84329         * modules/getcwd (Depends-on): Add dirfd.
84330         * lib/putenv.c (putenv): #undef it.
84331         (rpl_putenv): New decl.
84332         (malloc, free): Include <stdlib.h> rather than prototyping separately.
84334 2007-02-20  Bruno Haible  <bruno@clisp.org>
84336         * modules/stdio-tests: New file.
84337         * tests/test-stdio.c: New file.
84339         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
84340         (Depends-on): Add stdio.
84341         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
84342         (Include): Use <stdio.h> instead of vsnprintf.h.
84343         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
84344         HAVE_DECL_VSNPRINTF.
84345         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
84347         * modules/snprintf (Files): Remove lib/snprintf.h.
84348         (Depends-on): Add stdio.
84349         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
84350         (Include): Use <stdio.h> instead of snprintf.h.
84351         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
84352         HAVE_DECL_SNPRINTF.
84353         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
84354         * lib/getaddrinfo.c: Likewise.
84356         * modules/stdio: New file.
84357         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
84358         * lib/snprintf.h: Remove file.
84359         * lib/vsnprintf.h: Remove file.
84360         * lib/.cppi-disable: Remove snprintf.h.
84361         * m4/stdio_h.m4: New file.
84362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
84364 2007-02-20  Jim Meyering  <jim@meyering.net>
84366         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
84367         used by e.g., mingw.  From Bruno Haible.
84369 2007-02-19  Bruno Haible  <bruno@clisp.org>
84371         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
84372         warnings.
84373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84375 2007-02-19  Bruno Haible  <bruno@clisp.org>
84377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
84378         from mingw users.
84380 2007-02-19  Bruno Haible  <bruno@clisp.org>
84382         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
84383         warnings.
84384         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
84386 2007-02-19  Jim Meyering  <jim@meyering.net>
84388         Don't use FD after a successful "fdopendir (fd)".
84389         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
84390         Reset it by calling dirfd on the just-obtained DIR*.
84392         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
84393         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
84395 2007-02-18  Bruno Haible  <bruno@clisp.org>
84397         * lib/readlink.c: Include <unistd.h>.
84398         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
84399         HAVE_READLINK.
84400         * modules/readlink (Depends-on): Add unistd.
84401         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84402         (Include): Add <unistd.h>.
84404         * lib/getlogin_r.h: Remove file.
84405         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
84406         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
84407         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
84408         HAVE_DECL_GETLOGIN_R.
84409         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
84410         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84411         (Include): Use <unistd.h> instead of getlogin_r.h.
84413         * lib/getcwd.h: Remove file.
84414         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
84415         * lib/xgetcwd.c: Likewise.
84416         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
84417         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
84418         * modules/getcwd (Files): Remove lib/getcwd.h.
84419         (Depends-on): Add unistd.
84420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84421         (Include): Use <unistd.h> instad of getcwd.h.
84423         * lib/ftruncate.c: Include <unistd.h> first.
84424         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
84425         Set HAVE_FTRUNCATE.
84426         * modules/ftruncate (Depends-on): Add unistd.
84427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84429         * lib/fchdir.c: Include <unistd.h> first.
84430         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
84431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
84432         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
84433         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84434         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
84436         * lib/dup2.c: Include <unistd.h> first.
84437         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
84438         HAVE_DUP2.
84439         * modules/dup2 (Depends-on): Add unistd.
84440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84442         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
84443         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
84444         REPLACE_CHOWN. Don't define chown as a macro here.
84445         * modules/chown (Depends-on): Add unistd.
84446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84448         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
84449         Add definition for GL_LINK_WARNING.
84450         (chown, dup2): New declarations.
84451         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
84452         link warning.
84453         (ftruncate): New declaration.
84454         (getcwd): New declaration, taken from old getcwd.h.
84455         (getlogin_r): New declaration, taken from old getlogin_r.h.
84456         (readlink): New declaration.
84457         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
84458         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
84459         (gl_PREREQ_UNISTD): Remove macro.
84460         (gl_UNISTD_MODULE_INDICATOR): New macro.
84461         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
84462         many new variables. Don't set UNISTD_H.
84463         * modules/unistd (Description): Change.
84464         (Depends-on): Add link-warning.
84465         (configure.ac): Update.
84466         (Makefile.am): Create unistd.h always. Substitute many new variables
84467         into it.
84469 2007-02-18  Bruno Haible  <bruno@clisp.org>
84471         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
84472         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
84473         HAVE_GETSUBOPT.
84474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
84475         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
84476         * lib/getsubopt.h: Remove file.
84477         * modules/getsubopt (Files): Remove lib/getsubopt.h.
84478         (Depends-on): Add stdlib.
84479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84480         (Includes): Use <stdlib.h> instead of getsubopt.h.
84481         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
84482         Set HAVE_GETSUBOPT.
84483         * lib/getsubopt.c: Don't include getsubopt.h.
84485 2007-02-18  Bruno Haible  <bruno@clisp.org>
84487         * modules/fchdir (Depends-on): Add dup2.
84489 2007-02-18  Bruno Haible  <bruno@clisp.org>
84491         * lib/stdlib_.h: Handle glibc's special invocation convention
84492         specially.
84494 2007-02-18  Bruno Haible  <bruno@clisp.org>
84496         * modules/stdlib-tests: New file.
84497         * tests/test-stdlib.c: New file.
84499         * modules/mkstemp (Files): Remove lib/mkstemp.h.
84500         (Depends-on): Add stdlib.
84501         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84502         (Includes): Use <stdlib.h> instead of mkstemp.h.
84503         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
84504         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
84505         * lib/mkstemp.c: Don't include mkstemp.h.
84506         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
84507         * lib/stdlib--.h: Don't include mkstemp.h.
84509         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
84510         (Depends-on): Add stdlib.
84511         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84512         (Includes): Use <stdlib.h> instead of mkdtemp.h.
84513         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
84514         HAVE_MKDTEMP.
84515         * lib/mkdtemp.c: Don't include mkdtemp.h.
84516         * lib/clean-temp.c: Don't include mkdtemp.h.
84518         * modules/exit (Files): Remove lib/exit.h.
84519         (Depends-on): Add stdlib.
84520         (Makefile.am): Remove lib_SOURCES.
84521         (Include): Use <stdlib.h> instead of exit.h.
84522         * lib/argmatch.c: Don't include exit.h.
84523         * lib/execute.c: Likewise.
84524         * lib/pagealign_alloc.c: Likewise.
84525         * lib/pipe.c: Likewise.
84526         * lib/wait-process.c: Likewise.
84527         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
84528         * lib/exitfail.c: Likewise.
84529         * lib/savewd.c: Likewise.
84530         * lib/xsetenv.c: Likewise.
84532         * modules/stdlib: New file.
84533         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
84534         and extra comments about mkstemp().
84535         * lib/exit.h: Remove file.
84536         * lib/mkdtemp.h: Remove file.
84537         * lib/mkstemp.h: Remove file.
84538         * m4/stdlib_h.m4: New file.
84539         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
84541 2007-02-18  Bruno Haible  <bruno@clisp.org>
84543         * modules/math-tests: New file.
84544         * tests/test-math.c: New file.
84546         * modules/math: New file.
84547         * modules/mathl (Files): Remove lib/mathl.h.
84548         (Depends-on): Add math.
84549         (Makefile.am): Don't mention mathl.h.
84550         (Include): Use <math.h> instead of mathl.h.
84551         * lib/math_.h: New file.
84552         * lib/mathl.h: Remove file.
84553         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
84554         mathl.h.
84555         * lib/asinl.c: Likewise.
84556         * lib/atanl.c: Likewise.
84557         * lib/ceill.c: Likewise.
84558         * lib/cosl.c: Likewise.
84559         * lib/expl.c: Likewise.
84560         * lib/floorl.c: Likewise.
84561         * lib/frexpl.c: Likewise.
84562         * lib/ldexpl.c: Likewise.
84563         * lib/logl.c: Likewise.
84564         * lib/sincosl.c: Likewise.
84565         * lib/sinl.c: Likewise.
84566         * lib/sqrtl.c: Likewise.
84567         * lib/tanl.c: Likewise.
84568         * lib/trigl.c: Likewise.
84569         * m4/math_h.m4: New file.
84570         * MODULES.html.sh (Mathematics): Add math.
84572 2007-02-17  Bruno Haible  <bruno@clisp.org>
84574         * modules/wctype-tests: New file.
84575         * tests/test-wctype.c: New file.
84577         * modules/wchar-tests: New file.
84578         * tests/test-wchar.c: New file.
84580         * modules/unistd-tests: New file.
84581         * tests/test-unistd.c: New file.
84583         * modules/time-tests: New file.
84584         * tests/test-time.c: New file.
84586         * modules/sysexits-tests: New file.
84587         * tests/test-sysexits.c: New file.
84589         * modules/sys_time-tests: New file.
84590         * tests/test-sys_time.c: New file.
84592         * modules/sys_stat-tests: New file.
84593         * tests/test-sys_stat.c: New file.
84595         * modules/sys_socket-tests: New file.
84596         * tests/test-sys_socket.c: New file.
84598         * modules/sys_select-tests: New file.
84599         * tests/test-sys_select.c: New file.
84601         * modules/string-tests: New file.
84602         * tests/test-string.c: New file.
84604         * modules/stdbool-tests: New file.
84605         * tests/test-stdbool.c: New file.
84607         * modules/netinet_in-tests: New file.
84608         * tests/test-netinet_in.c: New file.
84610         * modules/inttypes-tests: New file.
84611         * tests/test-inttypes.c: New file.
84613         * modules/fcntl-tests: New file.
84614         * tests/test-fcntl.c: New file.
84616         * modules/byteswap-tests: New file.
84617         * tests/test-byteswap.c: New file.
84619         * modules/arpa_inet-tests: New file.
84620         * tests/test-arpa_inet.c: New file.
84622 2007-02-17  Bruno Haible  <bruno@clisp.org>
84624         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
84625         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
84626         if the corresponding module is not enabled. Emit link warnings if
84627         the function is used nevertheless.
84628         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
84629         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
84630         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
84631         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
84632         * modules/inttypes (Depends-on): Add link-warning.
84633         (Makefile.am): Copy the contents of build-aux/link-warning.h into
84634         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
84635         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
84636         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
84637         * modules/imaxdiv (configure.ac): Likewise.
84638         * modules/strtoimax (configure.ac): Likewise.
84639         * modules/strtoumax (configure.ac): Likewise.
84641 2007-02-17  Bruno Haible  <bruno@clisp.org>
84643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
84644         gl_STRING_MODULE_INDICATOR_DEFAULTS.
84645         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
84646         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
84648 2007-02-17  Bruno Haible  <bruno@clisp.org>
84650         * modules/link-warning: New file.
84651         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
84652         * lib/string_.h (GL_LINK_WARNING): Remove definition.
84653         * modules/string (Depends-on): Add link-warning.
84654         (Makefile.am): Copy the contents of build-aux/link-warning.h into
84655         string.h.
84656         * MODULES.html.sh (Support for building libraries and executables): Add
84657         link-warning.
84659 2007-02-17  Bruno Haible  <bruno@clisp.org>
84661         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
84662         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
84663         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
84664         long lines.
84666 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
84667             Bruno Haible  <bruno@clisp.org>
84669         * modules/tmpfile: New file.
84670         * lib/tmpfile.c: New file.
84671         * m4/tmpfile.m4: New file.
84672         * MODULES.html.sh (func_all_modules): New section "Input/output".
84674 2007-02-15  Bruno Haible  <bruno@clisp.org>
84676         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
84677         (supports_delete_on_close): New function.
84678         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
84680 2007-02-14  Bruno Haible  <bruno@clisp.org>
84682         * modules/mbspcasecmp-tests: New file.
84683         * tests/test-mbspcasecmp.sh: New file.
84684         * tests/test-mbspcasecmp.c: New file.
84686         New module mbspcasecmp.
84687         * modules/mbspcasecmp: New file.
84688         * lib/mbspcasecmp.c: New file.
84689         * lib/string_.h (strncasecmp): Change warning message.
84690         (mbspcasecmp): New declaration.
84691         * m4/mbspcasecmp.m4: New file.
84692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84693         GNULIB_MBSPCASECMP.
84694         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
84695         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
84697 2007-02-14  Bruno Haible  <bruno@clisp.org>
84699         * modules/mbsncasecmp-tests: New file.
84700         * tests/test-mbsncasecmp.sh: New file.
84701         * tests/test-mbsncasecmp.c: New file.
84703         New module mbsncasecmp.
84704         * modules/mbsncasecmp: New file.
84705         * lib/mbsncasecmp.c: New file.
84706         * lib/string_.h (mbsncasecmp): New declaration.
84707         * m4/mbsncasecmp.m4: New file.
84708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84709         GNULIB_MBSNCASECMP.
84710         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
84711         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
84713 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
84715         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
84716         Verify that it doesn't overlap with our flags.
84717         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
84718         do not have the desired effect in multibyte locales; instead, use
84719         mbscasecmp.
84720         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
84721         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
84722         we don't require GNU fnmatch ourselves (if our users require it, they
84723         should do so explicitly).
84725         Fix regex code so it doesn't rely on strcasecmp.
84726         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
84727         Otherwise, include gnulib's langinfo.h.
84728         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
84729         undesirable behavior in non-C locales.  Instead, rely on localecharset.
84730         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
84731         * modules/regex (FILES): Remove m4/codeset.m4.
84732         (Depends-on): Add localcharset.  Remove strcase.
84734 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84736         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
84737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
84739 2007-02-13  Bruno Haible  <bruno@clisp.org>
84741         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
84742         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84744 2007-02-12  Bruno Haible  <bruno@clisp.org>
84746         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
84747         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
84748         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
84749         time warning rather than a link error.
84751 2007-02-12  Bruno Haible  <bruno@clisp.org>
84753         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
84754         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84757 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
84759         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
84760         args, not 2.
84762 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
84764         New module 'time', so that apps can include <time.h> as per
84765         POSIX and GNU instead of separate include files like time_r.h
84766         and timegm.h.  This implementation tries out a simpler approach
84767         for replacing decls in standard include files (as compared to
84768         the string module), somewhat as an experiment.
84770         * config/srclist.txt: Comment out mktime.c for now.
84771         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
84772         since it doesn't apply any more.  Use generic wording instead.
84773         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
84774         'time'.
84775         * lib/time_.h, m4/time_h.m4, modules/time: New files.
84776         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
84777         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
84778         Don't include <sys/types.h>; no longer needed since we assume C89.
84779         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
84780         * lib/strftime.c: Likewise.
84781         * lib/time_r.c: Likewise.
84782         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
84783         * lib/nanosleep.c: Include <time.h> first, to check interface.
84784         * lib/strptime.c: Likewise.
84785         * lib/time_r.c: Likewise.
84786         * lib/timegm.c: Likewise.
84787         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
84788         needed.
84789         * lib/timegm.c: Don't include timegm.h; no longer needed.
84790         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
84791         time.h now handles any problems in that area.
84792         (struct timespec, nanosleep): Remove; time.h now arranges for these.
84793         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
84794         that time.h defines struct timespec.
84795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
84796         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
84797         handles that.
84798         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
84799         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
84800         needed.  Set REPLACE_LOCALTIME.
84801         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
84802         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
84803         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
84804         nanosleep; time_h.m4 now does that.  Don't require
84805         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
84806         module handles this now.
84807         * modules/getdate (Depends-on): Remove timespec.  Add time.
84808         * modules/nanosleep (Depends-on): Likewise.
84809         * modules/stat-time (Depends-on): Likewise.
84810         * modules/nanosleep (Include): Include time.h, not timespec.h.
84811         * modules/strptime (Files): Remove lib/strptime.h.
84812         (Depends-on): Add extensions, time.
84813         (Include): Include time.h, not strptime.h.
84814         * modules/time_r (Files): Remove lib/time_r.h.
84815         (Depends-on): Add time.
84816         (Include): Include time.h, not time_r.h.
84817         * modules/timegm: Likewise.
84818         * modules/timespec (Description): Now does timespec-related decls
84819         of our own, instead of struct timespec itself.
84820         (Depends-on): Add time; remove extensions.
84821         (Maintainer): Add self.
84822         * modules/utimecmp (Depends-on): Add time; remove timespec.
84823         * modules/utimens (Depends-on): Likewise.
84824         * modules/xnanosleep (Depends-on): Likewise.
84826 2007-02-11  Bruno Haible  <bruno@clisp.org>
84828         * lib/c-strstr.c: Include allocsa.h.
84829         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
84830         * lib/c-strcasestr.c: Include allocsa.h.
84831         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
84832         * lib/strcasestr.c: Include allocsa.h.
84833         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
84834         * lib/mbsstr.c: Include allocsa.h.
84835         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
84836         allocsa/freesa instead of malloc/free.
84837         * lib/mbscasestr.c: Include allocsa.h.
84838         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
84839         allocsa/freesa instead of malloc/free.
84840         * modules/c-strstr (Depends-on): Add allocsa.
84841         * modules/c-strcasestr (Depends-on): Likewise.
84842         * modules/strcasestr (Depends-on): Likewise.
84843         * modules/mbsstr (Depends-on): Likewise.
84844         * modules/mbscasestr (Depends-on): Likewise.
84846 2007-02-11  Bruno Haible  <bruno@clisp.org>
84848         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
84850         * modules/mbsspn-tests: New file.
84851         * tests/test-mbsspn.sh: New file.
84852         * tests/test-mbsspn.c: New file.
84854 2007-02-11  Bruno Haible  <bruno@clisp.org>
84856         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
84858         * modules/mbspbrk-tests: New file.
84859         * tests/test-mbspbrk.sh: New file.
84860         * tests/test-mbspbrk.c: New file.
84862 2007-02-11  Bruno Haible  <bruno@clisp.org>
84864         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
84865         unneeded cast.
84867         * modules/mbscspn-tests: New file.
84868         * tests/test-mbscspn.sh: New file.
84869         * tests/test-mbscspn.c: New file.
84871 2007-02-11  Bruno Haible  <bruno@clisp.org>
84873         * modules/mbscasecmp-tests: New file.
84874         * tests/test-mbscasecmp.sh: New file.
84875         * tests/test-mbscasecmp.c: New file.
84877 2007-02-11  Bruno Haible  <bruno@clisp.org>
84879         Ensure O(n) worst-case complexity of mbscasestr.
84880         * lib/mbscasestr.c: Include stdbool.h.
84881         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
84882         functions.
84883         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
84884         the bookkeeping indicates that it's worth it.
84885         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
84887         * modules/mbscasestr-tests: New file.
84888         * tests/test-mbscasestr1.c: New file.
84889         * tests/test-mbscasestr2.sh: New file.
84890         * tests/test-mbscasestr2.c: New file.
84891         * tests/test-mbscasestr3.sh: New file.
84892         * tests/test-mbscasestr3.c: New file.
84893         * tests/test-mbscasestr4.sh: New file.
84894         * tests/test-mbscasestr4.c: New file.
84895         * m4/locale-tr.m4: New file.
84897 2007-02-11  Bruno Haible  <bruno@clisp.org>
84899         Ensure O(n) worst-case complexity of mbsstr.
84900         * lib/mbsstr.c: Include stdbool.h.
84901         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
84902         functions.
84903         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
84904         bookkeeping indicates that it's worth it.
84905         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
84907         * modules/mbsstr-tests: New file.
84908         * tests/test-mbsstr1.c: New file.
84909         * tests/test-mbsstr2.sh: New file.
84910         * tests/test-mbsstr2.c: New file.
84911         * tests/test-mbsstr3.sh: New file.
84912         * tests/test-mbsstr3.c: New file.
84913         * m4/locale-fr.m4: New file.
84915 2007-02-11  Bruno Haible  <bruno@clisp.org>
84917         * lib/mbsrchr.c (mbsrchr): Fix bug.
84919         * modules/mbsrchr-tests: New file.
84920         * tests/test-mbsrchr.sh: New file.
84921         * tests/test-mbsrchr.c: New file.
84923 2007-02-11  Bruno Haible  <bruno@clisp.org>
84925         * lib/mbschr.c (mbschr): Fix bug.
84927         * modules/mbschr-tests: New file.
84928         * tests/test-mbschr.sh: New file.
84929         * tests/test-mbschr.c: New file.
84930         * m4/locale-zh.m4: New file.
84932 2007-02-11  Bruno Haible  <bruno@clisp.org>
84934         Support for copying multibyte string iterators.
84935         * lib/mbiter.h: Include <string.h>.
84936         (mbiter_multi_copy): New function.
84937         (mbi_copy): New macro.
84938         * lib/mbuiter.h: Include <string.h>.
84939         (mbuiter_multi_copy): New function.
84940         (mbui_copy): New macro.
84942 2007-02-11  Bruno Haible  <bruno@clisp.org>
84944         New module mbslen.
84945         * modules/mbslen: New file.
84946         * lib/mbslen.c: New file.
84947         * lib/string_.h (mbslen): New declaration.
84948         * m4/mbslen.m4: New file.
84949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84950         GNULIB_MBSLEN.
84951         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
84952         * MODULES.html.sh (Internationalization functions): Add mbslen.
84954 2007-02-11  Bruno Haible  <bruno@clisp.org>
84956         Ensure O(n) worst-case complexity of strcasestr substitute.
84957         * lib/strcasestr.c: Include stdbool.h.
84958         (knuth_morris_pratt): New function.
84959         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
84960         bookkeeping indicates that it's worth it.
84961         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
84963         * modules/strcasestr-tests: New file.
84964         * tests/test-strcasestr.c: New file.
84966 2007-02-11  Bruno Haible  <bruno@clisp.org>
84968         Ensure O(n) worst-case complexity of c_strcasestr.
84969         * lib/c-strcasestr.c: Include stdbool.h, string.h.
84970         (knuth_morris_pratt): New function.
84971         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
84972         the bookkeeping indicates that it's worth it.
84973         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
84975         * modules/c-strcasestr-tests: New file.
84976         * tests/test-c-strcasestr.c: New file.
84978 2007-02-11  Bruno Haible  <bruno@clisp.org>
84980         Ensure O(n) worst-case complexity of c_strstr.
84981         * lib/c-strstr.c: Include stdbool.h, string.h.
84982         (knuth_morris_pratt): New function.
84983         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
84984         bookkeeping indicates that it's worth it.
84985         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
84987         * lib/c-strstr.c: Complete rewrite for maintainability.
84989         * modules/c-strstr-tests: New file.
84990         * tests/test-c-strstr.c: New file.
84992 2007-02-11  Bruno Haible  <bruno@clisp.org>
84994         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
84995         5.2.1 and earlier, whereby \055 was treated just like the range
84996         delimiter '-'.
84997         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84999 2007-02-08  Bruno Haible  <bruno@clisp.org>
85001         * modules/regex (Depends-on): Add stdbool.
85002         Reported by Dalibor Topic <robilad@kaffe.org>.
85004 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
85006         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
85007         Prefer returning from main to exiting from it.
85008         Remove unnecessary parens after sizeof.
85010 2007-02-05  Bruno Haible  <bruno@clisp.org>
85012         New module mbssep.
85013         * modules/mbssep: New file.
85014         * lib/mbssep.c: New file.
85015         * lib/string_.h (strsep): Add a conditional link warning.
85016         (mbssep): New declaration.
85017         * m4/mbssep.m4: New file.
85018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85019         GNULIB_MBSSEP.
85020         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
85021         * MODULES.html.sh (Internationalization functions): Add mbssep.
85023 2007-02-05  Bruno Haible  <bruno@clisp.org>
85025         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
85026         Optimize search in case of 1 delimiter.
85028 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
85030         * lib/acl.h: Include sys/types.h before sys/acl.h.
85032 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
85034         Merge upstream fix for glibc bugzilla #3957:
85036         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
85038         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
85039         bit for RE_HAT_LISTS_NOT_NEWLINE.
85040         (build_charclass_op): Remove bogus comment.
85042 2007-02-05  Simon Josefsson  <simon@josefsson.org>
85044         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
85046 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
85048         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
85049         * lib/memmem.c [!defined _LIBC]: Include config.h.
85051 2007-02-04  Bruno Haible  <bruno@clisp.org>
85053         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
85054         warning message.
85056 2007-02-04  Bruno Haible  <bruno@clisp.org>
85058         New module mbstok_r.
85059         * modules/mbstok_r: New file.
85060         * lib/mbstok_r.c: New file.
85061         * lib/string_.h (strtok_r): Change argument names to match the
85062         comments. Add a conditional link warning.
85063         (mbstok_r): New declaration.
85064         * m4/mbstok_r.m4: New file.
85065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85066         GNULIB_MBSTOK_R.
85067         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
85068         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
85070 2007-02-04  Bruno Haible  <bruno@clisp.org>
85072         New module mbsspn.
85073         * modules/mbsspn: New file.
85074         * lib/mbsspn.c: New file.
85075         * lib/string_.h (strspn): Add a conditional link warning.
85076         (mbsspn): New declaration.
85077         * m4/mbsspn.m4: New file.
85078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85079         GNULIB_MBSSPN.
85080         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
85081         * MODULES.html.sh (Internationalization functions): Add mbsspn.
85083 2007-02-04  Bruno Haible  <bruno@clisp.org>
85085         New module mbspbrk.
85086         * modules/mbspbrk: New file.
85087         * lib/mbspbrk.c: New file.
85088         * lib/string_.h (strpbrk): Add a conditional link warning.
85089         (mbspbrk): New declaration.
85090         * m4/mbspbrk.m4: New file.
85091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85092         GNULIB_MBSPBRK.
85093         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
85094         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
85096 2007-02-04  Bruno Haible  <bruno@clisp.org>
85098         New module mbscspn.
85099         * modules/mbscspn: New file.
85100         * lib/mbscspn.c: New file.
85101         * lib/string_.h (strcspn): Add a conditional link warning.
85102         (mbscspn): New declaration.
85103         * m4/mbscspn.m4: New file.
85104         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85105         GNULIB_MBSCSPN.
85106         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
85107         * MODULES.html.sh (Internationalization functions): Add mbscspn.
85109 2007-02-04  Bruno Haible  <bruno@clisp.org>
85111         New module mbscasestr, reduced goal of strcasestr.
85112         * modules/mbscasestr: New file.
85113         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
85114         (mbscasestr): Renamed from strcasestr.
85115         * lib/strcasestr.c: Don't include mbuiter.h.
85116         (strcasestr): Remove support for multibyte locales.
85117         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
85118         Change the conditional link warning.
85119         (mbscasestr): New declaration.
85120         * m4/mbscasestr.m4: New file.
85121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
85122         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
85123         REPLACE_STRCASESTR.
85124         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
85125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
85126         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
85127         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
85128         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
85129         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
85130         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
85131         (Depends-on): Remove mbuiter.
85132         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
85134 2007-02-04  Bruno Haible  <bruno@clisp.org>
85136         Simplify handling of strncasecmp.
85137         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
85138         the conditional link warning.
85139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
85140         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
85141         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
85142         * modules/strcase (configure.ac): Don't invoke
85143         gl_STRING_MODULE_INDICATOR.
85144         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
85146 2007-02-04  Bruno Haible  <bruno@clisp.org>
85148         New module mbscasecmp, reduced goal of strcasecmp.
85149         * modules/mbscasecmp: New file.
85150         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
85151         (mbscasecmp): Renamed from strcasecmp.
85152         * lib/strcasecmp.c: Don't include mbuiter.h.
85153         (strcasecmp): Remove support for multibyte locales.
85154         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
85155         Change the conditional link warning.
85156         (mbscasecmp): New declaration.
85157         * m4/mbscasecmp.m4: New file.
85158         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
85159         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
85160         REPLACE_STRCASECMP.
85161         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
85162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85163         GNULIB_MBSCASECMP.
85164         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
85165         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
85166         * modules/strcase (Files): Remove m4/mbrtowc.m4.
85167         (Depends-on): Remove mbuiter.
85168         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
85170 2007-02-04  Bruno Haible  <bruno@clisp.org>
85172         New module mbsstr. Remove module strstr.
85173         * modules/mbsstr: New file.
85174         * modules/strstr: Remove file.
85175         * lib/mbsstr.c: Renamed from lib/strstr.c.
85176         (mbsstr): Renamed from strstr.
85177         * lib/string_.h (strstr): Remove declaration. Change the conditional
85178         link warning.
85179         (mbsstr): New declaration.
85180         * m4/mbsstr.m4: New file.
85181         * m4/strstr.m4: Remove file.
85182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
85183         REPLACE_STRSTR.
85184         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
85185         Don't initialize GNULIB_STRSTR.
85186         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
85187         substitute GNULIB_STRSTR and REPLACE_STRSTR.
85188         * MODULES.html.sh (Internationalization functions): Add mbsstr.
85189         (Support for systems lacking ANSI C 89): Remove strstr.
85191 2007-02-04  Bruno Haible  <bruno@clisp.org>
85193         New module mbsrchr.
85194         * modules/mbsrchr: New file.
85195         * lib/mbsrchr.c: New file.
85196         * lib/string_.h (strrchr): Add a conditional link warning.
85197         (mbsrchr): New declaration.
85198         * m4/mbsrchr.m4: New file.
85199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85200         GNULIB_MBSRCHR.
85201         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
85202         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
85204 2007-02-04  Bruno Haible  <bruno@clisp.org>
85206         New module mbschr.
85207         * modules/mbschr: New file.
85208         * lib/mbschr.c: New file.
85209         * lib/string_.h (strchr): Add a conditional link warning.
85210         (mbschr): New declaration.
85211         * m4/mbschr.m4: New file.
85212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85213         GNULIB_MBSCHR.
85214         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
85215         * MODULES.html.sh (Internationalization functions): Add mbschr.
85217 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
85219         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
85221         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
85223 2007-02-04  Bruno Haible  <bruno@clisp.org>
85225         New module description section 'configure.ac-early'.
85226         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
85227         (func_get_autoconf_early_snippet): New function.
85228         (func_import, func_create_testdir): Use it. Remove special cases for
85229         modules 'extensions' and 'lock'.
85230         * modules/extensions (configure.ac-early): Require
85231         gl_USE_SYSTEM_EXTENSIONS.
85232         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
85234 2007-02-04  Bruno Haible  <bruno@clisp.org>
85236         Make use of gcj-4.3's -fsource and -ftarget option.
85237         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
85238         and if so try the options -fsource and -ftarget.
85239         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
85240         source_version, ftarget_option, target_version arguments.
85241         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
85242         (is_envjavac_oldgcj_14_14_usable): Renamed from
85243         is_envjavac_gcj_14_14_usable.
85244         (is_envjavac_oldgcj_14_13_usable): Renamed from
85245         is_envjavac_gcj_14_13_usable.
85246         (is_gcj_present): Update.
85247         (is_gcj_43, is_gcj43_usable): New functions.
85248         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
85249         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
85250         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
85251         try the options -fsource and -ftarget.
85253 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85255         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
85256         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
85257         larger value.
85259 2007-02-03  Jim Meyering  <jim@meyering.net>
85261         Give tools a better chance to allocate space for very large buffers.
85262         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
85264         Make pwd and readlink work also when run with an unreadable parent dir
85265         on systems with openat support.
85266         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
85267         provided getcwd function, even when we have openat support.
85268         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
85270 2007-02-02  Bruno Haible  <bruno@clisp.org>
85272         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
85273         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
85274         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
85275         portability problems if one of these functions is only used on specific
85276         platforms.
85277         Reported by Paul Eggert.
85279 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
85281         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
85282         is causing more trouble than it's curing.
85283         * lib/regex_internal.h (__mempcpy): Remove.
85284         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
85285         (and make the code a tad smaller to boot).
85286         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
85288 2007-02-02  Jim Meyering  <jim@meyering.net>
85290         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
85291         section, not in the Makefile.am: one.
85293 2007-02-02  Eric Blake  <ebb9@byu.net>
85295         * lib/strchrnul.c: Always include config.h first.
85297         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
85298         gnulib strstr is not necessary here.
85300 2007-02-02  Simon Josefsson  <simon@josefsson.org>
85302         * m4/socklen.m4: Fix typo.
85304 2007-02-02  Eric Blake  <ebb9@byu.net>
85306         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
85307         * modules/netinet_in (Makefile.am): Likewise.
85309 2007-02-01  Bruno Haible  <bruno@clisp.org>
85311         * lib/string_.h (GL_LINK_WARNING): New macro.
85312         (strcasecmp, strstr, strcasestr): If provided by the system,
85313         conditionally define as a macro that leads to a warning instead of to
85314         an error.
85315         (strncasecmp): Conditionally define as a macro that leads to a warning.
85317 2007-02-01  Karl Berry  <karl@gnu.org>
85319         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
85321 2007-02-01  Bruno Haible  <bruno@clisp.org>
85323         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
85324         renamings.
85326 2007-02-01  Eric Blake  <ebb9@byu.net>
85328         * modules/regex (Depends-on): Revert dependence on mempcpy.
85329         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
85330         module's definition of mempcpy.
85331         Reported by Paul Eggert.
85333 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85335         * lib/string_.h: If the gnulib module XYZ is not present, undefine
85336         the symbol XYZ before redefining it.  This fixes a problem with
85337         programs that don't use XYZ, when compiled on systems that define
85338         XYZ to something else.
85340 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
85342         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
85343         occurs when "mkdir -m foo" creates a setgid directory that is (1)
85344         writeable to group or other and (2) is intended to have a special
85345         mode bit that is set or cleared.  In such a case, the directory
85346         should be neither group- nor other-writeable until the special
85347         mode bits are right.
85349 2007-01-31  Eric Blake  <ebb9@byu.net>
85351         * modules/mountlist (Depends-on): Add strstr.
85353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
85354         bug.
85355         * modules/string (Makefile.am): Remove redundant replacement.
85356         * modules/regex (Depends-on): Add mempcpy.
85358 2007-01-31  Bruno Haible  <bruno@clisp.org>
85360         New module description field 'Link'.
85361         * gnulib-tool (func_usage): Document --extract-link-directive.
85362         (sed_extract_prog): Recognize 'Link' directive.
85363         (func_get_link_directive): New function.
85364         (func_import): Show summary of link directives.
85365         Handle --extract-link-directive option.
85366         * modules/acl (Link): New section.
85367         * modules/clock-time (Link): New section.
85368         * modules/euidaccess (Link): New section.
85369         * modules/gettext (Link): New section.
85370         * modules/iconv (Link): New section.
85371         * modules/lock (Link): New section.
85372         * modules/nanosleep (Link): New section.
85373         * modules/readline (Link): New section.
85375 2007-01-27  Bruno Haible  <bruno@clisp.org>
85377         Enforce the use of gnulib modules for unportable <string.h> functions.
85378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
85379         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
85380         (gl_HEADER_STRING_H_BODY): Require it.
85381         * lib/string_.h: If the gnulib module XYZ is not present, redefine
85382         the symbol XYZ to one that gives a link error.
85383         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
85384         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
85385         * modules/mempcpy (configure.ac): Likewise.
85386         * modules/memrchr (configure.ac): Likewise.
85387         * modules/stpcpy (configure.ac): Likewise.
85388         * modules/stpncpy (configure.ac): Likewise.
85389         * modules/strcase (configure.ac): Likewise.
85390         * modules/strcasestr (configure.ac): Likewise.
85391         * modules/strchrnul (configure.ac): Likewise.
85392         * modules/strdup (configure.ac): Likewise.
85393         * modules/strndup (configure.ac): Likewise.
85394         * modules/strnlen (configure.ac): Likewise.
85395         * modules/strpbrk (configure.ac): Likewise.
85396         * modules/strsep (configure.ac): Likewise.
85397         * modules/strstr (configure.ac): Likewise.
85398         * modules/strtok_r (configure.ac): Likewise.
85400 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
85402         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
85404 2007-01-30  Jim Meyering  <jim@meyering.net>
85406         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
85408 2007-01-29  Bruno Haible  <bruno@clisp.org>
85410         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
85411         * lib/execute.c: Likewise.
85412         * lib/pipe.c: Likewise.
85413         * lib/printf-args.h: Likewise.
85414         * lib/printf-args.c: Likewise.
85415         * lib/printf-parse.c: Likewise.
85416         * lib/vasnprintf.c: Likewise.
85418 2007-01-29  Eric Blake  <ebb9@byu.net>
85420         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
85421         declaration.
85423 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
85425         * lib/strptime.h (strptime): Use 'restrict' for args where
85426         POSIX requires this.
85427         * lib/strptime.c (strptime): Likewise.
85428         Change license notice from LGPL to GPL, since gnulib-tool will
85429         change this as needed.
85430         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
85431         defined.
85432         Include "strptime.h" first, to check interface.
85433         Do not #undef _LIBC and _NL_CURRENT.
85434         Do not include <stdlib.h>; no longer needed.
85435         Include "time_r.h" and declare ptime_locale_status
85436         only if _LIBC is not defined.
85437         (__P): Remove unused macro.
85438         (match_string): Bring back glibc version, but use it only if _LIBC
85439         is defined.
85440         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
85441         Remove unnecessary assertion and abort() call.
85442         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
85443         * m4/strptime.m4: Fix serial number comment.
85444         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
85445         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
85446         (Depends-on): Add time_r.
85448 2007-01-29  Bruno Haible  <bruno@clisp.org>
85450         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85451         strptime.
85452         * modules/strptime (Depends-on): Add stdbool.
85453         * lib/strptime.h: Include <time.h> always. Add comments.
85455 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85457         * modules/strptime: New file.
85458         * lib/strptime.h: New file.
85459         * lib/strptime.c: New file.
85460         * m4/strptime.m4: New file.
85462 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85464         * MODULES.html.sh: New module mpsort.
85465         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
85467         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
85468         a circularity problem with HP-UX ia64 reported by Bob Proulx in
85469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
85470         All uses changed.
85471         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
85472         All uses changed.
85473         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
85474         to _Restrict_.
85475         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
85476         the parameter matches the prototype.
85478 2007-01-28  Jim Meyering  <jim@meyering.net>
85480         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
85481         sys/time.h here, reverting that part of the previous patch:
85482         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
85484 2007-01-28  Bruno Haible  <bruno@clisp.org>
85486         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
85487         value of $(SYS_TIME_H).
85488         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
85489         remove it conditionally, too. [added by Jim Meyering]
85490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
85491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
85492         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
85493         GETTIMEOFDAY_REPLACEMENT to 1.
85495 2007-01-28  Bruno Haible  <bruno@clisp.org>
85497         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
85498         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
85499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
85500         Set UNISTD_H instead of UNISTD_H2.
85501         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
85503 2007-01-28  Bruno Haible  <bruno@clisp.org>
85505         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
85506         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
85508 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85510         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
85511         (func_create_testdir): Ensure C locale for `grep' and `tr'
85512         character ranges.
85513         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
85514         ACLOCAL_AMFLAGS parsing state machine.
85516 2007-01-27  Bruno Haible  <bruno@clisp.org>
85518         * modules/unistr/base: Update.
85520 2007-01-27  Bruno Haible  <bruno@clisp.org>
85522         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
85523         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
85524         * modules/unistr/u32-mbtouc-unsafe: Renamed from
85525         modules/unistr/u32-mbtouc.
85526         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
85527         * lib/unistr.h: Update.
85528         * lib/linebreak.c: Update.
85529         * modules/unistr/u32-mbtouc: Renamed from
85530         modules/unistr/u32-mbtouc-safe.
85531         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
85532         * lib/unistr.h: Update.
85533         * lib/unistr/u32-to-u8.c: Update.
85534         * lib/unistr/u32-to-u16.c: Update.
85536 2007-01-27  Bruno Haible  <bruno@clisp.org>
85538         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
85539         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
85540         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
85541         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
85542         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
85543         * modules/unistr/u16-mbtouc-unsafe: Renamed from
85544         modules/unistr/u16-mbtouc.
85545         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
85546         * lib/unistr.h: Update.
85547         * lib/linebreak.c: Update.
85548         * modules/linebreak: Update.
85549         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
85550         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
85551         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
85552         * modules/unistr/u16-mbtouc: Renamed from
85553         modules/unistr/u16-mbtouc-safe.
85554         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
85555         * lib/unistr.h: Update.
85556         * lib/unistr/u16-to-u8.c: Update.
85557         * modules/unistr/u16-to-u8: Update.
85558         * lib/unistr/u16-to-u32.c: Update.
85559         * modules/unistr/u16-to-u32: Update.
85561 2007-01-27  Bruno Haible  <bruno@clisp.org>
85563         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
85564         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
85565         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
85566         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
85567         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
85568         * modules/unistr/u8-mbtouc-unsafe: Renamed from
85569         modules/unistr/u8-mbtouc.
85570         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
85571         * lib/unistr.h: Update.
85572         * lib/striconveh.c: Update.
85573         * modules/striconveh: Update.
85574         * lib/linebreak.c: Update.
85575         * modules/linebreak: Update.
85576         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
85577         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
85578         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
85579         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
85580         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
85581         * lib/unistr.h: Update.
85582         * lib/striconveh.c: Update.
85583         * modules/striconveh: Update.
85584         * lib/unistr/u8-to-u16.c: Update.
85585         * modules/unistr/u8-to-u16: Update.
85586         * lib/unistr/u8-to-u32.c: Update.
85587         * modules/unistr/u8-to-u32: Update.
85589 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85591         Sync from Libtool.
85592         * lib/argz.c: Do not include strings.h nor memory.h, include
85593         string.h unconditionally.  Patch by Simon Josefsson.
85595 2007-01-27  Bruno Haible  <bruno@clisp.org>
85597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
85598         from gl_HEADER_STRING_H_BODY.
85599         (gl_HEADER_STRING_H_BODY): Require it.
85600         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
85601         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85602         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85603         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85605         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
85606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85607         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85608         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
85609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85611         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
85612         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85613         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
85614         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
85616 2007-01-27  Bruno Haible  <bruno@clisp.org>
85618         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
85619         check_PROGRAMS into noinst_PROGRAMS.
85620         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
85621         check_PROGRAMS in this case.
85622         (func_import): Set for_test to false.
85623         (func_create_testdir): Set for_test to true.
85625 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
85626             Bruno Haible  <bruno@clisp.org>
85628         * modules/strcasestr (Files): Remove lib/strcasestr.h.
85629         (Depends-on): Add string.
85630         (Includes): Use <string.h> instead of strcasestr.h.
85631         * modules/string (Makefile.am): Also substitute the value of
85632         REPLACE_STRCASESTR.
85633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
85634         assume strcasestr is declared in <string.h> not <strings.h>. Also
85635         set REPLACE_STRCASESTR.
85636         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
85637         REPLACE_STRCASESTR.
85638         * lib/strcasestr.h: Remove file.
85639         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
85640         * lib/string_.h (strcasestr): New declaration.
85642 2007-01-27  Bruno Haible  <bruno@clisp.org>
85644         * lib/string_.h: Use 'extern'.
85646 2007-01-27  Jim Meyering  <jim@meyering.net>
85648         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
85649         of set-but-not-used local, "q".
85651         * lib/mempcpy.c: Include <config.h> before <string.h>.
85652         This fixes a compilation error on HP-UX, due to the system's
85653         "restrict"-using mempcpy prototype.
85655 2007-01-26  Bruno Haible  <bruno@clisp.org>
85657         Small optimization.
85658         * lib/javacomp.c: Include c-strstr.h.
85659          (is_envjavac_gcj): Use c_strstr instead of strstr.
85660         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
85662 2007-01-26  Bruno Haible  <bruno@clisp.org>
85664         * MODULES.html.sh (Unicode string functions): Add the new modules.
85666         * modules/uniconv/u32-strconv-to-locale: New file.
85667         * lib/uniconv/u32-strconv-to-locale.c: New file.
85669         * modules/uniconv/u16-strconv-to-locale: New file.
85670         * lib/uniconv/u16-strconv-to-locale.c: New file.
85672         * modules/uniconv/u8-strconv-to-locale: New file.
85673         * lib/uniconv/u8-strconv-to-locale.c: New file.
85675         * modules/uniconv/u32-strconv-from-locale: New file.
85676         * lib/uniconv/u32-strconv-from-locale.c: New file.
85678         * modules/uniconv/u16-strconv-from-locale: New file.
85679         * lib/uniconv/u16-strconv-from-locale.c: New file.
85681         * modules/uniconv/u8-strconv-from-locale: New file.
85682         * lib/uniconv/u8-strconv-from-locale.c: New file.
85684         * modules/uniconv/u32-strconv-to-enc: New file.
85685         * lib/uniconv/u32-strconv-to-enc.c: New file.
85686         * modules/uniconv/u32-strconv-to-enc-tests: New file.
85687         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
85689         * modules/uniconv/u16-strconv-to-enc: New file.
85690         * lib/uniconv/u16-strconv-to-enc.c: New file.
85691         * lib/uniconv/u-strconv-to-enc.h: New file.
85692         * modules/uniconv/u16-strconv-to-enc-tests: New file.
85693         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
85695         * modules/uniconv/u8-strconv-to-enc: New file.
85696         * lib/uniconv/u8-strconv-to-enc.c: New file.
85697         * modules/uniconv/u8-strconv-to-enc-tests: New file.
85698         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
85700         * modules/uniconv/u32-strconv-from-enc: New file.
85701         * lib/uniconv/u32-strconv-from-enc.c: New file.
85702         * modules/uniconv/u32-strconv-from-enc-tests: New file.
85703         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
85705         * modules/uniconv/u16-strconv-from-enc: New file.
85706         * lib/uniconv/u16-strconv-from-enc.c: New file.
85707         * modules/uniconv/u16-strconv-from-enc-tests: New file.
85708         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
85710         * modules/uniconv/u8-strconv-from-enc: New file.
85711         * lib/uniconv/u8-strconv-from-enc.c: New file.
85712         * lib/uniconv/u-strconv-from-enc.h: New file.
85713         * modules/uniconv/u8-strconv-from-enc-tests: New file.
85714         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
85716         * modules/uniconv/u32-conv-from-enc: New file.
85717         * lib/uniconv/u32-conv-from-enc.c: New file.
85718         * modules/uniconv/u32-conv-from-enc-tests: New file.
85719         * tests/uniconv/test-u32-conv-from-enc.c: New file.
85721         * modules/uniconv/u16-conv-from-enc: New file.
85722         * lib/uniconv/u16-conv-from-enc.c: New file.
85723         * lib/uniconv/u-conv-from-enc.h: New file.
85724         * modules/uniconv/u16-conv-from-enc-tests: New file.
85725         * tests/uniconv/test-u16-conv-from-enc.c: New file.
85727         * modules/uniconv/u8-conv-from-enc: New file.
85728         * lib/uniconv/u8-conv-from-enc.c: New file.
85729         * modules/uniconv/u8-conv-from-enc-tests: New file.
85730         * tests/uniconv/test-u8-conv-from-enc.c: New file.
85732         * modules/uniconv/base: New file.
85733         * lib/uniconv.h: New file.
85735 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
85737         * doc/gnulib-tool.texi (Initial import): Update to match current
85738         behavior with strdup module.
85739         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
85740         * lib/memmem.h: Remove; all uses removed.  This is now done
85741         by <string.h>.
85742         * lib/mempcpy.h: Likewise.
85743         * lib/memrchr.h: Likewise.
85744         * lib/stpcpy.h: Likewise.
85745         * lib/stpncpy.h: Likewise.
85746         * lib/strcase.h: Likewise.
85747         * lib/strchrnul.h: Likewise.
85748         * lib/strdup.h: Likewise.
85749         * lib/strndup.h: Likewise.
85750         * lib/strnlen.h: Likewise.
85751         * lib/strpbrk.h: Likewise.
85752         * lib/strsep.h: Likewise.
85753         * lib/strstr.h: Likewise.
85754         * lib/strtok_r.h: Likewise.
85755         * lib/string_.h: New file.
85756         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
85757         Rely on <string.h> instead.
85758         * lib/canon-host.c: Likewise.
85759         * lib/chdir-long.c: Likewise.
85760         * lib/concatpath.c: Likewise.
85761         * lib/exclude.c: Likewise.
85762         * lib/fchdir.c: Likewise.
85763         * lib/getaddrinfo.c: Likewise.
85764         * lib/getcwd.c: Likewise.
85765         * lib/getsubopt.c: Likewise.
85766         * lib/glob.c: Likewise.
85767         * lib/hard-locale.c: Likewise.
85768         * lib/iconvme.c: Likewise.
85769         * lib/javacomp.c: Likewise.
85770         * lib/mempcpy.c: Likewise.
85771         * lib/memrchr.c: Likewise.
85772         * lib/regex_internal.h: Likewise.
85773         * lib/stpncpy.c: Likewise.
85774         * lib/strcasecmp.c: Likewise.
85775         * lib/strchrnul.c: Likewise.
85776         * lib/strdup.c: Likewise.
85777         * lib/striconv.c: Likewise.
85778         * lib/striconveh.c: Likewise.
85779         * lib/striconveha.c: Likewise.
85780         * lib/strncasecmp.c: Likewise.
85781         * lib/strndup.c: Likewise.
85782         * lib/strnlen.c: Likewise.
85783         * lib/strsep.c: Likewise.
85784         * lib/strstr.c: Likewise.
85785         * lib/strtok_r.c: Likewise.
85786         * lib/userspec.c: Likewise.
85787         * lib/w32spawn.h: Likewise.
85788         * lib/xstrndup.c: Likewise.
85789         * lib/mountlist.c (strstr): Remove decl.
85790         * m4/string_h.m4: New file.
85791         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
85792         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
85793         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
85794         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
85795         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
85796         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
85797         Set REPLACE_STRCASECMP if necessary.
85798         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
85799         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
85800         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
85801         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
85802         HAVE_DECL_STRDUP if necessary.
85803         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
85804         since gl_FUNC_STRNDUP does that now.
85805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
85806         Check for decl here...
85807         (gl_PREREQ_STRNLEN): ... not here.
85808         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
85809         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
85810         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
85811         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
85812         necessary.
85813         * modules/string: New file.
85814         * modules/memmem (Files): Remove special-purpose include file.
85815         (Depends-on): Add string.
85816         (Include): Include <string.h>, not the removed file.
85817         * modules/mempcpy: Likewise.
85818         * modules/memrchr: Likewise.
85819         * modules/stpcpy: Likewise.
85820         * modules/stpncpy: Likewise.
85821         * modules/strcase: Likewise.
85822         * modules/strchrnul: Likewise.
85823         * modules/strdup: Likewise.
85824         * modules/strndup: Likewise.
85825         * modules/strnlen: Likewise.
85826         * modules/strpbrk: Likewise.
85827         * modules/strsep: Likewise.
85828         * modules/strstr: Likewise.
85829         * modules/strtok_r: Likewise.
85830         * tests/test-dirname.c: Don't include "strdup.h", since
85831         <string.h> now suffices.
85832         * tests/test-memmem.c: Don't include "memmem.h", since
85833         <string.h> now suffices.
85835 2007-01-25  Bruno Haible  <bruno@clisp.org>
85837         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
85838         *resultp is 0.
85840         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
85841         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
85842         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
85843         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
85845         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
85846         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
85847         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
85848         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
85849         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
85850         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
85852 2007-01-24  Bruno Haible  <bruno@clisp.org>
85854         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
85855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
85856         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
85857         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
85858         gl_FUNC_FTS_CORE.
85859         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
85860         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
85861         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85862         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
85863         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
85864         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
85865         gl_FUNC_FCHOWNAT.
85866         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
85867         gl_FUNC_STRFTIME.
85868         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
85869         Reported by Ralf Wildenhues.
85871 2007-01-24  Bruno Haible  <bruno@clisp.org>
85873         Drop AC_REQUIRE calls that are redundant with the module dependencies.
85874         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
85875         gl_GETADDRINFO.
85876         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
85877         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
85878         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
85880 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
85882         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
85883         Don't use 'exit'; just return from 'main'.
85884         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
85886         * lib/fnmatch_.h: Readjust white space and comments to match
85887         glibc, to avoid spurious diffs.
85889 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85891         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
85892         2004-12-01 change by Jakub Jelinek, since this code won't compile
85893         if !LIBC.  Problem reported by Bob Proulx.
85895 2007-01-23  Bruno Haible  <bruno@clisp.org>
85897         * lib/striconveh.c: Include c-strcaseeq.h.
85898         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
85899         * modules/striconveh (Depends-on): Add c-strcaseeq.
85901 2007-01-23  Bruno Haible  <bruno@clisp.org>
85903         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
85905         * modules/c-strcaseeq: New file.
85906         * lib/c-strcaseeq.h: New file.
85908         * modules/streq: New file.
85909         * lib/streq.h: New file.
85911 2007-01-23  Bruno Haible  <bruno@clisp.org>
85913         * modules/striconveha-tests: New file.
85914         * tests/test-striconveha.c: New file.
85916         * lib/striconveha.h: Include <stdbool.h>.
85917         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
85918         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
85919         (mem_iconveha_notranslit): Renamed from mem_iconveha.
85920         (mem_iconveha): New function.
85921         (str_iconveha_notranslit): Renamed from str_iconveha.
85922         (str_iconveha): New function.
85923         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
85924         c-strcase.
85926 2007-01-23  Bruno Haible  <bruno@clisp.org>
85928         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
85929         encodings without forgiving before trying any encoding with handler.
85930         (str_iconveha): Try all encodings without forgiving before trying any
85931         encoding with handler.
85933 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85935         Import the following changes from libc.
85937         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
85939         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
85941         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85943         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
85944         normal_bracket label.
85946         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
85948         [BZ #361]
85949         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
85950         to normal_bracket after fetching the next character.
85952 2007-01-22  Bruno Haible  <bruno@clisp.org>
85954         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
85955         argument.
85956         * lib/striconveh.c (iconv_carefully_1): New function.
85957         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
85958         argument.
85959         (str_cd_iconveh): Update.
85960         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
85961         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
85962         * tests/test-striconveh.c (MAGIC): New macro.
85963         (new_offsets): New function.
85964         (main): Test call with and without offsets.
85966 2007-01-22  Bruno Haible  <bruno@clisp.org>
85968         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
85969         * modules/sys_select (Makefile.am): Likewise.
85970         * modules/sys_socket (Makefile.am): Likewise.
85971         * modules/sys_time (Makefile.am): Likewise.
85973 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
85975         * modules/gettimeofday (License): Change from GPL to LGPL, since
85976         gettimeofday is a library function.
85978 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85980         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
85982 2007-01-21  Bruno Haible  <bruno@clisp.org>
85984         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
85986 2007-01-21  Bruno Haible  <bruno@clisp.org>
85988         * modules/striconveha: New file.
85989         * lib/striconveha.h: New file.
85990         * lib/striconveha.c: New file.
85991         * MODULES.html.sh (Internationalization functions): Add striconveha.
85992         * lib/striconv.c (str_iconv): Optimize the case of an empty input
85993         string.
85994         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
85996 2007-01-21  Bruno Haible  <bruno@clisp.org>
85998         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
85999         * lib/striconveh.c (str_iconveh): Likewise.
86001 2007-01-21  Bruno Haible  <bruno@clisp.org>
86003         * lib/striconveh.h (mem_iconveh): New declaration.
86004         * lib/striconveh.c (mem_iconveh): New function.
86005         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
86007 2007-01-21  Bruno Haible  <bruno@clisp.org>
86009         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
86011         * lib/striconveh.h (mem_cd_iconveh): Change specification.
86012         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
86013         original result buffer.
86014         (str_cd_iconveh): Update.
86015         * tests/test-striconveh.c (main): Update.
86017         * lib/striconv.h (mem_cd_iconv): Change specification.
86018         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
86019         result buffer.
86020         (str_cd_iconv): Update.
86021         * tests/test-striconv.c (main): Update.
86023 2007-01-21  Bruno Haible  <bruno@clisp.org>
86025         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
86027 2007-01-20  Jim Meyering  <jim@meyering.net>
86029         * lib/userspec.c (parse_with_separator): If a user or group string
86030         starts with "+", skip the corresponding name-to-ID look-up, since
86031         such a look-up must fail: user and group names may not include "+".
86033 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86035         * lib/poll.c: Include sys/time.h and time.h unconditionally,
86036         since we now assume the sys_time module.
86037         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
86038         check for sys/time.h; no longer needed.
86039         * modules/poll (Depends-on): Depend on sys_time.
86041 2007-01-18  Bruno Haible  <bruno@clisp.org>
86043         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
86044         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
86046         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
86047         gettimeofday.
86049         * tests/test-gettimeofday.c: Include <time.h>.
86050         (dummy): Remove variable.
86052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
86053         gl_HEADER_SYS_TIME_H.
86054         (gl_HEADER_SYS_TIME_H): New macro.
86056         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
86057         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86058         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
86059         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
86060         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86061         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
86062         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
86063         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86064         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
86065         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
86066         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86068         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
86069         last change; it caused a compilation error when cross-compiling to
86070         Cygwin.
86072 2007-01-18  Jim Meyering  <jim@meyering.net>
86074         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
86075         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
86076         than the race-prone "test -d sys || mkdir sys".
86077         (configure.ac): Use AC_PROG_MKDIR_P.
86078         * modules/sys_select: Likewise.
86079         * modules/sys_socket: Likewise.
86080         * modules/sys_time: Likewise.
86082 2007-01-18  Eric Blake  <ebb9@byu.net>
86084         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
86085         replace gettimeofday.
86086         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
86087         name, to avoid infinite recursion.
86089 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
86091         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
86092         module sys_time.
86093         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
86094         assume timespec.h defines struct timeval.
86095         * lib/settime.c: Likewise.
86096         * lib/utimens.c: Likewise.
86097         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
86098         since we now assume the gettimeofday module.
86099         * lib/tempname.c (__gen_tempname): Likewise.
86100         * lib/gettimeofday.h: Remove.
86101         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
86102         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
86103         Include <time.h>, for 'time()'.
86104         (localtime_buffer_addr): Also use this workaround if
86105         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
86106         to simplify the uses.  All uses changed.
86107         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
86108         that #undef is inside {}, and 'const' follows type name consistently.
86109         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
86110         (gettimeofday): Do not use the maximum possible value for
86111         tv->tv_usec, since that might break usages other than ls.c.
86112         Instead, we'll leave ls.c alone.  This undoes today's patch
86113         by Bruno.  Add a compile-time warning for 1s-clock resolution;
86114         we've never observed the problem but might as well keep the
86115         canary.
86116         * lib/nanosleep.c: Include timespec.h first, for interface check.
86117         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
86118         now assume the sys_time module.
86119         * lib/tempname.c: Likewise.
86120         * lib/timespec.h: Likewise.
86121         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
86122         needed.
86123         * lib/strftime.c: Likewise.
86124         * lib/timespec.h: Likewise.
86125         * lib/posixtm.c: Include posixtm.h first, for interface check.
86126         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
86127         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
86128         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
86129         * lib/sys_time_.h: New file.
86130         * lib/timespec.h (struct timespec): Use long int, not long.
86131         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
86132         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
86133         Remove obsolescent call to AC_HEADER_TIME.
86134         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
86135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
86136         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
86137         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
86138         Likewise.
86139         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
86140         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
86141         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
86142         into the sys_time module.  Check for gettimeofday just once.
86143         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
86144         for gettimeofday signature to just check the signature.  Merely
86145         compile it, since linking doesn't test signature.  Improve test for
86146         whether gettimeofday.o is actually needed.
86147         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
86148         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
86149         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
86150         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86151         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
86152         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
86153         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
86154         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
86155         than worrying about sys/time.h.
86156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
86157         Don't bother worrying about TIME_WITH_SYS_TIME.
86158         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
86159         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
86160         * m4/sys_time_h.m4: New file.
86161         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
86162         Don't include sys/time.h.  Return from main rather than exiting.
86163         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
86164         all uses changed.
86165         * modules/gethrxtime (Depends-on): Add sys_time.
86166         * modules/gettime (Depends-on): Likewise.
86167         * modules/gettimeofday (Depends-on): Likewise.
86168         * modules/nanosleep (Depends-on): Likewise.
86169         * modules/settime (Depends-on): Likewise.
86170         * modules/tempname (Depends-on): Likewise.
86171         * modules/utimens (Depends-on): Likewise.
86172         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
86173         (Include): Change back to <sys/time.h>.
86174         (Maintainer): Add self.
86175         * modules/sys_time: New file.
86176         * modules/tempname (Depends-on): Add gettimeofday.
86177         * tests/test-gettimeofday.c: Include <sys/time.h>
86178         rather than gettimeofday.h.
86180 2007-01-17  Bruno Haible  <bruno@clisp.org>
86182         * gnulib-tool (func_get_license): Revert last patch. Instead, let
86183         the license default to GPL.
86184         (func_create_testdir): Don't complain if a module is LGPL and its
86185         tests module depends on GPLed modules.
86187 2007-01-17  Bruno Haible  <bruno@clisp.org>
86189         * lib/gettimeofday.c (gettimeofday): Add code for the case
86190         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
86191         maximum possible value for tv->tv_usec, rather than the minimum one.
86193 2005-10-08  Martin Lambers  <marlam@marlam.de>
86194 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
86195 2007-01-16  Bruno Haible  <bruno@clisp.org>
86197         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
86198         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
86199         gl_FUNC_GETTIMEOFDAY.
86200         (Include): Add gettimeofday.h.
86201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
86202         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
86203         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
86204         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
86205         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
86206         * lib/gettimeofday.h: New file.
86207         * lib/gettimeofday.c: Include <sys/timeb.h>.
86208         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
86209         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86210         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
86211         fall back on time().
86213         * tests/test-gettimeofday.c: New file.
86214         * modules/gettimeofday-tests: New file.
86216 2007-01-16  Eric Blake  <ebb9@byu.net>
86218         * modules/fnmatch (Depends-on): Depend on wchar.
86219         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
86220         * m4/fnmatch.m4: Likewise.
86221         * modules/mbchar (Makefile.am): Assume <wchar.h>.
86222         * m4/mbchar.m4: Likewise.
86223         * modules/mbswidth (Depends-on): Depend on wchar.
86224         * lib/mbswidth.c: Assume <wchar.h>.
86225         * m4/mbswidth.m4: Likewise.
86226         * modules/quotearg (Depends-on): Depend on wchar.
86227         * lib/quotearg.c: Assume <wchar.h>.
86228         * m4/quotearg.m4: Likewise.
86229         * modules/regex (Depends-on): Depend on wchar.
86230         * lib/regex_internal.h: Assume <wchar.h>.
86231         * m4/regex.m4: Likewise.
86232         * modules/stdint (Depends-on): Depend on wchar.
86233         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
86234         * m4/stdint.m4: Likewise.
86235         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
86236         * modules/strftime (Depends-on): Depend on wchar.
86237         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
86238         * modules/strtol (Depends-on): Depend on wchar.
86239         * lib/strtol.c: Assume <wchar.h>.
86240         * modules/wcwidth (Depends-on): Depend on wchar.
86241         * lib/wcwidth.h: Assume <wchar.h>.
86242         * m4/wcwidth.m4: Likewise.
86244 2007-01-16  Bruno Haible  <bruno@clisp.org>
86246         * modules/csharpexec-script: New, created from...
86247         * modules/csharpexec: ... this.
86249 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
86251         * modules/javaexec-script: New, created from...
86252         * modules/javaexec: ... this.
86254 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86256         * modules/poll (Dependencies): Add sys_select.
86258 2007-01-15  Jim Meyering  <jim@meyering.net>
86260         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
86261         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
86262         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
86263         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
86265 2007-01-15  Bruno Haible  <bruno@clisp.org>
86267         * modules/striconveh: New file.
86268         * lib/striconveh.h: New file.
86269         * lib/striconveh.c: New file.
86270         * MODULES.html.sh (Internationalization functions): Add striconveh.
86272         * modules/striconveh-tests: New file.
86273         * tests/test-striconveh.c: New file.
86275 2007-01-15  Bruno Haible  <bruno@clisp.org>
86277         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
86278         not from GNU libiconv or GNU libc.
86280 2007-01-15  Bruno Haible  <bruno@clisp.org>
86282         * doc/gnulib-intro.texi (Copyright): Explain the different license
86283         terms for module descriptions, autoconf macros, tests, documentation.
86285 2007-01-14  Bruno Haible  <bruno@clisp.org>
86287         * modules/striconv-tests: New file.
86288         * tests/test-striconv.c: New file.
86290 2007-01-14  Bruno Haible  <bruno@clisp.org>
86292         * modules/iconv-tests: New file.
86293         * tests/test-iconv.c: New file.
86295 2007-01-14  Bruno Haible  <bruno@clisp.org>
86297         * gnulib-tool (func_get_license): For test modules, use the license of
86298         the main module.
86300 2007-01-14  Bruno Haible  <bruno@clisp.org>
86302         * modules/iconv (Include): Clarify that <iconv.h> can only be included
86303         if iconv is found to exist.
86305 2007-01-14  Bruno Haible  <bruno@clisp.org>
86307         * modules/c-ctype-tests: New file.
86308         * tests/test-c-ctype.c: New file.
86310 2007-01-14  Bruno Haible  <bruno@clisp.org>
86312         * modules/binary-io-tests: New file.
86313         * tests/test-binary-io.sh: New file.
86314         * tests/test-binary-io.c: New file.
86316 2007-01-14  Bruno Haible  <bruno@clisp.org>
86318         * modules/array-oset-tests: New file.
86319         * tests/test-array_oset.c: New file.
86321 2007-01-14  Bruno Haible  <bruno@clisp.org>
86323         * modules/array-list-tests: New file.
86324         * tests/test-array_list.c: New file.
86326 2007-01-14  Bruno Haible  <bruno@clisp.org>
86328         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
86329         and make.
86330         Reported by Simon Josefsson in
86331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
86333 2007-01-14  Bruno Haible  <bruno@clisp.org>
86335         * modules/allocsa-tests: New file.
86336         * tests/test-allocsa.c: New file.
86338 2007-01-14  Bruno Haible  <bruno@clisp.org>
86340         * modules/fchdir (Depends-on): Add absolute-header.
86341         * modules/unistd (Depends-on): Likewise.
86343 2006-12-30  Bruno Haible  <bruno@clisp.org>
86345         * modules/fchdir: New file.
86346         * modules/unistd (Files): Add lib/unistd_.h.
86347         (Makefile.am): Generate unistd.h from unistd_.h.
86348         * lib/fchdir.c: New file.
86349         * lib/dirent_.h: New file.
86350         * lib/unistd_.h: New file.
86351         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
86352         * m4/fchdir.m4: New file.
86353         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
86354         (gl_HEADER_UNISTD): Invoke it.
86355         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
86356         function.
86357         * lib/backupfile.c (opendir, closedir): Undefine.
86358         * lib/chown.c (open, close): Undefine.
86359         * lib/clean-temp.c (open, close): Undefine.
86360         * lib/copy-file.c (open, close): Undefine.
86361         * lib/execute.c (open, close): Undefine.
86362         * lib/fsusage.c (open, close): Undefine.
86363         * lib/gc-gnulib.c (open, close): Undefine.
86364         * lib/getcwd.c (opendir, closedir): Undefine.
86365         * lib/glob.c (opendir, closedir): Undefine.
86366         * lib/javacomp.c (open, close): Undefine.
86367         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
86368         * lib/openat-proc.c (open, close): Undefine.
86369         * lib/pagealign_alloc.c (open, close): Undefine.
86370         * lib/pipe.c (open, close): Undefine.
86371         * lib/progreloc.c (open, close): Undefine.
86372         * lib/savedir.c (opendir, closedir): Undefine.
86373         * lib/utime.c (open, close): Undefine.
86374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
86376 2007-01-10  Bruno Haible  <bruno@clisp.org>
86378         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
86380 2007-01-12  Eric Blake  <ebb9@byu.net>
86382         Provide a robust <wchar.h>.  Further simplifications are now
86383         possible in other modules, but not included here.
86384         * modules/wchar: New module.
86385         * m4/wchar.m4: New file.
86386         * lib/wchar_.h: Likewise.
86387         * modules/mbchar (Depends-on): Depend on wchar, as the first use
86388         of the new module.
86389         * MODULES.html.sh (Extended multibyte and wide character utilities):
86390         New section.
86392 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
86394         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
86395         to a reasonable default for memory allocation.
86396         (xreadlink): Don't allocate a huge buffer, to work around a buggy
86397         file system that reports garbage st_size values for symlinks.
86398         Problem reported by Liyang Hu.
86400 2007-01-11  Simon Josefsson  <simon@josefsson.org>
86402         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
86403         Emacs .#* auto-save files).
86405 2007-01-11  Bruno Haible  <bruno@clisp.org>
86407         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
86408         directory.
86410 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
86412         Use @...@ consistently in lib/wctype_.h.
86413         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
86414         on it being set to 1 or 0.
86415         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
86416         go back to AC_SUBSTing it.
86417         * modules/wctype (Makefile.am): Undo previous change.
86419 2007-01-10  Eric Blake  <ebb9@byu.net>
86421         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
86422         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
86423         * modules/wctype (Makefile.am): Likewise.
86424         Reported by Chris McGuire.
86426 2007-01-10  Jim Meyering  <jim@meyering.net>
86428         fts.c: a small readability/maintainability improvement
86429         * lib/fts.c (fts_read): Make this code slightly more readable and
86430         maintainable by hoisting the "sp->fts_cur = p" assignments to
86431         immediately follow the statements that set P.  Derived from
86432         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
86434 2007-01-10  Eric Blake  <ebb9@byu.net>
86436         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
86437         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
86438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86439         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86440         Reported by Chris McGuire.
86442 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86444         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
86445         in sed script.
86447 2007-01-09  Bruno Haible  <bruno@clisp.org>
86449         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
86450         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
86451         variables.
86452         (func_module): Use them.
86454 2007-01-09  Bruno Haible  <bruno@clisp.org>
86456         * modules/unistr/base: New file.
86457         * lib/unistr.h: New file.
86459         * modules/unistr/u8-to-u16: New file.
86460         * lib/unistr/u8-to-u16.c: New file.
86462         * modules/unistr/u8-to-u32: New file.
86463         * lib/unistr/u8-to-u32.c: New file.
86465         * modules/unistr/u16-to-u8: New file.
86466         * lib/unistr/u16-to-u8.c: New file.
86468         * modules/unistr/u16-to-u32: New file.
86469         * lib/unistr/u16-to-u32.c: New file.
86471         * modules/unistr/u32-to-u8: New file.
86472         * lib/unistr/u32-to-u8.c: New file.
86474         * modules/unistr/u32-to-u16: New file.
86475         * lib/unistr/u32-to-u16.c: New file.
86477         * modules/unistr/u8-check: New file.
86478         * modules/unistr/u16-check: New file.
86479         * modules/unistr/u32-check: New file.
86480         * lib/unistr/u8-check.c: New file.
86481         * lib/unistr/u16-check.c: New file.
86482         * lib/unistr/u32-check.c: New file.
86484         * modules/unistr/u8-chr: New file.
86485         * modules/unistr/u16-chr: New file.
86486         * modules/unistr/u32-chr: New file.
86487         * lib/unistr/u8-chr.c: New file.
86488         * lib/unistr/u16-chr.c: New file.
86489         * lib/unistr/u32-chr.c: New file.
86491         * modules/unistr/u8-cmp: New file.
86492         * modules/unistr/u16-cmp: New file.
86493         * modules/unistr/u32-cmp: New file.
86494         * lib/unistr/u8-cmp.c: New file.
86495         * lib/unistr/u16-cmp.c: New file.
86496         * lib/unistr/u32-cmp.c: New file.
86498         * modules/unistr/u8-cpy: New file.
86499         * modules/unistr/u16-cpy: New file.
86500         * modules/unistr/u32-cpy: New file.
86501         * lib/unistr/u8-cpy.c: New file.
86502         * lib/unistr/u16-cpy.c: New file.
86503         * lib/unistr/u32-cpy.c: New file.
86504         * lib/unistr/u-cpy.h: New file.
86506         * modules/unistr/u8-cpy-alloc: New file.
86507         * modules/unistr/u16-cpy-alloc: New file.
86508         * modules/unistr/u32-cpy-alloc: New file.
86509         * lib/unistr/u8-cpy-alloc.c: New file.
86510         * lib/unistr/u16-cpy-alloc.c: New file.
86511         * lib/unistr/u32-cpy-alloc.c: New file.
86512         * lib/unistr/u-cpy-alloc.h: New file.
86514         * modules/unistr/u8-endswith: New file.
86515         * modules/unistr/u16-endswith: New file.
86516         * modules/unistr/u32-endswith: New file.
86517         * lib/unistr/u8-endswith.c: New file.
86518         * lib/unistr/u16-endswith.c: New file.
86519         * lib/unistr/u32-endswith.c: New file.
86520         * lib/unistr/u-endswith.h: New file.
86522         * modules/unistr/u8-mblen: New file.
86523         * modules/unistr/u16-mblen: New file.
86524         * modules/unistr/u32-mblen: New file.
86525         * lib/unistr/u8-mblen.c: New file.
86526         * lib/unistr/u16-mblen.c: New file.
86527         * lib/unistr/u32-mblen.c: New file.
86529         * modules/unistr/u8-mbtouc: New file.
86530         * modules/unistr/u16-mbtouc: New file.
86531         * modules/unistr/u32-mbtouc: New file.
86532         * lib/unistr/u8-mbtouc.c: New file.
86533         * lib/unistr/u16-mbtouc.c: New file.
86534         * lib/unistr/u32-mbtouc.c: New file.
86536         * modules/unistr/u8-mbtouc-safe: New file.
86537         * modules/unistr/u16-mbtouc-safe: New file.
86538         * modules/unistr/u32-mbtouc-safe: New file.
86539         * lib/unistr/u8-mbtouc-safe.c: New file.
86540         * lib/unistr/u16-mbtouc-safe.c: New file.
86541         * lib/unistr/u32-mbtouc-safe.c: New file.
86543         * modules/unistr/u8-move: New file.
86544         * modules/unistr/u16-move: New file.
86545         * modules/unistr/u32-move: New file.
86546         * lib/unistr/u8-move.c: New file.
86547         * lib/unistr/u16-move.c: New file.
86548         * lib/unistr/u32-move.c: New file.
86549         * lib/unistr/u-move.h: New file.
86551         * modules/unistr/u8-next: New file.
86552         * modules/unistr/u16-next: New file.
86553         * modules/unistr/u32-next: New file.
86554         * lib/unistr/u8-next.c: New file.
86555         * lib/unistr/u16-next.c: New file.
86556         * lib/unistr/u32-next.c: New file.
86558         * modules/unistr/u8-prev: New file.
86559         * modules/unistr/u16-prev: New file.
86560         * modules/unistr/u32-prev: New file.
86561         * lib/unistr/u8-prev.c: New file.
86562         * lib/unistr/u16-prev.c: New file.
86563         * lib/unistr/u32-prev.c: New file.
86565         * modules/unistr/u8-set: New file.
86566         * modules/unistr/u16-set: New file.
86567         * modules/unistr/u32-set: New file.
86568         * lib/unistr/u8-set.c: New file.
86569         * lib/unistr/u16-set.c: New file.
86570         * lib/unistr/u32-set.c: New file.
86571         * lib/unistr/u-set.h: New file.
86573         * modules/unistr/u8-startswith: New file.
86574         * modules/unistr/u16-startswith: New file.
86575         * modules/unistr/u32-startswith: New file.
86576         * lib/unistr/u8-startswith.c: New file.
86577         * lib/unistr/u16-startswith.c: New file.
86578         * lib/unistr/u32-startswith.c: New file.
86579         * lib/unistr/u-startswith.h: New file.
86581         * modules/unistr/u8-stpcpy: New file.
86582         * modules/unistr/u16-stpcpy: New file.
86583         * modules/unistr/u32-stpcpy: New file.
86584         * lib/unistr/u8-stpcpy.c: New file.
86585         * lib/unistr/u16-stpcpy.c: New file.
86586         * lib/unistr/u32-stpcpy.c: New file.
86587         * lib/unistr/u-stpcpy.h: New file.
86589         * modules/unistr/u8-stpncpy: New file.
86590         * modules/unistr/u16-stpncpy: New file.
86591         * modules/unistr/u32-stpncpy: New file.
86592         * lib/unistr/u8-stpncpy.c: New file.
86593         * lib/unistr/u16-stpncpy.c: New file.
86594         * lib/unistr/u32-stpncpy.c: New file.
86595         * lib/unistr/u-stpncpy.h: New file.
86597         * modules/unistr/u8-strcat: New file.
86598         * modules/unistr/u16-strcat: New file.
86599         * modules/unistr/u32-strcat: New file.
86600         * lib/unistr/u8-strcat.c: New file.
86601         * lib/unistr/u16-strcat.c: New file.
86602         * lib/unistr/u32-strcat.c: New file.
86603         * lib/unistr/u-strcat.h: New file.
86605         * modules/unistr/u8-strchr: New file.
86606         * modules/unistr/u16-strchr: New file.
86607         * modules/unistr/u32-strchr: New file.
86608         * lib/unistr/u8-strchr.c: New file.
86609         * lib/unistr/u16-strchr.c: New file.
86610         * lib/unistr/u32-strchr.c: New file.
86612         * modules/unistr/u8-strcmp: New file.
86613         * modules/unistr/u16-strcmp: New file.
86614         * modules/unistr/u32-strcmp: New file.
86615         * lib/unistr/u8-strcmp.c: New file.
86616         * lib/unistr/u16-strcmp.c: New file.
86617         * lib/unistr/u32-strcmp.c: New file.
86619         * modules/unistr/u8-strcpy: New file.
86620         * modules/unistr/u16-strcpy: New file.
86621         * modules/unistr/u32-strcpy: New file.
86622         * lib/unistr/u8-strcpy.c: New file.
86623         * lib/unistr/u16-strcpy.c: New file.
86624         * lib/unistr/u32-strcpy.c: New file.
86625         * lib/unistr/u-strcpy.h: New file.
86627         * modules/unistr/u8-strcspn: New file.
86628         * modules/unistr/u16-strcspn: New file.
86629         * modules/unistr/u32-strcspn: New file.
86630         * lib/unistr/u8-strcspn.c: New file.
86631         * lib/unistr/u16-strcspn.c: New file.
86632         * lib/unistr/u32-strcspn.c: New file.
86633         * lib/unistr/u-strcspn.h: New file.
86635         * modules/unistr/u8-strdup: New file.
86636         * modules/unistr/u16-strdup: New file.
86637         * modules/unistr/u32-strdup: New file.
86638         * lib/unistr/u8-strdup.c: New file.
86639         * lib/unistr/u16-strdup.c: New file.
86640         * lib/unistr/u32-strdup.c: New file.
86641         * lib/unistr/u-strdup.h: New file.
86643         * modules/unistr/u8-strlen: New file.
86644         * modules/unistr/u16-strlen: New file.
86645         * modules/unistr/u32-strlen: New file.
86646         * lib/unistr/u8-strlen.c: New file.
86647         * lib/unistr/u16-strlen.c: New file.
86648         * lib/unistr/u32-strlen.c: New file.
86649         * lib/unistr/u-strlen.h: New file.
86651         * modules/unistr/u8-strmblen: New file.
86652         * modules/unistr/u16-strmblen: New file.
86653         * modules/unistr/u32-strmblen: New file.
86654         * lib/unistr/u8-strmblen.c: New file.
86655         * lib/unistr/u16-strmblen.c: New file.
86656         * lib/unistr/u32-strmblen.c: New file.
86658         * modules/unistr/u8-strmbtouc: New file.
86659         * modules/unistr/u16-strmbtouc: New file.
86660         * modules/unistr/u32-strmbtouc: New file.
86661         * lib/unistr/u8-strmbtouc.c: New file.
86662         * lib/unistr/u16-strmbtouc.c: New file.
86663         * lib/unistr/u32-strmbtouc.c: New file.
86665         * modules/unistr/u8-strncat: New file.
86666         * modules/unistr/u16-strncat: New file.
86667         * modules/unistr/u32-strncat: New file.
86668         * lib/unistr/u8-strncat.c: New file.
86669         * lib/unistr/u16-strncat.c: New file.
86670         * lib/unistr/u32-strncat.c: New file.
86671         * lib/unistr/u-strncat.h: New file.
86673         * modules/unistr/u8-strncmp: New file.
86674         * modules/unistr/u16-strncmp: New file.
86675         * modules/unistr/u32-strncmp: New file.
86676         * lib/unistr/u8-strncmp.c: New file.
86677         * lib/unistr/u16-strncmp.c: New file.
86678         * lib/unistr/u32-strncmp.c: New file.
86680         * modules/unistr/u8-strncpy: New file.
86681         * modules/unistr/u16-strncpy: New file.
86682         * modules/unistr/u32-strncpy: New file.
86683         * lib/unistr/u8-strncpy.c: New file.
86684         * lib/unistr/u16-strncpy.c: New file.
86685         * lib/unistr/u32-strncpy.c: New file.
86686         * lib/unistr/u-strncpy.h: New file.
86688         * modules/unistr/u8-strnlen: New file.
86689         * modules/unistr/u16-strnlen: New file.
86690         * modules/unistr/u32-strnlen: New file.
86691         * lib/unistr/u8-strnlen.c: New file.
86692         * lib/unistr/u16-strnlen.c: New file.
86693         * lib/unistr/u32-strnlen.c: New file.
86694         * lib/unistr/u-strnlen.h: New file.
86696         * modules/unistr/u8-strpbrk: New file.
86697         * modules/unistr/u16-strpbrk: New file.
86698         * modules/unistr/u32-strpbrk: New file.
86699         * lib/unistr/u8-strpbrk.c: New file.
86700         * lib/unistr/u16-strpbrk.c: New file.
86701         * lib/unistr/u32-strpbrk.c: New file.
86702         * lib/unistr/u-strpbrk.h: New file.
86704         * modules/unistr/u8-strrchr: New file.
86705         * modules/unistr/u16-strrchr: New file.
86706         * modules/unistr/u32-strrchr: New file.
86707         * lib/unistr/u8-strrchr.c: New file.
86708         * lib/unistr/u16-strrchr.c: New file.
86709         * lib/unistr/u32-strrchr.c: New file.
86711         * modules/unistr/u8-strspn: New file.
86712         * modules/unistr/u16-strspn: New file.
86713         * modules/unistr/u32-strspn: New file.
86714         * lib/unistr/u8-strspn.c: New file.
86715         * lib/unistr/u16-strspn.c: New file.
86716         * lib/unistr/u32-strspn.c: New file.
86717         * lib/unistr/u-strspn.h: New file.
86719         * modules/unistr/u8-strstr: New file.
86720         * modules/unistr/u16-strstr: New file.
86721         * modules/unistr/u32-strstr: New file.
86722         * lib/unistr/u8-strstr.c: New file.
86723         * lib/unistr/u16-strstr.c: New file.
86724         * lib/unistr/u32-strstr.c: New file.
86725         * lib/unistr/u-strstr.h: New file.
86727         * modules/unistr/u8-strtok: New file.
86728         * modules/unistr/u16-strtok: New file.
86729         * modules/unistr/u32-strtok: New file.
86730         * lib/unistr/u8-strtok.c: New file.
86731         * lib/unistr/u16-strtok.c: New file.
86732         * lib/unistr/u32-strtok.c: New file.
86733         * lib/unistr/u-strtok.h: New file.
86735         * modules/unistr/u8-uctomb: New file.
86736         * modules/unistr/u16-uctomb: New file.
86737         * modules/unistr/u32-uctomb: New file.
86738         * lib/unistr/u8-uctomb.c: New file.
86739         * lib/unistr/u16-uctomb.c: New file.
86740         * lib/unistr/u32-uctomb.c: New file.
86742         * MODULES.html.sh (Unicode string functions): Add the new modules.
86744 2007-01-08  Bruno Haible  <bruno@clisp.org>
86746         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
86747         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
86748         subdirectories.
86750 2007-01-08  Karl Berry  <karl@gnu.org>
86752         * doc/error.texi: mention that main() fns must set program_name
86753         when progname is used.
86755 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
86757         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
86758         WCTYPE_H is empty, for the benefit of builds from non-distclean
86759         directories.  Problem reported by Eric Blake in
86760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
86762 2007-01-08  Bruno Haible  <bruno@clisp.org>
86764         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
86765         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
86766         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
86767         PROVIDE_CANONICALIZE_FILENAME_MODE.
86768         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
86770 2007-01-08  Bruno Haible  <bruno@clisp.org>
86772         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
86773         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
86774         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
86775         * lib/fts.c: Likewise.
86776         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
86778 2006-12-25  Bruno Haible  <bruno@clisp.org>
86780         * modules/utf8-ucs4-safe: New file.
86781         * lib/utf8-ucs4-safe.h: New file.
86782         * lib/unistr/utf8-ucs4-safe.c: New file.
86784         * modules/utf16-ucs4-safe: New file.
86785         * lib/utf16-ucs4-safe.h: New file.
86786         * lib/unistr/utf16-ucs4-safe.c: New file.
86788         * MODULES.html.sh (Unicode string functions): Add the new modules.
86790 2007-01-08  Bruno Haible  <bruno@clisp.org>
86792         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
86793         (Depends-on): Add unitypes.
86794         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
86795         (u8_mbtouc_aux): Move out to separate file.
86796         (u8_mbtouc): Use ucs4_t, uint8_t types.
86797         * lib/unistr/utf8-ucs4.c: New file.
86799         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
86800         (Depends-on): Add unitypes.
86801         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
86802         (u16_mbtouc_aux): Move out to separate file.
86803         (u16_mbtouc): Use ucs4_t, uint16_t types.
86804         * lib/unistr/utf16-ucs4.c: New file.
86806         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
86807         (Depends-on): Add unitypes.
86808         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
86809         (u8_uctomb_aux): Move out to separate file.
86810         (u8_uctomb): Use ucs4_t, uint8_t types.
86811         * lib/unistr/ucs4-utf8.c: New file.
86813         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
86814         (Depends-on): Add unitypes.
86815         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
86816         (u16_uctomb_aux): Move out to separate file.
86817         (u16_uctomb): Use ucs4_t, uint16_t types.
86818         * lib/unistr/ucs4-utf16.c: New file.
86820 2006-12-25  Bruno Haible  <bruno@clisp.org>
86822         * modules/unitypes: New file.
86823         * lib/unitypes.h: New file.
86824         * MODULES.html.sh (func_all_modules): New section "Unicode string
86825         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
86826         this section. Add unitypes.
86828 2007-01-08  Bruno Haible  <bruno@clisp.org>
86830         Avoid variable names that conflict with those from libtool.
86831         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
86832         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
86833         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
86834         library_names_spec to acl_library_names_spec, hardcode_* to
86835         acl_hardcode_*.
86836         Reported by Ralf Wildenhues.
86838 2007-01-08  Bruno Haible  <bruno@clisp.org>
86840         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
86841         definition.
86842         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
86843         definition.
86844         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
86845         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
86846         definition.
86847         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
86848         definition.
86849         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
86850         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
86851         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
86852         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
86853         definition.
86854         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
86855         definition.
86856         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
86857         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
86858         GC_USE_<algorithm>.
86859         * lib/gc-libgcrypt.c: Likewise.
86860         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
86861         * modules/gc-arctwo (configure.ac): Likewise.
86862         * modules/gc-des (configure.ac): Likewise.
86863         * modules/gc-hmac-md5 (configure.ac): Likewise.
86864         * modules/gc-hmac-sha1 (configure.ac): Likewise.
86865         * modules/gc-md2 (configure.ac): Likewise.
86866         * modules/gc-md4 (configure.ac): Likewise.
86867         * modules/gc-md5 (configure.ac): Likewise.
86868         * modules/gc-random (configure.ac): Likewise.
86869         * modules/gc-rijndael (configure.ac): Likewise.
86870         * modules/gc-sha1 (configure.ac): Likewise.
86872 2007-01-08  Bruno Haible  <bruno@clisp.org>
86874         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
86875         macro definition.
86876         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
86877         definition.
86878         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
86879         definition.
86880         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
86881         * modules/fcntl-safer (configure.ac): Likewise.
86882         * modules/fopen-safer (configure.ac): Likewise.
86883         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
86884         GNULIB_FWRITEERROR macro definition.
86886 2007-01-08  Bruno Haible  <bruno@clisp.org>
86888         * m4/gnulib-common.m4: New file.
86889         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
86890         (func_get_filelist): Add m4/gnulib-common.m4.
86892 2007-01-08  Bruno Haible  <bruno@clisp.org>
86894         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
86895         command.
86897 2007-01-08  Jim Meyering  <jim@meyering.net>
86899         Use a more robust test for a "can't happen" condition.
86900         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
86901         narrowed the st_size value.  Presuming the "can't happen" condition
86902         is true, that narrowing could conceivably convert an invalid st_size
86903         value into a valid one.  Instead, use a change based on Matthew
86904         Woehlke's original patch.
86906         Slight readability improvement: use an assert-like macro
86907         in place of literal "abort ()" uses.
86908         * lib/fts.c (fts_assert): Define.
86909         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
86910         Use this macro instead of a bare 'abort'.
86912 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
86914         Don't worry about using IRIX 5.3's wctype.h broken definitions;
86915         simply work around them.
86916         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
86917         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
86918         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
86919         declaring.
86920         Don't bother to define as macros, since the standard doesn't require it.
86921         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
86922         longer worry about IRIX 5.3.
86923         (HAVE_WCTYPE_CTMP_BUG): Remove.
86925 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86927         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
86928         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
86929         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
86930         Problems reported by Georg Schwarz for IRIX 5.3.
86932         * gnulib-tool (autoconf_minversion): Take the maximum version number
86933         found, not the minimum.  Problem reported by James Youngman.
86935 2007-01-03  Karl Berry  <karl@gnu.org>
86937         * doc/error.texi: new file, explaining interaction with progname.
86938         * doc/gnulib.texi: include it.  Update copyright.
86940 2007-01-03  Simon Josefsson  <simon@josefsson.org>
86942         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
86943         AC_CANONICAL_HOST, to improve autobuild outputs.
86945 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
86946             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
86948         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
86949         sockets, server sockets, and other file descriptors.  Count errors
86950         to compute the return value.  Reorder the code a bit to be easier
86951         to follow.  Don't set event bits that were not requested (except
86952         POLLERR and POLLHUP).
86954 2007-01-01  Bruno Haible  <bruno@clisp.org>
86956         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
86958 2007-01-03  Jim Meyering  <jim@meyering.net>
86960         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
86962 2007-01-02  Bruno Haible  <bruno@clisp.org>
86964         * modules/settime (Include): Require timespec.h.
86965         * modules/nanosleep (Include): Likewise.
86967 2007-01-01  Bruno Haible  <bruno@clisp.org>
86969         * gnulib-tool (func_emit_copyright_notice): Bump year.
86970         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
86972 2007-01-01  Bruno Haible  <bruno@clisp.org>
86974         Improve support for OpenBSD.
86975         * build-aux/config.rpath (libname_spec): Export.
86976         (library_names_spec): New variable. Export.
86977         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
86978         library_names_spec from the config.rpath output. Locate shared library
86979         through the name pattern in library_names_spec.
86981 2007-01-01  Eric Blake  <ebb9@byu.net>
86983         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
86985 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
86987         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
86988         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
86989         assume the C locale, and avoid an "eval" that could cause trouble.
86990         Problem with SORT reported by Bob Proulx.
86992         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
86993         Define.  Trivial patch from Henning Nielsen Lund, originally
86994         sent to bug-grep@gnu.org today.
86996 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
86998         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
86999         struct stat.  Problem reported by Henning Nielsen Lund.
87000         * lib/acl.c: Include acl.h first, to check interface.  Don't
87001         bother to include sys/types.h and sys/stat.h again.
87003 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87005         Import the following change from libc; problem reported by
87006         Sven Verdoolaege.
87008         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
87010         [BZ #1373]
87011         * lib/argp.h: Remove __NTH for __argp_usage inline function.
87013 2006-12-28  Jim Meyering  <jim@meyering.net>
87015         * build-aux/announce-gen: Do not assume that the package
87016         builds any of tar.gz, tar.bz2, and .xdelta files.
87017         Suggestion from Simon Josefsson.
87019 2006-12-28  Simon Josefsson  <simon@josefsson.org>
87021         * modules/announce-gen: New file.
87023 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
87025         * lib/mbchar.h: Just include <wctype.h>; the wctype module
87026         handles its gotchas now.
87027         * lib/mbswidth.c: Likewise.
87028         * lib/wcwidth.h: Likewise.
87029         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
87030         and iswcntrl; the wctype module does this stuff now.
87031         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
87033         * modules/mbchar (Depends-on): Add wctype.
87034         * modules/mbswidth (Depends-on): Likewise.
87035         * modules/wcwidth (Depends-on): Likewise.
87037 2006-12-27  Eric Blake  <ebb9@byu.net>
87039         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
87040         module uses more than what <wctype.h> is required to provide.
87042 2006-12-26  Eric Blake  <ebb9@byu.net>
87044         * gnulib-tool (sed_extract_prog): Avoid space-tab.
87046 2006-12-26  Eric Blake  <ebb9@byu.net>
87048         * modules/absolute-header: New module.
87049         * modules/fcntl (Depends-on): Depend on it.
87050         * modules/inttypes (Depends-on): Likewise.
87051         * modules/stdint (Depends-on): Likewise.
87052         * modules/sys_stat (Depends-on): Likewise.
87053         * modules/wctype (Depends-on): Likewise.
87054         * MODULES.html.sh (Support for building libraries and
87055         executables): Document it.
87057 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
87059         * gnulib-tool (SED): Remove, undoing previous change.
87060         The problem was that it broke coreutils on Solaris, because
87061         "sed --posix" leaked into a makefile.
87062         (sed): New alias, if 'alias' and GNU sed.
87064 2006-12-24  Jim Meyering  <jim@meyering.net>
87066         Work around an fchownat bug in glibc-2.4:
87067         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
87068         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
87069         in spite of the -P option.
87070         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
87071         New macros.
87072         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
87073         * modules/openat (Files): Add lib/fchownat.c.
87074         * lib/openat.c (fchownat): Don't define here.  Move to...
87075         * lib/fchownat.c: ...this new file.
87077 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87079         Fix bug reported by Bruno Haible in
87080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
87081         where quotearg.c didn't compile on Mac OS X 10.2 because it
87082         lacks <wchar.h> and wint_t.
87083         * lib/wctype_.h (__wctype_wint_t): New type.
87084         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
87085         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
87086         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
87087         Arg is now of type __wctype_wint_t, not wint_t.
87088         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
87089         substitute HAVE_WINT_T.
87090         * modules/wctype (Files): Add m4/wint_t.m4.
87091         (wctype.h): Substitute HAVE_WINT_T.
87093 2006-12-23  Bruno Haible  <bruno@clisp.org>
87095         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
87097 2006-12-23  Bruno Haible  <bruno@clisp.org>
87099         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
87100         S_ISLNK.
87101         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
87102         mingw.
87104 2006-12-22  Bruno Haible  <bruno@clisp.org>
87106         * lib/copy-file.c: Include acl.h.
87107         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
87108         Close the file descriptors only after being done with copy_acl.
87109         * modules/copy-file (Depends-on): Add acl.
87111 2006-12-22  Bruno Haible  <bruno@clisp.org>
87113         * gnulib-tool (SED): New variable.
87114         Use $SED instead of sed everywhere.
87116 2006-12-22  Bruno Haible  <bruno@clisp.org>
87118         * modules/no-c++: New file.
87119         * m4/no-c++.m4: New file.
87120         * MODULES.html.sh (Support for building libraries and executables):
87121         Add no-c++.
87123 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
87125         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
87126         Include <limits.h>, and use its INT_MAX to rewrite the
87127         j loop so that it does not overflow 'int'.  Problem reported by
87128         Ralf Wildenhues in
87129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
87130         Play it safe by shifting left by 1 rather than multiplying by 2,
87131         as GCC is less likely to optimize this away when the value
87132         is signed (when it assumes overflow leads to undefined behavior).
87133         Also, don't assume time_t uses two's complement.
87135 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
87137         * MODULES.html.sh: New module wctype.
87138         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
87139         * lib/fnmatch.c: Don't bother to include <wchar.h> before
87140         <wctype.h>, since the new wctype module should fix this.
87141         * lib/quotearg.c: Include <wctype.h> unconditionally, since
87142         the wctype module should arrange for it.
87143         * lib/regex_internal.h: Likewise.
87144         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
87145         since the wctype module should handle this now.
87146         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
87147         * modules/fnmatch (Depends-on): Add wctype.
87148         * modules/quotearg (Depends-on): Likewise.
87149         * modules/regex (Depends-on): Likewise.
87151 2006-12-19  Bruno Haible  <bruno@clisp.org>
87153         * lib/strdup.h [C++]: Wrap definitions in extern "C".
87154         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
87156 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87158         * modules/savewd (Depends-on): Fix dependency on fcntl.
87160 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
87162         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
87163         conforms to C99, rather than relying on the user's environment
87164         setting of STDINT_H.
87166 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
87167         and Eric Blake  <ebb9@byu.net>
87169         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
87170         This is more consistent with the other defines here.
87171         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
87172         Port to z/OS.  Problem reported by Paul Gilmartin.
87173         Change local vars to use gl_ prefix rather than ac_.
87174         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
87175         with other defines.
87176         * modules/double-slash-root: New module.
87177         * modules/dirname (Files): Remove m4/double-slash-root.m4.
87178         (Depends-on): Add double-slash-root.
87179         * MODULES.html.sh (File system functions): Mention new module.
87181 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
87183         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
87184         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
87185         This is for the benefit of gzip, which doesn't do i18n.
87187 2006-12-12  Jim Meyering  <jim@meyering.net>
87189         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
87190         Reported by Andreas Schwab <schwab@suse.de>.
87192 2006-12-12  Bruno Haible  <bruno@clisp.org>
87194         Merge these changes.
87195         2006-09-05  Bruno Haible  <bruno@clisp.org>
87196         * lib/iconvme.c (iconv_string): No need to save and restore errno when
87197         iconv_alloc succeeded.
87198         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
87199         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
87200         test for " && dest " at the end - dest is always != NULL there. Call
87201         iconv with 4xNULL arguments initially, to reset the state. Call iconv
87202         with 2xNULL arguments, also to flush the state storage. Handle the
87203         IRIX iconv behaviour. Realloc the final result, to throw away unused
87204         memory.
87206 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
87208         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
87209         and fchmodat unconditionally, since glibc 2.4 has them.
87210         Problem reported by Arkadiusz Miskiewicz.
87212 2006-12-10  Bruno Haible  <bruno@clisp.org>
87214         * gnulib-tool (func_import): Show the include files only for those
87215         modules that are copied and specified.
87216         Reported by Karl Berry.
87218 2006-12-08  Jim Meyering  <jim@meyering.net>
87220         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
87221         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
87223         * build-aux/announce-gen: Add two new options, both optional:
87224         --bootstrap-tools=TOOL_LIST
87225               a comma-separated list of tools, e.g.,
87226               autoconf,automake,bison,gnulib
87227         --gnulib-snapshot-date=DATE
87228               if gnulib is in the bootstrap tool list,
87229               then report this as the snapshot date.
87230               If not specified, use the current date/time.
87231               If you specify a date here, be sure it's UTC.
87233 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87235         * tests/test-argp-2.sh: Fix test to match actual output.
87236         (func_compare): Fix sed script to be portable.
87238 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
87240         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
87241         workaround for this case.  It is not autoconfigured now; offhand
87242         it's hard to see how to autoconfigure it.
87244 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
87246         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
87247         a directory that is about to be chowned.  Such a directory's
87248         initial file permissions should permit the owner only and this
87249         should not be changed until after the chown, since the group and
87250         other bits would be incorrect if they granted permission before
87251         the chown.
87253         Fix porting problem for iswctype reported by Georg Schwarz in:
87254         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
87255         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
87256         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
87257         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
87258         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87260 2006-12-03  Jim Meyering  <jim@meyering.net>
87262         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
87263         p->fts_statp may not yet be defined.
87264         (fts_read): Instead, set it in the caller, once p->fts_statp is
87265         sure to be defined, and corresponds to a top-level directory.
87266         This bug made du -x fail.  Here's the coreutils test case:
87267         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
87268         Reported by Mike Frysinger.
87270 2006-12-01  Jim Meyering  <jim@meyering.net>
87272         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
87273         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
87274         Reported by Simon Josefsson.
87276 2006-11-30  Jim Meyering  <jim@meyering.net>
87278         * m4/warning.m4: Use the all-permissive copyright notice
87279         recommended by RMS (rather than LGPL).
87280         * m4/vararrays.m4: Likewise.
87281         * m4/flexmember.m4: Likewise.
87283 2006-11-29  Bruno Haible  <bruno@clisp.org>
87285         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
87286         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
87287         using +=.
87288         Reported by Simon Josefsson <simon@josefsson.org>.
87290 2006-11-28  James Youngman <jay@gnu.org>
87292         * README: Advise users that they might find the bug-gnulib@gnu.org
87293         and autotools-announce@gnu.org mailing lists useful.
87295 2006-11-28  Bruno Haible  <bruno@clisp.org>
87297         * m4/ptrdiff_max.m4: Remove file.
87299 2006-11-21  Bruno Haible  <bruno@clisp.org>
87301         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
87302         _AC_COMPUTE_INT.
87303         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87304         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
87305         _AC_COMPUTE_INT.
87306         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87307         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
87308         _AC_COMPUTE_INT.
87309         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87311 2006-11-28  Jim Meyering  <jim@meyering.net>
87313         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
87314         warning from "gcc -Wshadow" about shadowing the builtin.
87316 2006-11-27  Bruno Haible  <bruno@clisp.org>
87318         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
87319         _AC_COMPUTE_INT.
87320         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87322 2006-11-27  Bruno Haible  <bruno@clisp.org>
87323             Paul Eggert  <eggert@cs.ucla.edu>
87325         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
87327 2006-11-26  Bruno Haible  <bruno@clisp.org>
87329         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
87330         noinst_LTLIBRARIES.
87332 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87333             Bruno Haible  <bruno@clisp.org>
87335         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
87336         if compiling with "gcc -ansi".
87338 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87340         Fix some incompatibilities with gcc -ansi -pedantic.
87341         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
87342         if compiling pedantically with GCC, unless it's C99 or later.
87343         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
87344         it mishandles gcc -ansi -pedantic as well.
87345         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
87346         if gcc -pedantic.
87347         * lib/regexec.c (check_node_accept_bytes): Don't use auto
87348         initializers for struct if -pedantic, unless it's C99 or later.
87350 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
87352         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
87353         Don't close an fd more than once. Identical atimes indicate
87354         success, not failure.
87356 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
87358         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
87360 2006-11-23  Jim Meyering  <jim@meyering.net>
87362         * build-aux/announce-gen: New file.  From coreutils.
87364 2006-11-22  Jim Meyering  <jim@meyering.net>
87366         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
87367         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
87368         (fts_read): Use a temporary to narrow the overused st_size member
87369         before using it in a switch statement.  Reported by Matthew Woehlke.
87371         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
87372         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
87374 2006-11-20  Bruno Haible  <bruno@clisp.org>
87376         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
87377         changequote instead of pairs of brackets.
87378         Reported by Andreas Schwab <schwab@suse.de>.
87380 2006-11-21  Jim Meyering  <jim@meyering.net>
87382         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
87383         so as to remain compatible with older compilers.
87384         Patch from Michael Deutschmann.
87386 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87388         * MODULES.html.sh (File system functions): Add openat.
87390         * lib/openat.h (rpl_fstatat): New macro, if
87391         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
87392         (fstatat): Define to rpl_fstatat under the same conditions,
87393         unless COMPILING_FSTATAT.
87394         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
87395         seems to have the bug.
87396         * lib/fstatat.c: New file.
87397         * modules/openat (Files): Add it.
87399 2006-11-20  Bruno Haible  <bruno@clisp.org>
87401         * Makefile: New file.
87403 2006-11-20  Jim Meyering  <jim@meyering.net>
87405         The beginnings of syntax-related checks for gnulib.
87406         * lib/Makefile: New file.
87407         * lib/t-idcache: New script.  Ensure that the two halves of
87408         idcache.c stay in sync.
87410         * lib/idcache.c: Adjust comments in user- and group- portions to
87411         be more accurate, and to be consistent with one another.
87413 2006-11-20  Jim Meyering  <jim@meyering.net>
87415         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
87416         continue using the flexible array member (thus, this module performs
87417         half as many malloc calls), with the addition that...
87418         (getgroup, getuser): Consistently record a non-match via an empty
87419         "name" string, and map an empty string match to a NULL return value.
87420         * modules/idcache (Depends-on): Re-add flexmember.
87422         * lib/idcache.c (getuser): Remove all uses of the register keyword.
87423         (getuidbyname, getgroup, getgidbyname): Likewise.
87425         Use cleaner syntax: NULL rather than 0.
87426         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
87428 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87430         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
87431         It mishandled the case where the group was missing.
87432         Problem reported by Greg Schafer.
87433         * modules/idcache: Likewise.
87435 2006-11-18  Jim Meyering  <jim@meyering.net>
87437         * check-module (%exempt_header): Add exception for some
87438         conditionally-included headers.
87440         * modules/i-ring (Depends-on): Add verify.
87441         (License): Change to LGPL.
87443 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87445         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
87446         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
87447         and inttostr.h.  Use snprintf rather than uinttostr, so that
87448         LGPLed code doesn't depend on GPLed.
87450 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87452         * modules/inline (License): Change from GPL to LGPL.
87454 2006-11-17  Jim Meyering  <jim@meyering.net>
87456         * modules/d-type (License): Switch to LGPL.
87458 2006-11-15  Bruno Haible  <bruno@clisp.org>
87460         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
87462 2006-11-15  Eric Blake  <ebb9@byu.net>
87464         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
87465         the module dependency.
87467 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87468             Bruno Haible  <bruno@clisp.org>
87470         * gnulib-tool (func_create_testdir): Add license consistency check.
87472 2006-11-15  Eric Blake  <ebb9@byu.net>
87474         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
87475         random "(cached)" in configure output.
87477 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87479         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
87480         test for conforming inttypes.h is both announced and cached.
87482         * MODULES.html.sh (seen_modules, seen_files): New variables.
87483         (func_module): Rewrite to use a few less gnulib-tool and sed
87484         invocations.  Avoid a couple of quadratic algorithms for ...
87485         (missed_modules, missed_files): ... these, with ...
87486         (func_append, func_tmpdir): ... these new functions, from
87487         gnulib-tool.  Analogously, install traps for cleanup.
87489         * tests/test-gc.c (main): Remove unused variables.
87490         * tests/test-read-file.c: Include stdlib.h, for 'free'.
87492 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
87494         * modules/inttostr (License): Change to LGPL.
87496 2006-11-14  Eric Blake  <ebb9@byu.net>
87498         * modules/tempname (License): Change to LGPL.
87500 2006-11-14  Eric Blake  <ebb9@byu.net>
87502         * doc/functions.texi (Function Portability): *printf functions on
87503         Cygwin now understand all POSIX size specifiers.
87505 2006-11-14  Bruno Haible  <bruno@clisp.org>
87507         * modules/c-ctype (License): Change to LGPL.
87509 2006-11-12  Bruno Haible  <bruno@clisp.org>
87511         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
87512         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
87513         for GNOME libraries, for which the include files are installed in
87514         subdirectories of $prefix/include.
87516 2006-11-12  Bruno Haible  <bruno@clisp.org>
87518         * m4/lib-link.m4: Require at least autoconf-2.54.
87519         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
87520         name to underscores for the --with option.
87522 2006-11-13  Bruno Haible  <bruno@clisp.org>
87524         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
87525         the tests directory.
87526         Reported by Ralf Wildenhues.
87528 2006-11-13  Bruno Haible  <bruno@clisp.org>
87530         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
87531         (func_emit_initmacro_end): Undo the override here.
87532         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
87533         Works around the famous automake error in coreutils.
87535 2006-11-13  Eric Blake  <ebb9@byu.net>
87537         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
87538         element, not its node.
87540 2006-11-12  Bruno Haible  <bruno@clisp.org>
87542         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
87543         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
87545 2006-11-12  Bruno Haible  <bruno@clisp.org>
87547         * gnulib-tool: New option --local-symlink.
87548         (func_usage): Document it.
87549         (lsymbolic): New variable.
87550         (func_import, func_create_testdir): If --symlink was not specified,
87551         test whether --local-symlink was specified and the file comes from
87552         the local_gnulib_dir.
87554 2006-11-12  Bruno Haible  <bruno@clisp.org>
87556         * gnulib-tool (func_ln): New function.
87557         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
87559 2006-11-12  Bruno Haible  <bruno@clisp.org>
87561         Finish support for source files in subdirectories.
87562         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
87563         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
87564         AUTOMAKE_OPTIONS.
87565         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
87567 2006-11-12  Bruno Haible  <bruno@clisp.org>
87569         * gnulib-tool (func_get_automake_snippet): Synthesize also an
87570         EXTRA_lib_SOURCES augmentation.
87571         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
87573 2006-11-12  Jim Meyering  <jim@meyering.net>
87575         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
87576         file descriptors.  This also averts a failure on systems with
87577         native openat support when a traversed directory lacks "x" access.
87578         * lib/fts_.h: Include "i-ring.h"
87579         (struct FTS) [fts_fd_ring]: New member.
87580         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
87581         (FCHDIR): Add parentheses.
87582         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
87583         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
87584         When descending, rather than simply closing the previous
87585         fts_cwd_fd value, push that file descriptor onto the ring.
87586         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
87587         (fts_open): Initialize the new fd_ring member.
87588         (fts_close): Clear the ring.
87589         (fts_safe_changedir): When possible, use our new fd_ring to skip
87590         the diropen and fstat and dev/ino comparison that would normally
87591         accompany a virtual `chdir ("..")'.
87593         * modules/fts (Depends-on): Add i-ring.
87594         * modules/i-ring: New module.
87595         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
87596         * m4/i-ring.m4: New file.
87598 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87600         * gnulib-tool (func_create_testdir): Fix replacement of
87601         `build-aux' in configure.ac.  Run autotools in gltests
87602         subdirectory.
87603         (func_create_testdir, func_create_megatestdir, test): There is
87604         no need for '--force' in most autotool invocations in a new
87605         tree.  Actually fail the whole test if any of the tools, or the
87606         configure or make stages fail.
87608         Sync from Automake.
87609         * build-aux/gnupload: Revert last change.  Add pointer to upload
87610         instructions of the GNU Maintenance Instructions.
87611         Suggestion by Karl Berry.
87613 2006-11-10  Jim Meyering  <jim@meyering.net>
87615         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
87617 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87619         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
87620         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
87621         (bind_textdomain_codeset) [! ENABLE_NLS]:
87622         Evaluate all the arguments.  That way, callers get compatible behavior
87623         if the arguments have side effects.  Also, it avoids some GCC
87624         diagnostics in some cases; Joel E. Denny reported problems when Bison
87625         was configured with --enable-gcc-warnigs.
87627 2006-11-10  Jim Meyering  <jim@meyering.net>
87629         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
87630         relevant options in CFLAGS (like -O, -fno-inline) are taken into
87631         account.
87633 2006-11-10  Jim Meyering  <jim@meyering.net>
87635         * modules/inline: New file/module.
87636         * modules/xalloc (Files): Remove m4/inline.m4.
87637         (Depends-on): Add inline, instead.
87638         * modules/oset: Likewise.
87639         * modules/list: Likewise.
87641 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87643         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
87644         Problem reported by Matthew Woehlke.
87646 2006-11-09  Bruno Haible  <bruno@clisp.org>
87648         * lib/tempname.c (gen_tempname): Remove variant that invokes
87649         __gen_tempname.
87650         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
87651         __gen_tempname.
87653 2006-11-08  Bruno Haible  <bruno@clisp.org>
87655         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
87656         to 'yes' instead of 'cross-compiling'.
87658 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
87660         * lib/quotearg.h (quotearg_free): New decl.
87661         * lib/quotearg.c (quotearg_free): New function.
87662         (slot0, nslots, slotvec0, slotvec):
87663         Now file-scope so that quotearg_free can get at them.
87665 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87667         Sync from Automake.
87668         * build-aux/gnupload: Add missing 'gnu' to example URL.
87669         Report by Karl Berry.
87671 2006-11-08  Bruno Haible  <bruno@clisp.org>
87673         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
87674         Suggested by Paul Eggert.
87676 2006-11-08  Jim Meyering  <jim@meyering.net>
87678         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
87679         It's already included if !_LIBC.
87680         (fts_safe_changedir): Add a comment.
87682 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
87684         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
87685         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
87686         Matthew Woehlke.
87688         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
87689         definitions up, to avoid colliding with change below.
87690         (static_inline) [HAVE_INLINE]: New macro.
87691         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
87692         Provide extern decls when !HAVE_INLINE.  Do not define unless
87693         static_inline is defined, either by us or by xmalloc.c.  Use
87694         static_inline rather than static inline.
87695         (XCALLOC): Optimize sizeof(T) = 1 case.
87696         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
87698 2006-11-07  Bruno Haible  <bruno@clisp.org>
87700         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
87701         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
87702         AC_C_INLINE.
87703         * modules/xalloc (Files): Add m4/inline.m4.
87705 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87707         * README: Fix typo.
87708         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
87709         (Miscellanous Notes): ...from this.
87711 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
87713         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
87714         Mention that offsetof should be used instead of sizeof.
87715         From Bruno Haible.
87717 2006-11-07  Bruno Haible  <bruno@clisp.org>
87719         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
87721 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
87723         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
87724         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
87725         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
87726         (gl_tree_add_before, gl_tree_add_after):
87727         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
87728         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
87729         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
87730         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
87731         (gl_linked_add_after, gl_linked_add_at): Likewise.
87732         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
87733         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
87734         (gl_tree_add_before, gl_tree_add_after): Likewise.
87735         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
87736         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
87737         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
87739 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87741         * lib/gl_oset.h: Use C comment style, not C++ comment style.
87743 2006-11-06  Bruno Haible  <bruno@clisp.org>
87745         * m4/inline.m4: New file.
87746         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
87747         * modules/list (Files): Add m4/inline.m4.
87748         * modules/oset (Files): Likewise.
87750 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
87752         * lib/idcache.c: Include <stddef.h>, for offsetof.
87753         (struct userid.name): Change from char * to a flexible array member.
87754         All uses changed.
87755         * modules/idcache (Depends-on): Add flexmember.
87757         * MODULES.html.sh (Core language properties): New module flexmember.
87758         * modules/flexmember, m4/flexmember.m4: New files.
87760         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
87761         inline functions that are identical with the old xnmalloc_inline,
87762         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
87763         that we can avoid some unnecessary integer multiplications and
87764         divisions in the common case where the element size is known at
87765         compile time.
87766         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
87767         needed.
87768         (xnboundedmalloc): Remove.
87769         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
87770         arguments, for consistency with rest of this header.
87771         (xcharalloc): Rewrite using XNMALLOC.
87772         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
87773         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
87774         versions have been moved to lib/xalloc.h and renamed to be the
87775         non-*_inline versions.
87776         (xmalloc, xrealloc): Implement without reference to the xnmalloc
87777         and xnrealloc functions, since those functions are now inline and
87778         now call us.
87779         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
87780         renaming described above.
87781         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
87782         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
87783         captures the dependency in AC_C_INLINE.
87785         New module canonicalize-lgpl, proposed by Charles Wilson in
87786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
87787         with a few small changes afterwards.
87788         * MODULES.html.sh (File system functions): New module
87789         canonicalize-lgpl.
87790         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
87791         and canonicalize_file_name.
87792         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
87793         * modules/canonicalize-lgpl: New files.
87795 2006-11-05  Bruno Haible  <bruno@clisp.org>
87797         * gnulib-tool (func_import, func_create_testdir): Create directories
87798         also for files in subdirectories of lib/.
87800 2006-11-05  Bruno Haible  <bruno@clisp.org>
87802         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
87803         ANSI C compliant.
87805 2006-11-03  Bruno Haible  <bruno@clisp.org>
87807         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
87808         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
87809         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
87810         (xnboundedmalloc): New inline function.
87811         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
87812         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
87813         xmalloc.
87814         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
87815         xmalloc.
87816         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
87817         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
87818         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
87819         xmalloc.
87820         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
87821         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
87822         xmalloc.
87823         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
87824         gl_tree_add_after): Use XMALLOC instead of xmalloc.
87825         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
87826         xmalloc.
87827         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
87828         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
87829         gl_tree_add_after): Use XMALLOC instead of xmalloc.
87830         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
87831         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
87832         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
87833         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
87835 2006-11-03  Bruno Haible  <bruno@clisp.org>
87837         * lib/c-ctype.h [C++]: Define functions without name mangling.
87838         * lib/fwriteerror.h [C++]: Likewise.
87839         * lib/gcd.h [C++]: Likewise.
87840         * lib/linebreak.h [C++]: Likewise.
87842 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87844         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
87845         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
87846         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
87847         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
87848         Check for functions and headers just once.
87849         Check for declaration of canonicalize_file_name.
87850         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
87852 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
87854         * gnulib-tool (func_import): Fix typo in actioncmd.
87856 2006-11-02  Bruno Haible  <bruno@clisp.org>
87858         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
87859         newline sequence in the Makefile.am snippet as a space, like "make"
87860         does.
87861         Reported by Roger Persson <perrog@gmail.com>.
87863 2006-11-01  Bruno Haible  <bruno@clisp.org>
87865         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
87866         already declared in <string.h>.
87867         * lib/strcase.h (strncasecmp): Don't declare it if yes.
87869 2006-11-01  Bruno Haible  <bruno@clisp.org>
87871         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
87872         * lib/strcase.h: Include <string.h>.
87873         (strcasecmp): Define to rpl_strcasecmp here.
87875 2006-11-01  Bruno Haible  <bruno@clisp.org>
87877         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
87879 2006-11-01  Eric Blake  <ebb9@byu.net>
87881         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
87883         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
87885 2006-10-29  Bruno Haible  <bruno@clisp.org>
87887         Make it compile in C++ mode.
87888         * lib/full-write.c (full_rw): Add a cast.
87890 2006-11-01  Bruno Haible  <bruno@clisp.org>
87892         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
87893         be POSIX compliant.
87894         Reported by Roger Persson <perrog@gmail.com>.
87896 2006-11-01  Eric Blake  <ebb9@byu.net>
87898         * lib/getopt_.h: Fix comments.
87900 2006-10-31  Eric Blake  <ebb9@byu.net>
87902         * modules/tmpdir (Depends-on): Add sys_stat.
87903         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
87904         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
87905         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
87906         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
87907         tempname.
87909 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
87911         Avoid some C++ diagnostics reported by Bruno Haible.
87912         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
87913         xmalloc.
87914         (quotearg_alloc): Use xcharalloc rather than xmalloc.
87915         (struct slotvec): Move to top level.
87916         (quotearg_n_options): Rewrite to avoid xmalloc.
87917         * lib/xalloc.h (xcharalloc): New function.
87918         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
87919         [defined __cplusplus]: Add function template that provides result
87920         type propagation.  This part of the change is from Bruno Haible.
87922 2006-10-29  Bruno Haible  <bruno@clisp.org>
87924         Make it compile in C++ mode.
87925         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
87926         * lib/strnlen1.c (strnlen1): Cast memchr result.
87927         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
87928         * lib/clean-temp.c (string_equals, string_hash): Add casts.
87929         (create_temp_dir): Rename local variable 'template'.
87930         (compile_csharp_using_sscli): Add cast.
87931         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
87932         * lib/findprog.c (find_in_path): Likewise.
87933         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
87934         * lib/wait-process.c (register_slave_subprocess): Likewise.
87936 2006-10-22  Bruno Haible  <bruno@clisp.org>
87938         * modules/tsearch: New file.
87939         * lib/tsearch.h: New file.
87940         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
87941         * m4/tsearch.m4: New file.
87942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
87944 2006-10-29  Eric Blake  <ebb9@byu.net>
87946         * lib/arcfour.c: Assume config.h.
87947         * lib/arctwo.c: Likewise.
87948         * lib/base64.c: Likewise.
87949         * lib/check-version.c: Likewise.
87950         * lib/crc.c: Likewise.
87951         * lib/des.c: Likewise.
87952         * lib/gc-gnulib.c: Likewise.
87953         * lib/gc-libgcrypt.c: Likewise.
87954         * lib/gc-pbkdf2-sha1.c: Likewise.
87955         * lib/getaddrinfo.c: Likewise.
87956         * lib/getdelim.c: Likewise.
87957         * lib/getline.c: Likewise.
87958         * lib/hmac-md5.c: Likewise.
87959         * lib/hmac-sha1.c: Likewise.
87960         * lib/iconvme.c: Likewise.
87961         * lib/md2.c: Likewise.
87962         * lib/md4.c: Likewise.
87963         * lib/memxor.c: Likewise.
87964         * lib/read-file.c: Likewise.
87965         * lib/readline.c: Likewise.
87966         * lib/rijndael-alg-fst.c: Likewise.
87967         * lib/rijndael-api-fst.c: Likewise.
87968         * lib/xgetdomainname.c: Likewise.
87970 2006-10-28  Eric Blake  <ebb9@byu.net>
87972         * lib/xstrndup.c: Assume config.h.
87974 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
87976         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
87977         stat-macros.h is now for our own macros, whereas stat_h is for
87978         macros in the <sys/stat.h> name space.
87979         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
87980         (STAT_MACROS_H): Remove.
87981         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
87982         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
87983         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
87984         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
87985         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
87986         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
87987         Move these macros to ...
87988         * lib/stat_.h: here.  Don't include stat-macros.h.
87989         * lib/canonicalize.c: Don't include stat-macros.h.
87990         * lib/chown.c: Likewise.
87991         * lib/euidaccess.c: Likewise.
87992         * lib/file-type.c: Likewise.
87993         * lib/filemode.c: Likewise.
87994         * lib/glob.c: Likewise.
87995         * lib/isapipe.c: Likewise.
87996         * lib/lchown.c: Likewise.
87997         * lib/lstat.c: Likewise.
87998         * lib/mkdir-p.c: Likewise.
87999         * lib/rmdir.c: Likewise.
88000         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
88001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
88002         unless mkdir isn't declared, to speed up 'configure'.
88003         Always create sys/stat.h, since it's unlikely any real sys/stat.h
88004         would define all the S_* symbols.
88005         * modules/canonicalize (Depends-on):
88006         Depend on sys_stat, not stat-macros.
88007         * modules/chown: Likewise.
88008         * modules/euidaccess: Likewise.
88009         * modules/filemode: Likewise.
88010         * modules/file-type: Likewise.
88011         * modules/glob: Likewise.
88012         * modules/isapipe: Likewise.
88013         * modules/lchown: Likewise.
88014         * modules/lstat: Likewise.
88015         * modules/mkancesdirs: Likewise.
88016         * modules/rmdir: Likewise.
88017         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
88018         * modules/modechange: Likewise.
88019         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
88020         (configure.ac): Remove gl_STAT_MACROS.
88021         * modules/sys_stat (Depends-on): Remove stat-macros.
88023 2006-10-27  Bruno Haible  <bruno@clisp.org>
88025         * m4/signed.m4: Remove file.
88026         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
88027         invocation.
88028         * modules/vasnprintf (Files): Remove m4/signed.m4.
88030 2006-10-27  Bruno Haible  <bruno@clisp.org>
88032         Update to GNU gettext 0.16.
88033         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
88034         m4/inttypes-h.m4, m4/signed.m4.
88035         * m4/gettext.m4: Update to GNU gettext 0.16.
88036         * m4/intl.m4: New file, from GNU gettext.
88037         * m4/intldir.m4: New file, from GNU gettext.
88038         * config/srclist.txt: Update
88040 2006-10-27  Eric Blake  <ebb9@byu.net>
88042         * MODULES.html.sh: Document tempname.
88043         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
88044         dependencies.
88045         (Files): Move lib/tempname.c...
88046         * modules/tempname: ...to this new module.
88047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
88048         (gl_PREREQ_TEMPNAME): Move...
88049         * m4/tempname.m4: ...to this new file.
88050         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
88051         * modules/sys_stat (Depends-on): Add stat-macros.
88052         * lib/stat_.h (includes): Pick up stat macros.
88053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
88054         if stat macros are broken.
88055         * lib/tempname.c (includes): No need to include "stat-macros.h".
88056         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
88057         (direxists, __path_search) [!_LIBC]: Don't compile these in
88058         gnulib; the tmpdir module covers that.
88059         * lib/tempname.h: New file.
88061 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
88063         * COPYING: Explain how gnulib-tool converts licence headers.
88064         Almost all wording by Eric Blake.
88066 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
88068         * lib/mbchar.h (is_basic_table): Make read-only.
88069         * lib/mbchar.c (is_basic_table): Likewise.
88070         Reported by John Darrington.
88072 2006-10-25  Bruno Haible  <bruno@clisp.org>
88074         * lib/progname.h (set_program_name): Undefine before defining.
88076 2006-10-25  Bruno Haible  <bruno@clisp.org>
88078         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
88079         false for non-gcc C++ compilers.
88080         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
88082 2006-10-24  Bruno Haible  <bruno@clisp.org>
88084         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
88085         iconv implementations like Irix iconv.
88087 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88089         * modules/vararrays: New file.
88090         * m4/vararrays.m4: New file, taken from diffutils.
88091         * MODULES.html.sh: New module vararrays.
88093 2006-10-24  Karl Berry  <karl@gnu.org>
88095         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
88096         Don't call GNU Unix.
88098 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88100         * users.txt: Add Libtool.
88102         Sync from Libtool:
88104         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88106         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
88107         to gnulib's policy of including config.h unconditionally.
88109 2006-10-24  Bruno Haible  <bruno@clisp.org>
88111         * modules/wcwidth (Files): Add m4/wint_t.m4.
88112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
88113         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
88115 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88117         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
88118         to pacify GCC with some -W flags enabled.  Problem reported by
88119         Bruno Haible.
88121 2006-10-24  Jim Meyering  <jim@meyering.net>
88123         * MODULES.html.sh: Remove uinttostr.  It's not a module.
88124         Reported by Karl Berry.
88126 2006-10-23  Bruno Haible  <bruno@clisp.org>
88128         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
88130 2006-10-24  Bruno Haible  <bruno@clisp.org>
88132         * lib/gl_list.h: Use C comment style, not C++ comment style.
88134 2006-10-23  Eric Blake  <ebb9@byu.net>
88136         * lib/getaddrinfo.c (includes): Add missing include.
88138 2006-10-23  Bruno Haible  <bruno@clisp.org>
88139             Paul Eggert  <eggert@cs.ucla.edu>
88141         Ability to rename obstack_free.
88142         * lib/obstack.h (__obstack_free): New macro. Declare instead of
88143         obstack_free.
88144         (obstack_free): Invoke the __obstack_free macro.
88145         * lib/obstack.c (obstack_free): Use __obstack_free macro.
88147 2006-10-23  Bruno Haible  <bruno@clisp.org>
88148             Paul Eggert  <eggert@cs.ucla.edu>
88150         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
88151         __argc, __argv from the declaration. (They are defined as macros on
88152         mingw.)
88154 2006-10-22  Bruno Haible  <bruno@clisp.org>
88156         * doc/gnulib-intro.texi: New file.
88157         * doc/gnulib.texi: Include it.
88159 2006-10-21  Bruno Haible  <bruno@clisp.org>
88161         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
88162         "Introduction", "Miscellanous Notes", "Particular Modules".
88164 2006-10-21  Bruno Haible  <bruno@clisp.org>
88166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
88167         Change mostlyclean-local rule to avoid sh syntax error from bash
88168         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
88170 2006-10-23  Jim Meyering  <jim@meyering.net>
88172         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
88173         in place of snprintf.
88175         * modules/inttostr (Files): Add lib/uinttostr.c.
88176         * lib/uinttostr.c (inttostr): New file/function.
88177         * lib/inttostr.h (uinttostr): Declare.
88178         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
88179         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
88180         Add uinttostr.
88181         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
88183 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
88185         * lib/canonicalize.c (ELOOP): Define if not already defined.
88186         Problem reported by Bruno Haible in
88187         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
88189 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
88191         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
88192         Problem reported by Perry Smith and Ville Laurikari.
88194         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
88195         uses.
88197 2006-10-19  Bruno Haible  <bruno@clisp.org>
88199         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
88200         for mingw.
88202 2006-10-19  Bruno Haible  <bruno@clisp.org>
88204         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
88205         Needed for mingw.
88207 2006-10-19  Bruno Haible  <bruno@clisp.org>
88209         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
88211 2006-10-19  Bruno Haible  <bruno@clisp.org>
88213         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
88214         it.
88216 2006-10-19  Bruno Haible  <bruno@clisp.org>
88218         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
88219         invocation.
88221 2006-10-19  Bruno Haible  <bruno@clisp.org>
88223         * gnulib-tool (func_create_testdir): Don't include ftruncate and
88224         mountlist by default.
88226 2006-10-16  Bruno Haible  <bruno@clisp.org>
88228         * lib/c-strstr.c: Include c-strstr.h.
88230 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
88232         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
88233         in a slash.
88235 2006-10-18  Bruno Haible  <bruno@clisp.org>
88237         * lib/lock.h [C++]: Wrap definitions in extern "C".
88239 2006-10-18  Bruno Haible  <bruno@clisp.org>
88241         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
88242         gl_LIBOBJS list.
88244 2006-10-18  Bruno Haible  <bruno@clisp.org>
88246         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
88248 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
88250         * lib/xstrtol.h: Include gettext.h.
88251         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
88252         Problem reported by Eric Blake.
88253         * modules/xstrtol (Depends-on): Add gettext-h.
88255 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
88257         * lib/strftime.c (advance): New macro.
88258         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
88259         incomplete type, so you can't add 0 to it.  Problem and patch
88260         reported by Eelco Dolstra for dietlibc.
88262 2006-10-18  Jim Meyering  <jim@meyering.net>
88264         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
88265         type for a local, and rename it: s/up/user_proc/.
88267 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
88269         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
88270         READ_UTMP_USER_PROCESS.
88271         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
88273 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88275         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
88276         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
88278 2006-10-17  Eric Blake  <ebb9@byu.net>
88280         * lib/sigprocmask.c (sigprocmask): Fix typo.
88282         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
88284         * modules/clean-temp (Makefile.am): Don't add to make output...
88285         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
88286         config.h.
88288 2006-10-17  Bruno Haible  <bruno@clisp.org>
88290         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
88291         differently if DEFAULT_TEXT_DOMAIN is set.
88293 2006-10-16  Bruno Haible  <bruno@clisp.org>
88295         * lib/clean-temp.c: Include fwriteerror.h.
88297 2006-10-16  Bruno Haible  <bruno@clisp.org>
88299         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
88301 2006-10-16  Bruno Haible  <bruno@clisp.org>
88303         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
88304         * lib/sigprocmask.h: Include <sys/types.h>.
88305         (sigset_t): Use the system's definition if present.
88307 2006-10-17  Eric Blake  <ebb9@byu.net>
88309         * lib/xvasprintf.c (includes): Assume config.h.
88310         * lib/xasprintf.c (includes): Likewise.
88312 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
88314         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
88315         at least as wide as intmax_t.
88317 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
88319         (Imported from Automake.)
88320         * build-aux/gnupload: Update to version 1.1 of directive file.
88322 2006-10-16  Eric Blake  <ebb9@byu.net>
88324         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
88325         match Automake 1.10a.
88327 2006-10-14  Bruno Haible  <bruno@clisp.org>
88329         * modules/sigprocmask: New file.
88330         * lib/sigprocmask.h: New file.
88331         * lib/sigprocmask.c: New file.
88332         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
88333         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
88334         request sigprocmask.o.
88335         (gl_PREREQ_SIGPROCMASK): New macro.
88336         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
88337         (Depends-on): Add sigprocmask.
88338         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
88339         gt_SIGNALBLOCKING. Test for 'raise' only once.
88340         * lib/fatal-signal.c: Include sigprocmask.h.
88341         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
88342         unblock_fatal_signals): Define always.
88343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88344         sigprocmask.
88346 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
88348         Sync from Automake.
88349         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
88350         which incorrectly sets the mode of an existing destination
88351         directory.  In some cases the unpatched install-sh could do the
88352         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
88353         system.  We hope this is rare in practice, but it's clearly worth
88354         fixing.  Problem reported by Alex Unleashed in
88355         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
88356         Also, don't bother to check for -m bugs unless we're using -m;
88357         suggested by Stepan Kasal.
88359 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88361         Sync from Automake.
88362         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
88363         `-c' flag, so they appear at the same position as in %FASTDEP%
88364         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
88365         which ignores unknown options only after the first non-option.
88366         Bug report against M4 by Nelson H. F. Beebe.
88368 2006-10-13  Jim Meyering  <jim@meyering.net>
88370         Fix a bug in yesterday's change.
88371         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
88372         p->fts_statp->st_dev would be used uninitialized.
88373         Ensures that we always call fts_stat on the very first entry.
88374         Miklos Szeredi reported that find -xdev stopped working.
88376 2006-10-12  Bruno Haible  <bruno@clisp.org>
88378         * gnulib-tool (func_get_automake_snippet): Append an automatically
88379         computed EXTRA_DIST augmentation.
88380         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
88381         * modules/alloca-opt (Makefile.am): Likewise.
88382         * modules/allocsa (Makefile.am): Likewise.
88383         * modules/arcfour (Makefile.am): Likewise.
88384         * modules/arctwo (Makefile.am): Likewise.
88385         * modules/argmatch (Makefile.am): Likewise.
88386         * modules/argz (Makefile.am): Likewise.
88387         * modules/atexit (Makefile.am): Likewise.
88388         * modules/backupfile (Makefile.am): Likewise.
88389         * modules/byteswap (Makefile.am): Likewise.
88390         * modules/c-strtod (Makefile.am): Likewise.
88391         * modules/c-strtold (Makefile.am): Likewise.
88392         * modules/calloc (Makefile.am): Likewise.
88393         * modules/canon-host (Makefile.am): Likewise.
88394         * modules/canonicalize (Makefile.am): Likewise.
88395         * modules/chdir-long (Makefile.am): Likewise.
88396         * modules/chdir-safer (Makefile.am): Likewise.
88397         * modules/check-version (Makefile.am): Likewise.
88398         * modules/chown (Makefile.am): Likewise.
88399         * modules/cloexec (Makefile.am): Likewise.
88400         * modules/close-stream (Makefile.am): Likewise.
88401         * modules/closeout (Makefile.am): Likewise.
88402         * modules/crc (Makefile.am): Likewise.
88403         * modules/csharpexec (Makefile.am): Likewise.
88404         * modules/cycle-check (Makefile.am): Likewise.
88405         * modules/des (Makefile.am): Likewise.
88406         * modules/dev-ino (Makefile.am): Likewise.
88407         * modules/dirfd (Makefile.am): Likewise.
88408         * modules/dirname (Makefile.am): Likewise.
88409         * modules/dup2 (Makefile.am): Likewise.
88410         * modules/eealloc (Makefile.am): Likewise.
88411         * modules/error (Makefile.am): Likewise.
88412         * modules/euidaccess (Makefile.am): Likewise.
88413         * modules/exclude (Makefile.am): Likewise.
88414         * modules/exitfail (Makefile.am): Likewise.
88415         * modules/fcntl-safer (Makefile.am): Likewise.
88416         * modules/fcntl (Makefile.am): Likewise.
88417         * modules/file-type (Makefile.am): Likewise.
88418         * modules/fileblocks (Makefile.am): Likewise.
88419         * modules/filemode (Makefile.am): Likewise.
88420         * modules/filenamecat (Makefile.am): Likewise.
88421         * modules/fnmatch (Makefile.am): Likewise.
88422         * modules/fopen-safer (Makefile.am): Likewise.
88423         * modules/fpending (Makefile.am): Likewise.
88424         * modules/fprintftime (Makefile.am): Likewise.
88425         * modules/free (Makefile.am): Likewise.
88426         * modules/fsusage (Makefile.am): Likewise.
88427         * modules/ftruncate (Makefile.am): Likewise.
88428         * modules/fts (Makefile.am): Likewise.
88429         * modules/gc-arcfour (Makefile.am): Likewise.
88430         * modules/gc-des (Makefile.am): Likewise.
88431         * modules/gc-hmac-md5 (Makefile.am): Likewise.
88432         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
88433         * modules/gc-md4 (Makefile.am): Likewise.
88434         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
88435         * modules/gc-sha1 (Makefile.am): Likewise.
88436         * modules/gc (Makefile.am): Likewise.
88437         * modules/getaddrinfo (Makefile.am): Likewise.
88438         * modules/getcwd (Makefile.am): Likewise.
88439         * modules/getdelim (Makefile.am): Likewise.
88440         * modules/getdomainname (Makefile.am): Likewise.
88441         * modules/getgroups (Makefile.am): Likewise.
88442         * modules/gethostname (Makefile.am): Likewise.
88443         * modules/gethrxtime (Makefile.am): Likewise.
88444         * modules/getline (Makefile.am): Likewise.
88445         * modules/getloadavg (Makefile.am): Likewise.
88446         * modules/getlogin_r (Makefile.am): Likewise.
88447         * modules/getndelim2 (Makefile.am): Likewise.
88448         * modules/getopt (Makefile.am): Likewise.
88449         * modules/getpagesize (Makefile.am): Likewise.
88450         * modules/getpass-gnu (Makefile.am): Likewise.
88451         * modules/getpass (Makefile.am): Likewise.
88452         * modules/getsubopt (Makefile.am): Likewise.
88453         * modules/gettime (Makefile.am): Likewise.
88454         * modules/gettimeofday (Makefile.am): Likewise.
88455         * modules/getugroups (Makefile.am): Likewise.
88456         * modules/getusershell (Makefile.am): Likewise.
88457         * modules/glob (Makefile.am): Likewise.
88458         * modules/group-member (Makefile.am): Likewise.
88459         * modules/hard-locale (Makefile.am): Likewise.
88460         * modules/hash (Makefile.am): Likewise.
88461         * modules/hmac-md5 (Makefile.am): Likewise.
88462         * modules/hmac-sha1 (Makefile.am): Likewise.
88463         * modules/human (Makefile.am): Likewise.
88464         * modules/idcache (Makefile.am): Likewise.
88465         * modules/imaxabs (Makefile.am): Likewise.
88466         * modules/imaxdiv (Makefile.am): Likewise.
88467         * modules/inet_ntop (Makefile.am): Likewise.
88468         * modules/inet_pton (Makefile.am): Likewise.
88469         * modules/intprops (Makefile.am): Likewise.
88470         * modules/inttostr (Makefile.am): Likewise.
88471         * modules/inttypes (Makefile.am): Likewise.
88472         * modules/isapipe (Makefile.am): Likewise.
88473         * modules/javaversion (Makefile.am): Likewise.
88474         * modules/lchmod (Makefile.am): Likewise.
88475         * modules/lchown (Makefile.am): Likewise.
88476         * modules/localcharset (Makefile.am): Likewise.
88477         * modules/long-options (Makefile.am): Likewise.
88478         * modules/lstat (Makefile.am): Likewise.
88479         * modules/malloc (Makefile.am): Likewise.
88480         * modules/mathl (Makefile.am): Likewise.
88481         * modules/mbchar (Makefile.am): Likewise.
88482         * modules/md2 (Makefile.am): Likewise.
88483         * modules/md4 (Makefile.am): Likewise.
88484         * modules/md5 (Makefile.am): Likewise.
88485         * modules/memcasecmp (Makefile.am): Likewise.
88486         * modules/memchr (Makefile.am): Likewise.
88487         * modules/memcmp (Makefile.am): Likewise.
88488         * modules/memcoll (Makefile.am): Likewise.
88489         * modules/memcpy (Makefile.am): Likewise.
88490         * modules/memmem (Makefile.am): Likewise.
88491         * modules/memmove (Makefile.am): Likewise.
88492         * modules/mempcpy (Makefile.am): Likewise.
88493         * modules/memrchr (Makefile.am): Likewise.
88494         * modules/memset (Makefile.am): Likewise.
88495         * modules/memxor (Makefile.am): Likewise.
88496         * modules/mkancesdirs (Makefile.am): Likewise.
88497         * modules/mkdir-p (Makefile.am): Likewise.
88498         * modules/mkdir (Makefile.am): Likewise.
88499         * modules/mkdtemp (Makefile.am): Likewise.
88500         * modules/mkstemp (Makefile.am): Likewise.
88501         * modules/mktime (Makefile.am): Likewise.
88502         * modules/modechange (Makefile.am): Likewise.
88503         * modules/mountlist (Makefile.am): Likewise.
88504         * modules/nanosleep (Makefile.am): Likewise.
88505         * modules/obstack (Makefile.am): Likewise.
88506         * modules/openat (Makefile.am): Likewise.
88507         * modules/pagealign_alloc (Makefile.am): Likewise.
88508         * modules/pathmax (Makefile.am): Likewise.
88509         * modules/physmem (Makefile.am): Likewise.
88510         * modules/poll (Makefile.am): Likewise.
88511         * modules/posixtm (Makefile.am): Likewise.
88512         * modules/posixver (Makefile.am): Likewise.
88513         * modules/putenv (Makefile.am): Likewise.
88514         * modules/quote (Makefile.am): Likewise.
88515         * modules/quotearg (Makefile.am): Likewise.
88516         * modules/raise (Makefile.am): Likewise.
88517         * modules/read-file (Makefile.am): Likewise.
88518         * modules/readline (Makefile.am): Likewise.
88519         * modules/readlink (Makefile.am): Likewise.
88520         * modules/readtokens (Makefile.am): Likewise.
88521         * modules/readutmp (Makefile.am): Likewise.
88522         * modules/realloc (Makefile.am): Likewise.
88523         * modules/regex (Makefile.am): Likewise.
88524         * modules/rename-dest-slash (Makefile.am): Likewise.
88525         * modules/rename (Makefile.am): Likewise.
88526         * modules/rijndael (Makefile.am): Likewise.
88527         * modules/rmdir (Makefile.am): Likewise.
88528         * modules/rpmatch (Makefile.am): Likewise.
88529         * modules/safe-read (Makefile.am): Likewise.
88530         * modules/safe-write (Makefile.am): Likewise.
88531         * modules/same-inode (Makefile.am): Likewise.
88532         * modules/same (Makefile.am): Likewise.
88533         * modules/save-cwd (Makefile.am): Likewise.
88534         * modules/savedir (Makefile.am): Likewise.
88535         * modules/setenv (Makefile.am): Likewise.
88536         * modules/settime (Makefile.am): Likewise.
88537         * modules/sha1 (Makefile.am): Likewise.
88538         * modules/sig2str (Makefile.am): Likewise.
88539         * modules/snprintf (Makefile.am): Likewise.
88540         * modules/stat-macros (Makefile.am): Likewise.
88541         * modules/stat-time (Makefile.am): Likewise.
88542         * modules/stdbool (Makefile.am): Likewise.
88543         * modules/stdint (Makefile.am): Likewise.
88544         * modules/stdlib-safer (Makefile.am): Likewise.
88545         * modules/stpcpy (Makefile.am): Likewise.
88546         * modules/stpncpy (Makefile.am): Likewise.
88547         * modules/strcase (Makefile.am): Likewise.
88548         * modules/strcasestr (Makefile.am): Likewise.
88549         * modules/strchrnul (Makefile.am): Likewise.
88550         * modules/strcspn (Makefile.am): Likewise.
88551         * modules/strdup (Makefile.am): Likewise.
88552         * modules/strerror (Makefile.am): Likewise.
88553         * modules/strftime (Makefile.am): Likewise.
88554         * modules/strndup (Makefile.am): Likewise.
88555         * modules/strnlen (Makefile.am): Likewise.
88556         * modules/strpbrk (Makefile.am): Likewise.
88557         * modules/strsep (Makefile.am): Likewise.
88558         * modules/strstr (Makefile.am): Likewise.
88559         * modules/strtod (Makefile.am): Likewise.
88560         * modules/strtoimax (Makefile.am): Likewise.
88561         * modules/strtok_r (Makefile.am): Likewise.
88562         * modules/strtol (Makefile.am): Likewise.
88563         * modules/strtoll (Makefile.am): Likewise.
88564         * modules/strtoul (Makefile.am): Likewise.
88565         * modules/strtoull (Makefile.am): Likewise.
88566         * modules/strtoumax (Makefile.am): Likewise.
88567         * modules/strverscmp (Makefile.am): Likewise.
88568         * modules/sys_socket (Makefile.am): Likewise.
88569         * modules/sys_stat (Makefile.am): Likewise.
88570         * modules/sysexits (Makefile.am): Likewise.
88571         * modules/time_r (Makefile.am): Likewise.
88572         * modules/timegm (Makefile.am): Likewise.
88573         * modules/timespec (Makefile.am): Likewise.
88574         * modules/tmpfile-safer (Makefile.am): Likewise.
88575         * modules/trim (Makefile.am): Likewise.
88576         * modules/unistd-safer (Makefile.am): Likewise.
88577         * modules/unlinkdir (Makefile.am): Likewise.
88578         * modules/unlocked-io (Makefile.am): Likewise.
88579         * modules/userspec (Makefile.am): Likewise.
88580         * modules/utime (Makefile.am): Likewise.
88581         * modules/utimecmp (Makefile.am): Likewise.
88582         * modules/utimens (Makefile.am): Likewise.
88583         * modules/vasnprintf (Makefile.am): Likewise.
88584         * modules/vasprintf (Makefile.am): Likewise.
88585         * modules/vsnprintf (Makefile.am): Likewise.
88586         * modules/xalloc (Makefile.am): Likewise.
88587         * modules/xgetcwd (Makefile.am): Likewise.
88588         * modules/xnanosleep (Makefile.am): Likewise.
88589         * modules/xreadlink (Makefile.am): Likewise.
88590         * modules/xstrtod (Makefile.am): Likewise.
88591         * modules/xstrtol (Makefile.am): Likewise.
88592         * modules/xstrtold (Makefile.am): Likewise.
88593         * modules/yesno (Makefile.am): Likewise.
88594         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
88596 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
88598         * modules/error (Makefile.am): Distribute files through
88599         EXTRA_DIST, not lib_SOURCES.
88601 2006-10-12  Eric Blake  <ebb9@byu.net>
88603         * modules/error (Makefile.am): Distribute files in /lib.
88604         * modules/obstack (Makefile.am): Likewise.
88606 2006-10-12  Bruno Haible  <bruno@clisp.org>
88608         * modules/acl (Makefile.am): Distribute all files in lib/ through
88609         EXTRA_DIST.
88610         * modules/arcfour (Makefile.am): Likewise.
88611         * modules/arctwo (Makefile.am): Likewise.
88612         * modules/argmatch (Makefile.am): Likewise.
88613         * modules/argz (Makefile.am): Likewise.
88614         * modules/atexit (Makefile.am): Likewise.
88615         * modules/backupfile (Makefile.am): Likewise.
88616         * modules/c-strtod (Makefile.am): Likewise.
88617         * modules/c-strtold (Makefile.am): Likewise.
88618         * modules/calloc (Makefile.am): Likewise.
88619         * modules/canon-host (Makefile.am): Likewise.
88620         * modules/canonicalize (Makefile.am): Likewise.
88621         * modules/chdir-long (Makefile.am): Likewise.
88622         * modules/chdir-safer (Makefile.am): Likewise.
88623         * modules/check-version (Makefile.am): Likewise.
88624         * modules/chown (Makefile.am): Likewise.
88625         * modules/cloexec (Makefile.am): Likewise.
88626         * modules/close-stream (Makefile.am): Likewise.
88627         * modules/closeout (Makefile.am): Likewise.
88628         * modules/crc (Makefile.am): Likewise.
88629         * modules/cycle-check (Makefile.am): Likewise.
88630         * modules/des (Makefile.am): Likewise.
88631         * modules/dirfd (Makefile.am): Likewise.
88632         * modules/dirname (Makefile.am): Likewise.
88633         * modules/dup2 (Makefile.am): Likewise.
88634         * modules/euidaccess (Makefile.am): Likewise.
88635         * modules/exclude (Makefile.am): Likewise.
88636         * modules/exitfail (Makefile.am): Likewise.
88637         * modules/fcntl-safer (Makefile.am): Likewise.
88638         * modules/file-type (Makefile.am): Likewise.
88639         * modules/fileblocks (Makefile.am): Likewise.
88640         * modules/filemode (Makefile.am): Likewise.
88641         * modules/filenamecat (Makefile.am): Likewise.
88642         * modules/fnmatch (Makefile.am): Likewise.
88643         * modules/fopen-safer (Makefile.am): Likewise.
88644         * modules/fpending (Makefile.am): Likewise.
88645         * modules/fprintftime (Makefile.am): Likewise.
88646         * modules/free (Makefile.am): Likewise.
88647         * modules/fsusage (Makefile.am): Likewise.
88648         * modules/ftruncate (Makefile.am): Likewise.
88649         * modules/fts (Makefile.am): Likewise.
88650         * modules/gc (Makefile.am): Likewise.
88651         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
88652         * modules/getaddrinfo (Makefile.am): Likewise.
88653         * modules/getcwd (Makefile.am): Likewise.
88654         * modules/getdelim (Makefile.am): Likewise.
88655         * modules/getdomainname (Makefile.am): Likewise.
88656         * modules/getgroups (Makefile.am): Likewise.
88657         * modules/gethostname (Makefile.am): Likewise.
88658         * modules/gethrxtime (Makefile.am): Likewise.
88659         * modules/getline (Makefile.am): Likewise.
88660         * modules/getloadavg (Makefile.am): Likewise.
88661         * modules/getlogin_r (Makefile.am): Likewise.
88662         * modules/getopt (Makefile.am): Likewise.
88663         * modules/getpass (Makefile.am): Likewise.
88664         * modules/getpass-gnu (Makefile.am): Likewise.
88665         * modules/getsubopt (Makefile.am): Likewise.
88666         * modules/gettime (Makefile.am): Likewise.
88667         * modules/gettimeofday (Makefile.am): Likewise.
88668         * modules/getugroups (Makefile.am): Likewise.
88669         * modules/getusershell (Makefile.am): Likewise.
88670         * modules/glob (Makefile.am): Likewise.
88671         * modules/group-member (Makefile.am): Likewise.
88672         * modules/hard-locale (Makefile.am): Likewise.
88673         * modules/hash (Makefile.am): Likewise.
88674         * modules/hmac-md5 (Makefile.am): Likewise.
88675         * modules/hmac-sha1 (Makefile.am): Likewise.
88676         * modules/human (Makefile.am): Likewise.
88677         * modules/idcache (Makefile.am): Likewise.
88678         * modules/imaxabs (Makefile.am): Likewise.
88679         * modules/imaxdiv (Makefile.am): Likewise.
88680         * modules/inet_ntop (Makefile.am): Likewise.
88681         * modules/inet_pton (Makefile.am): Likewise.
88682         * modules/inttostr (Makefile.am): Likewise.
88683         * modules/isapipe (Makefile.am): Likewise.
88684         * modules/lchown (Makefile.am): Likewise.
88685         * modules/long-options (Makefile.am): Likewise.
88686         * modules/lstat (Makefile.am): Likewise.
88687         * modules/malloc (Makefile.am): Likewise.
88688         * modules/mathl (Makefile.am): Likewise.
88689         * modules/mbchar (Makefile.am): Likewise.
88690         * modules/md2 (Makefile.am): Likewise.
88691         * modules/md4 (Makefile.am): Likewise.
88692         * modules/md5 (Makefile.am): Likewise.
88693         * modules/memcasecmp (Makefile.am): Likewise.
88694         * modules/memchr (Makefile.am): Likewise.
88695         * modules/memcmp (Makefile.am): Likewise.
88696         * modules/memcoll (Makefile.am): Likewise.
88697         * modules/memcpy (Makefile.am): Likewise.
88698         * modules/memmem (Makefile.am): Likewise.
88699         * modules/memmove (Makefile.am): Likewise.
88700         * modules/mempcpy (Makefile.am): Likewise.
88701         * modules/memrchr (Makefile.am): Likewise.
88702         * modules/memset (Makefile.am): Likewise.
88703         * modules/memxor (Makefile.am): Likewise.
88704         * modules/mkancesdirs (Makefile.am): Likewise.
88705         * modules/mkdir (Makefile.am): Likewise.
88706         * modules/mkdir-p (Makefile.am): Likewise.
88707         * modules/mkdtemp (Makefile.am): Likewise.
88708         * modules/mkstemp (Makefile.am): Likewise.
88709         * modules/mktime (Makefile.am): Likewise.
88710         * modules/modechange (Makefile.am): Likewise.
88711         * modules/mountlist (Makefile.am): Likewise.
88712         * modules/nanosleep (Makefile.am): Likewise.
88713         * modules/openat (Makefile.am): Likewise.
88714         * modules/pagealign_alloc (Makefile.am): Likewise.
88715         * modules/physmem (Makefile.am): Likewise.
88716         * modules/poll (Makefile.am): Likewise.
88717         * modules/posixtm (Makefile.am): Likewise.
88718         * modules/posixver (Makefile.am): Likewise.
88719         * modules/putenv (Makefile.am): Likewise.
88720         * modules/quote (Makefile.am): Likewise.
88721         * modules/quotearg (Makefile.am): Likewise.
88722         * modules/raise (Makefile.am): Likewise.
88723         * modules/read-file (Makefile.am): Likewise.
88724         * modules/readline (Makefile.am): Likewise.
88725         * modules/readlink (Makefile.am): Likewise.
88726         * modules/readtokens (Makefile.am): Likewise.
88727         * modules/readutmp (Makefile.am): Likewise.
88728         * modules/realloc (Makefile.am): Likewise.
88729         * modules/regex (Makefile.am): Likewise.
88730         * modules/rename (Makefile.am): Likewise.
88731         * modules/rename-dest-slash (Makefile.am): Likewise.
88732         * modules/rijndael (Makefile.am): Likewise.
88733         * modules/rmdir (Makefile.am): Likewise.
88734         * modules/rpmatch (Makefile.am): Likewise.
88735         * modules/safe-read (Makefile.am): Likewise.
88736         * modules/safe-write (Makefile.am): Likewise.
88737         * modules/same (Makefile.am): Likewise.
88738         * modules/save-cwd (Makefile.am): Likewise.
88739         * modules/savedir (Makefile.am): Likewise.
88740         * modules/setenv (Makefile.am): Likewise.
88741         * modules/settime (Makefile.am): Likewise.
88742         * modules/sha1 (Makefile.am): Likewise.
88743         * modules/sig2str (Makefile.am): Likewise.
88744         * modules/snprintf (Makefile.am): Likewise.
88745         * modules/stdlib-safer (Makefile.am): Likewise.
88746         * modules/stpcpy (Makefile.am): Likewise.
88747         * modules/stpncpy (Makefile.am): Likewise.
88748         * modules/strcase (Makefile.am): Likewise.
88749         * modules/strcasestr (Makefile.am): Likewise.
88750         * modules/strchrnul (Makefile.am): Likewise.
88751         * modules/strcspn (Makefile.am): Likewise.
88752         * modules/strdup (Makefile.am): Likewise.
88753         * modules/strerror (Makefile.am): Likewise.
88754         * modules/strftime (Makefile.am): Likewise.
88755         * modules/strndup (Makefile.am): Likewise.
88756         * modules/strnlen (Makefile.am): Likewise.
88757         * modules/strpbrk (Makefile.am): Likewise.
88758         * modules/strsep (Makefile.am): Likewise.
88759         * modules/strstr (Makefile.am): Likewise.
88760         * modules/strtod (Makefile.am): Likewise.
88761         * modules/strtoimax (Makefile.am): Likewise.
88762         * modules/strtok_r (Makefile.am): Likewise.
88763         * modules/strtol (Makefile.am): Likewise.
88764         * modules/strtoll (Makefile.am): Likewise.
88765         * modules/strtoul (Makefile.am): Likewise.
88766         * modules/strtoull (Makefile.am): Likewise.
88767         * modules/strtoumax (Makefile.am): Likewise.
88768         * modules/strverscmp (Makefile.am): Likewise.
88769         * modules/time_r (Makefile.am): Likewise.
88770         * modules/timegm (Makefile.am): Likewise.
88771         * modules/tmpfile-safer (Makefile.am): Likewise.
88772         * modules/unistd-safer (Makefile.am): Likewise.
88773         * modules/unlinkdir (Makefile.am): Likewise.
88774         * modules/userspec (Makefile.am): Likewise.
88775         * modules/utime (Makefile.am): Likewise.
88776         * modules/utimecmp (Makefile.am): Likewise.
88777         * modules/utimens (Makefile.am): Likewise.
88778         * modules/vasnprintf (Makefile.am): Likewise.
88779         * modules/vasprintf (Makefile.am): Likewise.
88780         * modules/vsnprintf (Makefile.am): Likewise.
88781         * modules/xalloc (Makefile.am): Likewise.
88782         * modules/xgetcwd (Makefile.am): Likewise.
88783         * modules/xnanosleep (Makefile.am): Likewise.
88784         * modules/xreadlink (Makefile.am): Likewise.
88785         * modules/xstrtod (Makefile.am): Likewise.
88786         * modules/xstrtol (Makefile.am): Likewise.
88787         * modules/xstrtold (Makefile.am): Likewise.
88788         * modules/yesno (Makefile.am): Likewise.
88790 2006-10-12  Jim Meyering  <jim@meyering.net>
88792         * m4/getloadavg.m4: Revert the change below.
88794         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
88795         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
88796         fail with a symlink, which is what coreutils' ./bootstrap now
88797         creates by default.
88799 2006-10-12  Bruno Haible  <bruno@clisp.org>
88801         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
88802         mingw.
88803         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
88804         MSVC and mingw explicitly.
88806 2006-10-11  Simon Josefsson  <jas@extundo.com>
88807             Bruno Haible  <bruno@clisp.org>
88809         Add support for multiple gnulib-tool invocations in the scope of a
88810         single configure.ac file.
88811         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
88812         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
88813         with the same contents as the _LIBADD variable.
88814         (func_emit_initmacro_start, func_emit_initmacro_end,
88815         func_emit_initmacro_done): New functions.
88816         (func_import, func_create_testdir): Invoke them. Allow the identifiers
88817         gl_LIBOBJS and gl_LTLIBOBJS.
88819 2006-10-11  Bruno Haible  <bruno@clisp.org>
88821         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
88822         (func_create_testdir): Don't create po/Makefile.am, don't invoke
88823         autoreconf. Instead, invoke autopoint explicitly but move back the
88824         *.m4 files from gnulib.
88826 2006-10-11  Bruno Haible  <bruno@clisp.org>
88828         * gnulib-tool (func_usage): Make module names after --create-testdir
88829         optional.
88830         (func_create_testdir): If no module was specified, use nearly all
88831         modules.
88833 2006-10-12  Jim Meyering  <jim@meyering.net>
88835         Big performance improvement for fts-based tools that use FTS_NOSTAT.
88836         Avoid spurious inode-mismatch problems on non-POSIX file systems.
88837         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
88838         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
88839         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
88840         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
88841         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
88842         (fts_set_stat_required): New function.
88843         (fts_open): Defer the calls to fts_stat, if possible or requested.
88844         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
88845         into fts_stat itself.
88846         (fts_read): Perform any required (deferred) fts_stat call.
88847         (fts_build): Likewise, for the directory we're about to open and read.
88848         In the readdir loop, carefully decide whether each entry will require
88849         an eventual call to fts_stat, using dirent.d_type info if available.
88850         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
88851         a command line argument into this function.  Update all callers.
88852         Map a return value of FTS_DOT to FTS_D for a command line argument.
88853         * modules/fts (Depends-on): Add d-type.  Alphabetize.
88854         Thanks to Miklos Szeredi for his tenacity and for the initial
88855         bug report about "find" failing on a FUSE-based file system.
88857         * lib/fts.c (fts_open): Use consistent indentation.
88859 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
88861         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
88862         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
88863         reported by Jim Meyering.  All uses of cache variables renamed
88864         to match Autoconf's.
88865         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
88866         the other one.
88868         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
88869         Fix misspelling in diagnostic.
88871 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
88873         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
88874         defined.  Problem reported by Matthew Woehlke.
88876         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
88877         Add support for Tandem NonStop R series.
88878         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
88879         Use new macro.
88881         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
88882         (has_trailing_slash): Omit size arg; all callers changed.
88883         Omit 'inline', since it doesn't help performance and we'd
88884         need to configure it.
88885         Don't count //, ///, etc. as having a trailing slash.
88886         As a side effect, this removes a C99ism reported by Matthew Woehlke.
88887         (rpl_rename_dest_slash): On failure, use rename's errno rather
88888         than (in some cases) an incorrect or junk errno.
88889         Simplify code by removing need to compute length; this does
88890         cause it to make two passes instead of one over the file name,
88891         but it's worth it.
88893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
88894         change, since Autoconf's version may no longer be appropriate now
88895         that we are using CVS Autoconf's version.  Add support for Tandem.
88897 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
88898             Bruno Haible  <bruno@clisp.org>
88900         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
88901         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
88902         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
88903         gl_AC_TYPE_LONG_LONG.
88905         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
88906         instead of HAVE_LONG_LONG.
88907         * lib/printf-args.c (printf_fetchargs): Likewise.
88908         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
88909         * lib/vasnprintf.c (VASNPRINTF): Likewise.
88910         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
88911         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
88912         gl_AC_TYPE_LONG_LONG.
88914 2006-10-11  Bruno Haible  <bruno@clisp.org>
88916         * m4/longlong.m4: Add comments.
88917         * m4/ulonglong.m4: Likewise.
88919 2006-10-10  Bruno Haible  <bruno@clisp.org>
88921         Make it possible to #define stpcpy, strdup to aliases.
88922         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
88923         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
88925 2006-10-10  Bruno Haible  <bruno@clisp.org>
88927         Make it possible to #define gcd to an alias.
88928         * lib/gcd.c: Include config.h.
88930 2006-10-10  Bruno Haible  <bruno@clisp.org>
88932         Make it possible to #define c_isascii to an alias.
88933         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
88934         defined. Undefine the macros before defining them, to avoid gcc
88935         warnings.
88936         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
88937         define NO_C_CTYPE_MACROS early.
88939 2006-10-10  Bruno Haible  <bruno@clisp.org>
88941         Make it possible to #define set_program_name to an alias.
88942         * lib/progname.c: Don't undefine set_program_name; instead, undefine
88943         ENABLE_RELOCATABLE early.
88945 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88947         Port to Tandem NSK OSS, which has 64-bit signed int but at most
88948         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
88949         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
88950         More generally, don't assume that 64-bit signed int is available
88951         if unsigned int is, and vice versa.
88952         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
88953         unsigned symbols, not on their signed counterparts.
88954         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
88955         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
88956         (UINT64_C, UINTMAX_C):
88957         Likewise.
88958         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
88959         unsigned counterparts.
88960         (Have_long_long, Unsigned): New macros.
88961         (Int): Renamed from INT.
88962         (strtoimax): Use the new macros.
88963         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
88964         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
88965         * modules/inttypes (inttypes.h): Substitute
88966         HAVE_UNSIGNED_LONG_LONG_INT.
88967         * modules/stdint (stdint.h): Likewise.
88968         (Files): Add m4/ulonglong.m4.
88970 2006-10-10  Bruno Haible  <bruno@clisp.org>
88972         Fix a gcc -Wshadow warning.
88973         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
88974         to 'bucket'.
88975         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
88976         gl_linked_indexof_from_to): Likewise.
88977         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
88978         Likewise.
88979         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
88980         Likewise.
88981         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
88982         Reported by Eric Blake.
88984 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
88986         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
88987         for NetBSD.  Problem reported by Bruno Haible.
88989 2006-10-09  Jim Meyering  <jim@meyering.net>
88991         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
88992         Patch from Bruno Haible.
88994 2006-10-09  Jim Meyering  <jim@meyering.net>
88996         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
88997         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
88998         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
89000 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89002         Don't include <config.h> twice; this doesn't work in some cases,
89003         e.g., when config.h has "#define intmax_t long long int" and
89004         we include <config.h>, <inttypes.h>, <config.h> in that order.
89005         Problem reported by Matthew Woehlke in:
89006         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
89007         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
89008         * lib/fts-cycle.c: Don't include config.h.
89009         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
89010         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
89011         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
89012         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
89013         inttypes.h.
89014         * lib/xstrtoumax.c: Likewise.
89015         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
89016         __strtol and the like, so that this module is more like its siblings.
89017         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
89018         Remove; no longer needed now that we assume gnulib inttypes.h.
89020 2006-10-08  Bruno Haible  <bruno@clisp.org>
89022         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
89023         option.
89025 2006-10-07  Jim Meyering  <jim@meyering.net>
89027         * modules/inttypes (inttypes.h): Revert what seems to have been
89028         an inadvertent part of today's change: use "|", not "/" in the
89029         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
89031 2006-10-07  Bruno Haible  <bruno@clisp.org>
89033         * modules/sublist: New file.
89035 2006-10-07  Bruno Haible  <bruno@clisp.org>
89037         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
89038         * modules/argz (argz.h): Likewise.
89039         * modules/arpa_inet (arpa/inet.h): Likewise.
89040         * modules/byteswap (byteswap.h): Likewise.
89041         * modules/configmake (configmake.h): Likewise.
89042         * modules/fcntl (fcntl.h): Likewise.
89043         * modules/fnmatch (fnmatch.h): Likewise.
89044         * modules/getopt (getopt.h): Likewise.
89045         * modules/glob (glob.h): Likewise.
89046         * modules/inttypes (inttypes.h): Likewise.
89047         * modules/netinet_in (netinet/in.h): Likewise.
89048         * modules/poll (poll.h): Likewise.
89049         * modules/stdbool (stdbool.h): Likewise.
89050         * modules/stdint (stdint.h): Likewise.
89051         * modules/sys_select (sys/select.h): Likewise.
89052         * modules/sys_socket (sys/socket.h): Likewise.
89053         * modules/sys_stat (sys/stat.h): Likewise.
89054         * modules/sysexits (sysexits.h): Likewise.
89055         * modules/unistd (unistd.h): Likewise.
89056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89057         Add a "DO NOT EDIT" comment to the generated file.
89058         (func_import): Likewise for gnulib-comp.m4.
89060 2006-10-07  Bruno Haible  <bruno@clisp.org>
89062         * lib/gl_sublist.h: New file.
89063         * lib/gl_sublist.c: New file.
89065 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89067         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
89068         name (relative to the original working directory) and the file
89069         name component (relative to the temporary working directory).  All
89070         callers changed.
89071         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
89072         * lib/mkdir-p.c (make_dir_parents): Likewise.
89073         * lib/mkdir-p.h (make_dir_parents): Likewise.
89075 2006-10-06  Eric Blake  <ebb9@byu.net>
89077         Define several macros for use by the clean-temp module.
89078         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
89079         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
89080         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
89082         * lib/clean-temp.h (close_stream_temp): New declaration.
89083         * lib/clean-temp.c (includes): Pull in headers according to what
89084         other modules are in use.
89085         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
89087 2006-10-06  Bruno Haible  <bruno@clisp.org>
89089         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
89090         instead of fopen, fwriteerror.
89092 2006-10-06  Bruno Haible  <bruno@clisp.org>
89094         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
89095         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
89096         int.
89097         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
89098         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
89099         Return an error indicator.
89100         Suggested by Eric Blake.
89102 2006-10-06  Bruno Haible  <bruno@clisp.org>
89104         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
89105         Reported by Eric Blake.
89107 2006-10-06  Bruno Haible  <bruno@clisp.org>
89109         * modules/closeout (Description): Mention stderr too.
89111 2006-10-06  Bruno Haible  <bruno@clisp.org>
89112         and Paul Eggert  <eggert@cs.ucla.edu>
89114         * lib/closeout.c (close_stdout): Also close stderr.
89115         * lib/closeout.h: Update comment.
89117 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
89119         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
89120         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
89121         * lib/dirchownmod.c: Include lchown.h.
89122         * lib/lchown.c: Don't include files that lchown.h now includes.
89123         Don't declare chown, since lchown.h now does that.
89124         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
89125         (lchown): Define to rpl_chown if lchown is declared but
89126         does not exist.  Declare using a prototype if lchown is not
89127         declared.  Add a copyright notice.
89128         * lib/mkstemp.h: Include <unistd.h>.
89129         * lib/openat.c: Include lchown.h.
89131         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
89132         we now test for that separately.
89133         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
89134         rather than O_NOFOLLOW, when testing whether it's possible to
89135         avoid a race condition reliably.
89136         * lib/savewd.c (savewd_chdir): Likewise.
89138         Remove macros that are no longer needed now that stdint.h is
89139         reliable.
89140         * lib/fsusage.c (UINTMAX_MAX): Remove.
89141         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
89142         * lib/utimecmp.c (SIZE_MAX): Remove.
89144         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
89146         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
89147         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
89148         O_NOATIME works.
89150 2006-10-05  Bruno Haible  <bruno@clisp.org>
89152         * lib/gl_list.h (gl_sortedlist_search_from_to,
89153         gl_sortedlist_indexof_from_to): New declarations.
89154         (gl_list_implementation): New fields sortedlist_search_from_to,
89155         sortedlist_indexof_from_to.
89156         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
89157         inline functions.
89158         * lib/gl_list.c (gl_sortedlist_search_from_to,
89159         gl_sortedlist_indexof_from_to): New functions.
89160         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
89161         function.
89162         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
89163         (gl_array_sortedlist_search_from_to): New function.
89164         (gl_array_list_implementation): Update.
89165         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
89166         function.
89167         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
89168         (gl_carray_sortedlist_search_from_to): New function.
89169         (gl_carray_list_implementation): Update.
89170         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
89171         gl_linked_sortedlist_indexof_from_to): New functions.
89172         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
89173         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
89174         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
89175         gl_tree_sortedlist_indexof_from_to): New functions.
89176         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
89177         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
89178         Update.
89179         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
89180         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
89181         Update.
89183 2006-10-05  Bruno Haible  <bruno@clisp.org>
89185         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
89186         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
89187         (struct gl_list_implementation): Add fields search_from_to,
89188         indexof_from_to. Remove fields search, indexof.
89189         (gl_list_search): Use the search_from_to method.
89190         (gl_list_search_from, gl_list_search_from_to): New functions.
89191         (gl_list_indexof): Use the indexof_from_to method.
89192         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
89193         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
89194         (gl_list_search_from, gl_list_search_from_to): New functions.
89195         (gl_list_indexof): Use the indexof_from_to method.
89196         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
89197         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
89198         gl_array_indexof. Add start_index, end_index arguments.
89199         (gl_array_search_from_to): Renamed from gl_array_search. Add
89200         start_index, end_index arguments.
89201         (gl_array_remove, gl_array_list_implementation): Update.
89202         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
89203         gl_carray_indexof. Add start_index, end_index arguments.
89204         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
89205         start_index, end_index arguments.
89206         (gl_carray_remove, gl_carray_list_implementation): Update.
89207         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
89208         gl_linked_search. Add start_index, end_index arguments.
89209         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
89210         start_index, end_index arguments.
89211         (gl_linked_remove): Update.
89212         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
89213         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
89214         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
89215         field to 'size_t'.
89216         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
89217         gl_tree_search. Add start_index, end_index arguments.
89218         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
89219         start_index, end_index arguments.
89220         (gl_tree_remove): Update.
89221         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
89222         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
89223         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
89224         function.
89225         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
89226         gl_tree_search. Add start_index, end_index arguments.
89227         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
89228         start_index, end_index arguments.
89229         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
89230         Update.
89231         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
89233 2006-10-05  Bruno Haible  <bruno@clisp.org>
89235         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
89237         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
89238         fwriteerror_temp): New declarations.
89239         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
89240         (descriptors): New variable.
89241         (cleanup): First, close the descriptors.
89242         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
89243         fclose_temp, fwriteerror_temp): New functions.
89245 2006-10-04  Jim Meyering  <jim@meyering.net>
89247         * lib/fts.c (fts_open): Tiny comment change.
89249 2006-10-04  Bruno Haible  <bruno@clisp.org>
89251         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
89252         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
89253         gl_LOCK_BODY.
89254         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
89255         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
89256         gl_LOCK_EARLY_BODY.
89257         (gl_LOCK): Require gl_LOCK_BODY.
89259 2006-10-04  Bruno Haible  <bruno@clisp.org>
89261         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
89262         (gl_oset_search_atleast): New declaration.
89263         (struct gl_oset_implementation): Add field 'search_atleast'.
89264         (gl_oset_search_atleast): New inline function.
89265         * lib/gl_oset.c (gl_oset_search_atleast): New function.
89266         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
89267         (gl_array_oset_implementation): Update.
89268         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
89269         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
89270         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
89272 2006-10-04  Bruno Haible  <bruno@clisp.org>
89274         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
89276 2006-10-03  Bruno Haible  <bruno@clisp.org>
89278         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
89279         from gl_avltreehash_list_implementation.
89281 2006-10-03  Bruno Haible  <bruno@clisp.org>
89283         * lib/gl_oset.c (gl_oset_add): Fix return type.
89285 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
89287         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
89289 2006-10-02  Eric Blake  <ebb9@byu.net>
89291         * modules/strnlen (Depends-on): Add extensions.
89293 2006-10-02  Eric Blake  <ebb9@byu.net>
89295         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
89296         definition in 2.60+.
89298 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
89300         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
89301         checks.
89303 2006-10-02  Bruno Haible  <bruno@clisp.org>
89305         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
89306         to the AUTOMAKE_OPTIONS.
89307         Reported by Jim Meyering.
89309 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
89311         Work around bug in Solaris 10 /proc file system:
89312         /proc/self/fd/NNN/.. isn't the parent directory of
89313         the directory whose file descriptor is NNN.  This needs to
89314         be worked around at run time, not compile time, since a
89315         program might be built on Solaris 8, where things work, and
89316         run on Solaris 10.
89317         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
89318         to use the following interface instead:
89319         (OPENAT_BUFFER_SIZE): New macro.
89320         (openat_proc_name): New function.
89321         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
89322         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
89323         Likewise.
89324         * lib/openat-proc.c: New file.
89325         * modules/openat (Files): Add lib/openat-proc.c.
89326         (Depends-on): Add same-inode, stdbool.
89327         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
89329 2006-09-29  Bruno Haible  <bruno@clisp.org>
89331         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
89332         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
89333         argument. Set stdout_closed before testing for ferror, not after.
89334         (fwriteerror, fwriteerror_no_ebadf): New functions.
89336 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89338         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
89340 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
89342         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
89343         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
89345 2006-09-28  Jim Meyering  <jim@meyering.net>
89347         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
89348         Include <unistd.h>.
89350 2006-09-28  Bruno Haible  <bruno@clisp.org>
89352         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
89353         * modules/linkedhash-list (Depends-on): Likewise.
89354         * modules/rbtreehash-list (Depends-on): Likewise.
89356 2006-09-28  Bruno Haible  <bruno@clisp.org>
89358         * lib/strndup.h: Simplify the redefinition of strndup.
89359         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
89360         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
89362 2006-09-28  Bruno Haible  <bruno@clisp.org>
89364         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
89365         * lib/gl_linkedhash_list.c: Likewise.
89366         * lib/gl_rbtreehash_list.c: Likewise.
89368 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
89370         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
89371         getaddrinfo.
89373         * lib/__fpending.h: Don't include <stdio_ext.h> unless
89374         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
89375         it causes <stdio_ext.h> to cause a compile-time error.
89376         Problem reported by Nelson H. F. Beebe.
89377         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
89378         of HAVE_DECL___PENDING.
89380         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
89381         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
89382         declaration.
89384 2006-09-27  Jim Meyering  <jim@meyering.net>
89386         This file could end up with a definition for a function
89387         named __strndup, rather than rpl_strndup on a system with
89388         incomplete weak_alias support.
89389         * lib/strndup.c (strndup): Rename from __strndup.
89390         Remove #defines that used to map __strndup to strndup.
89391         Don't use K&R prototypes.
89392         Remove LIBC-related code, since this file is not sync'd with glibc.
89393         * lib/strndup.h: Revamp, accordingly.
89394         * m4/strndup.m4: Modernize.
89396 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
89398         * modules/savewd (Depends-on): Add 'raise'.
89399         * lib/savewd.c: Include <signal.h>, for 'raise'.
89401 2006-09-26  Jim Meyering  <jim@meyering.net>
89403         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
89404         when we detect Darwin 8.7.0's acl_get_file bug.
89405         Rearrange to perform the new (below) run-test while $LIBS
89406         contains any acl-related library.  Set USE_ACL at the end.
89407         (gl_ACL_GET_FILE): New function.
89409 2006-09-26  Eric Blake  <ebb9@byu.net>
89411         * lib/verror.c: Include <config.h> unconditionally.
89413 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
89415         * modules/clock-time (Maintainer): Add self.
89416         * modules/getlogin_r (Depends-on): Add extensions.
89418 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89420         * modules/clock-time: New module.
89421         * modules/nanosleep (Depends-on): Add clock-time.
89422         * modules/gethrxtime (Depends-on): Likewise.
89423         * modules/gettime (Depends-on): Likewise.
89424         * modules/settime (Depends-on): Likewise.
89426         * modules/fts-lgpl: Depend on openat.
89427         * modules/mkancesdirs: Depend on savewd.
89428         * modules/mkdir-p: Likewise.
89430 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89432         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
89434         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
89435         `gl_have_arbitrary_file_name_length_limit' to
89436         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
89437         actually works between configure runs.
89439 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89440             Bruno Haible  <bruno@clisp.org>
89442         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
89444 2006-09-25  Jim Meyering  <jim@meyering.net>
89446         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
89447         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
89449 2006-09-25  Eric Blake  <ebb9@byu.net>
89451         * gnulib-tool (func_import, func_create_testdir): Fix typos in
89452         exec's in 2006-09-18 patch when shuffling fds.
89454 2006-09-25  Bruno Haible  <bruno@clisp.org>
89456         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
89457         Reported by Jim Meyering.
89459 2006-09-24  Jim Meyering  <jim@meyering.net>
89461         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
89462         compare a pointer against a literal "0".  That caused failures with
89463         at least HP-UX's hpcc.
89465 2006-09-22  Simon Josefsson  <jas@extundo.com>
89467         * modules/gc-sha1:
89468         * modules/gc-md4:
89469         * modules/gc-hmac-sha1:
89470         * modules/gc-hmac-md5:
89471         * modules/gc-des:
89472         * modules/gc-arcfour: Distribute more files.
89474 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89476         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
89477         (gl_linked_iterator_from_to): Initialize struct completely.
89478         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
89479         (gl_tree_iterator_from_to): Likewise
89480         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
89481         * lib/gl_array_list.c [lint] (gl_array_iterator)
89482         (gl_array_iterator_from_to): Likewise.
89483         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
89484         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
89485         (gl_carray_iterator_from_to): Likewise.
89487         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
89488         * lib/md4.c (md4_process_block): Remove unused variable.
89489         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
89490         parentheses for clarity.
89492 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89494         * modules/bison-i18n (Depends-on): Add gettext.
89496 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89498         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
89499         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
89500         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
89501         also add missing comma that caused broken test.
89502         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
89503         stdlib.h, for `abort'.
89504         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
89505         variables.
89506         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
89507         include unistd.h if present, for `rmdir'.
89508         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
89509         variables.
89510         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
89511         in the process include standard headers for prototypes.
89512         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
89513         gets declared on GNU/Linux.
89514         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
89515         unistd.h, for `rmdir'.
89516         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
89518         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
89519         always true.
89520         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
89522         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
89524 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89526         * gnulib-tool (func_version): Create output all at once.  This
89527         may help avoid triggering unnecessary SIGPIPEs, and at any
89528         rate it doesn't hurt.
89530 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89531             Bruno Haible  <bruno@clisp.org>
89533         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
89534         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89535         * m4/signed.m4 (bh_C_SIGNED): Likewise.
89537         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
89538         (gl_FUNC_VASPRINTF): Invoke it.
89540 2006-09-22  Bruno Haible  <bruno@clisp.org>
89542         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
89543         getloadavg.c as first argument.
89545 2006-09-22  Bruno Haible  <bruno@clisp.org>
89547         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
89548         at the beginning of the gl_INIT macro.
89549         * modules/getloadavg (configure.ac): Pass $gl_source_base to
89550         gl_GETLOADAVG.
89552 2006-09-22  Bruno Haible  <bruno@clisp.org>
89554         * gnulib-tool (func_create_megatestdir): Don't include the config-h
89555         module.
89556         Suggested by Ralf Wildenhues.
89558 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89560         Import this patch from libc:
89562         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
89564         * lib/regex_internal.c (re_string_reconstruct): Handle
89565         offset < pstr->valid_raw_len && pstr->offsets_needed case.
89566         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
89567         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
89568         re_string_context_at.
89570         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
89571         now requires it.
89572         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
89573         gl_REGEX now does it for us.
89574         (gl_REGEX): Add test taken from
89575         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
89577         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
89578         Check that large offsets work.  Modernize Autoconf usages.
89579         Prefer "yes" to mean a good thing rather than a bad.
89580         Don't put "#define mkstemp" in config.h, as this might interfere
89581         with standard system headers that "#define mkstemp mkstemp64".
89583         * modules/mkstemp (Depends-on): Add extensions, so that
89584         mkstemp is visible on some platforms.
89585         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
89586         (Include): Change to "mkstemp.h" from <stdlib.h>.
89587         (Files): Add mkstemp.h.
89589         * lib/mkstemp.h: New file, since some standard headers
89590         #define mkstemp.
89591         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
89592         Include "mkstemp.h".
89593         Make the _LIBC code resemble glibc original more,
89594         e.g., use K&R style.
89595         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
89596         (mkstemp): Remove, since mkstemp.h does this for us.
89597         * lib/stdlib--.h: Include mkstemp.h.
89599         Import this patch from libc:
89601         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
89603         * lib/tempname.c (__gen_tempname): Change attempts_min
89604         into a macro.  Use preprocessor to decide how to initialize
89605         attempts [Coverity CID 67].
89607 2006-09-20  Bruno Haible  <bruno@clisp.org>
89609         * lib/mkdtemp.c: Import from libc.
89610         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
89611                 * sysdeps/posix/tempname.c (__gen_tempname): Change
89612                 attempts_min into a macro.  Use preprocessor to decide how to
89613                 initialize attempts [Coverity CID 67].
89614         2001-11-27  Paul Eggert  <eggert@twinsun.com>
89615                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
89616                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
89618 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89620         * gnulib-tool (func_exit): New function, to allow to pass the
89621         exit status portably through the trap.  Use everywhere.
89622         (--help, --version): Signal a write error.
89623         (trap): catch SIGPIPE, for write errors.
89624         Exit at the end of the trap, with the correct exit status.
89626 2006-09-19  Karl Berry  <karl@gnu.org>
89628         * doc/gnulib.texi: note about the license texinfo files.
89630 2006-09-19  Eric Blake  <ebb9@byu.net>
89632         * gnulib-tool: Avoid space-tab.
89634 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
89636         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
89637         that prevented coreutils 6.1 from building.  Problem reported
89638         by Petter Reinholdtsen.
89640 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
89642         * gnulib-tool (avoidlist): Fix typo that broke options like
89643         --avoid=lock that are used by coreutils bootstrap.
89645 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
89647         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
89648         more systematically.
89650 2006-09-18  Jim Meyering  <jim@meyering.net>
89652         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
89654 2006-09-18  Bruno Haible  <bruno@clisp.org>
89656         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
89658 2006-09-18  Bruno Haible  <bruno@clisp.org>
89660         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
89661         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
89662         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
89663         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
89664         * m4/gettext.m4: Require autoconf >= 2.52.
89665         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
89666         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
89667         of gl_cv_header_inttypes_h.
89669 2006-09-18  Bruno Haible  <bruno@clisp.org>
89671         * lib/javaversion.c: Include configmake.h.
89673 2006-09-18  Bruno Haible  <bruno@clisp.org>
89675         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
89676         avoid that the while loops be executed in a subshell.
89678 2006-09-18  Bruno Haible  <bruno@clisp.org>
89680         * MODULES.html.sh (func_module): Break long lines.
89681         Suggested by Bruce Korb <bkorb@gnu.org>.
89683 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89685         Speed up by a factor of 1.12.
89686         * gnulib-tool (nl): New variable.
89687         (func_import): Rewrite include directive extraction to only read each
89688         directive once.
89690 2006-09-17  Bruno Haible  <bruno@clisp.org>
89692         * modules/javaversion (Makefile.am): Remove DEFS setting.
89693         (Depends-on): Add configmake, for PKGDATADIR definition.
89695 2006-09-17  Bruno Haible  <bruno@clisp.org>
89697         * gnulib-tool (func_create_testdir): Rewrite all files at once.
89699 2006-09-17  Bruno Haible  <bruno@clisp.org>
89701         * gnulib-tool (func_append): New function, stolen from libtool.m4.
89702         (func_modules_transitive_closure, func_modules_add_dummy,
89703         func_modules_to_filelist, func_import, func_create_testdir,
89704         func_create_megatestdir, ...): Use it wherever possible.
89705         Suggested by Ralf Wildenhues.
89707 2006-09-16  Karl Berry  <karl@gnu.org>
89709         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
89710         to avoid sectioning errors.
89711         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
89712         [ifinfo]: blank line after @center-ed titles.
89713         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
89714         Spell FSF address consistently with others.
89715         (These changes approved by rms.)
89717 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89719         Speed up by a factor of 1.61.
89720         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
89721         already checked module names again.
89723 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89725         Speed up by a factor of 1.13.
89726         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
89727         for new_files, and the input to func_add_or_update.
89729 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89731         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
89732         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
89734 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
89736         * modules/mkancesdirs (Depends-on): Add fcntl.
89737         * modules/savewd: New file.
89738         * MODULES.html.sh (File system functions): Add savewd.
89740         * modules/configmake (Makefile.am): Add support for the
89741         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
89743 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
89745         * m4/savewd.m4: New file.
89747 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
89749         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
89750         (dirchownmod): New arg FD.  All callers changed.
89751         Use FD rather than opening the directory ourself, as opening is
89752         now the caller's responsibility.
89753         * lib/dirchownmod.h: Likewise.
89754         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
89755         hosts that require <sys/types.h> before <sys/stat.h>.  Include
89756         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
89757         (test_dir): Remove.
89758         (mkancesdirs): Return length of prefix of FILE that has already
89759         been made, or -2 if there is a child doing the work.  Redo
89760         algorithm so that it is O(N) rather than O(N**2).  Optimize away
89761         ".", and treat ".." specially since it might stray back into
89762         already-created areas.  Use a subprocess if necessary.  New arg
89763         WD; all users changed.  MAKE_DIR function should now return 1
89764         if it creates a directory that is not readable.  Return -2 if
89765         a child process is spun off.
89766         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
89767         Adjust signature to match code.
89768         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
89769         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
89770         all users changed.
89771         * lib/savewd.c, lib/savewd.h: New files.
89773 2006-09-15  Jim Meyering  <jim@meyering.net>
89775         * modules/rename-dest-slash: New module.
89776         * MODULES.html.sh (posix_compat): Add it here.
89778         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
89780 2006-09-15  Jim Meyering  <jim@meyering.net>
89782         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
89783         file.
89785         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
89787 2006-09-15  Jim Meyering  <jim@meyering.net>
89789         * lib/rename-dest-slash.c (has_trailing_slash): Use
89790         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
89791         (rpl_rename_dest_slash): Perform the cheaper trailing slash
89792         test before testing whether SRC is a directory.
89793         Suggestions from Bruno Haible.
89795         Avoid a warning about an unused variable.
89796         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
89797         into the #ifdef block where it's used.
89799         * lib/rename-dest-slash.c: New file.
89801 2006-09-14  Bruno Haible  <bruno@clisp.org>
89803         * lib/allocsa.c: Include <config.h> unconditionally.
89804         * lib/asnprintf.c: Likewise.
89805         * lib/asprintf.c: Likewise.
89806         * lib/c-strcasecmp.c: Likewise.
89807         * lib/c-strcasestr.c: Likewise.
89808         * lib/c-strncasecmp.c: Likewise.
89809         * lib/c-strstr.c: Likewise.
89810         * lib/classpath.c: Likewise.
89811         * lib/clean-temp.c: Likewise.
89812         * lib/concatpath.c: Likewise.
89813         * lib/copy-file.c: Likewise.
89814         * lib/csharpcomp.c: Likewise.
89815         * lib/csharpexec.c: Likewise.
89816         * lib/execute.c: Likewise.
89817         * lib/fatal-signal.c: Likewise.
89818         * lib/findprog.c: Likewise.
89819         * lib/fwriteerror.c: Likewise.
89820         * lib/gl_array_list.c: Likewise.
89821         * lib/gl_array_oset.c: Likewise.
89822         * lib/gl_avltree_list.c: Likewise.
89823         * lib/gl_avltree_oset.c: Likewise.
89824         * lib/gl_avltreehash_list.c: Likewise.
89825         * lib/gl_carray_list.c: Likewise.
89826         * lib/gl_linked_list.c: Likewise.
89827         * lib/gl_linkedhash_list.c: Likewise.
89828         * lib/gl_list.c: Likewise.
89829         * lib/gl_oset.c: Likewise.
89830         * lib/gl_rbtree_list.c: Likewise.
89831         * lib/gl_rbtree_oset.c: Likewise.
89832         * lib/gl_rbtreehash_list.c: Likewise.
89833         * lib/imaxabs.c: Likewise.
89834         * lib/imaxdiv.c: Likewise.
89835         * lib/javacomp.c: Likewise.
89836         * lib/javaexec.c: Likewise.
89837         * lib/javaversion.c: Likewise.
89838         * lib/linebreak.c: Likewise.
89839         * lib/localcharset.c: Likewise.
89840         * lib/lock.c: Likewise.
89841         * lib/mbchar.c: Likewise.
89842         * lib/mbswidth.c: Likewise.
89843         * lib/mkdtemp.c: Likewise.
89844         * lib/pipe.c: Likewise.
89845         * lib/printf-args.c: Likewise.
89846         * lib/printf-parse.c: Likewise.
89847         * lib/progname.c: Likewise.
89848         * lib/progreloc.c: Likewise.
89849         * lib/readlink.c: Likewise.
89850         * lib/sh-quote.c: Likewise.
89851         * lib/stpcpy.c: Likewise.
89852         * lib/stpncpy.c: Likewise.
89853         * lib/strcasecmp.c: Likewise.
89854         * lib/strcasestr.c: Likewise.
89855         * lib/strcspn.c: Likewise.
89856         * lib/striconv.c: Likewise.
89857         * lib/strncasecmp.c: Likewise.
89858         * lib/strnlen1.c: Likewise.
89859         * lib/strstr.c: Likewise.
89860         * lib/strtok_r.c: Likewise.
89861         * lib/tls.c: Likewise.
89862         * lib/tmpdir.c: Likewise.
89863         * lib/unicodeio.c: Likewise.
89864         * lib/unsetenv.c: Likewise.
89865         * lib/vasnprintf.c: Likewise.
89866         * lib/vasprintf.c: Likewise.
89867         * lib/wait-process.c: Likewise.
89868         * lib/xallocsa.c: Likewise.
89869         * lib/xsetenv.c: Likewise.
89870         * lib/xstriconv.c: Likewise.
89872 2006-09-13  Simon Josefsson  <jas@extundo.com>
89874         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
89875         that internally, suggested by Ralf Wildenhues
89876         <Ralf.Wildenhues@gmx.de>.
89878 2006-09-13  Simon Josefsson  <jas@extundo.com>
89880         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
89881         @LIBOBJS@.
89882         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89884 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89886         * lib/_fpending.c: Include <config.h> unconditionally, since we no
89887         longer worry about uses that don't define HAVE_CONFIG_H.
89888         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
89889         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
89890         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
89891         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
89892         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
89893         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
89894         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
89895         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
89896         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
89897         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
89898         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
89899         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
89900         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
89901         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
89902         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
89903         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
89904         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
89905         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
89906         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
89907         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
89908         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
89909         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
89910         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
89911         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
89912         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
89913         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
89914         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
89915         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
89916         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
89917         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
89918         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
89919         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
89920         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
89921         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
89922         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
89923         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
89924         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
89925         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
89926         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
89927         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
89928         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
89929         Likewise.
89931 2006-09-13  Eric Blake  <ebb9@byu.net>
89933         * lib/getopt.c: Fix typo in last commit.
89935 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
89937         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
89938         dgettext.
89940 2006-09-12  Jim Meyering  <jim@meyering.net>
89942         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
89943         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
89944         Reported by Nelson H. F. Beebe.
89946 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
89948         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
89949         program_invocation_name and program_invocation_short_name are
89950         initialized.
89951         * lib/argp-namefrob.h: Move declarations of program_invocation_name
89952         and program_invocation_short_name to argp.h, so they are visible
89953         to user programs.
89954         * lib/argp.h: Likewise
89956 2006-09-10  Bruno Haible  <bruno@clisp.org>
89958         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
89959         m4/inttypes_h.m4, m4/uintmax_t.m4.
89961 2006-09-10  Bruno Haible  <bruno@clisp.org>
89963         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
89964         gl_AC_TYPE_UINTMAX_T.
89966 2006-09-10  Bruno Haible  <bruno@clisp.org>
89968         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
89970 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
89972         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
89973         convention.  Text proposed by Bruno Haible.
89974         (struct argp_option): Document the use of N_() wrappers.
89976         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
89977         '\v', and translate the two parts separately, instead of feeding
89978         the whole string to gettext.  This allows to exclude
89979         '\v' from the strings visible to the translator by writing doc
89980         strings as N_("..") "\v" N_("..").
89982 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
89984         * config/srclist.txt: Undo latest change; the bug was fixed.
89986 2006-09-09  Bruno Haible  <bruno@clisp.org>
89988         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
89989         assignments if building a library without libtool.
89990         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
89991         in func_emit_lib_Makefile_am.
89992         (func_import): When building a static library libfoo.a, arrange to
89993         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
89994         (func_create_testdir): Likewise.
89995         * modules/gc (configure.ac, Makefile.am): If building statically,
89996         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
89997         * modules/iconvme (configure.ac, Makefile.am): Likewise.
89998         * modules/striconv (configure.ac, Makefile.am): Likewise.
89999         Based on a suggestion by Ralf Wildenhues.
90001 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90003         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
90004         Check for unistd.h too, since Autoconf doesn't assume POSIX.
90005         Also:
90007         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90008         Add year_2050_test to catch glibc bug 2821
90009         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
90011         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
90012         Prefer #ifdef to #if.
90014         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
90015         Return from 'main' instead of calling 'exit'.
90017 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90019         * lib/mktime.c (guess_time_tm): Fix bug where mktime
90020         returned the maximum time_t value rather than (time_t) -1.
90021         Problem originally reported by William Bardwell
90022         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
90024         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
90025         Moved to here ...
90026         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
90027         ... from here.
90029 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90031         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
90032         2821 is fixed.
90034 2006-09-08  Jim Meyering  <jim@meyering.net>
90036         Don't make generated files read-only.  That would bother too many
90037         people.  However, do retain the ability to work when targets are
90038         read-only: remove the destination and temporary files before writing
90039         them (when generated via sed or echo), or by using the -f option for
90040         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
90041         * modules/alloca-opt, modules/argz, modules/arpa_inet:
90042         * modules/byteswap, modules/configmake, modules/fcntl:
90043         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
90044         * modules/localcharset, modules/netinet_in, modules/poll:
90045         * modules/stdbool, modules/stdint, modules/sys_select:
90046         * modules/sys_socket, modules/sys_stat, modules/sysexits:
90048 2006-09-08  Jim Meyering  <jim@meyering.net>
90050         Avoid new build failure on FreeBSD 6.0.
90051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
90052         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
90053         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
90055 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90057         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
90059 2006-09-07  Jim Meyering  <jim@meyering.net>
90061         Fix global typo in last change: use chmod u-w, not chmod u-x.
90062         Spotted by Paul Eggert and Bruce Korb.
90063         * modules/alloca-opt, modules/argz, modules/arpa_inet:
90064         * modules/byteswap, modules/configmake, modules/fcntl:
90065         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
90066         * modules/localcharset, modules/netinet_in, modules/poll:
90067         * modules/stdbool, modules/stdint, modules/sys_select:
90068         * modules/sys_socket, modules/sys_stat, modules/sysexits:
90070 2006-09-06  Jim Meyering  <jim@meyering.net>
90072         Make generated files be read-only.
90073         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
90074         Ensure that each generated file is now read-only.
90075         * modules/argz: Likewise.
90076         * modules/arpa_inet: Likewise.
90077         * modules/byteswap: Likewise.
90078         * modules/configmake: Likewise.
90079         * modules/fcntl: Likewise.
90080         * modules/fnmatch: Likewise.
90081         * modules/getopt: Likewise.
90082         * modules/glob: Likewise.
90083         * modules/inttypes: Likewise.
90084         * modules/netinet_in: Likewise.
90085         * modules/poll: Likewise.
90086         * modules/stdbool: Likewise.
90087         * modules/stdint: Likewise.
90088         * modules/sys_select: Likewise.
90089         * modules/sys_socket: Likewise.
90090         * modules/sys_stat: Likewise.
90091         * modules/sysexits: Likewise.
90092         * modules/localcharset: Same as above, but continue using temporary
90093         file named "t-$@" (why different?) rather than the "$@-t" used
90094         everywhere else.
90096         * modules/sysexits (Makefile.am): Replace literal occurrences
90097         of "sysexit.h" more readable, and more consistent, "$@".
90099 2006-09-06  Bruno Haible  <bruno@clisp.org>
90101         * modules/striconv: New file.
90102         * modules/xstriconv: New file.
90103         * MODULES.html.sh (Internationalization functions): Add striconv,
90104         xstriconv.
90106 2006-09-06  Bruno Haible  <bruno@clisp.org>
90108         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
90109         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
90110         not using libtool correctly.
90112 2006-09-06  Bruno Haible  <bruno@clisp.org>
90114         * lib/striconv.h: New file.
90115         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
90116         iconvstring.c.
90117         * lib/xstriconv.h: New file.
90118         * lib/xstriconv.c: New file.
90120 2006-09-06  Bruno Haible  <bruno@clisp.org>
90122         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90123         lib_..._LDFLAGS.
90125 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90127         * lib/argz_.h: Sync from Libtool.
90129         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
90130                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
90132         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
90134 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
90136         * modules/trim: New file.
90138 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
90140         * lib/trim.h: New file.
90141         * lib/trim.c: New file.
90143 2006-09-05  Bruno Haible  <bruno@clisp.org>
90145         * MODULES.html.sh (String handling): Add trim.
90147 2006-09-04  Karl Berry  <karl@gnu.org>
90149         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
90150         until next release.
90152 2006-09-03  Bruno Haible  <bruno@clisp.org>
90154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
90155         correctly.
90157 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
90159         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
90160         not gl_GETLOADAVG.  Omit unneeded semicolons.
90161         Problems reported by Ralf Wildenhues in
90162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
90163         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
90164         at the end, which is the usual gnulib style.
90166         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
90167         of doing all the work ourselves.
90168         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
90169         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
90171 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
90173         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
90174         Problem reported by Ralf Wildenhues in
90175         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
90177         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
90178         HAVE_STRUCT_STATFS_F_FSTYPENAME.
90180 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
90182         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
90183         yesterday's patch by changing test -n to test -z.
90185 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
90187         * modules/getloadavg (Files): Add m4/getloadavg.m4.
90188         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
90189         the former is now obsolescent.
90191         * modules/chdir-long (Depends-on): Add fcntl.
90193 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
90195         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
90196         obsolescent, and programs should use gnulib instead.
90197         * m4/getloadavg.m4: New file, with contents taken from Autoconf
90198         but with prefixes changed.
90200 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
90202         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
90203         or stdbool.h, because they might not exist while configuring.
90205         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
90206         Don't include unistd.h or limits.h; not needed, since chdir-long.h
90207         does that for us.
90208         (O_DIRECTORY): Remove.
90210 2006-08-31  Eric Blake  <ebb9@byu.net>
90212         * gnulib-tool: Don't let emacs change spaces to TAB.
90214 2006-08-31  Bruno Haible  <bruno@clisp.org>
90216         * gnulib-tool: When calling func_import more than once, do it in a
90217         subshell.
90218         Reported by Eric Blake <ebb9@byu.net>.
90220 2006-08-31  Bruno Haible  <bruno@clisp.org>
90222         * gnulib-tool (nl): Remove variable.
90223         (sed_transform_lib_file): Use more robust test for config-h module.
90224         (func_import): Fix typo in 2006-08-25 patch.
90226 2006-08-31  Bruno Haible  <bruno@clisp.org>
90228         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
90229         specified, augment Makefile.am variables instead of assigning them.
90231 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90233         Work around a bug in both the Linux and SunOS 64-bit kernels:
90234         nanosleep mishandles sleeps for longer than 2**31 seconds.
90235         Problem reported by Frank v Waveren in
90236         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
90237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
90238         Check for nanosleep bug.
90239         (LIB_NANOSLEEP): Append clock_gettime library if needed.
90241 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90243         Work around a bug in both the Linux and SunOS 64-bit kernels:
90244         nanosleep mishandles sleeps for longer than 2**31 seconds.
90245         Problem reported by Frank v Waveren in
90246         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
90247         * lib/nanosleep.c (BILLION): New constant.
90248         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
90249         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
90250         implementation.
90252 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90254         * modules/nanosleep (Depends-on): Add gettime.
90256 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90257         and Simon Josefsson  <jas@extundo.com>
90258         and Oskar Liljeblad  <oskar@osk.mine.nu>
90260         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
90261         * gnulib-tool (func_import): New license type 'unmodifiable license
90262         text'.
90263         * modules/fdl: Use it.  Longer description.
90264         * module/gpl, module/lgpl: New files.
90266 2006-08-30  Jim Meyering  <jim@meyering.net>
90268         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
90269         shadowing the parameter.
90271 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90273         Sync from Libtool:
90275         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90277         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
90278         sharing with gnulib.  Report by Eric Blake.
90280 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90282         * modules/isapipe: New file.
90283         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
90285 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90287         * modules/configmake (Makefile.am): Add a comment, and omit
90288         the CONFIGMAKE_ prefix from generated macro names.  Suggested
90289         by Bruno Haible.
90291 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90293         * m4/isapipe.m4: New file.
90295 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90297         * lib/isapipe.c, lib/isapipe.h: New files.
90299 2006-08-29  Jim Meyering  <jim@meyering.net>
90301         * modules/configmake (Makefile.am): Make configmake.h depend on
90302         Makefile.  Otherwise, a stale configmake.h could hang around.
90304 2006-08-29  Eric Blake  <ebb9@byu.net>
90306         * lib/error.c (error_at_line, print_errno_message): Match libc, after
90307         resolution of upstream bug 3044.
90309 2006-08-29  Bruno Haible  <bruno@clisp.org>
90311         * modules/localcharset (Depends-on): Add configmake.
90312         (Makefile.am): Remove setting of LIBDIR through DEFS.
90314 2006-08-29  Bruno Haible  <bruno@clisp.org>
90316         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
90317         defined.
90319 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90321         * modules/fcntl: New file.
90322         * modules/chdir-safer (Depends-on): Add fcntl.
90323         * modules/fts: Likewise.
90324         * modules/mkdir-p: Likewise.
90326         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
90327         This undoes the most recent change, since we're now addressing the
90328         problem in a different way.
90330         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
90331         into output, since the output might be called Makefile.am even
90332         if $makefile_name is something different.
90333         (func_import): Use $makefile_am rather than
90334         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
90335         empty.
90337         * modules/inttypes (Files): Add m4/inttypes-h.m4.
90339 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90341         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
90342         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
90343         recent change to stdint.m4, since we're now addressing the problem in a
90344         different way.
90346 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90348         * m4/fcntl_h.m4: New file.
90350 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90352         * lib/fcntl_.h: New file.
90353         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
90354         the fcntl module.
90355         * lib/dirchownmod.c: Likewise.
90356         * lib/fts.c: Likewise.
90358         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
90359         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
90360         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
90361         just before including <inttypes.h>, to avoid circular inclusion.
90363 2006-08-28  Jim Meyering  <jim@meyering.net>
90365         * doc/visibility.texi: Actually read and correct the grammar of the
90366         sentence affected by yesterday's change.
90368 2006-08-28  Eric Blake  <ebb9@byu.net>
90370         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
90371         needs wrapper.
90373 2006-08-28  Eric Blake  <ebb9@byu.net>
90375         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
90377 2006-08-28  Eric Blake  <ebb9@byu.net>
90379         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
90381 2006-08-28  Bruno Haible  <bruno@clisp.org>
90383         * modules/c-strstr: New file, from GNU gettext.
90384         * MODULES.html.sh (String handling): Add c-strstr.
90386 2006-08-28  Bruno Haible  <bruno@clisp.org>
90388         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
90389         macros.
90390         Reported by Eric Blake.
90392 2006-08-28  Bruno Haible  <bruno@clisp.org>
90394         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
90395         (VASNPRINTF): Return a string of length > INT_MAX without failing.
90396         * lib/vasprintf.c: Include errno.h, limits.h.
90397         (EOVERFLOW): New fallback definition.
90398         (vasprintf): Test here whether the string length is > INT_MAX.
90399         * lib/vsnprintf.c: Include errno.h, limits.h.
90400         (EOVERFLOW): New fallback definition.
90401         (vsnprintf): Fix bug when generated string was too long for the buffer.
90402         Test here whether the string length is > INT_MAX.
90404 2006-08-28  Bruno Haible  <bruno@clisp.org>
90406         * lib/inttypes_.h (SCNX*): Remove definitions.
90407         Reported by Eric Blake.
90409 2006-08-28  Bruno Haible  <bruno@clisp.org>
90411         * lib/c-strstr.h: New file, from GNU gettext.
90412         * lib/c-strstr.c: New file, from GNU gettext.
90414 2006-08-28  Bruno Haible  <bruno@clisp.org>
90416         * gnulib-tool: Reorder some statements.
90418 2006-08-28  Bruno Haible  <bruno@clisp.org>
90420         * gnulib-tool: New option --makefile-name.
90421         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
90422         $makefile_name.
90423         (func_import): Write $makefile_name to the cache file, and read it from
90424         there unless explicitly specified. Use $makefile_name as file name
90425         instead of Makefile.am. Adjust the recommendations accordingly.
90427 2006-08-28  Bruno Haible  <bruno@clisp.org>
90429         * gnulib-tool (func_verify_module): Check against misapplying patch.
90431 2006-08-28  Bruno Haible  <bruno@clisp.org>
90433         * gnulib-tool (func_relativize, func_relconcat): New functions.
90434         Give an error if --local-dir is given with --update.
90435         Remove trailing slashes from $local_gnulib_dir.
90436         (func_import): Store the relativized $local_gnulib_dir in
90437         gnulib-cache.m4, and read it from there if not specified explicitly.
90439 2006-08-28  Bruno Haible  <bruno@clisp.org>
90441         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
90442         is the current directory. Respect also $local_gnulib_dir.
90444 2006-08-28  Bruno Haible  <bruno@clisp.org>
90445             Simon Josefsson  <jas@extundo.com>
90447         BeOS portability.
90448         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
90450 2006-08-27  Jim Meyering  <jim@meyering.net>
90452         * doc/visibility.texi: Remove duplicate word: "pointer".
90454 2006-08-26  Bruno Haible  <bruno@clisp.org>
90456         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
90457         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
90458         (Makefile.am): Create inttypes.h from inttypes_.h.
90459         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
90461         * modules/imaxabs: New file.
90463         * modules/imaxdiv: New file.
90465 2006-08-26  Bruno Haible  <bruno@clisp.org>
90467         * m4/inttypes.m4: New file.
90468         * m4/_inttypes_h.m4: Remove file.
90469         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
90470         PRI_MACROS_BROKEN.
90471         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
90473         * m4/imaxabs.m4: New file.
90475         * m4/imaxdiv.m4: New file.
90477 2006-08-26  Bruno Haible  <bruno@clisp.org>
90479         * lib/inttypes_.h: New file.
90480         * lib/inttypes.h: Remove file.
90481         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
90483         * lib/imaxabs.c: New file.
90485         * lib/imaxdiv.c: New file.
90487 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
90489         New config-h module, so that "make" output needn't be cluttered
90490         by -DHAVE_CONFIG_H.
90491         * MODULES.html.sh (Support for building libraries and executables):
90492         Add config-h.
90493         * modules/config-h: New file.
90494         * gnulib-tool (nl, sed_transform_lib_file): New vars.
90495         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
90496         the config-h module is used.
90498         New configmake module, so that "make" output needn't be cluttered
90499         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
90500         * MODULES.html.sh (Support for building libraries and executables):
90501         Add configmake.
90502         * modules/configmake: New file.
90504 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
90506         * m4/config-h.m4: New file.
90508 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
90510         * config/srclist.txt: Add elisp-comp.
90512 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
90514         * MODULES.html.sh (Support for building libraries and executables):
90515         Add elisp-comp.
90516         * build-aux/elisp-comp: New file.
90517         * modules/elisp-comp: New file.
90519 2006-08-24  Bruno Haible  <bruno@clisp.org>
90521         * gnulib-tool (func_create_testdir): Use non-default values of
90522         sourcebase and m4base.
90524 2006-08-24  Bruno Haible  <bruno@clisp.org>
90526         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
90527         HTML structure.
90529 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
90531         * modules/openat (Depends-on): Add lchown.
90533 2006-08-23  Bruno Haible  <bruno@clisp.org>
90535         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
90536         of gl_LOCK_EARLY instead of gl_LOCK.
90538 2006-08-23  Bruno Haible  <bruno@clisp.org>
90540         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
90541         on OSF/1 to no.
90542         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
90544 2006-08-23  Bruno Haible  <bruno@clisp.org>
90546         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
90547         as unusable.
90549         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
90550         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
90551         (gl_LOCK): New macro.
90553 2006-08-22  Simon Josefsson  <jas@extundo.com>
90555         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
90556         to md5 module.
90558 2006-08-22  Simon Josefsson  <jas@extundo.com>
90560         * MODULES.html.sh: Add "Support for maintaining and release
90561         projects".
90563         * build-aux/gnupload: New file, from coreutils.
90565 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
90567         Avoid the need for AC_LIBSOURCES in m4 macros.
90568         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
90569         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
90570         * modules/check-version (EXTRA_DIST): Add check-version.h.
90571         * modules/crc (EXTRA_DIST): Add crc.h.
90572         * modules/des (EXTRA_DIST): Add des.h.
90573         * modules/gc (EXTRA_DIST): Add gc.h.
90574         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
90575         * modules/getline (EXTRA_DIST): Add getline.h.
90576         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
90577         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
90578         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
90579         * modules/md2 (EXTRA_DIST): Add md2.h.
90580         * modules/md4 (EXTRA_DIST): Add md4.h.
90581         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
90582         * modules/read-file (EXTRA_DIST): Add read-file.h.
90583         * modules/readline (EXTRA_DIST): Add readline.h.
90584         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
90585         rijndael-api-fst.h.
90587 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
90589         * m4/rijndael.m4 (gl_ARCFOUR):
90590         * m4/arctwo.m4 (gl_ARCTWO):
90591         * m4/check-version.m4 (gl_CHECK_VERSION):
90592         * m4/crc.m4 (gl_CRC):
90593         * m4/des.m4 (gl_DES):
90594         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
90595         * m4/gc.m4 (gl_GC):
90596         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
90597         * m4/getline.m4 (gl_FUNC_GETLINE):
90598         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
90599         * m4/hmac-md5.m4 (gl_HMAC_MD5):
90600         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
90601         * m4/md2.m4 (gl_MD2):
90602         * m4/md4.m4 (gl_MD4):
90603         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
90604         * m4/read-file.m4 (gl_FUNC_READ_FILE):
90605         * m4/readline.m4 (gl_FUNC_READLINE):
90606         * m4/rijndael.m4 (gl_RIJNDAEL):
90607         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
90608         to get the necessary .h files and whatnot.
90610 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
90612         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
90613         gnulib rather than the other way around.
90614         * config/srclistvars.sh (COREUTILS): Remove.
90616 2006-08-22  Jim Meyering  <jim@meyering.net>
90618         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
90620         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
90622 2006-08-22  Eric Blake  <ebb9@byu.net>
90624         * modules/regexprops-generic: New file.
90625         * MODULES.html.sh (Support for building documentation): List it.
90627 2006-08-22  Eric Blake  <ebb9@byu.net>
90629         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
90630         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
90631         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
90632         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
90634 2006-08-22  Bruno Haible  <bruno@clisp.org>
90636         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
90637         and lib_LTLIBRARIES like the other lib_* variables.
90639 2006-08-22  Bruno Haible  <bruno@clisp.org>
90641         * build-aux/x-to-1.in: New file, from GNU gettext.
90643 2006-08-22  Bruno Haible  <bruno@clisp.org>
90645         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
90646         <utmpx.h> exists.
90648 2006-08-22  Bruno Haible  <bruno@clisp.org>
90650         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
90651         <utmpx.h> exists.
90653 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
90655         BeOS portability.
90656         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
90657         exist.
90658         Problem reported by Bruno Haible.
90660 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
90662         Avoid the need for AC_LIBSOURCES in m4 macros.
90663         * modules/acl (EXTRA_DIST): Add acl.h.
90664         * modules/argmatch (Files): Add m4/argmatch.m4.
90665         (configure.ac): Add gl_ARGMATCH.
90666         (EXTRA_DIST): Renamed from lib_SOURCES, for
90667         consistency with the other modules.  Remove argmatch.c.
90668         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
90669         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
90670         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
90671         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
90672         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
90673         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
90674         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
90675         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
90676         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
90677         * modules/closeout (EXTRA_DIST): Add closeout.h.
90678         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
90679         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
90680         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
90681         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
90682         dirname.h; remove basename.c and stripslash.c.
90683         * modules/exclude (EXTRA_DIST): Add exclude.h.
90684         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
90685         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
90686         * modules/file-type (EXTRA_DIST): Add file-type.h.
90687         * modules/filemode (EXTRA_DIST): Add filemode.h.
90688         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
90689         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
90690         * modules/fpending (EXTRA_DIST): Add __fpending.h.
90691         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
90692         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
90693         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
90694         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
90695         * modules/getdate (EXTRA_DIST): Add getdate.c.
90696         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
90697         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
90698         * modules/getpass (EXTRA_DIST): Add getpass.h.
90699         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
90700         * modules/group-member (EXTRA_DIST): Add group-member.h.
90701         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
90702         * modules/hash (EXTRA_DIST): Add hash.h.
90703         * modules/human (EXTRA_DIST): Add human.h.
90704         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
90705         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
90706         * modules/lchown (EXTRA_DIST): Add lchown.h.
90707         * modules/long-options (EXTRA_DIST): Add long-options.h.
90708         * modules/lstat (EXTRA_DIST): Add lstat.h.
90709         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
90710         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
90711         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
90712         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
90713         * modules/memxor (EXTRA_DIST): Add memxor.h.
90714         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
90715         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
90716         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
90717         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
90718         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
90719         * modules/physmem (EXTRA_DIST): Add physmem.h.
90720         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
90721         * modules/posixver (EXTRA_DIST): Add posixver.h.
90722         * modules/quote (EXTRA_DIST): Add quote.h.
90723         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
90724         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
90725         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
90726         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
90727         regex_internal.h regexec.c.
90728         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
90729         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
90730         * modules/same (EXTRA_DIST): Add same.h.
90731         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
90732         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
90733         * modules/savedir (EXTRA_DIST): Add savedir.h.
90734         * modules/sha1 (EXTRA_DIST): Add sha1.h.
90735         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
90736         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
90737         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
90738         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
90739         * modules/strdup (EXTRA_DIST): Add strdup.h.
90740         * modules/strftime (EXTRA_DIST): Add strftime.h.
90741         * modules/strndup (EXTRA_DIST): Add strndup.h.
90742         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
90743         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
90744         * modules/time_r (EXTRA_DIST): Add time_r.h.
90745         * modules/timespec (EXTRA_DIST): Add timespec.h.
90746         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
90747         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
90748         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
90749         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
90750         * modules/userspec (EXTRA_DIST): Add userspec.h.
90751         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
90752         * modules/utimens (EXTRA_DIST): Add utimens.h.
90753         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
90754         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
90755         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
90756         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
90757         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
90758         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
90759         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
90760         * modules/yesno (EXTRA_DIST): Add yesno.h.
90762 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
90764         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
90766         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
90767         * m4/dev-ino.m4, same-inode.m4: Remove.
90769         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
90770         * m4/acl.m4 (AC_FUNC_ACL):
90771         * m4/backupfile.m4 (gl_BACKUPFILE):
90772         * m4/c-strtod.m4 (gl_C99_STRTOLD):
90773         * m4/canon-host.m4 (gl_CANON_HOST):
90774         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
90775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
90776         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
90777         * m4/cloexec.m4 (gl_CLOEXEC):
90778         * m4/close-stream.m4 (gl_CLOSE_STREAM):
90779         * m4/closeout.m4 (gl_CLOSEOUT):
90780         * m4/dirfd.m4 (gl_FUNC_DIRFD):
90781         * m4/dirname.m4 (gl_DIRNAME):
90782         * m4/exclude.m4 (gl_EXCLUDE):
90783         * m4/exitfail.m4 (gl_EXITFAIL):
90784         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
90785         * m4/file-type.m4 (gl_FILE_TYPE):
90786         * m4/filemode.m4 (gl_FILEMODE):
90787         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
90788         * m4/fpending.m4 (gl_FUNC_FPENDING):
90789         * m4/fprintftime.m4 (gl_FPRINTFTIME):
90790         * m4/fts.m4 (gl_FUNC_FTS):
90791         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
90792         * m4/getdate.m4 (gl_GETDATE):
90793         * m4/gethrxtime.m4 (gl_GETHRXTIME):
90794         * m4/getpagesize.m4 (gl_GETPAGESIZE):
90795         * m4/getpass.m4 (gl_FUNC_GETPASS):
90796         * m4/gettime.m4 (gl_GETTIME):
90797         * m4/getugroups.m4 (gl_GETUGROUPS):
90798         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
90799         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
90800         * m4/hard-locale.m4 (gl_HARD_LOCALE):
90801         * m4/hash.m4 (gl_HASH):
90802         * m4/idcache.m4 (gl_IDCACHE):
90803         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
90804         * m4/lchown.m4 (gl_FUNC_LCHOWN):
90805         * m4/long-options.m4 (gl_LONG_OPTIONS):
90806         * m4/lstat.m4 (gl_FUNC_LSTAT):
90807         * m4/md5.m4 (gl_MD5):
90808         * m4/memcasecmp.m4 (gl_MEMCASECMP):
90809         * m4/memcoll.m4 (gl_MEMCOLL):
90810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
90811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
90812         * m4/memxor.m4 (gl_MEMXOR):
90813         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
90814         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
90815         * m4/modechange.m4 (gl_MODECHANGE):
90816         * m4/mountlist.m4 (gl_MOUNTLIST):
90817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90818         * m4/openat.m4 (gl_FUNC_OPENAT):
90819         * m4/pathmax.m4 (gl_PATHMAX):
90820         * m4/physmem.m4 (gl_PHYSMEM):
90821         * m4/posixtm.m4 (gl_POSIXTM):
90822         * m4/posixver.m4 (gl_POSIXVER):
90823         * m4/quote.m4 (gl_QUOTE):
90824         * m4/quotearg.m4 (gl_QUOTEARG):
90825         * m4/readtokens.m4 (gl_READTOKENS):
90826         * m4/readutmp.m4 (gl_READUTMP):
90827         * m4/regex.m4 (gl_REGEX):
90828         * m4/safe-read.m4 (gl_SAFE_READ):
90829         * m4/safe-write.m4 (gl_SAFE_WRITE):
90830         * m4/same.m4 (gl_SAME):
90831         * m4/save-cwd.m4 (gl_SAVE_CWD):
90832         * m4/savedir.m4 (gl_SAVEDIR):
90833         * m4/settime.m4 (gl_SETTIME):
90834         * m4/sha1.m4 (gl_SHA1):
90835         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
90836         * m4/stat-macros.m4 (gl_STAT_MACROS):
90837         * m4/stat-time.m4 (gl_STAT_TIME):
90838         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
90839         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
90840         * m4/strdup.m4 (gl_FUNC_STRDUP):
90841         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
90842         * m4/strndup.m4 (gl_FUNC_STRNDUP):
90843         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
90844         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
90845         * m4/time_r.m4 (gl_TIME_R):
90846         * m4/timespec.m4 (gl_TIMESPEC):
90847         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
90848         * m4/unlinkdir.m4 (gl_UNLINKDIR):
90849         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
90850         * m4/userspec.m4 (gl_USERSPEC):
90851         * m4/utimecmp.m4 (gl_UTIMECMP):
90852         * m4/utimens.m4 (gl_UTIMENS):
90853         * m4/xalloc.m4 (gl_XALLOC):
90854         * m4/xgetcwd.m4 (gl_XGETCWD):
90855         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
90856         * m4/xreadlink.m4 (gl_XREADLINK):
90857         * m4/xstrtod.m4 (gl_XSTRTOD):
90858         * m4/yesno.m4 (gl_YESNO):
90859         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
90860         to get the necessary .h files and whatnot.
90862 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
90863             Bruno Haible  <bruno@clisp.org>
90865         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
90866         /bin/sh understanding of '!' conditional negation.
90868 2006-08-21  Jim Meyering  <jim@meyering.net>
90870         * modules/openat (Depends-on): Really alphabetize.
90872         * modules/acl (Depends-on): Add error and quote.
90874         * check-module (find_included_lib_files): Add at-func.c to the
90875         ok-to-include-more-than-once white list.
90877         * modules/openat (Depends-on): Add lstat.  Alphabetize.
90879 2006-08-21  Bruno Haible  <bruno@clisp.org>
90881         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90882         Emit a pkgdata_DATA variable only if some snippets add contents to it.
90883         Reported by Martin Lambers <marlam@marlam.de>.
90885 2006-08-21  Bruno Haible  <bruno@clisp.org>
90887         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
90888         specify an installation location, don't emit a noinst_LIBRARIES or
90889         noinst_LTLIBRARIES assignment.
90891 2006-08-21  Bruno Haible  <bruno@clisp.org>
90893         BeOS portability.
90894         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
90895         BeOS has mbrtowc() but no <wctype.h>.
90897 2006-08-21  Bruno Haible  <bruno@clisp.org>
90899         BeOS portability.
90900         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
90901         exist.
90903 2006-08-21  Bruno Haible  <bruno@clisp.org>
90905         BeOS portability.
90906         * lib/mbchar.h: Include <wctype.h> only if it exists.
90908 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
90910         Remove files that are no longer needed by their respective modules.
90911         * m4/obstack.m4: Remove.
90912         * m4/strerror_r.m4: Remove.
90913         * m4/uint32_t.m4: Remove.
90914         * m4/uintptr_t.m4: Remove.
90915         * m4/ullong_max.m4: Remove.
90916         * m4/xstrtoimax.m4: Remove.
90917         * m4/xstrtoumax.m4: Remove.
90919         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
90920         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
90921         dependencies now capture this.
90923         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
90924         Do not use AC_LIBSOURCES, since gnulib modules now do this.
90925         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
90926         * m4/human.m4 (gl_HUMAN): Likewise.
90927         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
90928         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
90930         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
90932         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
90933         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
90934         stdint.
90935         * m4/human.m4 (gl_HUMAN): Likewise.
90936         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
90937         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
90938         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
90939         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
90940         * m4/xstrtol (gl_XSTRTOL): Likewise.
90942         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
90943         AC_TYPE_LONG_LONG_INT.
90944         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
90945         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
90946         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
90947         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
90949         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
90950         on stdbool.
90952         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
90953         (gl_PREREQ_XSTRTOUL): Remove.
90955         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
90957         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
90958         mode.
90960 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
90962         Add and change modules to make it easier for coreutils to use
90963         gnulib-tool.
90964         * modules/backupfile (Files): Remove m4/d-ino.m4.
90965         (Depends-on): Add d-ino.
90966         * modules/cycle-check (Depends-on): Add stdint.
90967         (lib_SOURCES): Add cycle-check.h.
90968         * modules/d-ino: New module.
90969         * modules/d-type: New module.
90970         * modules/error (Files): Remove m4/strerror_r.m4.
90971         * modules/filemode (Files): Add m4/st_dm_mode.m4.
90972         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
90973         m4/inttypes_h.m4, m4/uintmax_t.m4.
90974         (Depends-on): Add stdint.
90975         (lib_SOURCES): Add fsusage.h.
90976         * modules/getcwd (Files): Remove d-ino.m4.
90977         (Depends-on): Add d-ino.
90978         * modules/getndelim2 (Depends-on): Add stdint.
90979         * modules/glob (Files): Remove m4/d-type.m4.
90980         (Depends-on): Add d-type.
90981         * modules/host-os: New module.
90982         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
90983         m4/inttypes_h.m4, m4/uintmax_t.m4.
90984         * Depends-on: Add stdint.
90985         (lib_SOURCES): Add human.h.
90986         * modules/inttostr (Files): Remove m4/intmax_t.m4,
90987         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
90988         m4/uintmax_t.m4, m4/ulonglong.m4.
90989         (Depends-on): Add stdint.
90990         (EXTRA_DIST): Add inttostr.h.
90991         * modules/lchmod: New module.
90992         * modules/link-follow: New module.
90993         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
90994         (Depends-on): Add lchmod.
90995         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
90996         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
90997         (Depends-on): Add stdint.
90998         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
90999         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
91000         (Depends-on): Add stdint.
91001         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
91002         * modules/perl: New module.
91003         * modules/regex (Depends-on): Add stdint.
91004         * modules/rmdir-errno: New module.
91005         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
91006         m4/intmax_t.m4.
91007         (Depends-on): Add stdint.
91008         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
91009         m4/uintmax_t.m4.
91010         (Depends-on): Add stdint.
91011         * modules/unlink-busy: New module.
91012         * modules/utimecmp (Depends-on): Add stdint.
91013         * modules/uptime: New module.
91014         * modules/winsz-ioctl: New module.
91015         * modules/winsz-termios: New module.
91016         * modules/xnanosleep (Depends-on): Add nanosleep.
91017         * modules/ullong_max: Remove.
91018         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
91019         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
91020         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
91021         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
91022         (Depends-on): Add inttypes.
91023         (lib_SOURCES): Add xstrtol.h.
91024         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
91025         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
91026         * MODULES.html.sh: Move 'assert' into the assert section.
91027         Move 'dummy' into the linking section.
91028         Remove ullong_max.
91029         Add section for compatibility checks for POSIX:2001 functions,
91030         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
91031         winsz-ioctl, and winsz-termios into it.
91032         Add lchmod.
91033         Add top-level Misc section and put host-os, perl, and uptime
91034         into it.
91036 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91038         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
91039         now assume the stdint module.  Do not include inttypes.h.
91040         * lib/fsusage.h: Likewise.
91041         * lib/getndelim2.c: Likewise.
91042         * lib/human.h: Likewise.
91043         * lib/inttostr.h: Likewise.
91044         * lib/obstack.c: Likewise.
91045         * lib/regex_internal.h: Likewise.
91046         * lib/tempname.c: Likewise.
91047         * lib/utimecmp.c: Likewise.
91048         * lib/xstrtol.h: Likewise.
91050         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
91052         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
91053         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
91054         * lib/xtime.h: Likewise.
91056 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
91058         * modules/openat (Files): Add lib/fchmodat.c.
91059         Fixes problem reported by Jay Youngman.
91061 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
91063         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
91064         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
91066 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
91067             Bruno Haible  <bruno@clisp.org>
91069         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
91070         and is a script that invokes bison. Tighten the code. Add comments.
91072 2006-08-18  Jim Meyering  <jim@meyering.net>
91074         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
91075         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
91076         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
91077         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
91079 2006-08-18  Bruno Haible  <bruno@clisp.org>
91081         * modules/bison-i18n: New file.
91082         * MODULES.html.sh (Internationalization functions): Add it.
91084 2006-08-18  Bruno Haible  <bruno@clisp.org>
91086         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
91087         sys/statvfs.h. When getmntinfo was found, check its declaration and
91088         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
91090 2006-08-18  Bruno Haible  <bruno@clisp.org>
91092         * m4/bison-i18n.m4: New file, from bison.
91094 2006-08-18  Bruno Haible  <bruno@clisp.org>
91096         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
91097         (ME_DUMMY): Treat "kernfs" as a dummy.
91098         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
91100 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
91102         Update from coreutils.
91104         2006-08-15  Jim Meyering  <jim@meyering.net>
91106         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
91108         2006-01-17  Jim Meyering  <jim@meyering.net>
91110         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
91112         2006-01-11  Jim Meyering  <jim@meyering.net>
91114         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
91115         Check for the lchmod function.
91117 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
91119         Update from coreutils.
91121         * lib/__fpending.h: Add copyright notice.
91122         * lib/fprintftime.h: Likewise.
91123         * lib/savedir.c: Use (C) in copyright notice.
91124         * lib/savedir.h: Likewise.
91126         2006-08-15  Jim Meyering  <jim@meyering.net>
91128         * lib/at-func.c: New file, with the logic of all emulated at-functions.
91129         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
91130         in support of the EXPECTED_ERRNO macro.
91131         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
91132         definitions.  Instead, define the appropriate symbols and include
91133         "at-func.c".
91134         * lib/mkdirat.c (mkdirat): Likewise.
91135         * lib/fchmodat.c (fchmodat): Likewise.
91136         (ENOSYS): Remove definition.
91137         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
91138         it.  Don't include "unistd--.h" -- it wasn't ever used.
91140         2006-01-17  Jim Meyering  <jim@meyering.net>
91142         Rewrite fts.c not to change the current working directory,
91143         by using openat, fstatat, fdopendir, etc..
91145         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
91146         (HAVE_OPENAT_SUPPORT): Define.
91147         [_LIBC] (fchdir): Don't undef or define; no longer used.
91148         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
91149         Now, this `function' always succeeds, and consumes its file descriptor
91150         parameter -- so callers must not close such FDs.  Update callers.
91151         (diropen_fd, opendirat, cwd_advance_fd): New functions.
91152         (diropen): Add parameter, SP.  Adjust all callers.
91153         Implement using diropen_fd, rather than open.
91154         (fts_open): Initialize new member, fts_cwd_fd.
91155         Remove fts_rft-setting code.
91156         (fts_close): Close fts_cwd_fd, if necessary.
91157         (__opendir2): Define in terms of opendir or opendirat,
91158         depending on whether the FST_NOCHDIR flag is set.
91159         (fts_build): Since fts_safe_changedir consumes its FD, and since
91160         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
91161         and close the dup'd file descriptor upon failure.
91162         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
91163         (fts_safe_changedir): Tweak semantics to reflect that this function
91164         now calls cwd_advance_fd and hence consumes its FD argument.
91165         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
91166         [struct FTS] (fts_rft): Remove now-unused member.
91167         [struct FTS] (fts_cycle.state): Improve comment.
91169         * lib/openat.c (openat_needs_fchdir): New function.
91170         * lib/openat.h (openat_needs_fchdir): Declare it.
91172 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
91174         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
91175         Problem and fix reported by Pádraig Brady in
91176         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
91178 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91180         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
91182 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91184         * lib/memcoll.c (memcoll): Optimize for the common case where the
91185         arguments are bytewise equal.
91187 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91189         * doc/regexprops-generic.texi: Add a copyright notice.
91191 2006-08-15  Bruno Haible  <bruno@clisp.org>
91193         * modules/tmpdir (License): Change to LGPL.
91195 2006-08-15  Bruno Haible  <bruno@clisp.org>
91197         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
91198         module.
91200 2006-08-14  Simon Josefsson  <jas@extundo.com>
91202         * config/srclist.txt: Add gnupload.
91204 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91206         Change copyright notice from LGPL 2 to GPL 2, since that's the
91207         standard form used in the gnulib repository.
91208         * tests/test-lock.c: Likewise.
91209         * tests/test-stdint.c: Likewise.
91210         * tests/test-tls.c: Likewise.
91212         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
91213         prelude-manager.  User shorter URLs for GNU projects, without '?'.
91214         Add copyright notice.
91216         * check-module: Add copyright notice.  Output a copyright
91217         notice if "--version" is specified.
91218         * modules/COPYING: New file.
91219         * tests/test-getaddrinfo.c: Add copyright notice.
91220         * tests/test-verify.c: Likewise.
91222 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91224         Change copyright notice from LGPL 2 to GPL 2, since that's the
91225         standard form used in the gnulib repository.
91226         * lib/lock.c: LGPL -> GPL.
91227         * lib/lock.h: Likewise.
91228         * lib/strnlen1.c: Likewise.
91229         * lib/strnlen1.h: Likewise.
91230         * lib/tls.c: Likewise.
91231         * lib/tls.h: Likewise.
91232         * lib/tmpdir.c: Likewise.
91234         * lib/TODO: Remove; this belongs only in coreutils.
91236 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91238         Add copyright notices to long-enough files that lack them, since
91239         otherwise the files aren't clearly free.  Use the same notice that
91240         getdate.texi already uses.
91241         * doc/alloca-opt.texi: Add copyright notice.
91242         * doc/alloca.texi: Likewise.
91243         * doc/ctime.texi: Likewise.
91244         * doc/functions.texi: Likewise.
91245         * doc/gcd.texi: Likewise.
91246         * doc/gnulib-tool.texi: Likewise.
91247         * doc/inet_ntoa.texi: Likewise.
91248         * doc/visibility.texi: Likewise.
91250         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
91251         * doc/quote.texi: Add copyright notice.
91253         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
91254         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
91255         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
91256         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
91257         is now obsolete, and give a pointer to the Sun list.
91258         Add copyright notice.
91260 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91262         * config/srclistvars.sh: Add copyright notice.
91264 2006-08-14  Eric Blake  <ebb9@byu.net>
91266         Import the following change from libc:
91268         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
91270         Upstream bug 2997.
91271         * lib/misc/error.c: Add space between program name and message if file
91272         name is missing.
91274 2006-08-12  Karl Berry  <karl@gnu.org>
91276         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
91277         remove, these originate in gnulib now.
91279 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91281         * doc/Makefile (standards.info standards.html standards.dvi):
91282         Also depend on make-stds.texi.
91284 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
91286         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
91287         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
91289         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
91290         in wchar_t.  Problem reported by Eric Blake.
91292         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
91293         LEN is smaller than SIZE.  Suggested by Bruno Haible.
91294         Also, help the compiler to keep LEN in a register.
91296 2006-08-11  Eric Blake  <ebb9@byu.net>
91298         * users.txt: Sort.  Add tar.
91300 2006-08-11  Bruno Haible  <bruno@clisp.org>
91302         * users.txt: New file.
91304 2006-08-11  Bruno Haible  <bruno@clisp.org>
91306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
91307         before <wchar.h>. Needed for OSF/1 and BSD/OS.
91309 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
91311         * modules/snprintf (Depends-on): Remove minmax.
91312         (Maintainer): Add self and Bruno.
91314 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
91316         * lib/.cppi-disable: Add snprintf.h, socket_.h.
91317         * lib/snprintf.c: Include <errno.h> and <limits.h>.
91318         (EOVERFLOW): Define if the system does not.
91319         Do not include "minmax.h"; it wasn't used.
91320         (snprintf): Don't assume size_t promotes to an unsigned type.
91321         Fix bug when generated string was too long for the buffer: the
91322         buffer's contents are supposed to be the initial prefix of the
91323         output.  Don't assume vasnprintf returns EOVERFLOW if the size
91324         exceeds INT_MAX; do the check ourselves.
91326         Import the following changes from libc:
91328         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
91330         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
91331         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
91332         set wc to the byte which couldn't be converted.
91333         (re_string_reconstruct): Don't clear valid_raw_len before calling
91334         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
91335         tip_context using re_string_context_at.
91337         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
91339         * lib/posix/regex.h: g++ still cannot handled [restrict].
91341         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
91343         * lib/posix/regex.h: Remove special handling for VMS.
91345 2006-08-10  Jim Meyering  <jim@meyering.net>
91347         * modules/same-inode: New module.
91348         * modules/dev-ino: New module.
91349         * modules/cycle-check: Depend on these modules, rather than simply
91350         including their .h files.
91351         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
91352         required via m4/cycle-check.m4.
91353         * modules/same: Depend on new same-inode module, rather than
91354         including same-inode.h.
91355         * modules/chdir-safer: New file.
91357         * modules/chown (Depends-on): Add stat-macros.
91359 2006-08-10  Jim Meyering  <jim@meyering.net>
91361         * m4/cycle-check.m4: New file.
91362         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
91363         * m4/dev-ino.m4, m4/same-inode.m4: New files.
91365 2006-08-10  Eric Blake  <ebb9@byu.net>
91367         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
91368         in from original proposal.
91370 2006-08-10  Eric Blake  <ebb9@byu.net>
91371         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
91373         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
91374         namespace.
91376 2006-08-10  Bruno Haible  <bruno@clisp.org>
91378         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
91379         as well.
91381 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91383         Sync from coreutils.
91385         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
91387         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
91388         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
91390 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91392         * modules/restrict: Remove; no longer needed now that we assume
91393         Autoconf 2.59 or later.
91394         * MODULES.html.sh: Remove 'restrict'.
91395         * modules/argp (Depends-on): Remove 'restrict'.
91396         * modules/base64 (Depends-on): Likewise.
91397         * modules/gc (Depends-on): Likewise.
91398         * modules/getaddrinfo (Depends-on): Likewise.
91399         * modules/glob (Depends-on): Likewise.
91400         * modules/inet_ntop (Depends-on): Likewise.
91401         * modules/inet_pton (Depends-on): Likewise.
91402         * modules/memxor (Depends-on): Likewise.
91403         * modules/regex (Depends-on): Likewise.
91404         * modules/strtok_r (Depends-on): Likewise.
91405         * modules/time_r (Depends-on): Likewise.
91407 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91409         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
91410         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
91411         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
91412         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
91413         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
91414         * m4/memxor.m4 (gl_MEMXOR): Likewise.
91415         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
91416         gl_C_RESTRICT replaced by AC_C_RESTRICT.
91418         Merge from coreutils.
91419         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
91420         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
91421         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
91422         * m4/time_r.m4 (gl_TIME_R): Likewise.
91424 2006-08-09  Karl Berry  <karl@gnu.org>
91426         * config/srclist.txt: no more gettext-tools, per Bruno.
91428 2006-08-08  Eric Blake  <ebb9@byu.net>
91430         * modules/verror: New module.
91431         * MODULES.html.sh: Document it.
91433 2006-08-08  Eric Blake  <ebb9@byu.net>
91435         * lib/verror.h, lib/verror.c: New files.
91437 2006-08-08  Eric Blake  <ebb9@byu.net>
91439         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
91440         verror_at_line output complies with GNU Coding Standards even when
91441         file is NULL.
91443 2006-08-07  Bruno Haible  <bruno@clisp.org>
91445         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
91446         versions of AIX.
91447         Reported by Ralf Wildenhues.
91449 2006-08-07  Bruno Haible  <bruno@clisp.org>
91451         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
91452         in an AC_DEFUN. Needed so that the autoconf snippets can use
91453         AC_REQUIRE.
91455 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91457         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91458         Initialize pkgdata_DATA.
91459         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
91460         overriding it.
91462 2006-08-06  Eric Blake  <ebb9@byu.net>
91464         * lib/error.h: Fold in some upstream changes from glibc.
91465         * lib/error.c: Likewise.
91467 2006-08-04  Bruno Haible  <bruno@clisp.org>
91469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91470         Make the mostlyclean-local rule depend on mostlyclean-generic.
91471         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
91473 2006-07-31  Bruno Haible  <bruno@clisp.org>
91475         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
91476         <stdlib.h>, <string.h>.
91478 2006-07-30  Bruno Haible  <bruno@clisp.org>
91480         * modules/readlink (License): Change to LGPL.
91482 2006-07-30  Bruno Haible  <bruno@clisp.org>
91484         * modules/javaversion (Makefile.am): Distribute javaversion.java and
91485         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
91486         set PKGDATADIR to point to it.
91488 2006-07-30  Bruno Haible  <bruno@clisp.org>
91490         * modules/csharpexec (configure.ac): Comment out macro invocation.
91491         * modules/javaexec (configure.ac): Likewise.
91492         * modules/javacomp-script (configure.ac): Likewise.
91494         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
91496 2006-07-30  Bruno Haible  <bruno@clisp.org>
91498         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
91499         linked-list.
91501 2006-07-30  Bruno Haible  <bruno@clisp.org>
91503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
91505 2006-07-30  Bruno Haible  <bruno@clisp.org>
91507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91508         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
91509         get removed.
91511 2006-07-29  Bruno Haible  <bruno@clisp.org>
91513         Make it possible for gnulib-tool to work with locally modified or
91514         augmented gnulib repositories.
91515         * gnulib-tool (func_usage): Document --local-dir option.
91516         (local_gnulib_dir): New variable.
91517         Handle --local-dir option.
91518         (func_lookup_file): New function.
91519         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
91520         (func_get_description, func_get_filelist, func_get_description,
91521         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
91522         func_get_automake_snippet, func_get_include_directive,
91523         func_get_license, func_get_maintainer): Use func_lookup_file.
91524         (func_import, func_create_testdir): Use func_lookup_file.
91526 2006-07-29  Bruno Haible  <bruno@clisp.org>
91528         * modules/setenv (Depends-on): Add unistd.
91530 2006-07-29  Bruno Haible  <bruno@clisp.org>
91532         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
91534 2006-07-29  Bruno Haible  <bruno@clisp.org>
91536         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
91538 2006-07-29  Bruno Haible  <bruno@clisp.org>
91540         * gnulib-tool (import, update): If there is no Makefile.am, look at
91541         aclocal.m4, instead of bailing out.
91543 2006-07-29  Bruno Haible  <bruno@clisp.org>
91545         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
91546         Categorize the options by when they are useful.
91548 2006-07-29  Bruno Haible  <bruno@clisp.org>
91550         * gnulib-tool (func_usage): Document option --no-libtool.
91551         Handle option --no-libtool.
91552         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
91553         for changed semantics of $libtool variable.
91554         (func_import): Likewise. If libtool is not used, show this through
91555         an option --no-libtool.
91556         (func_create_testdir): Update.
91558 2006-07-29  Bruno Haible  <bruno@clisp.org>
91560         * gnulib-tool (func_import): Extend error message about missing
91561         --doc-base.
91563 2006-07-29  Bruno Haible  <bruno@clisp.org>
91565         * gnulib-tool (func_import): Don't create the $docbase directory if
91566         there is no file to store there.
91568 2006-07-29  Bruno Haible  <bruno@clisp.org>
91570         * gnulib-tool (autoconf_minversion): If a --dir option is given and
91571         relevant, look for configure.ac there, not in the current directory.
91572         Also use a simple search for AC_PREREQ, not "autoconf --trace".
91574 2006-07-29  Bruno Haible  <bruno@clisp.org>
91576         * gnulib-tool (SORT): New variable.
91577         (func_usage): Undocument --assume-autoconf option.
91578         Remove --assume-autoconf option handling.
91579         (autoconf_minversion): Determine from the contents of configure.ac.
91580         (func_import): Remove autoconf_minversion handling.
91581         Suggested by Eric Blake.
91583 2006-07-29  Bruno Haible  <bruno@clisp.org>
91585         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
91587 2006-07-29  Bruno Haible  <bruno@clisp.org>
91589         * config/srclist.txt (*setenv.[ch]): Remove rules.
91591 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91593         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
91595 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91597         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
91598         arpa/inet.h.
91600 2006-07-28  Simon Josefsson  <jas@extundo.com>
91602         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
91603         * modules/inet_pton (Depends-on): Likewise.
91605 2006-07-28  Simon Josefsson  <jas@extundo.com>
91607         * m4/netinet_in_h.m4: New file.
91609 2006-07-28  Simon Josefsson  <jas@extundo.com>
91611         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
91612         #include's.
91614 2006-07-28  Simon Josefsson  <jas@extundo.com>
91616         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
91617         #include's.
91619 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
91621         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
91622         setgid on directories only if they set these bits.
91623         * lib/modechange.h: Remove obsolete comment about masks.
91625 2006-07-28  Eric Blake  <ebb9@byu.net>
91627         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
91628         macro expansion.
91630 2006-07-28  Bruno Haible  <bruno@clisp.org>
91632         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
91634 2006-07-28  Bruno Haible  <bruno@clisp.org>
91636         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
91638 2006-07-28  Bruno Haible  <bruno@clisp.org>
91640         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91641         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91642         Define fallbacks.
91643         Avoids link error on FreeBSD 4.x.
91644         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91646         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
91647         encoding.
91648         * lib/mbswidth.c (iswcntrl): Likewise.
91650 2006-07-27  Bruno Haible  <bruno@clisp.org>
91652         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
91653         test.
91655 2006-07-27  Bruno Haible  <bruno@clisp.org>
91657         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
91658         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
91659         defined.
91661 2006-07-26  Eric Blake  <ebb9@byu.net>
91663         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
91665 2006-07-26  Eric Blake  <ebb9@byu.net>
91667         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
91668         like mingw that lack mkstemp.
91669         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
91670         avoid compilation warning on mingw.
91672 2006-07-26  Bruno Haible  <bruno@clisp.org>
91674         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
91675         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
91676         INT_FAST*_MIN, INTPTR_MIN.
91678 2006-07-25  Bruno Haible  <bruno@clisp.org>
91680         * modules/version-etc (Depends-on): Add stdarg.
91682 2006-07-25  Bruno Haible  <bruno@clisp.org>
91684         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
91685         complex commands.
91687 2006-07-25  Bruno Haible  <bruno@clisp.org>
91689         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
91690         defined in <stdarg.h> or config.h.
91692 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
91694         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
91695         (gl_STDIO_SAFER): Remove.
91697 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
91699         * MODULES.html.sh (File stream based Input/Output):
91700         Add fopen-safer, tmpfile-safer; remove stdio-safer.
91701         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
91702         * modules/fopen-safer, modules/tmpfile-safer: New files.
91703         * modules/stdio-safer: Remove.
91705 2006-07-24  Bruno Haible  <bruno@clisp.org>
91707         * modules/tmpdir: New file.
91708         * MODULES.html.sh (File system functions): Add it.
91710 2006-07-24  Bruno Haible  <bruno@clisp.org>
91712         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
91713         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
91715 2006-07-24  Bruno Haible  <bruno@clisp.org>
91717         * modules/clean-temp: New file.
91719 2006-07-24  Bruno Haible  <bruno@clisp.org>
91721         * m4/tmpdir.m4: New file, from GNU gettext.
91723 2006-07-24  Bruno Haible  <bruno@clisp.org>
91725         * lib/tmpdir.h: New file, from GNU gettext.
91726         * lib/tmpdir.c: New file, from GNU gettext.
91728 2006-07-24  Bruno Haible  <bruno@clisp.org>
91730         * lib/clean-temp.h: New file, from GNU gettext.
91731         * lib/clean-temp.c: New file, from GNU gettext.
91733 2006-07-23  Eric Blake  <ebb9@byu.net>
91735         * modules/stdio-safer (Files): Add tmpfile-safer.c.
91736         (Depends-on): Add binary-io.
91738 2006-07-23  Eric Blake  <ebb9@byu.net>
91740         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
91742 2006-07-23  Eric Blake  <ebb9@byu.net>
91744         * lib/tmpfile-safer.c: New file.
91745         * lib/stdio-safer.h (fopen_safer): Add prototype.
91746         * lib/stdio--.h (tmpfile): Make safer.
91748 2006-07-23  Bruno Haible  <bruno@clisp.org>
91750         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
91751         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
91752         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
91753         gl_linked_remove_at): Use it.
91755 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91756         and Simon Josefsson <jas@extundo.com>
91758         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
91760         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
91762 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91764         * modules/close-stream: New file.
91765         * modules/closeout (Description): Make it clear that it exits
91766         with a diagnostic on error.
91767         (Depends-on): Add close-stream.  Remove fpending, stdbool.
91768         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
91770 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91772         * m4/close-stream.m4: New file.
91774 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91776         * lib/close-stream.c, lib/close-stream.h: New files.
91778 2006-07-22  Bruno Haible  <bruno@clisp.org>
91780         Merge from GNU gettext 0.15.
91782         2006-05-01  Bruno Haible  <bruno@clisp.org>
91784                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
91786         2006-07-22  Bruno Haible  <bruno@clisp.org>
91788                 * modules/javaversion: New file.
91789                 * MODULES.html.sh (Java): Add javaversion.
91791         2006-03-12  Bruno Haible  <bruno@clisp.org>
91793                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
91795         2005-12-04  Bruno Haible  <bruno@clisp.org>
91797                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
91798                 (untested).
91800         2006-06-21  Bruno Haible  <bruno@clisp.org>
91802                 Avoid warnings from recent versions of mcs.
91803                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
91804                 -o, -L, -r any more. Use options documented since mcs-1.0
91805                 instead. Similarly for -g.
91807         2005-12-04  Bruno Haible  <bruno@clisp.org>
91809                 * build-aux/csharpcomp.sh.in: Suffix for resources is
91810                 .resources, not .resource.
91812         2005-07-09  Bruno Haible  <bruno@clisp.org>
91814                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
91815                 add a .dll suffix.
91816                 Reported by Mark Junker <mjscod@gmx.de>.
91818         2006-07-22  Bruno Haible  <bruno@clisp.org>
91820                 * modules/gettext: Upgrade to gettext-0.15.
91821                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
91822                 m4/visibility.m4.
91823                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
91825 2006-07-22  Bruno Haible  <bruno@clisp.org>
91827         Merge from GNU gettext 0.15.
91829         2006-03-25  Bruno Haible  <bruno@clisp.org>
91831                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
91833         2006-07-21  Bruno Haible  <bruno@clisp.org>
91835                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
91836                 "1.1".
91838         2006-05-09  Bruno Haible  <bruno@clisp.org>
91840                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
91841                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
91842                 for the conftestver execution.
91844         2006-05-01  Bruno Haible  <bruno@clisp.org>
91846                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
91847                 optional target-version argument. Verify that the compiler
91848                 groks source of the specified source-version, or add -source
91849                 option as necessary. Verify that the compiler produces
91850                 bytecode in the specified target-version, or add -target and
91851                 -source options as necessary. Make the result of the test
91852                 available as variable CONF_JAVAC. Also log error output in
91853                 config.log.
91855         2006-03-11  Bruno Haible  <bruno@clisp.org>
91857                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
91859         2006-05-09  Bruno Haible  <bruno@clisp.org>
91861                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
91862                 CLASSPATH_SEPARATOR to a semicolon.
91864         2006-03-12  Bruno Haible  <bruno@clisp.org>
91866                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
91867                 available as variable CONF_JAVA, for subsequent autoconf
91868                 tests. Also log error output in config.log.
91870         2006-07-19  Bruno Haible  <bruno@clisp.org>
91872                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
91873                 that getline works on glibc2 systems. Needed to avoid trouble
91874                 in relocatable.c.
91875                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
91877         2005-12-04  Bruno Haible  <bruno@clisp.org>
91879                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
91880                 launcher (untested).
91882         2005-12-04  Bruno Haible  <bruno@clisp.org>
91884                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
91886         2006-07-22  Bruno Haible  <bruno@clisp.org>
91888                 * gettext.m4: Update from GNU gettext-0.15.
91889                 * nls.m4: Likewise.
91890                 * po.m4: Likewise.
91891                 * inttypes-pri.m4: Likewise.
91892                 * inttypes-h.m4: Renamed from inttypes.m4.
91893                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
91895 2006-07-22  Bruno Haible  <bruno@clisp.org>
91897         Merge from GNU gettext 0.15.
91899         2005-07-05  Bruno Haible  <bruno@clisp.org>
91901                 * printf-args.c (printf_fetchargs): Work around broken
91902                 definition of wint_t on mingw.
91904         2005-02-12  Bruno Haible  <bruno@clisp.org>
91906                 * xallocsa.h: Add extern "C" for C++.
91908         2006-05-17  Bruno Haible  <bruno@clisp.org>
91910                 Cygwin portability.
91911                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
91913         2006-04-30  Bruno Haible  <bruno@clisp.org>
91915                 * progreloc.c: Include <mach-o/dyld.h> if available.
91916                 (find_executable): Use _NSGetExecutablePath when possible.
91918         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91920                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
91921                 function.
91923         2005-12-29  Bruno Haible  <bruno@clisp.org>
91925                 * progreloc.c (set_program_name_and_installdir): Fix
91926                 compilation error.
91928         2005-12-04  Bruno Haible  <bruno@clisp.org>
91930                 Cygwin portability.
91931                 * progreloc.c: Include <windows.h> also on Cygwin.
91932                 (find_executable): Add support for Cygwin.
91933                 (set_program_name_and_installdir): Handle also platforms with
91934                 nonempty EXEEXT.
91936         2006-07-11  Bruno Haible  <bruno@clisp.org>
91938                 * javacomp.c: Fix a comment.
91939                 Reported by Jim Meyering.
91941         2006-04-30  Bruno Haible  <bruno@clisp.org>
91943                 * javacomp.h (compile_java_class): Add source_version,
91944                 target_version arguments.
91945                 * javacomp.c: Rewritten to choose only a compiler that
91946                 respects the specified source_version and target_version.
91948         2006-06-27  Bruno Haible  <bruno@clisp.org>
91950                 Assume correct S_ISDIR macro.
91951                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
91953         2006-07-22  Bruno Haible  <bruno@clisp.org>
91955                 * javaversion.h: New file, from GNU gettext.
91956                 * javaversion.c: New file, from GNU gettext.
91957                 * javaversion.java: New file, from GNU gettext.
91958                 * javaversion.class: New file, from GNU gettext.
91960         2006-05-17  Bruno Haible  <bruno@clisp.org>
91962                 Cygwin portability.
91963                 * javaexec.c (execute_java_class): Test for jview program
91964                 also on Cygwin.
91966         2006-04-09  Bruno Haible  <bruno@clisp.org>
91968                 * fatal-signal.c: Don't include string.h.
91969                 (at_fatal_signal): Use a copying loop instead of memcpy.
91971         2005-12-04  Bruno Haible  <bruno@clisp.org>
91973                 * csharpexec.c: Add support for 'clix' launcher (untested).
91974                 (execute_csharp_using_sscli): New function.
91975                 (execute_csharp_program): Call it.
91977         2006-06-21  Bruno Haible  <bruno@clisp.org>
91979                 Avoid warnings from recent versions of mcs.
91980                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
91981                 -o, -L, -r any more. Use options documented since mcs-1.0
91982                 instead. Similarly for -g.
91984         2005-07-09  Bruno Haible  <bruno@clisp.org>
91986                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
91987                 add a .dll suffix.
91988                 Reported by Mark Junker <mjscod@gmx.de>.
91990         2006-06-17  Bruno Haible  <bruno@clisp.org>
91992                 * config.charset: Update for NetBSD 3.0.
91994         2006-05-17  Bruno Haible  <bruno@clisp.org>
91996                 Cygwin portability.
91997                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
91999         2006-05-16  Bruno Haible  <bruno@clisp.org>
92001                 * localcharset.c [CYGWIN]: Include <windows.h>.
92002                 (get_charset_aliases): For Cygwin, return the same CPxxx
92003                 aliases list as under WIN32.
92004                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
92005                 the environment variables. Fall back to GetACP().
92007         2006-04-05  Bruno Haible  <bruno@clisp.org>
92009                 * config.charset: Update Juan Manuel Guerrero's address.
92011         2005-02-12  Bruno Haible  <bruno@clisp.org>
92013                 * allocsa.h: Add extern "C" for C++.
92015         2005-02-10  Bruno Haible  <bruno@clisp.org>
92017                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
92018                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
92020         2006-07-22  Bruno Haible  <bruno@clisp.org>
92022                 * gettext.h: Update to GNU gettext-0.15.
92024 2006-07-22  Bruno Haible  <bruno@clisp.org>
92026         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
92027         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
92028         lib-prefix.m4, longdouble.m4, ssize_t.m4.
92030 2006-07-21  Eric Blake  <ebb9@byu.net>
92032         * modules/stdlib-safer: New file.
92033         * MODULES.html.sh (File stream based Input/Output): Add
92034         stdlib-safer.
92036 2006-07-21  Eric Blake  <ebb9@byu.net>
92038         * lib/stdlib-safer.h: New file from coreutils, required by
92039         stdlib--.h.
92041 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
92043         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
92045 2006-07-20  Bruno Haible  <bruno@clisp.org>
92047         * gnulib-tool: Recognize new option --assume-autoconf.
92048         (autoconf_minversion): New variable.
92049         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
92051 2006-07-20  Bruno Haible  <bruno@clisp.org>
92053         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
92055 2006-07-19  Derek R. Price  <derek@ximbiot.com>
92057         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
92058         Reindent and repaginate.
92060 2006-07-19  Derek Price  <derek@ximbiot.com>
92062         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
92063         Correct grammar.
92065 2006-07-17  Bruno Haible  <bruno@clisp.org>
92067         * modules/list: New file.
92068         * modules/array-list: New file.
92069         * modules/carray-list, modules/carray-list-tests: New files.
92070         * modules/linked-list, modules/linked-list-tests: New files.
92071         * modules/avltree-list, modules/avltree-list-tests: New files.
92072         * modules/rbtree-list, modules/rbtree-list-tests: New files.
92073         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
92074         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
92075         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
92076         * modules/oset: New file.
92077         * modules/array-oset: New file.
92078         * modules/avltree-oset, modules/avltree-oset-tests: New files.
92079         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
92080         * tests/test-carray_list.c: New file.
92081         * tests/test-linked_list.c: New file.
92082         * tests/test-avltree_list.c: New file.
92083         * tests/test-rbtree_list.c: New file.
92084         * tests/test-linkedhash_list.c: New file.
92085         * tests/test-avltreehash_list.c: New file.
92086         * tests/test-rbtreehash_list.c: New file.
92087         * tests/test-avltree_oset.c: New file.
92088         * tests/test-rbtree_oset.c: New file.
92089         * MODULES.html.sh (Container data structures): New section.
92091 2006-07-17  Bruno Haible  <bruno@clisp.org>
92093         * m4/gl_list.m4: New file.
92095 2006-07-17  Bruno Haible  <bruno@clisp.org>
92097         * lib/gl_list.h: New file.
92098         * lib/gl_list.c: New file.
92099         * lib/gl_array_list.h: New file.
92100         * lib/gl_array_list.c: New file.
92101         * lib/gl_carray_list.h: New file.
92102         * lib/gl_carray_list.c: New file.
92103         * lib/gl_linked_list.h: New file.
92104         * lib/gl_linked_list.c: New file.
92105         * lib/gl_anylinked_list1.h: New file.
92106         * lib/gl_anylinked_list2.h: New file.
92107         * lib/gl_avltree_list.h: New file.
92108         * lib/gl_avltree_list.c: New file.
92109         * lib/gl_anyavltree_list1.h: New file.
92110         * lib/gl_anyavltree_list2.h: New file.
92111         * lib/gl_rbtree_list.h: New file.
92112         * lib/gl_rbtree_list.c: New file.
92113         * lib/gl_anyrbtree_list1.h: New file.
92114         * lib/gl_anyrbtree_list2.h: New file.
92115         * lib/gl_anytree_list1.h: New file.
92116         * lib/gl_anytree_list2.h: New file.
92117         * lib/gl_linkedhash_list.h: New file.
92118         * lib/gl_linkedhash_list.c: New file.
92119         * lib/gl_anyhash_list1.h: New file.
92120         * lib/gl_anyhash_list2.h: New file.
92121         * lib/gl_avltreehash_list.h: New file.
92122         * lib/gl_avltreehash_list.c: New file.
92123         * lib/gl_rbtreehash_list.h: New file.
92124         * lib/gl_rbtreehash_list.c: New file.
92125         * lib/gl_anytreehash_list1.h: New file.
92126         * lib/gl_anytreehash_list2.h: New file.
92128         * lib/gl_oset.h: New file.
92129         * lib/gl_oset.c: New file.
92130         * lib/gl_array_oset.h: New file.
92131         * lib/gl_array_oset.c: New file.
92132         * lib/gl_avltree_oset.h: New file.
92133         * lib/gl_avltree_oset.c: New file.
92134         * lib/gl_rbtree_oset.h: New file.
92135         * lib/gl_rbtree_oset.c: New file.
92136         * lib/gl_anytree_oset.h: New file.
92138 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
92140         * m4/mkancesdirs.m4: New file.
92141         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
92142         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
92143         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
92144         it.
92146 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
92148         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
92149         * lib/mkancesdirs.h: New files.
92150         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
92151         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
92152         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
92153         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
92154         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
92155         callers changed.  Revamp internals significantly, by not
92156         attempting to create directories that are temporarily more
92157         permissive than the final results.  Do not attempt to use
92158         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
92159         This removes some race conditions, fixes some bugs, and simplifies
92160         things.  Use new dirchownmod function to do owner and mode changes.
92161         * lib/mkdir-p.h: Likewise.
92162         * lib/modechange.c (octal_to_mode): New function.
92163         (struct mode_change): New member mentioned.
92164         (make_node_op_equals): New arg mentioned.  All callers changed.
92165         (mode_compile): Keep track of which mode bits the user has explicitly
92166         mentioned.
92167         (mode_adjust): New arg DIR, so that we implement the X op correctly.
92168         New arg PMODE_BITS, to keep track of which mode bits the user
92169         mentioned; it treats S_ISUID and S_ISGID speciall.
92170         All callers changed.
92171         * lib/modechange.h: Likewise.
92173 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
92175         * MODULES.html.sh: Add mkancestors.
92176         * modules/mkancesdirs: New module.
92177         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
92178         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
92179         The chdir-safer and afs files are now orphans; I'll remove them
92180         unless someone speaks up.
92181         Add lib/dirchownmod.c, lib/dirchownmod.h.
92182         (Depends-on): Remove alloca, chown, save-cwd, dirname.
92183         Add lchown, mkancesdirs.
92184         (Maintainer): Add self.
92186 2006-07-15  Karl Berry  <karl@gnu.org>
92188         * gnulib-tool: help message wording/arrangement.
92190 2006-07-14  Simon Josefsson  <jas@extundo.com>
92192         * doc/gnulib.texi (Libtool and Windows): New section.
92194 2006-07-12  Simon Josefsson  <jas@extundo.com>
92196         * modules/gendocs (License): Fix license, approved by Karl.
92198 2006-07-12  Eric Blake  <ebb9@byu.net>
92200         * MODULES.html.sh: Add gendocs.
92202 2006-07-11  Eric Blake  <ebb9@byu.net>
92204         * modules/fdl: New module, to install doc/fdl.texi.
92205         * MODULES.html.sh: Add new section for documentation modules.
92206         * gnulib-tool: Avoid space-tab.
92207         (--doc-base): New option, to manage files from doc.
92209 2006-07-11  Eric Blake  <ebb9@byu.net>
92211         * m4/absolute-header.m4: Fix comments to match recent change.
92213 2006-07-11  Eric Blake  <ebb9@byu.net>
92215         * gnulib-tool: List --doc-base before --tests-base.
92217 2006-07-11  Derek R. Price  <derek@ximbiot.com>
92219         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
92221 2006-07-11  Bruno Haible  <bruno@clisp.org>
92223         * README: Mention where to put documentation.
92225 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92227         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
92229 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
92231         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
92232         to stdint.m4.
92234 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
92236         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
92237         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
92238         "no/such/file/stdint.h" when there is no such file, so that
92239         the resulting C code can be parsed by dodgy compilers.
92240         Problems reported by Bob Proulx.
92242 2006-07-10  Derek R. Price  <derek@ximbiot.com>
92244         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
92245         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
92246         macros into the GNU _D_EXACT_NAMLEN.
92247         * lib/savedir.c:  Likewise.
92248         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
92250 2006-07-10  Derek R. Price  <derek@ximbiot.com>
92251         and Paul Eggert  <eggert@cs.ucla.edu>
92253         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
92254         * m4/savedir.m4:
92255         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
92256         macros into the GNU _D_EXACT_NAMLEN.
92258 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
92260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
92261         around the absolute name, to work around a problem with the HP-UX
92262         11.23 native C compiler, reported by Bob Proulx.
92264 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
92266         * doc/maintain.texi, make-stds.texi: Sync from
92267         <http://savannah.gnu.org/projects/gnustandards>.
92269 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
92271         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
92273 2006-07-09  Jim Meyering  <jim@meyering.net>
92275         * m4/glob.m4: Remove a doubled word in a comment.
92277 2006-07-09  Jim Meyering  <jim@meyering.net>
92279         * lib/argp-pv.c: Remove a doubled word in a comment.
92280         * lib/check-version.c (check_version): Likewise.
92281         * lib/javacomp.c (compile_java_class): Likewise.
92283 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
92285         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
92286         for the benefit of people using Autoconf 2.60.  If you want to
92287         support older Autoconf versions you can copy m4/onceonly_2_57.m4
92288         (or m4/onceonly.m4, if pre-2.57) manually.
92290 2006-07-08  Jim Meyering  <jim@meyering.net>
92292         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
92293         comment.
92294         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
92295         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
92296         comment.
92298 2006-07-08  Jim Meyering  <jim@meyering.net>
92300         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
92302 2006-07-07  Simon Josefsson  <jas@extundo.com>
92304         * tests/test-crc.c: Change expected crc value, the test vector
92305         were probably computed using the old broken crc.c?
92307 2006-07-06  Simon Josefsson  <jas@extundo.com>
92309         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
92310         now the canonical place for the M4 file).
92312         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
92313         from the sys_socket dependency now.
92315         * modules/inet_pton (Files): Ditto.
92317         * modules/inet_ntop (Files): Ditto.
92319 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
92321         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
92322         not gl_PREREQ_GETUSERSHELL.
92324 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92326         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
92327         with only one argument, for Autoconf 2.60.
92328         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
92329         expand to nothing, so add a shell command to avoid syntax error.
92330         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
92332 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92334         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
92336 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
92338         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
92339         no longer needed.  Check for isblank decl.
92340         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
92341         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
92342         of existence.
92344 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
92346         * lib/getloadavg.c: Use __VMS, not VMS.
92347         * lib/getopt.c: Likewise.
92348         * lib/getpagesize.h: Likewise.
92349         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
92350         and probably does not work.
92352 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
92354         * lib/.cppi-disable: Add wcwidth.
92355         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
92356         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
92357         (ISGRAPH): Remove.  All uses changed to isgraph.
92358         (FOLD) [!defined _LIBC]: Remove special case.
92359         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
92360         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
92361         HAVE_ISBLANK.
92362         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
92363         case.
92365 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
92367         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
92368         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
92369         brackets.  Other minor changes to suppress some compiler
92370         warnings.
92372 2006-07-06  Derek R. Price  <derek@ximbiot.com>
92373         and Paul Eggert  <eggert@cs.ucla.edu>
92375         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
92376         of invoking obsolescent AC_HEADER_DIRENT macro.
92377         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
92378         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
92379         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
92380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
92381         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
92382         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
92383         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
92384         * m4/readdir.m4: Remove; no longer needed.
92386 2006-07-06  Derek R. Price  <derek@ximbiot.com>
92387         and Paul Eggert  <eggert@cs.ucla.edu>
92389         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
92390         Don't worry about this obsolete case any more.
92391         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
92392         directories.
92393         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
92394         worry about this obsolete case any more.
92395         * lib/fts.c: Likewise.
92396         * lib/getcwd.c: Likewise.
92397         * lib/glob.h: Likewise.
92398         * lib/savedir.c: Likewise.
92400 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
92402         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
92403         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
92404         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
92405         needed.
92406         All uses removed.
92407         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
92408         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
92409         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
92410         needed.
92411         * m4/getdate.m4 (gl_GETDATE): Likewise.
92412         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
92413         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
92414         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
92415         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
92416         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
92417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92418         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
92419         needed.
92421 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
92423         * lib/memcasecmp.c: Include <limits.h>.
92424         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
92425         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
92426         Don't assume isdigit succeeds only on '0' through '9'.
92428 2006-07-05  Eric Blake  <ebb9@byu.net>
92430         * modules/getaddrinfo (Depends-on): Add snprintf.
92432 2006-07-05  Eric Blake  <ebb9@byu.net>
92434         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
92435         to avoid 'header present but could not be compiled' on cygwin.
92437 2006-07-05  Eric Blake  <ebb9@byu.net>
92439         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
92440         missing from netdb.h.
92441         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
92443 2006-07-05  Derek R. Price  <derek@ximbiot.com>
92445         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
92446         no longer needed.
92447         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
92448         * m4/getdate.m4 (gl_GETDATE): Likewise.
92449         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
92450         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
92451         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
92452         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
92453         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92455 2006-07-05  Derek R. Price  <derek@ximbiot.com>
92457         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
92458         All uses of is_space replaced by isspace.
92459         * lib/exit.h: Don't talk about STDC_HEADERS.
92460         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
92461         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
92462         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
92463         replaced by isprint etc.
92464         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
92465         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
92466         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
92467         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
92468         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
92469         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
92471 2006-07-05  Bruno Haible  <bruno@clisp.org>
92473         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
92474         the function exists, before testing against AIX.
92475         Reported by Martin Lambers <marlam@marlam.de>.
92477 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
92479         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
92480         From Mark D. Baushke.
92482 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
92484         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
92485         to the absolute name, not just one, to bypass Sun C 5.8's
92486         "warning: #include of /usr/include/... may be non-portable".
92488 2006-07-04  Eric Blake  <ebb9@byu.net>
92490         * modules/dirname-tests: New test module.
92491         * tests/test-dirname.c: New file, replacing dirname.c
92492         TEST_DIRNAME section that was recently deleted.
92494 2006-07-04  Bruno Haible  <bruno@clisp.org>
92496         Assume ANSI C header files and <ctype.h> functions.
92497         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
92498         (mbsnwidth): Use isprint, iscntrl instead.
92500 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
92502         Merge from coreutils.
92503         * MODULES.html.sh: Add xstrtold.
92504         * modules/xstrtold: New file.
92505         * modules/cycle-check (Files): Add lib/same-inode.h.
92506         * modules/dirname (Files): Add m4/double-slash-root.m4.
92507         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
92508         * modules/mkdir-p (Files): Add lib/same-inode.h.
92509         * modules/same (Files): Add lib/same-inode.h.
92511 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
92513         * m4/absolute-header.m4: Renamed from full-header-path.m4.
92514         This is to keep the terminology clean; POSIX talks about
92515         "absolute pathnames", not "full pathnames", but the GNU
92516         Coding Standards say to use "path" for something else;
92517         so use "absolute" to keep both sides happy.
92518         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
92519         Set gl_absolute_header, not gl_full_header_path.
92520         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
92521         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
92522         All uses changed.
92524         Merge from coreutils.
92526         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
92528         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
92529         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
92530         want to require the building of c-strtod.o.
92531         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
92532         needs -lm directly.
92533         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
92535         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
92537         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
92538         --as-needed option if available.  Problem reported by Albert Chin in
92539         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
92540         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
92541         cc merely issues a bunch of annoying warnings for --as-needed
92542         (this problem was reported by Bob Proulx).  Also, try linking with
92543         -lm to detect a bug in binutils 2.16 (this problem was reported
92544         by Ralf Wildenhues).
92546         2006-06-18  Jim Meyering  <jim@meyering.net>
92548         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
92549         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
92550         macro.
92551         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
92552         also check for glibc-2.4's abort-inducing bug.
92554         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
92555         Low-probability clean-up should be to use rmdir to get rid of
92556         the just-created directory, not unlink.
92558         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
92559         configure fail, and request a bug report to inform us about it.
92560         Add a comment that, barring reports to the contrary, in 2007 we'll
92561         assume ftruncate is universally available.
92563         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
92565         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
92567         2006-03-12  Jim Meyering  <jim@meyering.net>
92569         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
92570         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
92571         * m4/same.m4 (gl_SAME): Likewise.
92572         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
92574         2006-03-11  Eric Blake  <ebb9@byu.net>
92576         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
92577         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
92578         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
92579         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
92581 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
92583         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
92584         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
92585         reported by Mark D. Baushke, one in
92586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
92588         Merge from coreutils.
92590         * lib/.cppi-disable: Add stdint_.h.
92591         * lib/.cvsignore: Add stdint.h.
92593         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
92595         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
92596         both double and long double versions.
92597         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
92598         * lib/xstrtold.c: New file.
92599         * lib/xstrtod.h (xstrtold): New decl.
92601         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
92603         * lib/filemode.c (setst): Remove.
92604         (strmode): Rewrite to avoid setst.  This makes the code shorter,
92605         (arguably) clearer, and the generated code is a bit smaller on my
92606         Debian GNU/Linux stable x86 host.
92608         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
92610         * lib/filemode.c: Include "filemode.h" first, to test the interface.
92611         Assume that filemode.h includes sys/types.h and sys/stat.h.
92612         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
92613         (ftypelet): Reorder to put common cases first, for efficiency.
92614         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
92615         to do 'M'.
92616         (strmode): Renamed from mode_string, and now stores 12 bytes instead
92617         of 10, for compatibility with FreeBSD.  All callers changed.
92618         (filemodestring): Now stores 12 bytes instead of 10, and sets file
92619         types that can't be deduced solely from st_mode.  First arg is now a
92620         const pointer.
92621         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
92622         (strmode): Renamed from mode_string.
92623         (filemodestring): New decl.
92624         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
92625         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
92626         needed.
92627         (S_ISPORT, S_ISWHT): New macros, if not already defined.
92629         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
92631         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
92632         fsusage.h now does that.  Include fsusage.h first, to test interface.
92633         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
92634         at most one method (the old code could have generated decls that
92635         didn't conform to C89, not that this was ever exercised).
92636         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
92638         2006-03-19  Jim Meyering  <jim@meyering.net>
92640         Work even in a chroot where d_ino values for entries in "/"
92641         don't match the stat.st_ino values for the same names.
92642         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
92643         number, iterate through all entries again, using lstat instead.
92644         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
92645         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
92647         * lib/getcwd.c (__getcwd): Clarify a comment.
92648         Use memcpy in place of a call to strcpy.
92650         2006-03-12  Jim Meyering  <jim@meyering.net>
92652         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
92653         matches that of the current directory (which we're about to chdir ".."
92654         out of), then save the dev-ino of the parent, instead.
92656         * lib/same-inode.h (SAME_INODE): New file/macro.
92657         * lib/chdir-safer.c (SAME_INODE): Remove definition.
92658         Include "same-inode.h", instead.
92659         * lib/same.c: Likewise.
92660         * lib/cycle-check.h: Include "same-inode.h".
92661         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
92662         * lib/cycle-check.c (SAME_INODE): Remove definition.
92663         * lib/root-dev-ino.h: Include "same-inode.h".
92665         2006-03-11  Eric Blake  <ebb9@byu.net>
92667         * lib/same.c (same_name): s/base_name/last_component/
92668         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
92669         * lib/filenamecat.c (file_name_concat): Likewise.
92671         2006-03-11  Eric Blake  <ebb9@byu.net>,
92672                     Paul Eggert  <eggert@cs.ucla.edu>
92674         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
92675         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
92676         drive prefix.
92677         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
92678         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
92679         (last_component): New method.
92680         * lib/dirname.c (dir_len): Determine when drive letters need a
92681         subsequent slash.  Preserve // when it is special.
92682         (dir_name): Don't append dot when drive letter is absolute.
92683         [TEST_DIRNAME]: Move into a full-blown gnulib test.
92684         * lib/basename.c (base_name): New semantics - malloc the result.
92685         Preserve // when it is special.  Preserve relative files that look
92686         like drive letters.
92687         (base_len): Preserve // when it is special.
92688         (last_component): New method, similar to old base_name semantics.
92689         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
92690         base_name.  Strip redundant slashes from ///.
92692 2006-07-03  Jim Meyering  <jim@meyering.net>
92694         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
92695         macro is used before the first cycle_check call.
92697 2006-07-03  Eric Blake  <ebb9@byu.net>
92699         * modules/dirname (Depends-on): Add xstrndup.
92701 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92703         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
92704         test cases, so that config.log is a bit easier to follow.
92706 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92708         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
92709         both are 64 bits, since this seems to be the tradition, and this
92710         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
92711         we ever run into a host that prefers long long to long in this
92712         case, we'll need another configure-time test.  Problem reported by
92713         Jim Meyering.
92715 2006-07-02  Eric Blake  <ebb9@byu.net>
92717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
92719 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
92721         * modules/inttypes (Depends-on): No longer depends on stdint.
92722         * modules/stdint (Description): Say more about assumptions.
92723         Say that the fast types might differ.  Say macros are used.
92724         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
92725         (Makefile.am): Revise list of substituted symbols to match
92726         new stdint.m4.
92727         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
92728         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
92729         * tests/test-stdint.c (verify_same_types)
92730         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
92731         the code conforms to C99/C89.
92732         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
92733         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
92735 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
92737         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
92738         but fix a bug, by requiring at least 64 bits.
92739         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
92740         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
92741         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
92742         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92744         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
92745         changes.  Make 2.59 a prerequisite.  Check and substitute for
92746         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
92747         inttypes.h.  Do not use special include files; just use the
92748         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
92749         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
92750         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
92751         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
92752         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
92753         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
92754         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
92755         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
92756         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
92757         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
92758         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
92759         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
92760         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
92761         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
92762         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
92763         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
92764         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
92765         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
92766         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
92767         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
92768         WINT_MAX.  Check for C99 conformance more strictly, by detecting
92769         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
92770         not check for things that C99 does not require, e.g., int8_t.  If
92771         a test isn't needed unless <stdint.h> isn't working, and is
92772         unlikely to be needed for any other reason, then don't do it
92773         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
92774         size_t, since we assume C89 freestanding at least.  Do not check
92775         for sig_atomic_t, wchar_t, or wint_t, since the code now does
92776         the right thing even if the types are not defined.  Instead use:
92777         (gl_STDINT_TYPE_PROPERTIES): New macro.
92778         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
92779         testing whether <sys/types.h> clashes, as Autoconf does this for
92780         us now.  All uses removed.
92781         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
92782         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
92783         (gl_CHECK_TYPE_SAME):
92784         Remove; no longer needed.
92785         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
92786         exists, since we'll return 0 anyway in that case.
92787         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
92789 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
92791         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
92792         possible collision with system files.
92793         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
92794         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
92795         WCHAR_MIN and WCHAR_MAX in this case.
92796         (<stddef.h>): Do not include; no longer needed.
92797         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
92798         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
92799         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
92800         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
92801         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
92802         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
92803         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
92804         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
92805         !defined(__c99))]: Include in this case too, since it's harmless
92806         now.
92807         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
92808         dangerous to do so.
92809         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
92810         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
92811         (_STDINT_MIN, _STDINT_MAX): New macros.
92812         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
92813         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
92814         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
92815         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
92816         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
92817         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
92818         macros, not typedefs; this simplifies things quite a bit.
92819         Use long int for all types narrower than int64_t.
92820         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
92821         Define in terms of long long int or int64_t or long int,
92822         not int64_t or int32_t.  This saves some compile-time testing.
92823         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
92824         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
92825         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
92826         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
92827         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
92828         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
92829         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
92830         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
92831         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
92832         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
92833         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
92834         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
92835         undef any previous version and define our own version, for
92836         simplicity and consistency with the new macros for types.
92837         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
92838         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
92839         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
92840         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
92841         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
92842         @WINT_T_SUFFIX@ to keep things simple here.
92843         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
92844         Simplify by assuming typical 8/16/32/64 host, since we're
92845         already doing that elsewhere anyway.
92846         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
92847         and assume long long int is 64 bits if available.  This
92848         speeds up 'configure'.
92850 2006-07-01  Eric Blake  <ebb9@byu.net>
92852         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
92853         Reported by Andreas Buening.
92855 2006-07-01  Eric Blake  <ebb9@byu.net>
92857         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
92859 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
92861         * lib/getaddrinfo.c: fixed typo
92863 2006-06-29  Jim Meyering  <jim@meyering.net>
92865         * modules/strftime (Maintainer): Add my name, since with the
92866         FPRINTFTIME changes strftime.c has forked from glibc.
92868 2006-06-29  Eric Blake  <ebb9@byu.net>
92870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
92872 2006-06-29  Eric Blake  <ebb9@byu.net>
92874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
92876 2006-06-29  Eric Blake  <ebb9@byu.net>
92878         * lib/stat_.h: New file.
92880 2006-06-29  Eric Blake  <ebb9@byu.net>
92882         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
92883         unused static function.
92885 2006-06-29  Eric Blake  <ebb9@byu.net>
92887         * doc/functions.texi (Function Portability): Document missing lstat
92888         on mingw.
92890 2006-06-29  Eric Blake  <ebb9@byu.net>
92892         * MODULES.html.sh: Add sys_stat.
92893         * modules/sys_stat: New module.
92894         * modules/mkstemp (Depends-on): Add sys_stat.
92896 2006-06-29  Derek R. Price  <derek@ximbiot.com>
92898         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
92900 2006-06-29  Derek R. Price  <derek@ximbiot.com>
92902         * m4/c-bs-a.m4: Removed.
92904 2006-06-29  Derek R. Price  <derek@ximbiot.com>
92906         * lib/strftime.c: Assume strftime() exists.
92908 2006-06-29  Derek Price  <derek@ximbiot.com>
92910         * modules/c-bs-a: Removed - \a is C89.
92911         * MODULES.html.sh: Remove c-bs-a.
92913 2006-06-29  Bruno Haible  <bruno@clisp.org>
92915         * modules/wcwidth (License): Change to LGPL.
92917 2006-06-28  Simon Josefsson  <jas@extundo.com>
92919         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
92920         on _WIN32.
92922         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
92923         getnameinfo.
92925 2006-06-28  Simon Josefsson  <jas@extundo.com>
92927         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
92929 2006-06-28  Simon Josefsson  <jas@extundo.com>
92931         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
92932         functions there.  It will succeed on Windows XP, but on Windows
92933         2000 and (presumably) earlier, it will fail, and use the internal
92934         re-implementation.
92935         (use_win32_p): New function.
92936         (getaddrinfo): Use strtoul on servname, to support numeric ports.
92937         Support AI_NUMERICSERV to disable getservbyname.
92938         (getnameinfo): New function, only supports
92939         NI_NUMERICHOST|NI_NUMERICSERV for now.
92941         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
92942         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
92943         getnameinfo.
92945 2006-06-28  Eric Blake  <ebb9@byu.net>
92947         * modules/wcwidth: New file.
92948         * modules/mbchar (Depends-on): Add wcwidth.
92949         * modules/mbswidth (Depends-on): Add wcwidth.
92950         * MODULES.html.sh: Add wcwidth.
92952 2006-06-28  Eric Blake  <ebb9@byu.net>
92954         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
92955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
92957 2006-06-28  Eric Blake  <ebb9@byu.net>
92959         * lib/xvasprintf.h: Fix comments.
92961 2006-06-28  Eric Blake  <ebb9@byu.net>
92963         * lib/mbchar.h (wcwidth): Include wcwidth.h.
92964         * lib/mbswidth.c (wcwidth): Move from here...
92965         * lib/wcwidth.h: ...to this new file.
92967 2006-06-28  Derek R. Price  <derek@ximbiot.com>
92969         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
92971         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
92972         it's obsolete.
92973         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
92975 2006-06-28  Derek R. Price  <derek@ximbiot.com>
92977         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
92978         Autoconf 2.60 says this stuff was obsolete.
92980 2006-06-28  Bruno Haible  <bruno@clisp.org>
92982         * modules/wcwidth (Files): Add m4/wchar_t.m4.
92984 2006-06-28  Bruno Haible  <bruno@clisp.org>
92986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
92987         gt_TYPE_WCHAR_T.
92989 2006-06-28  Bruno Haible  <bruno@clisp.org>
92991         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
92992         declaration for wcwidth.
92993         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
92995 2006-06-28  Bruno Haible  <bruno@clisp.org>
92997         * lib/mkdtemp.c [MINGW]: Include <io.h>.
92998         (mkdir): Define using _mkdir.
93000 2006-06-28  Bruno Haible  <bruno@clisp.org>
93002         * lib/getaddrinfo.h: Fix POSIX URL.
93003         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
93004         _WIN32.
93005         (use_win32_p): Make static.
93006         (getaddrinfo): Reject service name if it is empty or does not consist
93007         solely of decimal digits, or if its value is > 65535.
93008         (getnameinfo): Remove useless casts.
93010 2006-06-27  Simon Josefsson  <jas@extundo.com>
93012         * modules/sys_select: New file, suggested by Bruno Haible, Paul
93013         Eggert and Martin Lambers.
93015 2006-06-27  Simon Josefsson  <jas@extundo.com>
93017         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
93018         Eggert and Martin Lambers.
93020 2006-06-27  Bruno Haible  <bruno@clisp.org>
93022         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
93023         result to 0, not to empty.
93024         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
93026 2006-06-27  Bruno Haible  <bruno@clisp.org>
93028         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
93030 2006-06-26  Simon Josefsson  <jas@extundo.com>
93032         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
93033         present.
93035 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
93037         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
93038         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
93039         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
93041 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
93043         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
93045 2006-06-26  Bruno Haible  <bruno@clisp.org>
93047         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
93049 2006-06-26  Bruno Haible  <bruno@clisp.org>
93051         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
93053 2006-06-26  Bruno Haible  <bruno@clisp.org>
93055         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
93056         SGI C compiler in pre-C99 mode.
93057         Suggested by Mark D. Baushke and Larry Jones.
93059 2006-06-26  Bruno Haible  <bruno@clisp.org>
93061         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
93062         WCHAR_MAX.
93063         Reported by Mark D. Baushke and Larry Jones.
93065 2006-06-26  Bruno Haible  <bruno@clisp.org>
93067         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
93068         in pre-C99 mode.
93069         Suggested by Mark D. Baushke and Larry Jones.
93071 2006-06-23  Simon Josefsson  <jas@extundo.com>
93072             Bruno Haible  <bruno@clisp.org>
93074         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
93075         Emit mostlyclean-local rule.
93076         (func_emit_tests_Makefile_am): Likewise.
93077         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
93079 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
93081         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
93083 2006-06-23  Bruno Haible  <bruno@clisp.org>
93085         * tests/test-stdint.c: Update to match ISO C 99 Technical
93086         Corrigendum 1.
93088 2006-06-23  Bruno Haible  <bruno@clisp.org>
93090         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
93092 2006-06-23  Bruno Haible  <bruno@clisp.org>
93094         * lib/stdint_.h: Treat IRIX like OpenBSD.
93096 2006-06-23  Bruno Haible  <bruno@clisp.org>
93098         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
93099         ISO C 99 Technical Corrigendum 1.
93101 2006-06-22  Simon Josefsson  <jas@extundo.com>
93103         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
93104         MinGW.
93106 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
93108         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
93109         needed.  Some compiler complained about some of them.  Problem reported
93110         by Larry Jones in
93111         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
93113 2006-06-21  Simon Josefsson  <jas@extundo.com>
93115         * tests/test-getaddrinfo.c: New file.
93117         * modules/getaddrinfo-tests: New file.
93119         * MODULES.html.sh: Add inet_pton.
93121         * modules/inet_pton: New file.
93123 2006-06-21  Simon Josefsson  <jas@extundo.com>
93125         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
93126         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
93127         of using the (limited) gnulib implementation on Windows XP.
93129         * m4/inet_pton.m4: New file.
93131 2006-06-21  Simon Josefsson  <jas@extundo.com>
93133         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
93134         variable.
93136         * lib/socket_.h: Don't define WINVER.
93138         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
93139         slightly modified to work in gnulib.
93141 2006-06-21  Simon Josefsson  <jas@extundo.com>
93143         * doc/gnulib.texi (Windows sockets): Add.
93145 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
93147         * lib/read-file.c (fread_file): Start with buffer allocation of
93148         0 bytes rather than 1 byte; this simplifies the code.
93149         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
93150         code to free buffer and save/restore errno.
93151         (internal_read_file): Remove unused local.
93153 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
93155         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
93156         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
93157         Problem reported by Denis Excoffier in
93158         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
93160 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93162         * modules/sys_socket, modules/socklen: Include sys/types since
93163         FreeBSD 4.x's sys/socket.h needs it.
93165 2006-06-19  Simon Josefsson  <jas@extundo.com>
93167         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
93169 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
93171         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
93173 2006-06-19  Bruno Haible  <bruno@clisp.org>
93175         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
93176         and FULL_PATH_INTTYPES_H in angle brackets.
93177         Reported by Mark D. Baushke <mdb@gnu.org>.
93179 2006-06-17  Eric Blake  <ebb9@byu.net>
93181         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
93182         errno.
93184 2006-06-17  Bruno Haible  <bruno@clisp.org>
93186         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
93187         <sys/inttypes.h>.
93189 2006-06-17  Bruno Haible  <bruno@clisp.org>
93191         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
93192         whether errno is declared. Assume <errno.h> declares errno.
93194 2006-06-17  Bruno Haible  <bruno@clisp.org>
93196         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
93198 2006-06-17  Bruno Haible  <bruno@clisp.org>
93200         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
93201         problem on Solaris 2.5.1.
93203 2006-06-16  Eric Blake  <ebb9@byu.net>
93205         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
93206         * lib/unicodeio.c [!defined errno]: Likewise.
93207         * lib/strtol.c [!defined errno]: Likewise.
93208         * lib/strtod.c [!defined errno]: Likewise.
93210 2006-06-15  Eric Blake  <ebb9@byu.net>
93212         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
93214 2006-06-15  Eric Blake  <ebb9@byu.net>
93216         * config/srclist.txt (ssize_t.m4): Lose sync.
93218 2006-06-15  Bruno Haible  <bruno@clisp.org>
93220         * modules/stdint (Files): Include m4/full-header-path.m4,
93221         m4/size_max.m4, m4/wchar_t.m4.
93222         (Makefile.am): Many more substitutions.
93223         * modules/stdint-tests: New file.
93224         * tests/test-stdint.c: New file.
93226 2006-06-15  Bruno Haible  <bruno@clisp.org>
93228         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
93229         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
93230         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
93231         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
93232         gl_CHECK_TYPE_SAME): New macros.
93234 2006-06-15  Bruno Haible  <bruno@clisp.org>
93236         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
93238 2006-06-15  Bruno Haible  <bruno@clisp.org>
93240         * lib/stdint_.h: Rewritten to be fully auto-configured.
93241         Fixes bug on HP-UX/IA64.
93243 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
93245         * lib/getdate.y (__attribute__): Don't define if already defined.
93246         Problem reported by Larry Jones.
93247         * lib/utimens.c (__attribute__): Likewise.
93249 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
93251         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
93252         reported by Andreas Schwab.
93254 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93255             Bruno Haible  <bruno@clisp.org>
93257         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
93258         check for the declaration of strnlen and a run test that exposes the
93259         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
93260         rpl_strndup.
93262 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93263             Bruno Haible  <bruno@clisp.org>
93265         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
93267 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93269         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
93270         compile test, for Tru64 4.0D.
93272 2006-05-28  Karl Berry  <karl@gnu.org>
93274         * config/srclist.txt (printf-args.c): lose sync.
93276 2006-05-26  Martin Lambers  <marlam@marlam.de>
93278         * lib/getpass.c: Updates the test for the native W32 API, and adds
93279         missing includes, thus fixing compilation warnings.
93281 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
93283         * lib/exclude.c (exclude_fnmatch): New function.
93284         (excluded_file_name): Call exclude_fnmatch.
93285         * lib/exclude.h (excluded_file_name): New prototype
93287 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
93289         * lib/tempname.c (small_open, large_open): New macros.
93290         (__open, __open64) [!_LIBC]: Remove.
93291         (__gen_tempname): Use small_open and large_open instead of __open
93292         and __open64.  This fixes a portability bug on HP-UX 11.11i
93293         reported by Simon Wing-Tang in
93294         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
93296 2006-05-24  Bruno Haible  <bruno@clisp.org>
93298         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
93299         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
93300         Reported by Thorsten Maerz <torte@netztorte.de> via
93301         Aaron Stone <aaron@serendipity.cx>.
93303 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
93305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
93306         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
93307         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
93308         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
93309         not really conditional on the cache.
93310         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
93312 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
93314         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
93315         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
93316         (my_usleep): Don't mishandle maximum value.
93318 2006-05-19  Jim Meyering  <jim@meyering.net>
93320         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
93322 2006-05-17  Bruno Haible  <bruno@clisp.org>
93324         Cygwin portability.
93325         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
93327 2006-05-17  Bruno Haible  <bruno@clisp.org>
93329         * lib/stdint_.h: Fix recognition of Cygwin.
93331 2006-05-15  Bruno Haible  <bruno@clisp.org>
93333         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
93334         on libtool patch by Ralf Wildenhues.
93336 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
93338         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
93339         test for C99 conformance; (bool) 0.5 is an integer constant
93340         expression, but (bool) -0.5 is not.  Problem reported by Fedor
93341         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
93343 2006-05-11  Simon Josefsson  <jas@extundo.com>
93345         * m4/xvasprintf.m4: Fix obvious typo.
93347 2006-05-11  Jim Meyering  <jim@meyering.net>
93349         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
93350         James Lemley.
93352 2006-05-10  Simon Josefsson  <jas@extundo.com>
93354         * lib/md4.c: Typo fix, update copyright years.
93355         (K1, K2): Don't use L because it turn computations into 64-bit on
93356         64-bit platforms.
93358 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
93360         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
93361         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
93362         unwanted sign propagation, e.g., on hosts with 64-bit int.
93363         There still are some problems with reeelly weird theoretical hosts
93364         (e.g., 33-bit int) but it's not worth worrying about now.
93365         * lib/sha1.c (rol): Likewise.
93366         (K1, K2, K3, K4): Remove unnecessary L suffix.
93368 2006-05-10  Bruno Haible  <bruno@clisp.org>
93370         * lib/des.c: Cast to avoid warnings.
93372 2006-05-09  Bruno Haible  <bruno@clisp.org>
93374         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
93375         (Depends-on): Depend also on xsize, stdarg.
93376         (configure.ac): Add gl_XVASPRINTF.
93378 2006-05-09  Bruno Haible  <bruno@clisp.org>
93380         * m4/xvasprintf.m4: New file.
93382 2006-05-09  Bruno Haible  <bruno@clisp.org>
93384         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
93385         (EOVERFLOW): Define fallback value.
93386         (xstrcat): New function.
93387         (xvasprintf): Recognize the special case of a string concatenation.
93389 2006-05-08  Eric Blake  <ebb9@byu.net>
93391         * gnulib-tool (func_version): Base copyright year on CVS date.
93392         (func_emit_copyright_notice): New function.
93393         (func_emit_lib_Makefile_am): Use it.
93394         (func_emit_tests_Makefile_am): Likewise.
93395         (func_import): Likewise.
93397 2006-05-08  Bruno Haible  <bruno@clisp.org>
93399         * modules/stdarg: New file.
93400         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
93402 2006-05-08  Bruno Haible  <bruno@clisp.org>
93404         * m4/stdarg.m4: New file, from GNU gettext.
93406 2006-05-08  Bruno Haible  <bruno@clisp.org>
93408         * config/srclist.txt (build-aux/config.rpath): different from latest
93409         release.
93411 2006-05-08  Bruno Haible  <bruno@clisp.org>
93413         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
93415 2006-05-05  Jim Meyering  <jim@meyering.net>
93417         * m4/warning.m4: New file, derived from bison's file by the same name.
93419 2006-05-03  Bruno Haible  <bruno@clisp.org>
93421         * lib/stdint_.h: Shorter URL.
93422         * lib/inttypes.h: Likewise.
93424 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
93426         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
93428 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
93430         * lib/verify.h: Document the internals better.  Most of this change
93431         was written by Bruno Haible.
93433 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
93435         * doc/verify.texi: New file, partly based on a proposal by
93436         Bruno Haible.
93438 2006-05-02  Bruno Haible  <bruno@clisp.org>
93440         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
93441         test from here...
93442         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
93444 2006-04-29  Bruno Haible  <bruno@clisp.org>
93446         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
93447         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
93449 2006-04-29  Bruno Haible  <bruno@clisp.org>
93451         * gnulib-tool: Make --update option actually work.
93453 2006-04-29  Bruno Haible  <bruno@clisp.org>
93455         * doc/gcd.texi: New file.
93456         * doc/gnulib.texi: Include it.
93458 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
93460         * lib/getdate.y (get_date): When adding relative date, start with the
93461         initial time, not with the result of the first mktime call.
93463 2006-04-25  Bruno Haible  <bruno@clisp.org>
93465         * gnulib-tool (func_import): Output the include directives in three
93466         blocks, sorted separately.
93467         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93469 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
93471         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
93472         to define main with arguments, for C++.  Reported by Eric Blake.
93473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
93474         Prefer 'int main ()' to 'int main (void)', for C++.
93475         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
93476         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
93477         for 'main', for C99 and C++.
93479 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
93481         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
93482         Don't assume that exit status -1 is valid.
93483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93484         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
93485         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
93486         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
93487         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
93488         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
93489         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
93490         functions can be used without declaring them, or that you can
93491         exit with status -1.
93492         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
93494 2006-04-24  Karl Berry  <karl@gnu.org>
93496         * config/srclist.txt (longdouble.m4): sync lost.
93498 2006-04-24  Eric Blake  <ebb9@byu.net>
93500         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
93502 2006-04-24  Bruno Haible  <bruno@clisp.org>
93504         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
93505         poll() implementation in AIX.
93506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93508 2006-04-24  Bruno Haible  <bruno@clisp.org>
93510         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
93511         assigned exactly once.
93513 2006-04-23  Claudio Fontana  <claudio@gnu.org>
93514             Bruno Haible  <bruno@clisp.org>
93516         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
93517         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
93518         for AM_CPPFLAGS.
93520 2006-04-23  Bruno Haible  <bruno@clisp.org>
93522         * modules/copy-file: Depend on unistd.
93523         * modules/execute: Likewise.
93524         * modules/fatal-signal: Likewise.
93525         * modules/findprog: Likewise.
93526         * modules/mkdtemp : Likewise.
93527         * modules/pipe: Likewise.
93528         * modules/wait-process: Likewise.
93530 2006-04-23  Bruno Haible  <bruno@clisp.org>
93532         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
93533         condition was already detected.
93534         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93536 2006-04-23  Bruno Haible  <bruno@clisp.org>
93538         * lib/copy-file.c: Include <unistd.h> unconditionally.
93539         * lib/execute.c: Likewise.
93540         * lib/fatal-signal.c: Likewise.
93541         * lib/findprog.c: Likewise.
93542         * lib/mkdtemp.c: Likewise.
93543         * lib/pipe.h: Likewise.
93544         * lib/pipe.c: Likewise.
93545         * lib/wait-process.h: Likewise.
93547 2006-04-23  Bruno Haible  <bruno@clisp.org>
93549         * gnulib-tool (func_usage): Fix --import description. Document
93550         --update.
93551         (func_import): Create temporary file in a temporary directory, if
93552         --dry-run is specified. Silence errors from 'grep' when there are no
93553         m4 files in $m4dir.
93554         (func_create_testdir): Silence errors from 'grep' when there are no
93555         m4 files in $m4dir.
93556         Reported by Karl Berry <karl@freefriends.org>.
93558 2006-04-20  Bruno Haible  <bruno@clisp.org>
93560         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
93561         one argument, so that the code will be portable to Autoconf 2.60.
93562         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
93563         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
93564         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
93566 2006-04-19  Derek Price  <derek@ximbiot.com>
93567             Eric Blake  <ebb9@byu.net>
93569         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
93570         rather than "/full/path.h".  Update comment to match.  Shorten &
93571         generalize m4_translit call via AS_TR_CPP.
93573 2006-04-19  Derek Price  <derek@ximbiot.com>
93574             Eric Blake  <ebb9@byu.net>
93576         * lib/inttypes.h: Correct grammar in comment.
93578 2006-04-18  Derek Price  <derek@ximbiot.com>
93579             Paul Eggert  <eggert@cs.ucla.edu>
93581         * modules/inttypes: New file.
93582         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
93584 2006-04-18  Derek Price  <derek@ximbiot.com>
93585             Paul Eggert  <eggert@cs.ucla.edu>
93587         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
93588         New files.
93590 2006-04-18  Derek Price  <derek@ximbiot.com>
93591             Paul Eggert  <eggert@cs.ucla.edu>
93593         * lib/inttypes.h: New file.
93594         * lib/strtoimax.c: Assume <inttypes.h>.
93596 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
93598         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
93599         isn't mounted.  Problem reported by Kir Kolyshkin.
93601 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
93603         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
93604         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
93605         Derek R. Price.
93606         * lib/regex.h (RE_DUP_MAX): Update comment to match current
93607         implementation.
93609 2006-04-12  Eric Blake  <ebb9@byu.net>
93611         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
93612         is now done automatically by the corresponding Autoconf macro.
93614 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
93616         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
93617         time_r.h.
93619 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93621         Merge regex changes from libc, removing some of our
93622         POSIX-conformance changes that were rejected and redoing them in a
93623         less-intrusive way.
93625         * lib/regcomp.c (re_compile_internal, init_dfa):
93626         Length arg is now size_t, not Idx.  All uses changed.
93627         (peek_token): Forward decl now says internal_function.
93628         (__re_error_msgid, __re_error_msgid_idx):
93629         Now static rather than extern with attribute_hidden.
93630         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
93631         For some reason libc prefers K&R style defns for external functions.
93632         (regerror) [!defined _LIBC]: Likewise.
93633         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
93634         (seek_collating_symbol_entry, lookup_collation_sequence_value):
93635         (build_range_exp, build_collating_symbol):
93636         Use K&R-style defn.
93637         (re_compile_fastmap): Use '\0' to memset, not 0.
93638         (utf8_sb_map): Make the calculations more obvious.
93639         (init_dfa, parse_bracket_exp, build_charclass_op):
93640         Call calloc and cast result, as glibc does.
93641         (init_word_char, fetch_token, peek_token, peek_token_bracket):
93642         (build_range_exp, build_collating_symbol):
93643         Now internal functions.
93645         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
93647         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
93648         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
93649         Don't depend on VMS; depend on __VMS instead, for POSIX
93650         namespace cleanness.
93651         (regoff_t): Define to ssize_t, not long int.
93653         Remove the REG_ macros named below.  Instead, make the old names
93654         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
93655         __USE_GNU_REGEX.
93656         (REG_BACKSLASH_ESCAPE_IN_LISTS):
93657         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
93658         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
93659         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
93660         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
93661         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
93662         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
93663         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
93664         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
93665         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
93666         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
93667         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
93668         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
93669         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
93670         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
93671         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
93672         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
93673         (REG_NREGS):
93674         Remove.  All uses replaced by the old RE_* names.
93675         (RE_BACKSLASH_ESCAPE_IN_LISTS):
93676         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
93677         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
93678         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
93679         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
93680         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
93681         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
93682         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
93683         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
93684         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
93685         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
93686         Don't bother having these macros be independent of each others'
93687         values, since they no longer exist in the POSIX name space.
93689         Rename the following member names back to their old names,
93690         unless !__USE_GNU_REGEX.  All uses changed back.
93691         (buffer): Renamed from re_buffer.
93692         (allocated): Renamed from re_allocated.
93693         (used): Renamed from re_used.
93694         (syntax): Renamed from re_syntax.
93695         (fastmap): Renamed from re_fastmap.
93696         (translate): Renamed from re_translate.
93697         (can_be_null): Renamed from re_can_be_null.
93698         (regs_allocated): Renamed from re_regs_allocated.
93699         (fastmap_accurate): Renamed from re_fastmap_accurate.
93700         (no_sub): Renamed from re_no_sub.
93701         (not_bol): Renamed from re_not_bol.
93702         (not_eol): Renamed from re_not_eol.
93703         (newline_anchor): Renamed from re_newline_anchor.
93704         (num_regs): Renamed from rm_num_regs.
93705         (start): Renamed from rm_start.
93706         (end): Renamed from rm_end.
93708         (free_state): Move up a bit.
93710         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
93711         #define to be empty.
93712         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
93713         when that is what is intended.
93714         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
93715         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
93716         (MAX): New macro.
93717         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
93718         All uses changed back to re_malloc, etc.  It's now the caller's
93719         responsibility to check for overflow; all callers changed.
93720         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
93721         (re_x2nrealloc): Remove.
93722         (free_state): Remove decl.
93724         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
93725         (re_set_registers, re_exec):
93726         Use K&R-style defn.
93728         2006-01-31  Roland McGrath  <roland@redhat.com>
93730         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
93731         Reported by Mike Frysinger <vapier@gentoo.org>.
93733         2006-01-15  Andreas Jaeger  <aj@suse.de>
93735         [BZ #1950]
93736         * lib/regex_internal.c (re_string_reconstruct): Adjust for
93737         build_wcs_upper_buffer change.
93738         (build_wcs_upper_buffer): Change return type.
93740         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
93742         * lib/regex_internal.h: Include <stdint.h> if available.
93744         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
93746         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
93748         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93750         * lib/regcomp.c: Adjust for changed secondary hash function.
93752         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
93754         * lib/regex.h: Pretty printing.
93755         Clean up namespace a bit.
93757         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
93759         * lib/regexec.c (update_cur_sifted_state, check_arrival,
93760         check_arrival_add_next_nodes): Avoid using uninitialized variable.
93762         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
93763                     Ulrich Drepper  <drepper@redhat.com>
93765         [BZ #1302]
93766         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
93767         changed.
93768         (bitset_word_t): Renamed from bitset_word.  All uses changed.
93770         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
93772         [BZ #281]
93773         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
93774         * lib/regcomp.c: Remove unnecessary uses of
93775         unsigned RE_TRANSLATE_TYPE.
93776         * lib/regex_internal.h: Likewise.
93777         * lib/regex_internal.c: Likewise.
93778         * lib/regexec.c: Likewise.
93779         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
93781         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
93783         * lib/regexec.c (find_recover_state): Remove unnecessary
93784         initialization.
93785         (transit_state_bkref): Make DFA a const pointer.
93786         (get_subexp): Likewise.
93787         (check_arrival): Likewise.
93788         (update_cur_sifted_state): Likewise.
93789         (re_search_internal): Likewise.
93790         (prune_impossible_nodes): Likewise.
93791         (acquire_init_state_context): Likewise.
93792         (proceed_next_node): Likewise.
93793         (set_regs): Likewise.
93794         (free_fail_stack_return): Likewise.
93795         (check_arrival_expand_ecl): Mark DFA parameter as const.
93796         (check_arrival_expand_ecl_sub): Likewise.
93797         (check_subexp_limits): Likewise.
93798         (sub_epsilon_src_nodes):  Likewise.
93799         (add_epsilon_src_nodes):  Likewise.
93800         (merge_state_array): Likewise.
93801         (update_regs): Likewise.
93802         (build_trtable): Likewise.
93803         (sift_states_backward): Mark MCTX parameter as const.
93804         (build_sifted_states): Likewise.
93805         (update_cur_sifted_state): Likewise.
93806         (sift_states_mkref): Likewise.
93807         (check_arrival_expand_ecl): Mark eclosure as const.
93808         (check_dst_limits_calc_pos_1): Likewise.
93809         * lib/regex_internal.h (re_match_context_t): Make dfa a const
93810         pointer.
93812         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
93814         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
93815         (transit_state_sb): Likewise.
93816         (transit_state_mb): Likewise.
93817         (sift_states_iter_mb): Likewise.
93818         (check_arrival_add_next_nodes): Likewise.
93819         (check_node_accept_bytes): Change first parameter to pointer-to-const.
93820         [_LIBC] (re_search_2_stub): Use mempcpy.
93822         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
93823         mbrtowc for very simple UTF-8 case.
93825         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
93826         a pointer-to-const.
93827         (re_acquire_state_context): Likewise.
93828         * lib/regex_internal.h: Adjust prototypes.
93830         * lib/regex.c: Prevent using C++ compilers.
93832         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
93833         (re_acquire_state_context): Likewise.
93835 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93837         * modules/regex (Depends-on): Add ssize_t.
93839 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93841         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
93842         translation table.
93844 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93846         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
93848 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
93849             Bruno Haible  <bruno@clisp.org>
93851         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
93852         <sys/types.h> and <inttypes.h>.
93854 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93856         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
93857         `__error_t_defined', so argp.h will not typedef the former.
93859 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
93861         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
93862         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
93863         glibc names.  Even if glibc is changed to conform to POSIX, the
93864         traditional names will be available anyway, since regex depends on
93865         the extensions module.  Also, fix a longstanding typo in the
93866         implementation of Spencer ERE test #75 from grep 2.3.  Problems
93867         reported by Emanuele Giaquinta.  Also, change sense of cached
93868         variable, so that the message makes sense.
93870 2006-03-24  Simon Josefsson  <jas@extundo.com>
93872         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
93873         including some doc fixes.
93874         (base64_encode_alloc): Fix +1 bug on allocation failures.
93876 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93878         * lib/base64.c (base64_encode): Do not read past end of array with
93879         unsanitized input on systems with CHAR_BIT > 8.
93881 2006-03-24  Eric Blake  <ebb9@byu.net>
93883         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
93885 2006-03-22  Karl Berry  <karl@gnu.org>
93887         * config/srclist.txt (*setenv.[ch]): get from coreutils.
93888         * config/srclistvars.sh (COREUTILS): new var.
93890 2006-03-17  Jim Meyering  <jim@meyering.net>
93892         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
93893         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
93895 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
93897         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
93898         no longer needs it.  Instead, check that regoff_t is as least
93899         as wide as ptrdiff_t.
93901         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
93902         so that our regex.h stays compatible with the installed regex.
93903         This is helpful for installers who configure --without-included-regex.
93904         Problem reported by Emanuele Giaquinta.
93906 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
93908         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
93909         Typedef to long int, not to off_, as POSIX will likely change
93910         in that direction.
93912 2006-03-15  Eric Blake  <ebb9@byu.net>
93914         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
93916 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
93918         * lib/argp-help.c (validate_uparams): Fix typo
93919         * lib/argp-parse.c (argp_default_options): Consistently begin help
93920         messages with a lowercase letter.
93922 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
93924         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
93925         overrun buffers and shouldn't be used (much as gets shouldn't be
93926         used).
93927         * lib/time_r.c (asctime_r, ctime_r): Likewise.
93929 2006-03-08  Simon Josefsson  <jas@extundo.com>
93931         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
93932         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93934 2006-03-08  Simon Josefsson  <jas@extundo.com>
93936         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
93937         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93939 2006-03-08  Simon Josefsson  <jas@extundo.com>
93941         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
93942         signal that configure disabled the device.
93944 2006-03-08  Simon Josefsson  <jas@extundo.com>
93946         * build-aux/maint.mk: Fix refresh-po, to handle no translated
93947         languages.
93949 2006-03-07  Simon Josefsson  <jas@extundo.com>
93951         * modules/getopt (Depends-on): Add unistd.
93953         * modules/unistd: New file.
93955 2006-03-07  Simon Josefsson  <jas@extundo.com>
93957         * modules/gc-random: New file.
93959 2006-03-07  Simon Josefsson  <jas@extundo.com>
93961         * m4/unistd_h.m4: New file.
93963 2006-03-07  Simon Josefsson  <jas@extundo.com>
93965         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
93966         test to be side-effect free by storing the result in the cache
93967         variable gl_cv_lib_readline, and moving the assignment of
93968         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
93969         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93971 2006-03-07  Simon Josefsson  <jas@extundo.com>
93973         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
93974         error on missing devices (the functions will return an error).
93976         * m4/gc.m4: Move random stuff to gc-random.m4
93978 2006-03-07  Simon Josefsson  <jas@extundo.com>
93980         * lib/unistd_.h: New file.
93982 2006-03-07  Simon Josefsson  <jas@extundo.com>
93984         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
93986 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
93988         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
93989         Problem reported by Juan Manuel Guerrero.
93991 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
93993         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
93994         the unistd module.
93995         * lib/getlogin_r.c: Likewise.
93996         * lib/getlogin_r.h: Likewise.
93997         * lib/glob.c: Likewise.
93998         * lib/pagealign_alloc.c: Likewise.
93999         * lib/unistd_.h: Remove; no longer needed.
94001 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94003         * MODULES.html.sh (Support for systems lacking POSIX:2001):
94004         Add unistd.
94005         * modules/c-stack (Depends-on): Add unistd.
94006         * modules/getlogin_r: Likewise.
94007         * modules/glob: Likewise.
94008         * modules/pagealign_alloc: Likewise.
94009         * modules/unistd (Files): Remove lib/unistd_.h.
94010         (EXTRA_DIST): Remove.
94011         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
94012         need unistd_.h.
94013         (MOSTLYCLEANFILES): Remove unistd.h-t.
94015 2006-03-03  Simon Josefsson  <jas@extundo.com>
94017         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
94019 2006-03-03  Simon Josefsson  <jas@extundo.com>
94021         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
94022         libidn and bison.
94024 2006-03-03  Simon Josefsson  <jas@extundo.com>
94026         * build-aux/maint.mk: Add indent target.
94028 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
94030         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
94031         our replacement poll.h in any case, to avoid a differing
94032         declaration from a system header.  Seen on AIX.
94034 2006-03-01  Simon Josefsson  <jas@extundo.com>
94036         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
94037         <kasal@ucw.cz>.
94039 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
94041         * modules/gettime (Depends-on): Add extensions module.
94042         * modules/nanosleep (Depends-on): Likewise.
94043         * modules/settime (Depends-on): Likewise.
94045 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
94047         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
94048         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
94049         pedantically.
94050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
94051         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
94053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
94054         not "==".  Reported by Ralf Wildenhues.
94056 2006-03-01  Karl Berry  <karl@gnu.org>
94058         * doc/Copyright/request-*: new files, synced from gnuorg.
94060 2006-03-01  Karl Berry  <karl@gnu.org>
94062         * config/srclist.txt (Copyright/*): new entries.
94064 2006-02-28  Simon Josefsson  <jas@extundo.com>
94066         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
94068 2006-02-27  Simon Josefsson  <jas@extundo.com>
94070         * lib/base64.h: Indent #define's.  From Jim Meyering
94071         <jim@meyering.net>.
94073 2006-02-27  Jim Meyering  <jim@meyering.net>
94075         Revert the change of 2006-02-24, so these files can continue
94076         to be sync'd from gettext.
94077         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
94078         of `config.h'.
94080 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
94082         * modules/intprops: New file.
94083         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
94084         Add intprops.
94085         * modules/getloadavg (Files): Remove lib/intprops.h.
94086         (Depends-on): Add intprops.
94087         * modules/human: Likewise.
94088         * modules/inttostr: Likewise.
94089         * modules/openat: Likewise.
94090         * modules/sig2str: Likewise.
94091         * modules/userspec: Likewise.
94092         * modules/utimecmp: Likewise.
94093         * modules/xnanosleep: Likewise.
94094         * modules/xstrtol: Likewise.
94096 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
94098         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
94099         * modules/lock-tests (TESTS): Use $(EXEEXT).
94100         * modules/tls-tests: Likewise.
94101         * modules/argp-tests: Likewise.
94102         (check_PROGRAMS): New var, replacing...
94103         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
94105 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94107         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
94108         `config.h'.
94110 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
94112         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
94114 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94116         Sync from coreutils.
94117         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
94118         gl_CHDIR_SAFER.
94120 2006-02-22  Jim Meyering  <jim@meyering.net>
94122         Sync from coreutils.
94123         * m4/chdir-safer.m4: New file.
94125 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
94127         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
94128         AT_FDCWD exceeds INT_MAX.
94129         * lib/openat.h (AT_FDCWD): Likewise.
94131 2006-02-17  Eric Blake  <address@hidden>
94133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
94135 2006-02-16  Simon Josefsson  <jas@extundo.com>
94137         * modules/getaddrinfo (Depends-on): Add sys_socket.
94139 2006-02-15  Simon Josefsson  <jas@extundo.com>
94141         * build-aux/maint.mk: Add dsyntax-check rule.
94143 2006-02-15  Eric Blake  <ebb9@byu.net>
94145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
94146         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
94147         'present but cannot compile' warnings on cygwin.
94148         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
94149         use ws2tcpip.h if sys/socket.h works.
94150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
94151         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
94153 2006-02-14  Simon Josefsson  <jas@extundo.com>
94155         * modules/maintainer-makefile (Files): Rename.
94157         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
94158         and (the local) Makefile.cfg to maint-cfg.mk.
94160         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
94161         to the latter.
94163         * modules/maintainer-makefile: New module.
94165         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
94166         severaly stripped to make it possible to build it up from scratch
94167         with reliable tests.
94169         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
94170         fixes to permit overriding the default actions when configure and
94171         makefile are not available.
94173 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
94175         Sync from coreutils.
94176         * modules/lstat (Depends-on): Don't depend on xalloc.
94177         (License): Change from GPL to LGPL, since this is now simply a
94178         replacement for a libc function.
94180 2006-02-14  Jim Meyering  <jim@meyering.net>
94182         Sync from coreutils.
94184         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
94185         failure on deficient systems, and simplify gnulib lgpl dependencies.
94186         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
94187         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
94189         * lib/xalloc-die.c: Remove unused definition of N_.
94191 2006-02-14  Jim Meyering  <jim@meyering.net>
94193         Sync from coreutils.
94194         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
94195         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
94196         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
94197         double-quote uses of that variable, to accommodate the rare case in
94198         which getmntent is available in none of the libraries checked.  This
94199         happens at least on FreeBSD 5.0.
94201 2006-02-13  Simon Josefsson  <jas@extundo.com>
94203         * gnulib-tool (Usage): Fix --import, from
94204         karl@freefriends.org (Karl Berry).
94206 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
94208         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
94210 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
94212         * lib/argp-namefrob.h: Restore changes accidentally lost during the
94213         "autoupdate" on 2005-12-12.
94215 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
94217         * modules/closeout (Depends-on): Remove atexit.
94219 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
94221         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
94222         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
94224 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
94226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
94227         __EXTENSIONS__ if this causes compilation to fail.  Problem
94228         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
94229         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
94231 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
94233         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
94234         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
94235         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
94236         All uses changed.
94238 2006-01-26  Simon Josefsson  <jas@extundo.com>
94240         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
94241         prototype is visible on mingw32.
94243         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
94244         for mingw32.
94246         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
94247         mingw32).
94249 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
94251         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
94252         attempt to open for write; this always fails, at least on POSIX
94253         hosts.  This reinstates the 2006-01-09 change, which was
94254         inadvertently removed.
94256 2006-01-26  Bruno Haible  <bruno@clisp.org>
94258         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
94259         Reported by Paul Eggert.
94261 2006-01-26  Bruno Haible  <bruno@clisp.org>
94262             Paul Eggert  <eggert@cs.ucla.edu>
94264         * lib/stdbool_.h (_Bool)
94265         [(! (defined __cplusplus || defined __BEOS__)
94266           && !defined __GNUC__
94267           && !(defined __HP_cc || defined __xlc__
94268                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
94269                || defined __sgi))]:
94270         #define to signed char in these cases too; this simplifies
94271         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
94272         etc., separately) and makes it more conservative.
94274 2006-01-25  Simon Josefsson  <jas@extundo.com>
94276         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
94277         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
94278         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
94280 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
94282         * lib/argp-namefrob.h: Bugfix. Remove stray #
94284 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
94286         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
94287         so that we test the test.
94288         Check for yet another HP-UX cc bug involving *bool |= bool.
94290 2006-01-25  Karl Berry  <karl@gnu.org>
94292         * config/srclist.txt (vasnprintf.c): sync lost.
94294 2006-01-25  Jim Meyering  <jim@meyering.net>
94296         Sync from the stable (b5) branch of coreutils:
94298         * lib/fts.c (fts_children): Don't let close() clobber errno from
94299         failed fchdir().
94301         * lib/fts.c (fts_stat): When following a symlink-to-directory,
94302         don't necessarily interpret stat-fails+lstat-succeeds as indicating
94303         a dangling symlink.  That can also happen at least for ELOOP.
94304         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
94305         FYI, this bug predates the inclusion of fts.c in coreutils.
94307         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
94308         in their own block, so pre-c99 compilers don't object.
94310         Avoid the double-free (first in fts_read, second in fts_close) that
94311         would occur when an `active' directory is made inaccessible (e.g.,
94312         via chmod a-x) during a traversal.
94313         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
94314         before returning.  Reproduce this failure by
94315         mkdir -p a/b; cd a; chmod a-x . b
94316         Reported by Stavros Passas.
94318 2006-01-25  Jim Meyering  <jim@meyering.net>
94320         * lib/fileblocks.c: Remove more useless parentheses.
94321         * lib/readutmp.h: Likewise.
94323 2006-01-25  Bruno Haible  <bruno@clisp.org>
94325         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
94326         warnings.
94327         Reported by Paul Eggert.
94329 2006-01-25  Bruno Haible  <bruno@clisp.org>
94331         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
94332         rid of a trap command. For Solaris sh.
94333         Reported by Mark D. Baushke <mdb@gnu.org>.
94335 2006-01-24  Simon Josefsson  <jas@extundo.com>
94337         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
94338         Bruno.
94340 2006-01-24  Karl Berry  <karl@gnu.org>
94342         * config/srclist.txt (argp-namefrob.h): sync lost.
94344 2006-01-24  Jim Meyering  <jim@meyering.net>
94346         * modules/openat (Files): Add lib/intprops.h.
94347         From Mark D. Baushke.
94349 2006-01-24  Jim Meyering  <jim@meyering.net>
94351         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
94352         Reported by Mark D. Baushke.
94354 2006-01-24  Jim Meyering  <jim@meyering.net>
94356         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
94358 2006-01-24  Bruno Haible  <bruno@clisp.org>
94360         * modules/strnlen (Maintainer): Change from glibc to all.
94362 2006-01-24  Bruno Haible  <bruno@clisp.org>
94364         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
94365         Patch by Paul Eggert.
94367 2006-01-24  Bruno Haible  <bruno@clisp.org>
94369         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
94370         already has it.
94371         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
94372         2005-11-26.
94374         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
94375         'signed char' to avoid problems with the built-in _Bool type.
94376         Reported by Paul Eggert on 2005-11-26.
94378 2006-01-24  Bruno Haible  <bruno@clisp.org>
94380         * gnulib-tool (func_import): Avoid constructing complicated sed
94381         expressions inside backquote.
94382         Report and solution by Mark D. Baushke <mdb@gnu.org>.
94384 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
94386         These changes imported from libc.
94387         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
94388         test and two separate function calls.
94389         * lib/strndup.c (__strndup): Add libc_hidden_def.
94391 2006-01-23  Simon Josefsson  <jas@extundo.com>
94393         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
94394         Remove the test_*_SOURCES variable: automake infers it by default.
94395         * modules/tls-tests: Likewise.
94397 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
94399         Work around porting bugs reported by Dieter in
94400         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
94401         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
94402         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
94403         Include "getopt.h" first, to check interface.
94404         (getenv): Declare only if defined HAVE_DECL_GETENV &&
94405         !HAVE_DECL_GETENV.
94406         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
94407         (__strndup): Revert to K&R-style function dfns, the glibc style.
94408         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
94409         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
94410         Include strnlen.h first, to get prototype properly.
94411         (strnlen): Renamed from __strnlen.
94412         Remove weak alias.
94414 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
94416         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
94418 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
94420         * config/srclist.txt: Adjust to reflect glibc reorganization.
94421         This affects only comments.
94423 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
94425          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
94426          Reported by Bruce Korb <bkorb@gnu.org>.
94428 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
94430         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
94431         to pacify gcc -Wswitch-default.
94433 2006-01-22  Bruno Haible  <bruno@clisp.org>
94435         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
94436         temporary buffer for sprintf, take into account the precision also
94437         for 'd', 'i', 'u', 'o', 'x', 'X'.
94439 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
94441         * modules/argp-tests: New module
94442         * tests/test-argp.c: New file
94443         * tests/test-argp-2.sh: New file
94445 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
94447         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
94448         (__argp_base_name): Removed
94449         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
94450         typo.
94451         (__argp_base_name): Provide macro definition or extern declaration
94452         depending on the configuration
94454 2006-01-20  Simon Josefsson  <jas@extundo.com>
94456         * modules/inet_ntop (Depends-on): Depend on sys_socket.
94458 2006-01-20  Simon Josefsson  <jas@extundo.com>
94460         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
94462 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
94464         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
94465         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
94466         Suggested by Bruno Haible.
94468 2006-01-20  Karl Berry  <karl@gnu.org>
94470         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
94471         until changes propagate, I guess.
94473 2006-01-19  Simon Josefsson  <jas@extundo.com>
94475         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
94477 2006-01-19  Simon Josefsson  <jas@extundo.com>
94479         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
94481 2006-01-19  Simon Josefsson  <jas@extundo.com>
94483         * gnulib-tool: Set check_PROGRAMS.
94485         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
94486         modules/des-tests, modules/gc-arcfour-tests,
94487         modules/gc-arctwo-tests, modules/gc-des-tests,
94488         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
94489         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
94490         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
94491         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
94492         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
94493         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
94494         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
94495         test_*_SOURCES.
94497 2006-01-18  Simon Josefsson  <jas@extundo.com>
94499         * modules/socklen (Depends-on): Depend on sys_socket.
94501 2006-01-18  Simon Josefsson  <jas@extundo.com>
94503         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
94504         modules/des-tests, modules/gc-arcfour-tests,
94505         modules/gc-arctwo-tests, modules/gc-des-tests,
94506         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
94507         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
94508         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
94509         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
94510         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
94511         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
94512         $(EXEEXT) to automake TESTS variable, for mingw32.
94514 2006-01-17  Simon Josefsson  <jas@extundo.com>
94516         * modules/socklen (Include): Need sys/socket.h.
94518 2006-01-17  Bruno Haible  <bruno@clisp.org>
94520         * modules/ssize_t (Include): Add <sys/types.h>.
94522 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
94524         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
94525         it's not portable and it doesn't work with cross-compiles.
94526         Problem reported by Bruno Haible.  Fix missing-$ typo in
94527         'test "gl_cv_ignore_unused_libraries" ...' that prevented
94528         -zignore from being used with Sun's C compiler.
94530 2006-01-12  Simon Josefsson  <jas@extundo.com>
94532         * lib/base64.c: Fix warning, reported by Bruno Haible
94533         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
94535 2006-01-12  Bruno Haible  <bruno@clisp.org>
94537         * modules/ldd: New file.
94538         * build-aux/ldd.sh.in: New file.
94539         * MODULES.html.sh (Support for building libraries and executables): Add
94540         ldd.
94542 2006-01-12  Bruno Haible  <bruno@clisp.org>
94544         * m4/ldd.m4: New file.
94546 2006-01-12  Bruno Haible  <bruno@clisp.org>
94548         * gnulib-tool (func_import, func_create_testdir): Don't go into an
94549         endless loop while replacing $auxdir with build-aux.
94551 2006-01-11  Simon Josefsson  <jas@extundo.com>
94553         * lib/stdint_.h (SIZE_MAX): Add missing (.
94555 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
94557         Sync from coreutils.
94558         * lib/md5.c: Fix commentary typos.
94559         (alignof, UNALIGNED_P): No need for a GCC-specific version.
94560         * lib/md5.h (__attribute__): Remove; unused.
94561         * lib/sha1.c: Fix commentary to match md5 better.
94562         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
94563         so that we don't need to worry about alignment.  All uses changed.
94564         This merges the 2005-10-28 md5 change into sha1.
94566 2006-01-11  Jim Meyering  <jim@meyering.net>
94568         Sync from coreutils.
94569         * lib/md5.c (OP): Fix spacing.
94571 2006-01-11  Bruno Haible  <bruno@clisp.org>
94573         Ensure automatic ordering between gl_LOCK and gl_ARGP.
94574         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
94575         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
94577 2006-01-11  Bruno Haible  <bruno@clisp.org>
94579         Ensure automatic ordering between gl_LOCK and gl_ARGP.
94580         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
94581         the "early" section as well.
94583 2006-01-11  Bruno Haible  <bruno@clisp.org>
94585         Avoid "ar: no archive members specified" error on MacOS X.
94586         * gnulib-tool (func_modules_add_dummy): New function.
94587         (func_import, func_create_testdir): Invoke it.
94589 2006-01-11  Bruno Haible  <bruno@clisp.org>
94591         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
94592         with $auxdir in AC_CONFIG_FILES statements.
94594 2006-01-11  Bruno Haible  <bruno@clisp.org>
94596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94597         Initialize also noinst_HEADERS to empty.
94599 2006-01-11  Bruno Haible  <bruno@clisp.org>
94601         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
94602         variables.
94603         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
94604         autoreconf.
94606 2006-01-11  Bruno Haible  <bruno@clisp.org>
94608         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
94609         overridable by the user.
94610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94612 2006-01-10  Simon Josefsson  <jas@extundo.com>
94614         * modules/sys_socket: New file.
94616 2006-01-10  Simon Josefsson  <jas@extundo.com>
94618         * m4/sys_socket_h.m4: New file.
94620 2006-01-10  Simon Josefsson  <jas@extundo.com>
94622         * lib/socket_.h: New file.
94624 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
94626         * modules/readutmp (Maintainer): Add myself.
94628 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
94630         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
94631         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
94632         People who are still concerned with buggy memcmp implementations
94633         can invoke gl_FUNC_MEMCMP themselves.
94635 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
94637         * lib/regex_internal.h (BITSET_WORD_BITS):
94638         Work around a bug in 64-bit PGC (before version 6.1-2), where the
94639         preprocessor mishandles large unsigned values as if they were signed.
94640         Problem reported by Claudio Fontana in
94641         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
94643 2006-01-10  Jim Meyering  <jim@meyering.net>
94645         Avoid the double-free (first in fts_read, second in fts_close) that
94646         would occur when an `active' directory is made inaccessible (e.g.,
94647         via chmod a-x) during a traversal.
94648         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
94649         before returning.  Reproduce this failure by
94650         mkdir -p a/b; cd a; chmod a-x . b
94651         Reported by Stavros Passas.
94653         Sync from coreutils.
94654         * lib/sha1.c: Tweak grammar in a comment.
94656 2006-01-10  Jim Meyering  <jim@meyering.net>
94658         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
94659         Patch by Joerg Sonnenberger.
94661 2006-01-10  Bruno Haible  <bruno@clisp.org>
94663         * modules/readutmp: Depend on module free.
94664         * modules/strtok_r: Depend on module restrict.
94666 2006-01-10  Bruno Haible  <bruno@clisp.org>
94668         * modules/gettext (configure.ac): Add an invocation of
94669         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
94671 2006-01-10  Bruno Haible  <bruno@clisp.org>
94673         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
94674         Reported by Werner Lemberg <wl@gnu.org>.
94676 2006-01-10  Bruno Haible  <bruno@clisp.org>
94678         * lib/localcharset.c: Update from GNU gettext.
94680 2006-01-10  Bruno Haible  <bruno@clisp.org>
94682         * lib/argp.h (__const): Remove macro. Use const instead.
94683         * lib/argp-fmtstream.h (__const): Likewise.
94684         * lib/glob_.h (__const): Remove macro.
94685         * lib/glob-libc.h: Use const instead of __const.
94687 2006-01-10  Bruno Haible  <bruno@clisp.org>
94689         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
94690         variable.
94691         Needed to avoid an automake error regarding the 'gettext' module.
94693 2006-01-09  Simon Josefsson  <jas@extundo.com>
94695         * modules/inet_ntop (Depends-on): Add restrict.
94697 2006-01-09  Simon Josefsson  <jas@extundo.com>
94699         * modules/gc-rijndael-tests (License): Put under LGPL.
94701         * modules/gc-des-tests (License): Likewise.
94703         * modules/gc-arcfour-tests (License): Likewise.
94705         * modules/gc-arctwo-tests (License): Likewise.
94707         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
94709         * modules/gc-hmac-sha1-tests (Files): Likewise.
94711         * modules/gc-hmac-md5-tests (License): Likewise.
94713         * modules/gc-sha1-tests (License): Likewise.
94715         * modules/gc-md5-tests (License): Likewise.
94717         * modules/gc-md4-tests (License): Likewise.
94719         * modules/gc-md2-tests (License): Likewise.
94721         * modules/gc-tests (License): Likewise.
94723         * modules/des-tests (License): Likewise.
94725         * modules/md4-tests (License): Likewise.
94727         * modules/md2-tests (License): Likewise.
94729 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94731         Sync from coreutils:
94733         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
94734         * modules/lib-ignore: New file.
94735         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
94736         chdir-safer.m4, lchmod.m4.
94737         * modules/openat: Add mkdirat.c, openat-priv.h.
94739 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94741         Sync from coreutils.
94742         * m4/lib-ignore.m4: New file.
94743         * m4/lchmod.m4: New file.
94745 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94747         Sync from coreutils.
94748         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
94749         for write access: POSIX says that must fail.
94750         * lib/fts.c (diropen): Likewise.
94751         * lib/save-cwd.c (save_cwd): Likewise.
94752         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
94753         well, for minor improvements on hosts that lack O_DIRECTORY.
94754         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
94755         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
94756         Fall back on chown if open failed with EACCES.
94758         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
94759         Report an error at compile-time if only a 1-second nominal clock
94760         resolution is found.
94762         * lib/lchmod.h: New file.
94763         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
94764         (make_dir_parents): Use lchown rather than chown, and
94765         lchmod rather than chmod.
94767         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
94768         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
94769         "proc" reported by n0dalus.
94771         * lib/mountlist.c: Include <limits.h>.
94772         (dev_from_mount_options)
94773         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
94774         New function.  It no longer assumes "dev=" has the System V meaning
94775         on Linux (since it doesn't).  It also parses "dev=" more carefully.
94776         (read_file_system_list)
94777         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
94778         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
94779         dev= in that case.
94781         * lib/posixtm.h (PDS_PRE_2000): New macro.
94782         * lib/posixtm.c (year): Arg is now syntax_bits rather than
94783         allow_century.  All usages changed.  Reject dates outside the range
94784         1969-1999 if PDS_PRE_2000 is used.
94786 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94788         Sync from coreutils.
94789         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
94790         (Time of day items): Mention the possibility of leap seconds.
94791         Problem reported by Dr. David Alan Gilbert.
94793 2006-01-09  Jim Meyering  <jim@meyering.net>
94795         Sync from coreutils.
94797         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
94799         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
94801         * lib/modechange.c (mode_compile): Reject an invalid mode string
94802         that starts with an octal digit.  From Andreas Gruenbacher.
94804         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
94805         and dup to open_safer and dup_safer, respectively.
94806         (openat_permissive): Fix typo in comment.
94808         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
94809         "gettext.h"; either no longer needed or are guaranteed by openat.h.
94810         (_): Remove; no longer needed.
94811         (openat): Renamed from rpl_openat; no need for rpl_openat
94812         since openat.h renames openat for us.
94813         Replace most of the body with a call to openat_permissive,
94814         to avoid duplicate code.
94815         Port to (probably hypothetical) environments were mode_t is
94816         wider than int.
94817         (openat_permissive): Require mode arg, so that we can check
94818         types better.  Put it just after flags.  Change cwd failure
94819         indicator from pointer-to-bool to pointer-to-errno-value.
94820         All callers changed.
94821         Invoke openat_save_fail and/or openat_restore_fail if
94822         cwd_errno is null, so that openat can call us.
94823         (openat_permissive, fdopendir, fstatat, unlinkat):
94824         Simplify errno handling to avoid some duplicate code,
94825         as it's OK to set errno on success.
94826         * lib/openat.h: Revamp code so that function macros depend on
94827         __OPENAT_PREFIX only, not also on AT_FDCWD.
94828         (openat_ro): Remove.  Caller changed to use openat_permissive.
94829         (openat_permissive): Now a macro, if not a function.
94830         (openat_restore_fail, openat_save_fail): Now always functions,
94831         since mkdirat needs them even if __OPENAT_PREFIX is defined.
94833         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
94834         and openat.c.
94835         * lib/mkdirat.c: Include openat-priv.h.
94836         Remove definitions of macros defined therein.
94837         * lib/openat.c: Likewise.
94839         * lib/mkdirat.c (mkdirat): New file and function.
94840         * lib/openat.h (mkdirat): Declare.
94842         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
94844         * lib/openat.h (openat_permissive): Declare.
94845         (openat_ro): Define.
94847         * lib/openat.c (EXPECTED_ERRNO): New macro.
94848         (openat_permissive): New function -- used in remove.c rewrite.
94849         (all functions): Set errno just before returning, only if there
94850         was an actual failure.
94851         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
94853         Emulate openat-family functions using Linux's procfs, if possible.
94854         Idea and some code based on Ulrich Drepper's glibc changes.
94856         * lib/openat.c: (BUILD_PROC_NAME): New macro.
94857         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
94858         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
94859         before falling back on save_cwd and restore_cwd.
94860         (fdopendir, fstatat, unlinkat): Likewise.
94862         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
94863         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
94865         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
94866         as second argument to va_arg.  Otherwise, some versions of gcc
94867         warn that `if this code is reached, the program will abort'.
94869 2006-01-09  Jim Meyering  <jim@meyering.net>
94871         Sync from coreutils.
94872         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
94873         Require openat-priv.h.
94875 2006-01-09  Bruno Haible  <bruno@clisp.org>
94877         * modules/strnlen (Include): Use strnlen.h.
94879 2006-01-09  Bruno Haible  <bruno@clisp.org>
94881         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
94883 2006-01-09  Bruno Haible  <bruno@clisp.org>
94885         * lib/sysexit_.h (EX_OK): New macro.
94886         Suggested by Martin Lambers <marlam@marlam.de>.
94888 2006-01-09  Bruno Haible  <bruno@clisp.org>
94890         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
94891         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
94893 2006-01-09  Bruno Haible  <bruno@clisp.org>
94895         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
94896         numbers.
94898 2006-01-09  Bruno Haible  <bruno@clisp.org>
94900         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
94901         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
94902         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
94903         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
94905 2006-01-09  Bruno Haible  <bruno@clisp.org>
94907         * build-aux/javacomp.sh.in: New file, moved from lib/.
94908         * modules/javacomp-script (Files): Update.
94909         (configure.ac): Add AC_CONFIG_FILES invocation.
94910         (EXTRA_DIST): Remove variable.
94912         * build-aux/javaexec.sh.in: New file, moved from lib/.
94913         * modules/javaexec (Files): Update.
94914         (configure.ac): Add AC_CONFIG_FILES invocation.
94915         (EXTRA_DIST): Remove javaexec.sh.in.
94917         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
94918         * modules/csharpcomp-script (Files): Update.
94919         (configure.ac): Add AC_CONFIG_FILES invocation.
94920         (EXTRA_DIST): Remove variable.
94922         * build-aux/csharpexec.sh.in: New file, moved from lib/.
94923         * modules/csharpexec (Files): Update.
94924         (configure.ac): Add AC_CONFIG_FILES invocation.
94925         (EXTRA_DIST): Remove csharpexec.sh.in.
94927 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
94929         Sync from coreutils.
94931         Add POSIX ACL support
94932         * lib/acl.h (copy_acl, set_acl): Add declarations.
94933         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
94934         systems other than Linux.
94935         (chmod_or_fchmod): New function: use fchmod when possible,
94936         and chmod otherwise.
94937         (file_has_acl): Add a POSIX ACL implementation, with a
94938         Linux-specific subcase.
94939         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
94940         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
94941         acls are unsupported.
94942         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
94943         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
94944         are unsupported.
94946 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
94948         Sync from coreutils.
94949         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
94951 2006-01-07  Bruno Haible  <bruno@clisp.org>
94953         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
94954         gl_EARLY.
94956 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94958         * lib/strftime.c (tzname): Don't declare if it is already #defined.
94959         Problem reported for Mingw by Mark Junker.
94961 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94963         * README: Gnulib normally doesn't generate a tarball.
94965 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
94967         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
94968         long int, not int, for nanosecond counts, so that people who are
94969         used to POSIX struct timespec won't be surprised.  Reported by Jim
94970         Meyering.
94972 2005-12-28  Bruno Haible  <bruno@clisp.org>
94974         * build-aux/config.rpath: Update from GNU gettext.
94976 2005-12-16  Jim Meyering  <jim@meyering.net>
94978         * modules/fprintftime: New module.
94979         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
94981 2005-12-16  Jim Meyering  <jim@meyering.net>
94983         * m4/fprintftime.m4: New file.
94985 2005-12-16  Jim Meyering  <jim@meyering.net>
94987         * lib/fprintftime.c, lib/fprintftime.h: New files.
94989 2005-12-15  Simon Josefsson  <jas@extundo.com>
94991         * modules/socklen (configure.ac): Fix M4 macro name, to align with
94992         new m4/socklen.m4.
94994 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94996         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
94997         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
94999 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95001         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
95002         * lib/argp-help.c (fill_in_uparams): Check if the constructed
95003         struct uparams is valid. Fall back to the default values if it is
95004         not.
95006 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95008         * modules/argp (Files): Add argp-pin.c
95009         (Depends-on): dirname
95010         (lib_SOURCES): Add argp-pin.c
95012 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95014         * m4/argp.m4:  Check if program_invocation_name and
95015         program_invocation_short_name are declared and define appropriate
95016         macros if they are not.
95018 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95020         * lib/argp-help.c (__argp_base_name): New function
95021         (__argp_short_program_name): Rewrite using __argp_base_name
95022         * lib/argp-namefrob.h: Define program_invocation_name and
95023         program_invocation_short_name if requested
95024         (__argp_base_name): Add prototype
95025         * lib/argp-parse.c (argp_def): Use gettext wrappers
95026         (argp_default_parser): Use __argp_base_name
95027         * lib/argp-pin.c: New file. Defines program_invocation_name and
95028         program_invocation_short_name on systems that lack them.
95030 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
95032         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
95033         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
95034         porting problem reported by Georg Schwarz in
95035         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
95037 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
95039         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
95040         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
95041         porting problem reported by Georg Schwarz in
95042         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
95044 2005-12-05  Bruno Haible  <bruno@clisp.org>
95046         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
95047         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
95048         Reported by Mark Junker <mjscod@gmx.de>.
95050 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
95052         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
95053         Use implementation from Albert Chin, with some
95054         comments/corrections by Stepan Kasal and myself.
95056 2005-12-02  Bruno Haible  <bruno@clisp.org>
95058         * gnulib-tool (func_import): Accept GPLed build tool modules when
95059         --lgpl is given.
95060         * modules/csharpcomp-script: New file.
95061         * modules/csharpcomp: Depend on it.
95062         * modules/javacomp-script: New file.
95063         * modules/javacomp: Depend on it.
95064         Suggested by Simon Josefsson.
95066 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
95068         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
95069         statement, to work around an HP-UX 10.20 compiler bug reported by
95070         Peter O'Gorman.
95072 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
95074         * modules/savedir (Depends-on): Add openat.
95076 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
95078         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
95079         (uintmax_t) [defined uintmax_t]: Do not declare.
95080         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
95081         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
95082         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
95083         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
95084         sake of portability to weird hosts that C allows (though we don't
95085         know of any practical examples).
95087         * lib/savedir.h (fdsavedir): New decl.
95088         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
95089         contains most of the former guts of savedir.
95090         (savedir): Use savedirstream.
95091         Include "openat.h".
95093 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
95095         * modules/obstack (Files): Add m4/ulonglong.m4.
95096         Problem reported by Davide Angelocola.
95098 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
95100         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
95101         coreutils no longer futzes with rounding modes.
95103 2005-11-14  Jim Meyering  <jim@meyering.net>
95105         * lib/mkstemp-safer.c: Include <config.h>, required for possible
95106         replacement of mkstemp.
95108 2005-11-10  Simon Josefsson  <jas@extundo.com>
95110         * lib/readline.c: Remove EOL.
95112 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
95114         * modules/gethrxtime (Depends-on): Add gettime.
95116 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
95118         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
95119         or gettimeofday; no longer needed.
95121 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
95123         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
95124         time business.
95125         (gethrxtime) [! (HAVE_NANOUPTIME
95126         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
95127         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
95128         our own approximation.
95130 2005-11-08  Eric Blake  <ebb9@byu.net>
95132         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
95134 2005-11-08  Eric Blake  <ebb9@byu.net>
95136         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
95138 2005-11-04  Bruno Haible  <bruno@clisp.org>
95140         * gnulib-tool: Implement --update mode.
95142 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
95144         Fix porting problem reported by Theodoros V. Kalamatianos.
95145         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
95146         Don't assume that futimes failing means we must fail.
95148 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
95150         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
95151         variables to suggest the intended function of the PATH_MAX check.
95153 2005-10-30  Kean Johnston  <jkj@sco.com>
95155         Trivial changes to support SCO systems.
95156         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
95157         as PATH_MAX.
95158         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
95159         where __ptr is null when no I/O is pending.
95161 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
95163         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
95164         leave errno alone.  Problem reported by Dmitry V. Levin.
95166 2005-10-28  Simon Josefsson  <jas@extundo.com>
95168         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
95169         Test more.
95171         * tests/test-gc-md2.c, tests/test-md2.c: New files.
95173         * modules/md2, modules/md2-tests: New files.
95175 2005-10-28  Simon Josefsson  <jas@extundo.com>
95177         * m4/inet_ntop.m4: More tests.
95179         * m4/gc-md2.m4, md2.m4: New file.
95181 2005-10-28  Simon Josefsson  <jas@extundo.com>
95183         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
95184         "restrict" keywords, as per POSIX.  Protect the function
95185         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
95186         Don't use K&R prototypes.  Check the sprintf return values.
95187         Re-define EAFNOSUPPORT if not present.  Indent.
95189         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
95190         suggested by Bruno Haible <bruno@clisp.org>.
95192         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
95194         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
95196         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
95197         libgcrypt).
95199         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
95201         * lib/md2.h, lib/md2.c: New files.
95203 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
95205         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
95206         errno alone.  Problem reported by Frederic Jolliton.
95208 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95210         * modules/verify (License): Change from GPL to LGPL.  This is a
95211         tiny module and there are apparently near-equivalents that are
95212         under the BSD license.
95214 2005-10-24  Simon Josefsson  <jas@extundo.com>
95216         * modules/sha1: Relicense to LGPL.
95218 2005-10-24  Simon Josefsson  <jas@extundo.com>
95220         * lib/md4.h: Shrink buffer size, now that we changed the type.
95222 2005-10-23  Simon Josefsson  <jas@extundo.com>
95224         * gnulib-tool (func_import): Fix --tests-base.
95226 2005-10-22  Simon Josefsson  <jas@extundo.com>
95228         * modules/arcfour (Depends-on): Need stdint.
95230 2005-10-22  Simon Josefsson  <jas@extundo.com>
95232         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
95233         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
95235 2005-10-22  Simon Josefsson  <jas@extundo.com>
95237         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
95238         suggested by Bruno Haible <bruno@clisp.org>.
95240 2005-10-22  Simon Josefsson  <jas@extundo.com>
95242         * lib/crc.h: Include stddef.h, for size_t.
95244 2005-10-22  Simon Josefsson  <jas@extundo.com>
95246         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
95247         arcfour_context struct (simplify test vector testing in GNU
95248         Shishi).
95250 2005-10-21  Simon Josefsson  <jas@extundo.com>
95252         * modules/des, modules/des-tests: New files.
95254         * modules/gc-des, modules/gc-des-tests: New files.
95256         * tests/test-des.c, tests/test-gc-des.c: New file.
95258 2005-10-21  Simon Josefsson  <jas@extundo.com>
95260         * modules/arctwo, modules/arctwo-tests: New files.
95262         * tests/test-arctwo.c: New file.
95264         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
95266         * tests/test-gc-arctwo.c: New file.
95268 2005-10-21  Simon Josefsson  <jas@extundo.com>
95270         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
95271         Bruno Haible <bruno@clisp.org>.
95273         * m4/gc-des.m4: New file.
95275 2005-10-21  Simon Josefsson  <jas@extundo.com>
95277         * m4/arctwo.m4: New file.
95279         * m4/gc-arctwo.m4: New file.
95281 2005-10-21  Simon Josefsson  <jas@extundo.com>
95283         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
95284         block.
95286 2005-10-21  Simon Josefsson  <jas@extundo.com>
95288         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
95289         <bruno@clisp.org>.
95291         * lib/hmac-sha1.c (hmac_sha1): Likewise.
95293         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
95294         Bruno Haible <bruno@clisp.org>.
95296         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
95297         <bruno@clisp.org>.
95299 2005-10-21  Simon Josefsson  <jas@extundo.com>
95301         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
95303 2005-10-21  Simon Josefsson  <jas@extundo.com>
95305         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
95307 2005-10-21  Simon Josefsson  <jas@extundo.com>
95309         * lib/des.h, lib/des.c: New files.
95311         * lib/gc-gnulib.c: Support DES.c
95313 2005-10-21  Simon Josefsson  <jas@extundo.com>
95315         * lib/arctwo.h, lib/arctwo.c: New files.
95317         * lib/gc-gnulib.c: Support ARCTWO.
95319 2005-10-21  Simon Josefsson  <jas@extundo.com>
95321         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
95322         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95324 2005-10-21  Simon Josefsson  <jas@extundo.com>
95326         * gnulib-tool (func_import, func_create_testdir): Define automake
95327         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
95328         Makefile.am snippet),
95329         suggested by Bruno Haible <bruno@clisp.org>.
95331         * modules/gc (Makefile.am): Use it.
95333 2005-10-21  Bruno Haible  <bruno@clisp.org>
95335         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
95336         patch.
95338 2005-10-19  Simon Josefsson  <jas@extundo.com>
95340         * tests/test-gc-rijndael.c: New file.
95342         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
95344 2005-10-19  Simon Josefsson  <jas@extundo.com>
95346         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
95347         interface too.
95349 2005-10-19  Simon Josefsson  <jas@extundo.com>
95351         * tests/test-gc-arcfour.c: New file.
95353         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
95355 2005-10-19  Simon Josefsson  <jas@extundo.com>
95357         * modules/gc-md4, modules/gc-md4-tests: New file.
95359         * tests/test-gc-md4.c: New file.
95361 2005-10-19  Simon Josefsson  <jas@extundo.com>
95363         * m4/gc-md4.m4: New file.
95365 2005-10-19  Simon Josefsson  <jas@extundo.com>
95367         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
95368         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
95369         <kasal@ucw.cz>.
95371 2005-10-19  Simon Josefsson  <jas@extundo.com>
95373         * m4/gc-arcfour.m4: New file.
95375         * m4/gc-rijndael.m4: New file.
95377 2005-10-19  Simon Josefsson  <jas@extundo.com>
95379         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
95381 2005-10-19  Simon Josefsson  <jas@extundo.com>
95383         * lib/gc-gnulib.c: Support ARCFOUR.
95385 2005-10-19  Simon Josefsson  <jas@extundo.com>
95387         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
95388         support.
95390         * lib/gc.h: Add ECB enum type.
95392         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
95394 2005-10-18  Simon Josefsson  <jas@extundo.com>
95396         * tests/test-md5.c: New file.
95398         * modules/md5-tests: New file.
95400 2005-10-18  Simon Josefsson  <jas@extundo.com>
95402         * tests/test-md4.c: New file.
95404         * modules/md4, modules/md4-tests: New files.
95406 2005-10-18  Simon Josefsson  <jas@extundo.com>
95408         * m4/md4.m4: New file.
95410 2005-10-18  Simon Josefsson  <jas@extundo.com>
95412         * lib/md4.h, lib/md4.c: New files, based on md5.?.
95414 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
95416         * gnulib-tool (func_create_testdir): Omit the second check whether
95417         BUILT_SOURCES in nonempty.
95419 2005-10-17  Simon Josefsson  <jas@extundo.com>
95421         * tests/test-rijndael.c: New file.
95423 2005-10-17  Simon Josefsson  <jas@extundo.com>
95425         * modules/sha1: Depend on stdint instead of md5.
95427         * modules/md5: Depend on stdint, remove uint32_t.
95429 2005-10-17  Simon Josefsson  <jas@extundo.com>
95431         * modules/gc-sha1-tests: New file.
95433         * tests/test-gc-sha1.c: New file.
95435 2005-10-17  Simon Josefsson  <jas@extundo.com>
95437         * m4/md5.m4: Remove call to uint32_t.m4.
95439 2005-10-17  Simon Josefsson  <jas@extundo.com>
95441         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
95443         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
95444         md5.h.
95446         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
95448         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
95450 2005-10-17  Simon Josefsson  <jas@extundo.com>
95452         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
95454 2005-10-17  Simon Josefsson  <jas@extundo.com>
95456         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
95458 2005-10-17  Simon Josefsson  <jas@extundo.com>
95460         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
95462         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
95464 2005-10-17  Bruno Haible  <bruno@clisp.org>
95466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
95467         that it can also be used in a test.
95469 2005-10-16  Bruno Haible  <bruno@clisp.org>
95471         * gnulib-tool (func_emit_tests_Makefile_am): Also define
95472         TESTS_ENVIRONMENT, so that individual tests can augment it.
95474         * gnulib-tool (func_create_testdir): Use an intermediate target for
95475         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
95476         macros, like $(ALLOCA_H), which cannot be passed through the command
95477         line.
95479 2005-10-15  Simon Josefsson  <jas@extundo.com>
95481         * modules/rijndael-tests: New file.
95483         * modules/rijndael: New file.
95485 2005-10-15  Simon Josefsson  <jas@extundo.com>
95487         * m4/rijndael.m4: New file.
95489 2005-10-15  Simon Josefsson  <jas@extundo.com>
95491         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
95493         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
95495 2005-10-14  Simon Josefsson  <jas@extundo.com>
95497         * tests/test-arcfour.c: New file.
95499         * modules/arcfour, modules/arcfour-tests: New files.
95501 2005-10-14  Simon Josefsson  <jas@extundo.com>
95503         * m4/arcfour.m4: New file.
95505 2005-10-14  Simon Josefsson  <jas@extundo.com>
95507         * lib/arcfour.h, lib/arcfour.c: New files.
95509 2005-10-14  Roland McGrath  <roland@redhat.com>
95511         Import from libc.  [BZ #1331]
95512         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
95513         macro argument.
95514         Reported by Matej Vela <vela@debian.org>.
95516 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95518         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
95519         include <wchar.h>; no longer needed.
95521 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95523         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
95525 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
95526         and  Ulrich Drepper  <drepper@redhat.com>
95528         Import from libc.
95529         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
95530         instead of inline stream orientation test and two separate
95531         function calls.  Pay no attention to USE_IN_LIBIO.
95533 2005-10-13  Simon Josefsson  <jas@extundo.com>
95535         * modules/gc-hmac-md5-tests: New file.
95537         * tests/test-gc-hmac-sha1.c: New file.
95539         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
95541         * modules/gc-hmac-md5-tests: New file.
95543         * tests/test-gc-md5.c: New file.
95545         * modules/gc-md5-tests: New file.
95547 2005-10-13  Simon Josefsson  <jas@extundo.com>
95549         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
95550         Move memory allocation outside of loop.
95552 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
95554         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
95555         intermediate directory is in a read-only file system.  Problem
95556         reported by Eric Blake.
95558 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
95560         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
95562 2005-10-12  Simon Josefsson  <jas@extundo.com>
95564         * tests/test-hmac-sha1.c: New file.
95566         * modules/hmac-sha1-tests: New file.
95568         * modules/hmac-sha1: New file.
95570 2005-10-12  Simon Josefsson  <jas@extundo.com>
95572         * modules/gc-sha1: New file.
95574 2005-10-12  Simon Josefsson  <jas@extundo.com>
95576         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
95578         * tests/test-gc-pbkdf2-sha1.c: New file.
95580 2005-10-12  Simon Josefsson  <jas@extundo.com>
95582         * modules/gc-md5, modules/gc-hmac-md5: New files.
95584         * modules/gc (Files): Remove md5, memxor and hmac files.
95586 2005-10-12  Simon Josefsson  <jas@extundo.com>
95588         * m4/gc-pbkdf2-sha1.m4: New file.
95590         * m4/gc-hmac-sha1.m4: New file.
95592         * m4/gc-sha1: New file.
95594         * m4/hmac-sha1.m4: New file.
95596 2005-10-12  Simon Josefsson  <jas@extundo.com>
95598         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
95600         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
95602 2005-10-12  Simon Josefsson  <jas@extundo.com>
95604         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
95605         suggested by Bruno Haible <bruno@clisp.org>.
95607 2005-10-12  Simon Josefsson  <jas@extundo.com>
95609         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
95611 2005-10-12  Simon Josefsson  <jas@extundo.com>
95613         * lib/gc-pbkdf2-sha1.c: New file.
95615         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
95617 2005-10-12  Simon Josefsson  <jas@extundo.com>
95619         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
95621         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
95623 2005-10-12  Simon Josefsson  <jas@extundo.com>
95625         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
95626         GC_USE_HMAC_MD5, respectively.
95628         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
95629         (gc_md5): Fix typo.
95631         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
95633         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
95635         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
95637 2005-10-12  Bruno Haible  <bruno@clisp.org>
95639         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
95640         Reported by Stepan Kasal <kasal@ucw.cz>.
95642 2005-10-11  Simon Josefsson  <jas@extundo.com>
95644         * tests/test-crc.c: New file.
95646         * modules/crc, modules/crc-tests: New files.
95648 2005-10-11  Simon Josefsson  <jas@extundo.com>
95650         * m4/crc.m4: New file.
95652 2005-10-11  Simon Josefsson  <jas@extundo.com>
95654         * lib/gc.h: Add gc_hash and gc_hash_buffer.
95656         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
95658         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
95660 2005-10-11  Simon Josefsson  <jas@extundo.com>
95662         * lib/crc.h, lib/crc.c: New files.
95664         * lib/gc.h (gc_hash_buffer): Add doc.
95666 2005-10-11  Bruno Haible  <bruno@clisp.org>
95668         * modules/c-strcasestr: New file.
95669         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
95671 2005-10-11  Bruno Haible  <bruno@clisp.org>
95673         * modules/c-strcase: New file.
95674         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
95676 2005-10-11  Bruno Haible  <bruno@clisp.org>
95678         * lib/strcasecmp.c: Include limits.h.
95679         (strcasecmp): Avoid integer overflow on exotic platforms.
95680         * lib/strncasecmp.c: Include limits.h.
95681         (strncasecmp): Avoid integer overflow on exotic platforms.
95682         Reported by Paul Eggert.
95684 2005-10-11  Bruno Haible  <bruno@clisp.org>
95686         * lib/c-strcasestr.h: New file, from GNU gettext.
95687         * lib/c-strcasestr.c: New file, from GNU gettext.
95689 2005-10-11  Bruno Haible  <bruno@clisp.org>
95691         * lib/c-strcase.h: New file, from GNU gettext.
95692         * lib/c-strcasecmp.c: New file, from GNU gettext.
95693         * lib/c-strncasecmp.c: New file, from GNU gettext.
95695 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
95697         * modules/mempcpy (License): GPL -> LGPL.
95698         * modules/strchrnul (License): Likewise.
95699         * modules/sysexits (License): Likewise.
95701 2005-10-08  Simon Josefsson  <jas@extundo.com>
95703         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
95705 2005-10-07  Simon Josefsson  <jas@extundo.com>
95707         * m4/memxor.m4: Remove gl_C_RESTRICT call.
95709 2005-10-06  Simon Josefsson  <jas@extundo.com>
95711         * tests/test-hmac-md5.c: New file.
95713         * modules/hmac-md5-tests: New file.
95715         * modules/hmac-md5: New file.
95717 2005-10-06  Simon Josefsson  <jas@extundo.com>
95719         * m4/hmac-md5.m4: New file.
95721         * m4/memxor.m4: Require gl_C_RESTRICT.
95723 2005-10-06  Simon Josefsson  <jas@extundo.com>
95725         * lib/memxor.c (memxor): Avoid casts and warnings.
95727 2005-10-06  Simon Josefsson  <jas@extundo.com>
95729         * lib/hmac-md5.c: New file.
95731         * lib/hmac.h: New file.
95733 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
95735         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
95736         promotes to int, not unsigned int, to catch the AIX 5.3
95737         compiler bug.
95739 2005-10-05  Simon Josefsson  <jas@extundo.com>
95741         * modules/memxor: New file.
95743         * modules/iconv (Files): Move config.rpath to havelib, it is used
95744         there.
95746         * modules/havelib (Files): Add config.rpath.
95748 2005-10-05  Simon Josefsson  <jas@extundo.com>
95750         * m4/memxor.m4: New file.
95752 2005-10-05  Simon Josefsson  <jas@extundo.com>
95754         * lib/memxor.c (memxor): Fix compiler error.
95756         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
95757         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
95759         * lib/memxor.h, lib/memxor.c: New files.
95761         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
95762         we assume all systems have it, suggested by Jim Meyering
95763         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
95764         any systems lack sys/socket.h; mingw32 is known to lack it, but we
95765         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
95766         same reasons.
95768 2005-10-05  Simon Josefsson  <jas@extundo.com>
95770         * config/srclist.txt: Add glibc bug 1423 for md5.h.
95772 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
95774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
95775         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
95776         needed, since the source code now assumes these .h files.
95778 2005-10-05  Derek Price  <derek@ximbiot.com>
95780         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
95782 2005-10-05  Bruno Haible  <bruno@clisp.org>
95784         * modules/stdint (License): Change to LGPL.
95786 2005-10-04  Simon Josefsson  <jas@extundo.com>
95788         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
95789         D. Baushke" <mdb@gnu.org>.
95791 2005-10-04  Bruno Haible  <bruno@clisp.org>
95793         * lib/verify.h (verify_true): Provide alternative definition for C++.
95795 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
95797         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
95798         (SSIZE_MAX): New macro, if not already defined.
95799         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
95800         than 2 GiB.
95802 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
95804         Sync from coreutils.
95805         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
95806         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
95807         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
95808         ULLONG_MAX doesn't work with 2.7.2.1.
95810 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
95812         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
95813         From Ben Pfaff.
95815         * modules/exclude (Depends-on): Depend on verify.
95816         * modules/strtoimax (Depends-on): Likewise.
95817         * modules/utimecmp (Depends-on): Likewise.
95819 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
95821         * lib/exclude.c: Include verify.h.
95822         (verify): Remove.  All callers changed to use verify.h's version.
95823         * lib/strtoimax.c: Likewise.
95824         * lib/utimecmp.c: Likewis.e
95826         Sync from coreutils.
95827         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
95828         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
95829         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
95830         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
95831         bother returning ENOSYS if settimeofday or stime fails; just let
95832         them return whatever errno they want to return.
95833         * lib/utimens.c: Include unistd.h, for dup2.
95834         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
95835         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
95837 2005-10-02  Jim Meyering  <jim@meyering.net>
95839         Sync from coreutils.
95840         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
95841         from glibc-2.2.5 that fails for read-only files.
95843 2005-10-02  Jim Meyering  <jim@meyering.net>
95845         Sync from coreutils.
95846         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
95847         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
95848         `#if HAVE_CONFIG_H'.
95849         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
95850         Remove AT_FDCWD test.
95851         Do not consume the fd unless successful.
95852         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
95853         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
95854         block, so that we don't even try to compile it if settimeofday is
95855         available.  This works around a compilation failure on OSF1 V5.1,
95856         due to stime requiring a `long int*' while tv_sec is `int'.
95858 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
95860         Sync from coreutils.
95861         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
95862         against `yes', rather than just testing for nonempty.
95864 2005-10-01  Simon Josefsson  <jas@extundo.com>
95866         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
95867         and Darwin.
95869         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
95870         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
95871         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
95872         freeaddrinfo and gai_strerror are declared by the POSIX headers.
95873         Check if struct addrinfo is declared.
95875 2005-10-01  Simon Josefsson  <jas@extundo.com>
95877         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
95878         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
95879         AI_* and EAI_* definitions.  Protect function declarations.
95881 2005-10-01  Jim Meyering  <jim@meyering.net>
95883         Sync from coreutils.
95885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
95886         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
95887         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
95888         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
95889         in the inet and nsl libraries.  Required on Solaris 5.7.
95891 2005-10-01  Jim Meyering  <jim@meyering.net>
95893         Sync from coreutils.
95894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
95895         in the inet and nsl libraries.  Required on Solaris 5.7.
95897 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
95899         * lib/getdelim.c (getdelim): Remove unused variables.
95901 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
95903         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
95904         so that the code works even with ancient cpp.  Portability problem
95905         with GCC 2.7.2.1 reported by Thomas M.Ott.
95907 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
95909         * modules/regex (Depends-on): Add strcase.
95911         * modules/gethostname (Licence): Change from GPL to LGPL, since
95912         gethostname.c is a trivial implementation of a standard library
95913         function.
95914         * modules/poll (License): Change from GPL to LGPL, since it's
95915         derived from LGPL code.
95917 2005-09-27  Jim Meyering  <jim@meyering.net>
95919         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
95920         HAVE_CONFIG_H.
95922         * lib/intprops.h (signed_type_or_expr__): Define.
95923         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
95924         for unsigned types.
95926 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
95928         * lib/verify.h (verify_expr): Remove, replacing with:
95929         (verify_true): New macro that returns true instead of void.
95930         (verify_type__): Remove.
95931         (verify): Use verify_true rather than verify_type__.
95933 2005-09-26  Bruno Haible  <bruno@clisp.org>
95935         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
95936         is necessary.
95937         (lib_SOURCES): Remove mbchar.c.
95938         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
95939         (Files): Add m4/mbrtowc.m4.
95940         * modules/mbiter: Likewise.
95941         * modules/mbuiter: Likewise.
95943 2005-09-26  Bruno Haible  <bruno@clisp.org>
95945         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
95946         compile mbchar.c if they are not both present.
95947         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
95948         * m4/mbiter.m4 (gl_MBITER): Likewise.
95949         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
95950         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
95951         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
95953 2005-09-25  Jim Meyering  <jim@meyering.net>
95955         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
95956         also uses socklen_t.
95958 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
95960         * lib/utimens.c (ENOSYS): Define if not already defined.
95961         (futimens): Support having a null PATH if the file descriptor
95962         is nonnegative.
95964         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
95965         Remove.
95966         (__attribute): Define to empty unless GCC 3.1 or later.
95967         This works around a core dump on OpenBSD 3.4, which has GCC
95968         2.95.3, which dumps core when given __attribute__(()).  It also
95969         simplifies other tests, since we really don't want to bother with
95970         worrying about which ancient version of GCC supported what.
95971         Original problem reported by Yoann Vandoorselaere, with part of
95972         the fix suggested by Derek Price.
95974 2005-09-24  Jim Meyering  <jim@meyering.net>
95976         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
95977         so we can once again use a positive bitfield width of 1 -- now we
95978         don't have to explain why we were using a bitfield width of 2.
95980 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
95982         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
95983         and similarly for the other external symbols.  Problem reported
95984         by James Gallager.
95986         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
95987         bug reported by Jim Meyering.
95989         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
95990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
95991         not needed, since socklen is a prerequisite module.
95993 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
95995         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
95996         Problem reported by Eric Blake.
95997         (getaddrinfo): Initialize se so that it's not garbage.
95998         Redo internal storage allocation so that it doesn't make unportable
95999         assumptions about alignment.
96000         Fix a memory leak.
96002         * lib/utimens.c (futimens): Use futimesat if available.
96003         Prefer it to futimes since it doesn't have the futimes bug.
96005         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
96006         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
96007         Instead, declare a function that returns a pointer to an array,
96008         and use verify_type__ to declare the size of the array.
96009         Problem and germ of a solution reported by Bruno Haible.
96010         (verify_type__): Use 2, not 1, for bitfield size, to avoid
96011         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
96013 2005-09-23  Jim Meyering  <jim@meyering.net>
96015         Sync from coreutils.
96016         Correct build failure (socklen_t not defined) on at least
96017         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
96018         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
96020 2005-09-23  Jim Meyering  <jim@meyering.net>
96022         * modules/getaddrinfo (Depends-on): Add socklen.
96024 2005-09-23  Bruno Haible  <bruno@clisp.org>
96026         * tests/test-verify.c: New file.
96028 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96030         Sync from coreutils.
96032         * modules/argmatch (Depends-on): Add verify.
96033         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
96034         unistd-safer.
96035         * modules/save-cwd (Depends-on): Likewise.
96037         * modules/openat (Files): Add lib/openat-die.c.
96038         (Depends-on): Remove error, exitfail.
96039         Add dirname.
96041         * modules/verify: New file.
96042         * MODULES.html.sh (Diagnostics <assert.h>): New section,
96043         with "verify" module.
96045 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96047         Sync from coreutils.
96049         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
96050         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
96051         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
96052         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
96053         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
96054         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
96055         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
96056         Don't bother checking for string.h, stdlib.h, unistd.h.
96057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
96058         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
96059         module's job.
96060         * m4/jm-macros.m4 (gl_MACROS): Likewise.
96061         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
96063         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
96064         (gl_GETDATE): Use it.
96066         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
96068 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96070         Sync from coreutils.
96072         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
96073         stat-time.h.
96074         * lib/argmatch.h: Include verify.h
96075         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
96076         (ARGMATCH_ASSERT): Remove; unused.
96077         * lib/canonicalize.c: Assume STDC_HEADERS.
96078         * lib/exclude.c: Include "strcase.h".
96079         * lib/regex_internal.h [!defined _LIBC]: Likewise.
96080         * lib/getusershell.c: Include stdio--.h rather than stdio.h
96081         and stdio-safer.h.
96082         (getusershell): Call fopen, not fopen_safer.
96083         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
96084         Do not include unistd-safer.h.
96085         (save_cwd): Don't call fd_safer; no longer needed
96086         now that we include fcntl--.h.
96088         * lib/getdate.y (relative_time): New type.
96089         (RELATIVE_TIME_0): New constant.
96090         (parser_control): Use relative_time instead of doing it ourselves.
96091         (%union): Add new relative_time rel member.
96092         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
96093         Now typeless.
96094         (relunit, relunit_snumber): Now of type rel.
96095         (zone, rel, relunit, get_date): Adjust to above changes.
96097         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
96098         Do not include unistd-safer.h.
96099         (getloadavg): Don't call fd_safer; no longer needed
96100         now that we include fcntl--.h.
96102         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
96103         (make_dir_parents): Treat ENOSYS like EEXIST.
96105         Improve quality of diagnostics on restore_cwd failure.
96106         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
96107         (make_dir_parents): Last arg is now int * (for errno), not bool *.
96108         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
96109         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
96110         each time through the loop.  Do not diagnose restore_cwd failure;
96111         that is the caller's job (and perhaps the caller does not care).
96113         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
96114         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
96115         If the file already exists but is not a directory, don't bother
96116         to try to make its parents.
96117         Close potential file descriptor leak if we can't chdir("/") (!).
96118         Don't always return true if chdir($PWD) fails; return true only
96119         if the requested action was done successfully (except for the
96120         chdir($PWD)).
96121         Don't log final directory unless we actually made it.
96122         Refactor to avoid duplicate code to fix up permissions.
96123         Don't attempt to fix up parent permissions if chdir($PWD) fails.
96125         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
96126         to make it a bit faster and (I hope) clearer.
96127         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
96128         Fix bug in formats like %2N.
96130         * lib/verify.h: New file.
96132 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96134         Sync from coreutils.
96135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
96137 2005-09-22  Jim Meyering  <jim@meyering.net>
96139         Sync from coreutils.
96141         * m4/lstat.m4 (gl_FUNC_LSTAT):
96142         Use AC_LIBSOURCES to require lstat.c and lstat.h.
96143         Remove obsolete comment.
96144         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
96145         * m4/xstrtod.m4: Likewise.
96147         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
96149 2005-09-22  Jim Meyering  <jim@meyering.net>
96151         Sync from coreutils.
96153         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
96155         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
96156         the .tm_year member, since otherwise gcc-4.0 would now warn about
96157         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
96159         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
96160         order to avoid an unsuppressible warning from gcc on 64-bit systems.
96162         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
96163         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
96164         when run in a time zone for which daylight savings time is in effect
96165         for the starting date.
96167         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
96168         stop us from restricting permissions of just-created absolute-named
96169         directories.
96170         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
96171         to restore initial working directory.
96172         * lib/mkdir-p.c (make_dir_parents): New parameter:
96173         different_working_dir, to tell caller if/when we change the working
96174         directory and are unable to return to the initial one.
96175         * lib/mkdir-p.h (make_dir_parents): Update prototype.
96176         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
96177         `return false'.  This fixes a bug introduced on 2004-07-30.
96179         * lib/openat.c (fdopendir): Be sure to close the supplied
96180         file descriptor before returning.  This makes our replacement
96181         implementation a little closer to Solaris's, where fdopendir
96182         ties the file descriptor to the returned DIR* pointer.
96183         * lib/openat.c (unlinkat): New function.
96184         * lib/openat.h (unlinkat): Add prototype.
96185         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
96186         (openat_restore_fail): Rename from openat_restore_die.
96187         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
96189         Provide an alternative to exiting immediately upon save_cwd or
96190         restore_cwd failure.  Now, an application can arrange e.g.,
96191         to perform a longjump in that case.
96192         * lib/openat.c: Include dirname.h.
96193         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
96194         (rpl_openat, fdopendir, fstatat): Call openat_save_die
96195         and openat_restore_die rather than calling error directly.
96196         Don't include "error.h" or "exitfail.h"; they're no longer needed.
96198         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
96199         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
96200         define.
96202         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
96203         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
96204                             int utc, int nanoseconds);
96205         Background:
96206         date should not have to allocate a megabyte of virtual memory to
96207         handle a format argument like +%1048575T.  When implemented with
96208         strftime, it must allocate such a buffer, use strftime to fill it
96209         in, print it, then free it.
96210         With fprintftime, it simply prints everything and exits.
96211         With no need for memory allocation, that's one fewer way to fail.
96212         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
96213         optional field width, not before, so we accept %9:z, not %:9z.
96214         (my_strftime): Be sure to use L_('x') for literals.
96216         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
96217         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
96218         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
96219         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
96220         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
96221         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
96222         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
96223         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
96224         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
96225         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
96226         * lib/xgethostname.c, lib/xreadlink.c:
96227         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
96229         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
96230         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
96231         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
96232         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
96233         and don't include <sys/file.h>).
96235 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
96237         Sync from coreutils.
96239         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
96240         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
96241         [!LDAV_DONE]: Avoid unused variable warning.
96243 2005-09-21  Bruno Haible  <bruno@clisp.org>
96245         * lib/unicodeio.h (unicode_to_mb): New declaration.
96247 2005-09-20  Derek Price  <derek@ximbiot.com>
96249         * lib/getaddrinfo.c: Don't include <netdb.h> included from
96250         getaddrinfo.h.
96252 2005-09-20  Bruno Haible  <bruno@clisp.org>
96254         * gnulib-tool: Remove trailing slashes from the values specified for
96255         --source-base, --m4-base, --tests-base, --aux-dir.
96256         Suggested by Simon Josefsson <jas@extundo.com>.
96258 2005-09-20  Bruno Haible  <bruno@clisp.org>
96260         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
96261         func_modules_to_filelist, func_import, func_create_testdir): Make all
96262         sorting results locale-independent, so that gnulib-cache.m4 doesn't
96263         change when gnulib-tool is invoked in a different locale.
96265 2005-09-19  Simon Josefsson  <jas@extundo.com>
96267         * m4/socklen.m4: Fix typo.
96269 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96271         Use a consistent style for including <config.h>.
96272         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
96273         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
96274         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
96275         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
96276         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
96277         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
96278         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
96279         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
96280         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
96281         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
96282         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
96283         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
96284         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
96285         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
96286         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
96287         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
96288         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
96289         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
96290         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
96291         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
96292         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
96293         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
96294         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
96295         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
96296         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
96297         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
96298         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
96299         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
96300         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
96301         lib/xstrtoumax.c, lib/yesno.c:
96302         Standardize inclusion of config.h.
96303         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
96304         lib/inttostr.h:  Removed inclusion of config.h from header files.
96305         * lib/inttostr.c:  Adjusted in-tree users.
96306         * lib/timespec.h: Remove superfluous warning to include config.h.
96307         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
96308         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
96309         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
96310         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
96311         config.h with HAVE_CONFIG_H.
96313 2005-09-19  Jim Meyering  <jim@meyering.net>
96315         * modules/pathmax (License): Change to LGPL.
96317 2005-09-19  Derek Price  <derek@ximbiot.com>
96319         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
96321 2005-09-19  Bruno Haible  <bruno@clisp.org>
96323         * gnulib-tool (import): Provide default for --tests-base.
96325 2005-09-19  Bruno Haible  <bruno@clisp.org>
96327         * doc/quote.texi: New file, extracted from gnulib.texi.
96328         * doc/ctime.texi: New file, extracted from gnulib.texi.
96329         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
96330         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
96331         * doc/gnulib.texi: Include them.
96333 2005-09-18  Bruno Haible  <bruno@clisp.org>
96335         Portability fix.
96336         * gnulib-tool (func_readlink): New function.
96337         (func_ln_if_changed): Use it.
96339 2005-09-18  Bruno Haible  <bruno@clisp.org>
96341         * gnulib-tool: Support --with-tests also with --import.
96342         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
96343         (func_import): Use variables $testsbase and $inctests. Emit a
96344         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
96345         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
96346         SUBDIRS += $testsdir.
96347         (func_create_testdir): Update.
96349 2005-09-18  Bruno Haible  <bruno@clisp.org>
96351         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
96352         instead of $dry_run.
96353         (func_cp_if_changed, func_mv_if_changed): Remove functions.
96354         (func_ln_if_changed): Don't handle dry-run here.
96355         (func_import): In dry-run mode, detect more precisely which actions
96356         would be performed, and don't use "...ing" verbs.
96358 2005-09-18  Bruno Haible  <bruno@clisp.org>
96360         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
96361         (func_import): Use join on two temporary files instead of three nested
96362         loops, in order to determine which files are new or old.
96364 2005-09-18  Bruno Haible  <bruno@clisp.org>
96366         * gnulib-tool (func_import): Comment out code that spits out the
96367         new files with --dry-run.
96369 2005-09-18  Bruno Haible  <bruno@clisp.org>
96371         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
96373 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
96375         * lib/stat-time.h: New file.
96376         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
96377         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
96378         in a different way.
96379         (timespec_cmp): New function.
96380         * lib/utimecmp.c: Include stat-time.h.
96381         (SYSCALL_RESOLUTION): Depend on whether various struct stat
96382         members exist, not on the obsolescent ST_MTIM_NSEC.
96383         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
96385 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
96387         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
96389 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
96391         * MODULES.html.sh (File system functions): Add stat-time.
96392         * modules/stat-time: New file.
96393         * modules/timespec (Files): Remove m4/st_mtim.m4; this
96394         is now done in a different way, by the stat-time module.
96395         * modules/utimecmp (Depends-on): Add stat-time.
96397 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96399         * m4/st_mtim.m4: Remove.  Superseded by...
96400         * m4/stat-time.m4: New file.
96401         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
96402         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
96404 2005-09-15  Derek Price  <derek@ximbiot.com>
96406         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
96408 2005-09-15  Derek Price  <derek@ximbiot.com>
96410         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
96411         * lib/regex_internal.c: Ditto, using this...
96412         (__GNUC_PREREQ): ...new macro.
96413         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
96414         using...
96415         (__GNUC_PREREQ): ...this new macro.
96417         * lib/strstr.h: Include string.h. Define strstr as a macro here.
96419 2005-09-15  Derek Price  <derek@ximbiot.com>
96420             Paul Eggert  <eggert@cs.ucla.edu>
96422         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
96423         changes, consolidating in...
96424         * lib/regex_internal.h: ...this file.
96426 2005-09-13  Jim Meyering  <jim@meyering.net>
96428         * lib/canon-host.c: Filter through gnu indent and reword comments
96429         slightly.
96430         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
96432 2005-09-13  Derek Price  <derek@ximbiot.com>
96434         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
96435         failure.
96436         Reported by Jim Meyering  <jim@meyering.net>.
96438 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96440         * lib/base64.c: Typo.
96441         (base64_encode): Put b64str in initialized data section.
96443 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
96445         Merge glibc and coreutils changes into gnulib, plus a few
96446         extra fixes.
96447         * lib/md5.c: Use #error rather than a string.
96448         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
96449         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
96450         (__attribute__): Define to empty for non recent-GCC.
96451         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
96452         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
96453         Renamed from their non-__ counterparts, with new macros replacing
96454         them if not _LIBC.  Add __THROW attribute.
96455         (rol): Remove.
96456         (struct md5_ctx): Align buffer if using GCC.
96457         * lib/sha1.h (struct sha1_ctx): Likewise.
96458         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
96459         The old name was backwards.
96460         (NOTSWAP): Remove; not used.
96461         (rol): New macro, moved here from md5.h.
96462         (sha1_process_block): Remove a FIXME that doesn't make sense.
96464 2005-09-12  Derek Price  <derek@ximbiot.com>
96466         Return usable errors from canon-host.
96467         * lib/canon-host.h: New file.
96468         * lib/canon-host.c (canon_host): Wrap...
96469         (canon_host_r): ...this new function, which now relies exclusively on
96470         getaddrinfo.
96471         (ch_strerror): New function.
96472         (last_cherror): New global.
96473         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
96474         interface.
96475         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
96476         void *.
96477         (freeaddrinfo): Free ai->ai_canonname when set.
96479 2005-09-12  Derek Price  <derek@ximbiot.com>
96481         Make canon-host require getaddrinfo.
96482         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
96483         AC_LIBSOURCE canon-host.h.  Call...
96484         (gl_PREREQ_CANON_HOST): ...this new function, which requires
96485         gl_GETADDRINFO.
96486         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
96488 2005-09-12  Derek Price  <derek@ximbiot.com>
96490         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
96491         LGPL.
96492         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
96494 2005-09-12  Derek Price  <derek@ximbiot.com>
96496         * lib/gai_strerror.c: Include config.h when available.  Include
96497         getaddrinfo.h before other headers to test interface.
96498         Reported by Larry Jones <lawrence.jones@ugs.com>.
96500 2005-09-12  Derek Price  <derek@ximbiot.com>
96501             Paul Eggert  <eggert@cs.ucla.edu>
96503         * modules/glob (Files): Add glob-libc.h.
96505 2005-09-12  Derek Price  <derek@ximbiot.com>
96506             Paul Eggert  <eggert@cs.ucla.edu>
96508         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
96509         glob_.h, glob-libc.h.
96510         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
96512 2005-09-12  Derek Price  <derek@ximbiot.com>
96513             Paul Eggert  <eggert@cs.ucla.edu>
96515         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
96516         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
96517         protecting things that should be done only in gnulib contexts.
96518         * lib/glob_.h: New file, containing only the glob things needed for
96519         gnulib.
96520         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
96521         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
96522         (glob, globfree, glob_pattern_p): Now defined simply in terms of
96523         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
96524         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
96525         and to respect the namespace rules better.
96527 2005-09-08  Simon Josefsson  <jas@extundo.com>
96529         * modules/socklen: New file.
96531 2005-09-08  Simon Josefsson  <jas@extundo.com>
96533         * m4/socklen.m4: New file.
96535 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96537         * modules/utimens (Files): Add m4/utimbuf.m4, since
96538         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
96539         Reported by Sergey Poznyakoff.
96541 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96543         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
96544         definitions, since that's the preferred style in glibc.
96545         Fix a minor spacing issue, and update copyright notice to match
96546         glibc's.
96548 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96550         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
96552 2005-09-06  Simon Josefsson  <jas@extundo.com>
96554         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
96555         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
96557 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
96559         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
96560         warning.
96562 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
96564         * config/srclist.txt: Add glibc bug 1302.
96566 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
96568         Change bitset word type from unsigned int to unsigned long int,
96569         as this has better performance on typical 64-bit hosts.
96570         Port bitset code to hosts with unusual word sizes.
96571         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
96572         (build_collating_symbol):
96573         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
96574         argument is a bitset.  This is merely a style issue, but it makes
96575         it clearer that an entire array is expected.
96576         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
96577         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
96578         Port to the case where bitset_word is not the same as unsigned int.
96579         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
96580         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
96581         Likewise.
96582         * lib/regexec.c (check_dst_limits_calc_pos_1,
96583         check_subexp_matching_top):
96584         (build_trtable, group_nodes_into_DFAstates):
96585         Likewise.
96586         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
96587         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
96588         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
96589         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
96590         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
96591         * lib/regcomp.c (optimize_subexps, lower_subexp):
96592         Work even if bitset_word has holes in its bitwise representation.
96593         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
96594         * lib/regexec.c (check_dst_limits_calc_pos_1,
96595         check_subexp_matching_top):
96596         Likewise.
96597         * lib/regex_internal.c (re_string_reconstruct):
96598         Don't assume UCHAR_MAX == 255.
96599         * lib/regex_internal.h (bitset_set_all): Likewise.
96600         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
96601         All uses changed.
96602         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
96603         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
96604         All uses changed.
96605         (BITSET_WORD_MAX): New macro.
96606         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
96607         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
96608         (bitset_empty, bitset_copy):
96609         Prefer sizeof (bitset) to multiplying it out ourselves.
96610         (bitset_not_merge): Remove; unused.
96611         (bitset_contain): Return bool, not unsigned int with one bit on.
96612         All callers changed.
96613         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
96614         alignment than re_node_set; do this by defining a new internal
96615         type struct dests_alloc and using it to allocate memory.
96617 2005-09-05  Bruno Haible  <bruno@clisp.org>
96619         * gnulib-tool (func_import): Fix comparison in handling of symbolic
96620         links.
96622 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
96624         * modules/size_max (Makefile.am): Add size_max.h
96626 2005-09-04  Derek Price  <derek@ximbiot.com>
96628         * gnulib-tool (func_import): Fix reversed $symbolic logic.
96630 2005-09-03  Simon Josefsson  <jas@extundo.com>
96632         * gnulib-tool: Fix typo.
96634 2005-09-03  Simon Josefsson  <jas@extundo.com>
96636         * config/srclist.txt: Add glibc bug 1293.
96638 2005-09-03  Derek Price  <derek@ximbiot.com>
96640         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
96641         From Larry Jones <lawrence.jones@ugs.com>.
96643 2005-09-02  Simon Josefsson  <jas@extundo.com>
96645         * modules/socklen: New file.
96647 2005-09-02  Simon Josefsson  <jas@extundo.com>
96649         * modules/havelib: New module.
96651         * modules/gettext, modules/iconv, modules/lock, modules/readline:
96652         Use havelib.
96654 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
96656         Check for arithmetic overflow when calculating sizes, to prevent
96657         some buffer-overflow issues.  These patches are conservative, in the
96658         sense that when I couldn't determine whether an overflow was possible,
96659         I inserted a run-time check.
96660         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
96661         macros.
96662         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
96663         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
96664         (re_xnrealloc, re_x2nrealloc): New inline functions.
96665         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
96666         parse_bracket_exp):
96667         (build_equiv_class, build_charclass): Check for arithmetic overflow
96668         in size expression calculations.
96669         * lib/regex_internal.c (re_string_realloc_buffers):
96670         (build_wcs_upper_buffer, re_node_set_add_intersect):
96671         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
96672         (re_dfa_add_node, register_state): Likewise.
96673         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
96674         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
96675         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
96676         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
96678 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
96680         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
96681         m4/ulonglong.m4.  Problem reported by Martin Lambers.
96683 2005-09-02  Bruno Haible  <bruno@clisp.org>
96685         Support for lib vs. lib64 distinction on biarch platforms.
96686         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
96687         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
96688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
96690 2005-09-02  Bruno Haible  <bruno@clisp.org>
96692         * gnulib-tool (import): In the other first-use case, provide defaults
96693         as well.
96695 2005-09-02  Bruno Haible  <bruno@clisp.org>
96697         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
96698         patches not yet found in the latest gettext release.
96700 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96702         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
96703         to avoid a collision with bits/local_lim.h in glibc.
96704         All uses changed.  Problem reported by Dmitry V. Levin in
96705         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
96707         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
96708         bugs in int versus size_t comparisons.
96709         (re_string_context_at): Fix bug where the code assumed that
96710         Idx is signed.
96712         Use bool where appropriate.
96713         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
96714         All callers changed.
96715         (calc_eclosure_iter): Likewise, for ROOT arg.
96716         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
96717         (build_charclass_op): Likewise, for NON_MATCH arg.
96718         * lib/regex_internal.c (re_string_allocate, re_string_construct):
96719         (re_string_construct_common): Likewise, for ICASE arg.
96720         * lib/regexec.c (re_search_2_stub, re_search_stub):
96721         Likewise, for RET_LEN arg.
96722         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
96723         (set_regs): Likewise, for FL_BACKTRACK arg.
96724         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
96725         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
96726         (calc_eclosure_iter, parse_bracket_exp):
96727         Use bool for internal variables that are booleans.
96728         * lib/regexec.c (re_search_internal, check_matching,
96729         proceed_next_node):
96730         (set_regs, build_sifted_states, sift_states_bkref):
96731         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
96732         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
96733         (find_collation_sequence_value):
96734         Likewise.
96735         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
96736         (re_node_set_compare):
96737         Return bool, not int. All callers changed.
96738         * lib/regexec.c (check_halt_node_context, check_dst_limits):
96739         (build_trtable, check_node_accept): Likewise.
96740         * lib/regex_internal.h: Include stdbool.h.
96742         Fix bugs uncovered when converting to bool.
96743         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
96744         failure instead of charging ahead blindly.
96745         * lib/regex_internal.c (register_state): Likewise.
96746         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
96747         for freeing internal storage.
96748         (group_nodes_into_DFA_states): Use unsigned int, not int, for
96749         bitset pieces used as boolean, to avoid undefined behavior
96750         on hosts that do int overflow checking.
96752 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96754         * config/srclist.txt: Add glibc bugs 1285-1287.
96756 2005-09-01  Jim Meyering  <jim@meyering.net>
96758         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
96759         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
96760         Require gl_STAT_MACROS, too.
96762 2005-09-01  Bruno Haible  <bruno@clisp.org>
96764         * gnulib-tool (import): In the first-use case, provide defaults.
96766 2005-09-01  Bruno Haible  <bruno@clisp.org>
96768         * gnulib-tool (func_import): Remove the .tmp files.
96770 2005-09-01  Bruno Haible  <bruno@clisp.org>
96772         * gnulib-tool (func_import): Fix handling of symbolic links.
96774 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96776         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
96777         old glibc regex code mishandles strings longer than 2**31 bytes.
96778         This patch fixes this when the regex code is used in gnulib
96779         (i.e., outside glibc).
96781         This patch should not affect the use of the regex code inside
96782         glibc.  No doubt this problem also needs to be handled for glibc
96783         as well, but the result will be an incompatible change to the
96784         glibc ABI, and the old ABI will have to be supported too.  That
96785         can be the the subject for another patch.
96787         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
96788         governing whether the rest of this patch is active.  By default,
96789         the macro is disabled and the patch has no effect.
96790         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
96791         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
96792         (struct re_pattern_buffer, re_search, re_search_2, re_match):
96793         (re_match_2, re_set_registers): Use the new types.
96794         * lib/regex_internal.h (Idx, re_hashval_t): New types.
96795         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
96796         New macros.
96797         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
96798         (re_string_context_at, bin_tree_t, re_dfastate_t):
96799         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
96800         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
96801         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
96802         (re_string_char_size_at, re_string_wchar_at):
96803         (re_string_elem_size_at):
96804         Use the new types and macros to port to 64-bit hosts.
96805         Use unsigned types for internal values, so that the code
96806         mostly works even for arrays larger than SSIZE_MAX.
96807         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
96808         (search_duplicated_node, calc_eclosure_iter, fetch_number):
96809         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
96810         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
96811         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
96812         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
96813         (calc_inveclosure, parse_dup_op, build_range_exp):
96814         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
96815         (fetch_number, create_token_tree, mark_opt_subexp):
96816         Likewise.
96817         * lib/regex_internal.c (re_string_construct_common,
96818         create_ci_newstate):
96819         (create_cd_newstate, re_string_allocate, re_string_construct):
96820         (re_string_realloc_buffers, build_wcs_upper_buffer):
96821         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
96822         (re_string_reconstruct, re_string_peek_byte_case):
96823         (re_string_fetch_byte_case, re_string_context_at):
96824         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
96825         (re_node_set_init_copy, re_node_set_add_intersect):
96826         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
96827         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
96828         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
96829         (re_acquire_state, re_acquire_state_context, register_state):
96830         Likewise.
96831         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
96832         search_cur_bkref_entry):
96833         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
96834         (re_search_internal, re_search_2_stub, re_search_stub)
96835         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
96836         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
96837         (update_cur_sifted_state, check_dst_limits):
96838         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
96839         (check_subexp_limits, sift_states_bkref, merge_state_array):
96840         (check_subexp_matching_top, get_subexp, get_subexp_sub):
96841         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
96842         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
96843         (expand_bkref_cache, check_node_accept_bytes):
96844         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
96845         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
96846         (acquire_init_state_context, check_halt_node_context):
96847         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
96848         (sift_states_backward, clean_state_log_if_needed):
96849         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
96850         (find_recover_state, transit_state_sb, transit_state_mb):
96851         (transit_state_bkref, build_trtable, match_ctx_clean):
96852         Likewise.
96853         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
96854         to work around an assumption that REG_MISSING is negative.
96856         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
96857         (seek_collating_symbol_entry) [defined _LIBC]:
96858         (lookup_collation_sequence_value) [defined _LIBC]:
96859         (build_range_exp, build_collating_symbol) [defined _LIBC]:
96860         Use prototypes rather than old-style function definitions.
96861         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
96862         (transit_state_sb) [0]:
96863         (find_collation_sequence_value) [defined _LIBC]: Likewise.
96865         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
96866         rm_eo.
96868         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
96869         (optimize_subexps, lower_subexp):
96870         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
96871         since the signed shift might overflow.  Use 1u<<31 instead.
96872         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
96873         Likewise.
96874         * lib/regexec.c (check_dst_limits_calc_pos_1,
96875         check_subexp_matching_top): Likewise.
96877         * lib/regcomp.c (optimize_subexps, lower_subexp):
96878         Use CHAR_BIT rather than 8, for clarity.
96879         * lib/regexec.c (check_dst_limits_calc_pos_1):
96880         (check_subexp_matching_top): Likewise.
96881         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
96882         have to worry about portability issues when shifting it left.
96883         Remove no-longer-needed test for table_size > 0.
96884         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
96885         in a word, as the resulting behavior is undefined.
96886         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
96887         in one case, a <= should have been an <, and in another case the
96888         whole test was missing.
96889         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
96890         the standard name CHAR_BIT.
96891         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
96892         this is not true on one's complement and signed-magnitude hosts.
96894         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
96895         next_last_offset.
96896         (struct re_dfa_t): Remove unused member states_alloc.
96897         * lib/regcomp.c (init_dfa): Don't initialize unused members.
96899 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96901         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
96902         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
96903         and large-file glibc and in 32-bit large-file Solaris.
96905 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96907         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
96908         lengths fit in regoff_t; this isn't true if regoff_t is the same
96909         width as size_t.
96910         * lib/regex.c (re_search_internal): 5th arg is LAST_START
96911         (= START + RANGE) instead of RANGE.  This avoids overflow
96912         problems when regoff_t is the same width as size_t.
96913         All callers changed.
96914         (re_search_2_stub): Check for overflow when adding the
96915         sizes of the two strings.
96916         (re_search_stub): Check for overflow when adding START
96917         to RANGE; if it occurs, substitute the extreme value.
96919 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96921         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
96923 2005-08-31  Jim Meyering  <jim@meyering.net>
96925         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
96926         a pointer-to-const.
96927         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
96928         (register_state): Likewise.
96929         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
96930         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
96931         (group_nodes_into_DFAstates): Likewise.
96933 2005-08-31  Jim Meyering  <jim@meyering.net>
96935         * check-module: Add a FIXME comment.
96937 2005-08-31  Eric Blake  <ebb9@byu.net>
96939         * modules/unistd-safer (Files): Add unistd--.h.
96940         * modules/stdio-safer (Files): Add stdio--.h.
96942 2005-08-31  Derek Price  <derek@ximbiot.com>
96944         * lib/getdelim.c (getdelim): Return EOF on EOF.
96945         Reported by Larry Jones <lawrence.jones@ugs.com>.
96947 2005-08-31  Bruno Haible  <bruno@clisp.org>
96949         Avoid unnecessary diffs in the generated lib/Makefile.am.
96950         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
96951         the generated files.
96952         (func_import): Don't set cmd.
96954 2005-08-31  Bruno Haible  <bruno@clisp.org>
96956         * lib/strstr.c: Include <stddef.h>, for NULL.
96957         * lib/strcasestr.c: Likewise.
96958         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96960 2005-08-31  Bruno Haible  <bruno@clisp.org>
96962         * gnulib-tool: New option --macro-prefix.
96963         (func_import): Use macro_prefix.
96964         (import): Handle option --macro-prefix.
96966 2005-08-31  Bruno Haible  <bruno@clisp.org>
96968         * gnulib-tool (import): Rename most ac_* variables to cached_*.
96969         Also use new variables cached_lgpl, cached_libtool.
96971 2005-08-31  Bruno Haible  <bruno@clisp.org>
96973         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
96974         always instantiating them.
96976 2005-08-31  Bruno Haible  <bruno@clisp.org>
96978         * gnulib-tool (func_import): Read the previous cached settings
96979         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
96980         earlier added by gnulib but are now dropped. Warn when a gnulib file
96981         overwrites a non-gnulib file.
96983 2005-08-31  Bruno Haible  <bruno@clisp.org>
96985         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
96986         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
96987         projects that don't keep autogenerated files in CVS. Put into
96988         actioncmd only the specified modules, not the transitive closure.
96990 2005-08-31  Bruno Haible  <bruno@clisp.org>
96992         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
96993         Create directories that shall be filled.
96994         (import): Don't look for gl_* macros in configure.ac. Recurse across
96995         all directories containing a gnulib-cache.m4 files, if meaningful.
96997 2005-08-31  Bruno Haible  <bruno@clisp.org>
96999         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
97000         (import): Set seen_libtool when we see gl_LIBTOOL.
97002 2005-08-31  Bruno Haible  <bruno@clisp.org>
97004         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
97005         declaration macro definitions from generated gnulib.m4.
97007 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
97009         * lib/iconvme.h: Add prototype for iconv_alloc.
97011 2005-08-29  Simon Josefsson  <jas@extundo.com>
97013         * lib/iconvme.c: Fix errno.
97015 2005-08-29  Bruno Haible  <bruno@clisp.org>
97017         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
97018         that it works when the directory contains spaces.
97020 2005-08-29  Bruno Haible  <bruno@clisp.org>
97022         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
97024 2005-08-29  Bruno Haible  <bruno@clisp.org>
97026         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
97027         Emit more advice.
97029 2005-08-29  Bruno Haible  <bruno@clisp.org>
97030         and Stepan Kasal  <kasal@ucw.cz>
97032         * check-module: If more parameters are given, check each of them
97033         separately; add more exceptions, as noted by Jim Meyering.
97034         (check_module): New procedure.
97035         (%exempt_header): Now contains all exceptions.
97037 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
97039         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
97041 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
97043         * lib/iconvme.c: Split iconv_string into iconv_alloc.
97045 2005-08-28  Bruno Haible  <bruno@clisp.org>
97047         * m4/gnulib-tool.m4: New file.
97049 2005-08-27  Jim Meyering  <jim@meyering.net>
97051         * modules/unistd-safer (Files): Add pipe-safer.c.
97052         * modules/fcntl-safer (Files): Add creat-safer.c.
97054 2005-08-27  Jim Meyering  <jim@meyering.net>
97056         * m4/stdlib-safer.m4: New file.  From coreutils.
97057         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
97058         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
97059         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
97060         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
97061         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
97063 2005-08-27  Jim Meyering  <jim@meyering.net>
97065         * lib/fopen-safer.c: Merge minor changes from coreutils.
97066         * lib/dup-safer.c: Likewise.
97067         * lib/fd-safer.c: Likewise.
97069         Merge from coreutils.
97070         * lib/stdio--.h: New file.
97071         * lib/stdlib--.h: New file.
97072         * lib/mkstemp-safer.c: New file.
97074         GNU tar needs these.
97075         * lib/pipe-safer.c: New file.
97076         * lib/creat-safer.c: New file.
97077         * lib/fcntl--.h (creat): Define to creat_safer.
97078         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
97079         * lib/unistd--.h (pipe): Define to pipe_safer.
97080         * lib/unistd-safer.h: Declare pipe_safer.
97082 2005-08-26  Simon Josefsson  <jas@extundo.com>
97084         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
97085         Haible <bruno@clisp.org>.
97087 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
97089         * lib/regex_internal.h: Remove all references to
97090         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
97091         or better.
97092         (bitset_not, bitset_merge, bitset_not_merge):
97093         (bitset_mask, re_string_allocate, re_string_construct):
97094         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
97095         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
97096         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
97097         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
97098         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
97099         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
97100         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
97101         (re_acquire_state_context):
97102         Remove unnecessary forward decls.
97103         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
97104         Put __attribute at function definition,
97105         now that the function decl has been removed.
97106         * lib/regex_internal.c (re_string_peek_byte_case):
97107         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
97108         Likewise.
97110 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
97112         * m4/regex.m4: Add AC_PREREQ(2.50).
97113         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
97115 2005-08-25  Simon Josefsson  <jas@extundo.com>
97117         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
97118         __fsetlocking.
97120 2005-08-25  Simon Josefsson  <jas@extundo.com>
97122         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
97123         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
97124         GLIBC specific code.
97126 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97128         Make regex safe for g++.  This fixes one real bug (an "err"
97129         that should have been "*err").  g++ problem reported by
97130         Sam Steingold.
97131         * lib/regex_internal.h (re_calloc): New macro, consistent with
97132         re_malloc etc.  All callers of calloc changed to use re_calloc.
97133         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
97134         not int.  All callers changed.
97135         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
97136         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
97137         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
97138         (find_recover_state): Change "err" to "*err"; this fixes what
97139         appears to be a real bug.
97140         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
97141         versus int.
97143 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97145         * modules/regex (Depends-on): Add malloc, since the code
97146         assumes that !malloc(0) means failure.
97148 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97150         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
97152         alloca modernization/simplification for regex.
97153         * lib/regex.c: Remove portability cruft for alloca.  This no longer
97154         needs to be at the start of the file, and can be moved into
97155         regex_internal.h and simplified.
97156         * lib/regex_internal.h: Include <alloca.h>.
97157         (__libc_use_alloca) [!defined _LIBC]: New macro.
97158         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
97159         now works outside glibc.
97161 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97163         * config/srclist.txt: Add glibc bugs 1241, 1245.
97165 2005-08-25  Jim Meyering  <jim@meyering.net>
97167         * lib/open-safer.c: Include <config.h>.
97168         Otherwise, we'd lose LARGEFILE support in any file using
97169         e.g. "fcntl--.h"
97171 2005-08-25  Bruno Haible  <bruno@clisp.org>
97173         * m4/minmax.m4: Require autoconf 2.52.
97174         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
97175         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
97176         alternatives of translit over the alphabet.
97177         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
97179 2005-08-24  Simon Josefsson  <jas@extundo.com>
97181         * tests/test-getpass.c: New file.
97183 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97185         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
97186         for GNU regex features.
97188 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97190         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
97191         * lib/regex.h (regerror): Likewise.
97193         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
97194         requires this.  (The code never needed it.)
97196         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
97197         All uses of recently-renamed identifiers changed to use the new,
97198         POSIX-compliant names.  The code will build and run just fine
97199         without these changes, but it's better to eat our own dog food
97200         and use the standard-conforming names.
97202         * lib/regex.h: Fix a multitude of POSIX name space violations.
97203         These changes have an effect only for programs that define
97204         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
97205         do not change anything for programs compiled in the normal way.
97206         Also, there is no effect on the ABI.
97208         (_REGEX_SOURCE): New macro.
97209         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
97210         defined and _GNU_SOURCE is not; this fixes a name space violation.
97212         Rename the following macros to obey POSIX requirements.
97213         The old names are still visible as macros if _REGEX_SOURCE is defined.
97214         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
97215         RE_BACKSLASH_ESCAPE_IN_LISTS.
97216         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
97217         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
97218         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
97219         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
97220         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
97221         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
97222         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
97223         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
97224         (REG_INTERVALS): renamed from RE_INTERVALS.
97225         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
97226         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
97227         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
97228         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
97229         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
97230         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
97231         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
97232         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
97233         RE_UNMATCHED_RIGHT_PAREN_ORD.
97234         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
97235         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
97236         (REG_DEBUG): renamed from RE_DEBUG.
97237         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
97238         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
97239         unusual, since we can't clash with the POSIX REG_ICASE.
97240         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
97241         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
97242         (REG_NO_SUB): renamed from RE_NO_SUB.
97243         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
97244         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
97245         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
97246         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
97247         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
97248         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
97249         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
97250         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
97251         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
97252         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
97253         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
97254         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
97255         RE_SYNTAX_POSIX_MINIMAL_BASIC.
97256         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
97257         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
97258         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
97259         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
97260         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
97261         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
97262         (REG_FIXED): Renamed from REGS_FIXED.
97263         (REG_NREGS): Renamed from RE_NREGS.
97265         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
97266         of other REG_* macros, since POSIX says the user is allowed to
97267         #undef these macros selectively.
97269         (reg_errcode_t): Update comment stating what other tables need
97270         to be consistent.
97272         Rename the following enum values to obey POSIX requirements.
97273         The old names are still visible as macros.
97274         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
97275         is not defined, since GNU is supposed to be a superset of POSIX as
97276         much as possible, and since we want reg_errcode_t to be a signed
97277         type for implementation consistency.
97278         (_REG_NOERROR): Renamed from REG_NOERROR.
97279         (_REG_NOMATCH): Renamed from REG_NOMATCH.
97280         (_REG_BADPAT): Renamed from REG_BADPAT.
97281         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
97282         (_REG_ECTYPE): Renamed from REG_ECTYPE.
97283         (_REG_EESCAPE): Renamed from REG_EESCAPE.
97284         (_REG_ESUBREG): Renamed from REG_ESUBREG.
97285         (_REG_EBRACK): Renamed from REG_EBRACK.
97286         (_REG_EPAREN): Renamed from REG_EPAREN.
97287         (_REG_EBRACE): Renamed from REG_EBRACE.
97288         (_REG_BADBR): Renamed from REG_BADBR.
97289         (_REG_ERANGE): Renamed from REG_ERANGE.
97290         (_REG_ESPACE): Renamed from REG_ESPACE.
97291         (_REG_BADRPT): Renamed from REG_BADRPT.
97292         (_REG_EEND): Renamed from REG_EEND.
97293         (_REG_ESIZE): Renamed from REG_ESIZE.
97294         (_REG_ERPAREN): Renamed from REG_ERPAREN.
97295         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
97296         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
97297         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
97298         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
97300         (_REG_RE_NAME, _REG_RM_NAME): New macros.
97301         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
97302         changed.  But support the old name if the new one is not defined
97303         and if _REGEX_SOURCE.
97305         Change the following member names in struct re_pattern_buffer.
97306         The old names are still supported if !_REGEX_SOURCE.
97307         The new names are always supported, regardless of _REGEX_SOURCE.
97308         (re_buffer): Renamed from buffer.
97309         (re_allocated): Renamed from allocated.
97310         (re_used): Renamed from used.
97311         (re_syntax): Renamed from syntax.
97312         (re_fastmap): Renamed from fastmap.
97313         (re_translate): Renamed from translate.
97314         (re_can_be_null): Renamed from can_be_null.
97315         (re_regs_allocated): Renamed from regs_allocated.
97316         (re_fastmap_accurate): Renamed from fastmap_accurate.
97317         (re_no_sub): Renamed from no_sub.
97318         (re_not_bol): Renamed from not_bol.
97319         (re_not_eol): Renamed from not_eol.
97320         (re_newline_anchor): Renamed from newline_anchor.
97322         Change the following member names in struct re_registers.
97323         The old names are still supported if !_REGEX_SOURCE.
97324         The new names are always supported, regardless of _REGEX_SOURCE.
97325         (rm_num_regs): Renamed from num_regs.
97326         (rm_start): Renamed from start.
97327         (rm_end): Renamed from end.
97329         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
97330         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
97331         Prepend __ to parameter names.
97333         Undo yesterday's changes.
97335 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97337         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
97338         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
97339         lib/regex.c.
97341 2005-08-24  Jim Meyering  <jim@meyering.net>
97343         Sync from coreutils.
97344         * m4/fcntl-safer.m4: New file.
97346         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
97347         and object files for this module.
97349 2005-08-24  Jim Meyering  <jim@meyering.net>
97351         Sync from coreutils.
97352         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
97354 2005-08-24  Jim Meyering  <jim@meyering.net>
97356         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
97357         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
97359 2005-08-24  Jim Meyering  <jim@meyering.net>
97361         * modules/fcntl-safer: New module.
97362         * modules/fts (Depends-on): Add fcntl-safer.
97363         * MODULES.html.sh (File descriptor based Input/Output):
97364         Add fcntl-safer.
97366 2005-08-24  Bruno Haible  <bruno@clisp.org>
97368         Support for unit test modules.
97369         * modules/README: Mention tests modules.
97370         * modules/TEMPLATE-TESTS: New file.
97371         * gnulib-tool: New options --extract-tests-module, --with-tests and
97372         --tests-base (unused for the moment).
97373         (testsbase, inctests): New variables.
97374         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
97375         (func_verify_module): Exclude TEMPLATE-TESTS.
97376         (func_verify_nontests_module, func_verify_tests_module): New functions.
97377         (func_get_dependencies): Add implicit dependency for tests modules.
97378         (func_get_tests_module): New function.
97379         (func_modules_transitive_closure): When --with-tests was specified,
97380         include the unit tests as well, unless explicitly avoided.
97381         (func_emit_lib_Makefile_am): Ignore the tests modules here.
97382         (func_emit_tests_Makefile_am): New function.
97383         (func_create_testdir): When --with-tests was specified, emit a
97384         tests/ directory.
97385         * MODULES.html.sh (Future developments): Update.
97387 2005-08-24  Bruno Haible  <bruno@clisp.org>
97389         * modules/tls-tests: New file.
97390         * tests/test-tls.c: New file, from GNU gettext.
97392 2005-08-24  Bruno Haible  <bruno@clisp.org>
97394         * modules/lock-tests: New file.
97395         * tests/test-lock.c: New file, from GNU gettext.
97397 2005-08-24  Bruno Haible  <bruno@clisp.org>
97399         * lib/lock.h: Add multiple inclusion guard.
97400         * lib/tls.h: Add multiple inclusion guard.
97402 2005-08-24  Bruno Haible  <bruno@clisp.org>
97404         * gnulib-tool: Add support for the --aux-dir option to
97405         --create-testdir, --create-megatestdir, --test, --megatest.
97406         (func_create_testdir, func_create_megatestdir): Optionally emit a
97407         AC_CONFIG_AUX_DIR directive.
97408         (create-testdir, create-megatestdir, test, megatest): Provide a
97409         default value for $auxdir.
97411 2005-08-24  Bruno Haible  <bruno@clisp.org>
97413         * gnulib-tool (import): Use compound statement instead of subshell
97414         where possible.
97416 2005-08-24  Bruno Haible  <bruno@clisp.org>
97418         * gnulib-tool (import): Change --aux-dir default to "build-aux".
97420 2005-08-24  Bruno Haible  <bruno@clisp.org>
97422         * gnulib-tool (func_version): Update.
97424 2005-08-24  Bruno Haible  <bruno@clisp.org>
97426         * gnulib-tool (func_import, func_create_testdir,
97427         func_create_megatestdir): Quote all autoconf macro arguments.
97429 2005-08-24  Bruno Haible  <bruno@clisp.org>
97431         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
97432         option --force, because --force causes the aclocal.m4 of each
97433         subdirectory to be newer than the corresponding config.h.in.
97435 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97437         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
97438         All contents moved to gl_REGEX.
97439         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
97440         assume that it does.
97442 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97444         * lib/regex.h (REG_NOSYS)
97445         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
97446         Define, since POSIX requires it as of 2001.
97447         (_REG_ENOSYS)
97448         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
97449         New private symbol, used to keep the enum signed in all cases.
97450         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
97451         Youngman in
97452         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
97454         * lib/regex_internal.c (re_string_skip_chars, register_state):
97455         (calc_state_hash):
97456         Remove forward decls; no longer needed now that we use prototypes.
97457         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
97458         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
97459         (clean_state_log_if_needed): Likewise.
97461 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97463         * config/srclist.txt: Add glibc bugs 1231-1233.
97465 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97467         Fix problems reported by Sam Steingold in
97468         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
97469         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
97470         assumed that reg_errcode_t is a signed type, which is not
97471         necessarily true if _XOPEN_SOURCE is not defined.
97472         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
97473         since some compilers warn about it otherwise.
97475 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97477         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
97478         (init_word_char, create_initial_state, duplicate_node_closure):
97479         (fetch_token, peek_token_bracket, build_range_exp):
97480         (build_collating_symbol): Remove forward decls; no longer needed
97481         now that we use prototypes.
97483         * lib/regcomp.c:
97484         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
97485         (re_compile_fastmap_iter, regcomp, regerror, regfree):
97486         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
97487         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
97488         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
97489         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
97490         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
97491         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
97492         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
97493         (build_range_exp, build_collating_symbol, parse_bracket_exp):
97494         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
97495         (build_charclass, build_charclass_op, fetch_number, create_tree):
97496         (create_token_tree, mark_opt_subexp, duplicate_tree):
97497         Use prototypes rather than old-style definitions.
97499         * lib/regex_internal.c:
97500         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
97501         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
97502         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
97503         (re_string_reconstruct, re_string_peek_byte_case):
97504         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
97505         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
97506         (re_node_set_init_copy, re_node_set_add_intersect):
97507         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
97508         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
97509         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
97510         (re_acquire_state, re_acquire_state_context, register_state):
97511         (create_ci_newstate, create_cd_newstate, free_state):
97512         Likewise.
97513         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
97514         re_search_2):
97515         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
97516         (re_search_internal, prune_impossible_nodes):
97517         (acquire_init_state_context, check_matching, static):
97518         (check_halt_node_context, check_halt_state_context, proceed_next_node):
97519         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
97520         (update_regs, sift_states_backward, build_sifted_states):
97521         (clean_state_log_if_needed, merge_state_array):
97522         (update_cur_sifted_state, add_epsilon_src_nodes):
97523         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
97524         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
97525         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
97526         (find_recover_state, check_subexp_matching_top, transit_state_mb):
97527         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
97528         (check_arrival, check_arrival_add_next_nodes):
97529         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
97530         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
97531         (check_node_accept_bytes, check_node_accept, extend_buffers):
97532         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
97533         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
97534         (sift_ctx_init):
97535         Likewise.
97537         * lib/regex_internal.h:
97538         (re_string_allocate, re_string_construct, re_string_reconstruct):
97539         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
97540         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
97541         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
97542         (re_string_context_at, re_string_peek_byte_case):
97543         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
97544         is defined, since we now use prototypes always.
97546         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
97547         C89 or better.  All uses removed.
97549 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97551         * config/srclist.txt: Add glibc bugs 1220-1227.
97553 2005-08-20  Jim Meyering  <jim@meyering.net>
97555         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
97556         of unused local, dfa.
97558 2005-08-20  Bruno Haible  <bruno@clisp.org>
97560         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
97562 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
97564         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
97565         (re_node_set_insert_last, re_dfa_add_node):
97566         Rename local variables to avoid GCC shadowing warnings.
97568 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
97570         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
97571         [defined lint]: Suppress bogus uninitialized-variable warnings.
97573         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
97574         and let the caller return REG_ESPACE if out of space.  This
97575         removes an uninitialied-variable warning with GCC 4.0.1, and also
97576         avoids taking the address of a local variable.  All callers
97577         changed.
97579 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
97581         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
97582         $LIBCSRC/posix/regexec.c.
97583         Add glibc bug 1217 for regcomp.c.
97585 2005-08-19  Jim Meyering  <jim@meyering.net>
97587         * lib/regexec.c (proceed_next_node): Redo local variables to
97588         avoid GCC shadowing warnings.
97590 2005-08-18  Bruno Haible  <bruno@clisp.org>
97592         * lib/strstr.c (strstr): Fix return value in multibyte case.
97593         * lib/strcasestr.c (strcasestr): Likewise.
97595 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
97597         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
97599 2005-08-17  Jim Meyering  <jim@meyering.net>
97601         Make the %s format (seconds since the epoch) work for a negative
97602         number and when used with a zero-padded field width, e.g. %015s.
97604         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
97605         label so that it precedes the code to set `digits'.  Otherwise,
97606         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
97607         print `00-22'.  Now, it prints `-0022', as it should.
97609 2005-08-17  Bruno Haible  <bruno@clisp.org>
97611         * modules/strstr (Files): Add m4/mbrtowc.m4.
97612         (Depends-on): Add mbuiter.
97614 2005-08-17  Bruno Haible  <bruno@clisp.org>
97616         * modules/strcasestr: New file.
97617         * MODULES.html.sh (String handling, based on ANSI C 89): Add
97618         strcasestr.
97620 2005-08-17  Bruno Haible  <bruno@clisp.org>
97622         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
97624 2005-08-17  Bruno Haible  <bruno@clisp.org>
97626         * modules/mbuiter: New file.
97627         * MODULES.html.sh (Extended multibyte and wide character utilities):
97628         Add mbuiter.
97630 2005-08-17  Bruno Haible  <bruno@clisp.org>
97632         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
97633         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
97635 2005-08-17  Bruno Haible  <bruno@clisp.org>
97637         * m4/strcasestr.m4: New file.
97639 2005-08-17  Bruno Haible  <bruno@clisp.org>
97641         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
97642         * lib/strstr.c: Completely rewritten, with multibyte locale support.
97644 2005-08-17  Bruno Haible  <bruno@clisp.org>
97646         * lib/strcasestr.h: New file.
97647         * lib/strcasestr.c: New file.
97649 2005-08-17  Bruno Haible  <bruno@clisp.org>
97651         * lib/strcasecmp.c: Use mbuiter.h.
97653 2005-08-17  Bruno Haible  <bruno@clisp.org>
97655         * lib/mbuiter.h: New file.
97657 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
97659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
97660         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
97661         and gl_GETOPT are both invoked via different paths (as happens
97662         with GNU tar CVS because it uses both argp and getopt), the former
97663         wins.
97665 2005-08-16  Bruno Haible  <bruno@clisp.org>
97667         * modules/tls: New file.
97668         * MODULES.html.sh (Multithreading): Add tls.
97670 2005-08-16  Bruno Haible  <bruno@clisp.org>
97672         * modules/strnlen1: New file.
97673         * MODULES.html.sh (String handling): Add strnlen1.
97675 2005-08-16  Bruno Haible  <bruno@clisp.org>
97677         * modules/strcase (Files): Add m4/mbrtowc.m4.
97678         (Depends-on): Add strnlen1, mbchar.
97680 2005-08-16  Bruno Haible  <bruno@clisp.org>
97682         * modules/mbiter: New file.
97683         * MODULES.html.sh (Extended multibyte and wide character utilities):
97684         Add mbiter.
97686 2005-08-16  Bruno Haible  <bruno@clisp.org>
97688         * modules/mbfile: New file.
97689         * MODULES.html.sh (Extended multibyte and wide character utilities):
97690         Add mbfile.
97692 2005-08-16  Bruno Haible  <bruno@clisp.org>
97694         * modules/mbchar: New file.
97695         * MODULES.html.sh (Extended multibyte and wide character utilities):
97696         New section.
97698 2005-08-16  Bruno Haible  <bruno@clisp.org>
97700         * m4/tls.m4: New file, from GNU gettext.
97702 2005-08-16  Bruno Haible  <bruno@clisp.org>
97704         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
97705         always.
97706         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
97708 2005-08-16  Bruno Haible  <bruno@clisp.org>
97710         * m4/mbiter.m4: New file.
97712 2005-08-16  Bruno Haible  <bruno@clisp.org>
97714         * m4/mbfile.m4: New file.
97716 2005-08-16  Bruno Haible  <bruno@clisp.org>
97718         * m4/mbchar.m4: New file.
97720 2005-08-16  Bruno Haible  <bruno@clisp.org>
97722         * lib/tls.h: New file, from GNU gettext.
97723         * lib/tls.c: New file, from GNU gettext.
97725 2005-08-16  Bruno Haible  <bruno@clisp.org>
97727         * lib/strnlen1.h: New file.
97728         * lib/strnlen1.c: New file.
97730 2005-08-16  Bruno Haible  <bruno@clisp.org>
97732         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
97733         (mbi_init): Update.
97734         (mbi_avail, mbi_advance): Let the iteration end before the terminating
97735         NUL byte, not after it.
97737 2005-08-16  Bruno Haible  <bruno@clisp.org>
97739         * lib/strcase.h (strcasecmp): Add note in comments.
97740         * lib/strncasecmp.c: Use code from strcasecmp.c.
97741         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
97742         (strcasecmp): Work correctly in multibyte locales.
97744 2005-08-16  Bruno Haible  <bruno@clisp.org>
97746         * lib/mbiter.h: New file.
97748 2005-08-16  Bruno Haible  <bruno@clisp.org>
97750         * lib/mbfile.h: New file.
97752 2005-08-16  Bruno Haible  <bruno@clisp.org>
97754         * lib/mbchar.h: New file.
97755         * lib/mbchar.c: New file.
97757 2005-08-16  Bruno Haible  <bruno@clisp.org>
97759         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
97760         the valid ones. Makes the comparison operations transitive:
97761         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
97762         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
97764 2005-08-15  Simon Josefsson  <jas@extundo.com>
97766         * modules/ssize_t (License): Change to 'unlimited'.
97768         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
97770 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97772         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
97773         Add comments for each pending glibc patch.
97775 2005-08-15  Bruno Haible  <bruno@clisp.org>
97777         * lib/regex.h (__restrict_arr): Don't define to __restrict if
97778         __cplusplus is defined.
97780 2005-08-14  Jim Meyering  <jim@meyering.net>
97782         Sync from coreutils.
97784         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
97785         Use the hash-table-based cycle-detection code not just when
97786         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
97787         Reported by James Youngman in
97788         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
97789         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
97790         FTS_TIGHT_CYCLE_CHECK.
97791         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
97792         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
97793         once again.
97794         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
97795         * lib/fts.c (fd_safer): Remove decl.
97796         Include fcntl--.h rather than unistd-safer.h
97797         (fts_safe_changedir): Don't call fd_safer; no longer needed
97798         now that we include fcntl--.h.
97800 2005-08-12  Simon Josefsson  <jas@extundo.com>
97802         * modules/getndelim2: Use ssize_t module.
97803         * modules/getnline: Likewise.
97804         * modules/safe-read: Likewise.
97805         * modules/xreadlink: Likewise.
97807         * modules/ssize_t: New file.
97809 2005-08-12  Simon Josefsson  <jas@extundo.com>
97811         * m4/readline.m4: Look for termcap, curses or ncurses if required.
97813 2005-08-12  Simon Josefsson  <jas@extundo.com>
97815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
97816         ssize_t.
97818 2005-08-12  Simon Josefsson  <jas@extundo.com>
97820         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
97821         readline, getdelim and check_version.
97822         (Support for systems lacking ISO C 99: Sizes of integer types):
97823         Add size_max.
97825 2005-08-12  Bruno Haible  <bruno@clisp.org>
97827         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
97829 2005-08-11  Simon Josefsson  <jas@extundo.com>
97831         * modules/readline: New file.
97833         * modules/strnlen (Files): Add strnlen.h.
97835 2005-08-11  Simon Josefsson  <jas@extundo.com>
97837         * m4/readline.m4: New file.
97839 2005-08-11  Simon Josefsson  <jas@extundo.com>
97841         * lib/readline.h, readline.c: New file.
97843 2005-08-11  Simon Josefsson  <jas@extundo.com>
97845         * doc/gnulib.texi (Initial import, Finishing touches): Mention
97846         gl_AVOID.
97848 2005-08-11  Bruno Haible  <bruno@clisp.org>
97850         * lib/strnlen.h (strnlen): Change parameter name to match comment.
97852 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
97854         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
97856 2005-08-10  Simon Josefsson  <jas@extundo.com>
97858         * tests/test-iconvme.c: New file.
97860 2005-08-10  Simon Josefsson  <jas@extundo.com>
97862         * m4/strnlen.m4: New file.
97864         * m4/strndup.m4: Don't check for strnlen declaration, done in
97865         strnlen.m4.
97867 2005-08-10  Simon Josefsson  <jas@extundo.com>
97869         * lib/strndup.c: Use strnlen.h.
97871         * lib/strnlen.h: New file.
97873 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97875         * README: Typos.
97877 2005-08-02  Simon Josefsson  <jas@extundo.com>
97879         * modules/readline: New file.
97881 2005-08-02  Simon Josefsson  <jas@extundo.com>
97883         * modules/getdelim: New file.
97885         * modules/getline: Rewrite, don't use getndelim2.
97887 2005-08-02  Simon Josefsson  <jas@extundo.com>
97889         * m4/getline.m4: Separate out getdelim stuff into separate module.
97891         * m4/getdelim.m4: New file.
97893 2005-08-02  Simon Josefsson  <jas@extundo.com>
97895         * lib/getline.h, getline.c: Rewrite.
97897         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
97899 2005-07-31  Bruno Haible  <bruno@clisp.org>
97901         * lib/lock.h (gl_lock_initializer): New macro.
97902         (gl_lock_define_initialized): Use it.
97903         (gl_rwlock_initializer): New macro.
97904         (gl_rwlock_define_initialized): Use it.
97905         (gl_recursive_lock_initializer): New macro.
97906         (gl_recursive_lock_define_initialized): Use it.
97908 2005-07-30  Karl Berry  <karl@gnu.org>
97910         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
97911         Report from Ben Pfaff, regarding getopt.
97913 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
97915         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
97916         normal way.
97917         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
97918         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
97919         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
97920         (gl_GETOPT): Use the new macros.  Most of the implementation
97921         is moved to the new macros.  This is for programs like Emacs
97922         that don't want all the functionality of gl_GETOPT.
97924 2005-07-26  Bruno Haible  <bruno@clisp.org>
97926         * m4/lock.m4: Update from GNU gettext.
97928 2005-07-26  Bruno Haible  <bruno@clisp.org>
97930         * lib/lock.h: Update from GNU gettext.
97931         * lib/lock.c: Update from GNU gettext.
97933 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
97935         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
97936         obsolescent AC_TRY_RUN.  Include the default includes files, for
97937         'exit'.
97939 2005-07-24  Bruno Haible  <bruno@clisp.org>
97941         * modules/visibility: New file.
97942         * MODULES.html.sh (Misc): Add visibility.
97944 2005-07-24  Bruno Haible  <bruno@clisp.org>
97946         * m4/visibility.m4: New file.
97948 2005-07-24  Bruno Haible  <bruno@clisp.org>
97950         * doc/visibility.texi: New file.
97952 2005-07-22  Bruno Haible  <bruno@clisp.org>
97954         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
97955         $(ALLOCA_H), redundant through BUILT_SOURCES.
97956         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
97957         redundant through BUILT_SOURCES.
97958         * modules/byteswap (Makefile.am): Remove explicit dependency on
97959         $(BYTESWAP_H), redundant through BUILT_SOURCES.
97960         * modules/fnmatch (Makefile.am): Remove explicit dependency on
97961         $(FNMATCH_H), redundant through BUILT_SOURCES.
97962         * modules/getopt (Makefile.am): Remove explicit dependency on
97963         $(GETOPT_H), redundant through BUILT_SOURCES.
97964         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
97965         redundant through BUILT_SOURCES.
97966         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
97967         redundant through BUILT_SOURCES.
97968         * modules/stdbool (Makefile.am): Remove explicit dependency on
97969         $(STDBOOL_H), redundant through BUILT_SOURCES.
97970         * modules/stdint (Makefile.am): Remove explicit dependency on
97971         $(STDINT_H), redundant through BUILT_SOURCES.
97972         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
97973         Remove explicit dependency on $(SYSEXITS_H).
97974         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
97976 2005-07-18  Simon Josefsson  <jas@extundo.com>
97978         * lib/check-version.c (check_version): Accept identical versions too.
97980 2005-07-18  Bruno Haible  <bruno@clisp.org>
97982         * modules/lock: New file.
97983         * MODULES.html.sh (Multithreading): New section.
97985 2005-07-18  Bruno Haible  <bruno@clisp.org>
97987         * m4/lock.m4: New file, from GNU gettext.
97989 2005-07-18  Bruno Haible  <bruno@clisp.org>
97991         * lib/lock.h: New file, from GNU gettext.
97992         * lib/lock.c: New file, from GNU gettext.
97994 2005-07-18  Bruno Haible  <bruno@clisp.org>
97996         * lib/lock.h (gl_once_t): New type.
97997         (gl_once_define, gl_once): New macros.
97998         * lib/lock.c (fresh_once): New variable.
97999         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
98000         functions.
98002 2005-07-16  Simon Josefsson  <jas@extundo.com>
98004         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
98005         workaround, suggested by Bruno.
98007 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
98009         * modules/xalloc (Depends-on): Add xalloc-die.
98010         * modules/xvasprintf (Depends-on): Add xalloc-die.
98012 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
98014         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
98015         with a minor change.
98017 2005-07-15  Bruno Haible  <bruno@clisp.org>
98019         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
98020         When using lib/poll.c, define poll as rpl_poll.
98022 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
98024         * modules/argp (Depends-on): Remove unlocked-io.
98026 2005-07-14  Derek Price  <derek@ximbiot.com>
98028         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
98029         for glob symlink bug.
98031 2005-07-14  Bruno Haible  <bruno@clisp.org>
98033         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
98034         Instead, test for *_unlocked function declarations directly.
98036 2005-07-11  Simon Josefsson  <jas@extundo.com>
98038         * modules/size_max: New file.
98040         * modules/xsize: Depend on size_max module for size_max.m4.
98042 2005-07-11  Simon Josefsson  <jas@extundo.com>
98044         * lib/size_max.h: New file.
98046 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
98048         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
98049         copyright symbol and the year.
98050         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
98051         (version_etc_va): Use parameterized copyright notice.
98052         Reword to conform to the current GNU coding standards.
98054 2005-07-11  Karl Berry  <karl@gnu.org>
98056         * doc/gnulib.texi (Quoting): new node.
98057         (Initial import): more info, from Patrice.
98059 2005-07-11  Bruno Haible  <bruno@clisp.org>
98061         * gnulib-tool (func_usage): Document option --avoid.
98062         (Command line options): Handle --avoid.
98063         (func_acceptable): New function.
98064         (func_modules_transitive_closure): Use it.
98066 2005-07-11  Bruno Haible  <bruno@clisp.org>
98068         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
98069         Reported by Jim Meyering.
98071 2005-07-10  Bruno Haible  <bruno@clisp.org>
98073         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
98074         Needed when size_t is smaller than 'unsigned int'.
98075         Reported by Paul Eggert.
98077 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98079         * modules/argp (Depends-on): Add unlocked-io
98081 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98083         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
98084         block of defines.
98086 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
98088         * config/srclist.txt: Comment out regcomp.c, since we have a porting
98089         fix now.
98091 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
98092         and Paul Eggert  <eggert@cs.ucla.edu>
98094         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
98095         in wint_t, not wchar_t.  Remove now-unnecessary cast.
98097 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98099         * modules/regex (Files): Add lib/regex_internal.c,
98100         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
98101         (Depends-on): Add extensions.
98102         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
98104 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98106         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
98107         pathconf.
98108         * m4/same.m4 (gl_SAME): Likewise.
98109         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
98111         * m4/regex.m4: Adjust to new libc regex implementation.
98112         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
98113         all the .c and .h parts of (the new) regex.
98114         Quote the m4 stuff better.
98115         Check for RE_ICASE bug of old gnulib.
98116         Check for REG_STARTEND of recent libc.
98117         Rename local variables from jm_* to gl_*.
98118         Quote operand of "test -f".
98119         Say "recent enough" version of libc, not "version 2".
98120         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
98121         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
98122         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
98123         Remove check for btowc, isascii.
98124         Require AM_LANGINFO_CODESET.
98126 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98128         * lib/regex.c, regex.h: Sync from libc.
98129         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
98130         * lib/regexec.c:
98131         New files, synced from libc, except that regex_internal.h
98132         currently has a small porting fix.
98134 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98136         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
98137         regex_internal.c, regexec.c.
98138         Add regex_internal.h too, but as a comment, since the libc version
98139         is currently broken in gnulib mode.
98141 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
98143         Support programs like Emacs that use gnulib but not gettext.
98144         * MODULES.html.sh (Internationalization functions): Add gettext-h.
98145         * modules/gettext-h: New file.
98146         * modules/gettext (Files): Remove lib/gettext.h.
98147         (Depends-on): Add gettext-h.
98148         (Makefile.am): Remove lib_SOURCES.
98149         * modules/argmatch, modules/c-stack, modules/closeout:
98150         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
98151         * modules/execute, modules/file-type, modules/getaddrinfo:
98152         * modules/getopt, modules/human, modules/javacomp:
98153         * modules/javaexec, modules/mkdir-p, modules/obstack:
98154         * modules/openat, modules/pagealign_alloc, modules/pipe:
98155         * modules/quotearg, modules/regex, modules/rpmatch:
98156         * modules/unicodeio, modules/userspec, modules/version-etc:
98157         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
98158         * modules/xsetenv:
98159         Depend on gettext-h, not gettext.
98161 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
98163         * gnulib-tool (func_import): Add support for 'public domain' license.
98164         * modules/alloca, modules/atexit, modules/memmove:
98165         Now public domain, not GPL.
98166         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
98167         * modules/realloc, modules/strerror, modules/strtod:
98168         Now LGPL, not GPL.
98170 2005-07-05  Bruno Haible  <bruno@clisp.org>
98172         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
98173         autoconf CVS. Needed for mingw.
98175 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98177         Remove the dependency of the strftime module on the tzset module.
98178         * modules/strftime (Depends-on): Remove dependency on tzset.
98180 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98182         Remove the dependency of the strftime module on the tzset module.
98183         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
98184         gl_FUNC_TZSET_CLOBBER.
98186 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98188         Remove the dependency of the strftime module on the tzset module.
98189         * lib/strftime.c (my_strftime)
98190         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
98191         Copy the input structure, to work around some of the bug with
98192         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
98193         Solaris releases, you should also use the tzset module, but we won't
98194         require it as a dependency any more since we don't want LGPLed code
98195         to depend on GPLed code.
98197 2005-07-02  Jim Meyering  <jim@meyering.net>
98199         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
98200         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
98201         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
98202         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
98204 2005-07-02  Jim Meyering  <jim@meyering.net>
98206         * lib/backupfile.c (backup_args): Change a `0' to NULL.
98208 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98210         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
98211         declares only 'struct timespec;' (!).
98213 2005-07-01  Jim Meyering  <jim@meyering.net>
98215         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
98216         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
98217         * lib/save-cwd.c, tempname.c:
98218         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
98219         and don't include <sys/file.h>).
98221 2005-06-29  Jim Meyering  <jim@meyering.net>
98223         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
98224         type name.  Use the variable name instead.
98225         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
98226         Likewise.
98228 2005-06-28  Simon Josefsson  <jas@extundo.com>
98230         * modules/check-version (Files): Add check-version.m4.
98232 2005-06-28  Simon Josefsson  <jas@extundo.com>
98234         * m4/check-version.m4: New file, suggested by Jim Meyering
98235         <jim@meyering.net>.
98237 2005-06-28  Simon Josefsson  <jas@extundo.com>
98239         * lib/check-version.h, lib/check-version.c: New files.
98241 2005-06-28  Simon Josefsson  <jas@extundo.com>
98243         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
98244         collision with global variable.  Better indentation.  Don't
98245         increment buffer pointer beyond buffer end.  Based on comments
98246         from Paul Eggert <eggert@cs.ucla.edu>.
98248         * lib/base64.h: Indent.
98250 2005-06-28  Simon Josefsson  <jas@extundo.com>
98252         * doc/gnulib.texi (Library version handling): New section.
98254 2005-06-28  Jim Meyering  <jim@meyering.net>
98256         * check-module (find_included_lib_files): Hard-code another
98257         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
98258         but modules/fts-lgpl (correctly) does not list those files.
98260         * modules/canonicalize (Files): Add lib/pathmax.h.
98262 2005-06-25  Simon Josefsson  <jas@extundo.com>
98264         * modules/check-version: New file.
98266 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
98268         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
98269         initializer of struct addrinfo, as an indication that we don't
98270         care how many members the structure has.
98272 2005-06-24  Derek Price  <derek@ximbiot.com>
98273         and Bruno Haible  <bruno@clisp.org>
98275         Remove stat module & update lstat.
98276         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
98277         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98278         * m4/stat.m4: Remove this file.
98280 2005-06-24  Derek Price  <derek@ximbiot.com>
98281         and Bruno Haible  <bruno@clisp.org>
98283         Remove stat module & update lstat.
98284         * lib/stat.c: Remove this file...
98285         (slash_aware_lstat): ...moving this content and its support...
98286         * lib/lstat.c (rpl_lstat): ...into here.
98287         * lib/lstat.h: New file.
98289 2005-06-24  Derek Price  <derek@ximbiot.com>
98290         and Bruno Haible  <bruno@clisp.org>
98292         Remove stat module & update lstat.
98293         * config/srclist.txt (libc sources): Remove stat.
98295 2005-06-24  Derek Price  <derek@ximbiot.com>
98296         and Bruno Haible  <bruno@clisp.org>
98298         Remove stat module & update lstat.
98299         * MODULES.html.sh (stat): Remove.
98300         * MODULES.html: Regenerated.
98301         * modules/lstat (Description): Correct function name.
98302         (Files): Add "lstat.h".
98303         (Depends-on): Remove stat, add xalloc, stat-macros.
98304         * modules/stat: Remove this file.
98305         (Include): Add "lstat.h", remove <sys/stat.h>.
98307 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
98309         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
98310         (ranged_convert): Don't save conversion in a temporary struct.
98311         This causes a warning with GCC 4.0.0, and anyway in the typical
98312         case it's not worth the extra 100 bytes or so of code.
98313         (ranged_convert, __mktime_internal): When calling a function via a
98314         pointer P, use P () rather than (*P) (), as we now assume C89 or
98315         better.
98317 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
98319         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
98320         "who -r" failed to give output.  Problem reported by Tim Waugh.
98322         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
98323         (xcalloc): Use it to avoid needless tests.
98324         Problem reported by Jim Meyering.
98326 2005-06-20  Derek Price  <derek@ximbiot.com>
98328         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
98329         unnecessary for Autoconfs > 2.59c.
98331 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98333         * lib/argp.h (__option_is_short): Check upper limit of
98334         __key. Isprint() requires its argument to have the value
98335         of an unsigned char or EOF.
98337 2005-06-16  Jim Meyering  <jim@meyering.net>
98339         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
98340         when either N or S is zero.
98342 2005-06-16  Derek Price  <derek@ximbiot.com>
98344         * m4/bison.m4: Declare YACC & YFLAGS precious.
98346 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
98348         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
98349         multibyte string or pattern, fall back on unibyte matching.
98350         Problem reported by James Youngman.
98352 2005-06-08  Bruno Haible  <bruno@clisp.org>
98354         * modules/csharpcomp: New file.
98355         * MODULES.html.sh (C#): Add csharpcomp.
98357 2005-06-08  Bruno Haible  <bruno@clisp.org>
98359         * m4/csharpcomp.m4: New file, from GNU gettext.
98361 2005-06-08  Bruno Haible  <bruno@clisp.org>
98363         * lib/csharpcomp.h: New file, from GNU gettext.
98364         * lib/csharpcomp.c: New file, from GNU gettext.
98365         * lib/csharpcomp.sh.in: New file, from GNU gettext.
98367 2005-06-08  Bruno Haible  <bruno@clisp.org>
98369         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
98370         warning on mingw.
98372 2005-06-07  Derek Price  <derek@ximbiot.com>
98374         Sync from CVS.
98375         * lib/glob_.h: Indent nested #ifdef.
98377 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
98379         Sync from coreutils.
98380         Use "file name" when talking about file names, instead of "filename"
98381         or "path", as per the GNU coding standards.
98382         * lib/mkdir-p.c: Renamed from makepath.c.
98383         (make_dir_parents): Renamed from make_path.  All callers changed.
98384         * lib/mkdir-p.h: Likewise.  All includers changed.
98385         * lib/filenamecat.c: Renamed from path-concat.c.
98386         (file_name_concat): Renamed from path_concat.  All callers changed.
98387         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
98388         * lib/filenamecat.h: Likewise.  All includers changed.
98389         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
98390         in comments or local variable names.
98391         * lib/basename.c: Likewise.
98392         * lib/canonicalize.c, canonicalize.h: Likewise.
98393         * lib/dirname.c, dirname.h: Likewise.
98394         * lib/euidaccess.c: Likewise.
98395         * lib/exclude.c: Likewise
98396         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
98397         * lib/fsusage.c, fsuage.h: Likewise.
98398         * lib/fts.c, fts_.h: Likewise.
98399         * lib/getcwd.c: Likewise.
98400         * lib/getloadavg.c: Likewise.
98401         * lib/mkstemp.c: Likewise.
98402         * lib/mountlist.c, mountlist.h: Likewise.
98403         * lib/openat.c, openat.h: Likewise.
98404         * lib/readlink-stub.c: Likewise.
98405         * lib/readutmp.c, readutmp.h: Likewise.
98406         * lib/rename.c: Likewise.
98407         * lib/rmdir.c: Likewise.
98408         * lib/same.c: Likewise.
98409         * lib/savedir.c: Likewise.
98410         * lib/stripslash.c: Likewise.
98411         * lib/tempname.c: Likewise.
98412         * lib/xreadlink.c: Likewise.
98413         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
98414         All uses changed.
98415         * lib/exclude.h: Likewise.
98417         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
98418         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
98419         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
98420         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
98421         * lib/pathmax.h: Include <limits.h> unconditionally, since other
98422         files have been getting away with it for years (MORE/BSD 4.3
98423         is extinct now).
98424         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
98425         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
98427         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
98428         Define to 256, not 255, as per modern POSIX.
98430 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
98432         Sync from coreutils.
98433         Use "file name" when talking about file names, instead of "filename"
98434         or "path", as per the GNU coding standards.
98435         * MODULES.html.sh: mkdir-p renamed from makepath.
98436         filenamecat renamed from path-concat.
98437         * modules/filenamecat: Renamed from modules/path-concat.
98438         (Files): filenamecat.h and filenamecat.c renamed from
98439         path-concat.h and path-concat.c.
98440         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
98441         (Include): filenamecat.h, not path-concat.h.
98442         * modules/mkdir-p: Renamed from modules/makepath.
98443         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
98444         makepath.c.
98445         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
98446         (Include): mkdir-p.h, not makepath.h.
98448 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
98450         Sync from coreutils.
98451         * m4/mkdir-p.m4: Renamed from makepath.m4.
98452         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
98453         Rename files from makepath.c to mkdir-p.c, and from
98454         makepath.h to mkdir-p.h.
98455         * m4/filenamecat.m4: Renamed from path-concat.m4.
98456         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
98457         Rename files from path-concat.c to filenamecat.c,
98458         and from path-concat.h to filenamecat.h.
98459         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
98460         "file name" in local variables or comments.
98461         * m4/rename.m4: Likewise.
98463 2005-06-01  Bruno Haible  <bruno@clisp.org>
98465         * modules/csharpexec: New file.
98466         * MODULES.html.sh (C#): New section.
98468 2005-06-01  Bruno Haible  <bruno@clisp.org>
98470         * m4/csharp.m4: New file, from GNU gettext.
98471         * m4/csharpexec.m4: New file, from GNU gettext.
98473 2005-06-01  Bruno Haible  <bruno@clisp.org>
98475         * lib/csharpexec.h: New file, from GNU gettext.
98476         * lib/csharpexec.c: New file, from GNU gettext.
98477         * lib/csharpexec.sh.in: New file, from GNU gettext.
98479 2005-05-31  Derek Price  <derek@ximbiot.com>
98480             Paul Eggert  <eggert@cs.ucla.edu>
98482         Sync from cvs.
98483         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
98485 2005-05-31  Derek Price  <derek@ximbiot.com>
98486             Paul Eggert  <eggert@cs.ucla.edu>
98488         Sync from cvs.
98489         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
98491 2005-05-29  Derek Price  <derek@ximbiot.com>
98493         * config/srclist.txt (glob_.h, glob.c): Add these files.
98495 2005-05-29  Derek Price  <derek@ximbiot.com>
98497         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
98498         * modules/glob: New file.
98499         * modules/getlogin_r: Add link to POSIX spec in description.
98501 2005-05-29  Derek Price  <derek@ximbiot.com>
98502             Paul Eggert  <eggert@cs.ucla.edu>
98504         * m4/glob.m4: New file.
98506 2005-05-29  Derek Price  <derek@ximbiot.com>
98507             Paul Eggert  <eggert@cs.ucla.edu>
98509         * lib/glob_.h, lib/glob.c: New files.
98511 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
98513         * modules/fts (Files): Remove m4/inttypes-pri.m4.
98514         * modules/fts-lgpl (Depends-on): Remove gettext.
98516 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
98518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
98519         and don't require gt_INTTYPES_PRI.
98521 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
98523         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
98525         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
98526         the configuration hassle isn't worth it.
98527         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
98528         (LONGEST_MODIFIER, PRIuMAX): Remove.
98530 2005-05-27  Bruno Haible  <bruno@clisp.org>
98532         * lib/getlogin_r.h: Remove second include of <stddef.h>.
98534 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
98536         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
98537         _POSIX_PTHREAD_SEMANTICS for Solaris.
98539 2005-05-25  Derek Price  <derek@ximbiot.com>
98541         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
98543 2005-05-25  Derek Price  <derek@ximbiot.com>
98544             Paul Eggert  <eggert@cs.ucla.edu>
98546         * modules/getlogin_r, m4/getlogin_r.m4: New files.
98547         * lib/getlogin_r.c, getlogin_r.h: New files.
98549 2005-05-25  Bruno Haible  <bruno@clisp.org>
98550             Derek Price  <derek@ximbiot.com>
98552         * lib/getlogin_r.h: Simplify API documentation.
98554 2005-05-23  Derek Price  <derek@ximbiot.com>
98556         * modules/minmax (Files): Add m4/minmax.m4.
98557         (configure.ac): Add gl_MINMAX.
98559 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
98561         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
98562         so that unistd-safer.h (GPL'ed code) need not be included.
98564 2005-05-22  Bruno Haible  <bruno@clisp.org>
98566         * m4/minmax.m4: New file.
98567         Based on a patch by Derek Price <derek@ximbiot.com>.
98569 2005-05-22  Bruno Haible  <bruno@clisp.org>
98571         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
98572         (INT64_MIN): Fix definition.
98573         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
98575         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
98576         NEED_SIGNED_INT_TYPES.
98578         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
98579         HAVE_SYSTEM_INTTYPES.
98581 2005-05-22  Bruno Haible  <bruno@clisp.org>
98583         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
98584         Also include <sys/param.h> if it defines MIN, MAX.
98585         Based on a patch by Derek Price <derek@ximbiot.com>.
98587 2005-05-21  Jim Meyering  <jim@meyering.net>
98589         * modules/fts (Files): Add m4/inttypes-pri.m4.
98590         (Depends-on): Add lstat and remove gettext.  Alphabetize.
98592 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
98594         New fts module.
98595         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
98596         (setup_dir, free_dir): New functions.
98597         (enter_dir, leave_dir): Define trivial
98598         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
98599         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
98600         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
98601         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
98602         Move to fts-cycle.c.
98603         (fts_open): Use setup_dir.
98604         (fts_close): Use free_dir.
98605         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
98606         This adds a label and some gotos, but the alternatives were messier.
98607         Check for memory allocation failure when entering a dir.
98608         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
98609         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
98610         (FTS): New member fts_cycle, that is a union that contains the
98611         old active_dir_ht and cycle_state.  All uses changed to mention
98612         fts_cycle.ht and fts_cycle.state.
98613         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
98614         fts.c, with the following changes:
98615         (setup_dir, free_dir): New functions.
98616         (enter_dir): Now returns bool.  Return true if successful, false
98617         if memory exhausted.  All callers changed.
98618         Do not bother partly cleaning up on
98619         memory allocation failure; that is free_dir's job.
98620         However, free ad if hash_insert fails, to avoid memory leak.
98621         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
98622         fts->fts_options to see which union member to use.
98624 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
98626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
98627         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
98629 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
98631         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
98633 2005-05-20  Jim Meyering  <jim@meyering.net>
98635         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
98636         Now a macro, to pacify GCC.
98638 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
98640         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
98641         of -1.
98643 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
98645         * lib/chown.c (rpl_chown): Return -1 on failure.
98647 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
98649         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
98650         Don't check for stddef.h.
98651         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
98652         don't use its results.
98653         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
98654         since we include them unconditionally.  Don't require
98655         AM_STDBOOL_H, since stdbool is a prerequisite.
98656         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
98657         since we assume C89 or better.
98658         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
98659         as we don't use their results.
98660         Don't check for fchdir, memmove, memset, strrchr, as we use
98661         them unconditionally.
98662         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
98663         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
98665 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
98667         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
98668         Include <stddef.h> unconditionally, since we assume C89 now.
98669         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
98670         * lib/fts.c: Include fts_.h first, to check interface.
98671         Do not include intprops.h; no longer needed.
98672         Include cycle-check.h and hash.h, since fts_.h no longer does.
98673         Remove unnecessary casts of closedir to void.
98674         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
98675         decide whether to decrement nlinks.
98676         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
98677         (FTS): Use struct hash_table * instead of Hash_table, so that
98678         we no longer need to include hash.h here.
98680 2005-05-18  Jim Meyering  <jim@meyering.net>
98682         * modules/dirfd (License): Change to LGPL.  Most of the code
98683         is already in the public domain.
98685 2005-05-18  Jim Meyering  <jim@meyering.net>
98687         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
98688         Reported by Yoann Vandoorselaere.
98690 2005-05-17  Jim Meyering  <jim@meyering.net>
98692         * m4/fts.m4: New file, from coreutils.
98694 2005-05-17  Jim Meyering  <jim@meyering.net>
98696         * lib/fts.c, lib/fts_.h: New files, from coreutils.
98698 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98700         Sync from coreutils.
98701         * m4/unlinkdir.m4: New file.
98703 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98705         Sync from coreutils.
98706         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
98707         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
98708         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
98709         White space changes only.
98710         * lib/makepath.c (make_path): Port to hosts where leading "//" is
98711         special.
98712         * lib/yesno.c: Include getline.h, not ctype.h.
98713         (yesno): Don't remove leading white space; POSIX doesn't allow it.
98714         Use getline to remove arbitrary restriction on response length.
98716 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98718         * config/srclist-update: Spell out "Street" in FSF postal
98719         mail address; this is the style the FSF seems to prefer.
98721         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
98722         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
98723         this updates FSF postal mail address.
98725         Sync from coreutils.
98726         * modules/unlinkdir: New file.
98727         * modules/yesno (Depends-on): Add getline.
98728         * MODULES.html.sh (File system functions): Add unlinkdir.
98730 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
98732         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
98733         lib/strsep.h:
98734         Change the initial comment to refer to GPL, not LGPL.
98735         gnulib-tool will change it to LGPL as needed.
98737         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
98738         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
98739         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
98740         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
98741         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
98742         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
98743         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
98744         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
98745         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
98746         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
98747         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
98748         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
98749         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
98750         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
98751         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
98752         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
98753         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
98754         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
98755         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
98756         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
98757         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
98758         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
98759         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
98760         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
98761         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
98762         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
98763         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
98764         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
98765         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
98766         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
98767         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
98768         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
98769         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
98770         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
98771         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
98772         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
98773         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
98774         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
98775         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
98776         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
98777         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
98778         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
98779         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
98780         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
98781         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
98782         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
98783         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
98784         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
98785         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
98786         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
98787         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
98788         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
98789         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
98790         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
98791         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
98792         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
98793         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
98794         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
98795         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
98796         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
98797         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
98798         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
98799         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
98800         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
98801         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
98802         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
98803         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
98804         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
98805         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
98806         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
98807         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
98808         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
98809         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
98810         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
98811         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
98812         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
98813         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
98814         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
98815         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
98816         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
98817         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
98818         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
98819         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
98820         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
98821         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
98822         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
98823         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
98824         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
98825         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
98826         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
98827         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
98828         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
98829         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
98830         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
98831         lib/yesno.c, lib/yesno.h:
98832         Update FSF postal mail address.
98834 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
98836         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
98837         tests/test-memmem.c, tests/test-stpncpy.c:
98838         Update FSF postal mail address.
98840 2005-05-13  Bruno Haible  <bruno@clisp.org>
98842         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
98843         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
98844         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
98845         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
98846         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
98847         Add support for 64-bit integers in the MSVC compiler.
98849 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98851         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
98853 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
98855         * gnulib-tool (func_import): Sort and uniquify recommended includes.
98857 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
98859         * doc/getdate.texi (General date syntax): Don't say that date
98860         date --iso-8601=ns generates acceptable dates; it doesn't yet.
98861         Problem reported by Nic Ferrier.
98863 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98865         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
98866         specified in ai_socktype. Fix invalid ai_protocol
98867         check. ai_protocol is usually set to 0 or depending on
98868         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
98869         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
98870         ai_socktype / ai_protocol in the returned addrinfo structure.
98872 2005-05-10  Simon Josefsson  <jas@extundo.com>
98874         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
98875         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98877 2005-05-10  Karl Berry  <karl@gnu.org>
98879         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
98880         (from http://www.gnu.org/licenses).
98881         * doc/COPYING.LIB: also rename to COPYING.LESSER.
98882         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
98883         fdl.texi suffices.
98885 2005-05-10  Karl Berry  <karl@gnu.org>
98887         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
98888         (COPYING.DOC): remove.
98890         * config/srclist-update: new FSF address.
98892 2005-05-10  Derek Price  <derek@ximbiot.com>
98894         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
98895         possible.
98897 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98898             Bruno Haible  <bruno@clisp.org>
98900         * modules/inet_ntop: New file.
98901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98902         inet_ntop.
98904 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98905             Bruno Haible  <bruno@clisp.org>
98907         * m4/inet_ntop.m4: New file.
98909 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98910             Bruno Haible  <bruno@clisp.org>
98912         * lib/inet_ntop.h: New file.
98913         * lib/inet_ntop.c: New file, from glibc with modifications.
98915 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
98917         * modules/time_r (License): Change to LGPL.
98918         * modules/extensions (License): Change to LGPL.  Actually,
98919         the license is more permissive than that, but currently gnulib-tool
98920         doesn't know how to handle more-permissive licenses.
98922         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
98923         Problem reported by Dave Love.
98925 2005-05-08  Jim Meyering  <jim@meyering.net>
98927         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
98928         blank.
98930 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
98932         * modules/argmatch (Depends-on): Add stdbool.
98933         * modules/backupfile (Depends-on): Likewise.
98934         * modules/chdir-long (Depends-on): Likewise.
98935         * modules/closeout (Depends-on): Likewise.
98936         * modules/cycle-check (Depends-on): Likewise.
98937         * modules/dirname (Depends-on): Likewise.
98938         * modules/fnmatch (Depends-on): Likewise.
98939         * modules/fsusage (Depends-on): Likewise.
98940         * modules/fwriteerror (Depends-on): Likewise.
98941         * modules/getcwd (Depends-on): Likewise.
98942         * modules/getloadavg (Depends-on): Likewise.
98943         * modules/hard-locale (Depends-on): Likewise.
98944         * modules/makepath (Depends-on): Likewise.
98945         * modules/mountlist (Depends-on): Likewise.
98946         * modules/nanosleep (Depends-on): Likewise.
98947         * modules/posixtm (Depends-on): Likewise.
98948         * modules/quotearg (Depends-on): Likewise.
98949         * modules/readtokens (Depends-on): Likewise.
98950         * modules/readtokens0 (Depends-on): Likewise.
98951         * modules/readutmp (Depends-on): Likewise.
98952         * modules/save-cwd (Depends-on): Likewise.
98953         * modules/strftime (Depends-on): Likewise.
98954         * modules/userspec (Depends-on): Likewise.
98955         * modules/utimecmp (Depends-on): Likewise.
98956         * modules/xgetcwd (Depends-on): Likewise.
98957         * modules/xnanosleep (Depends-on): Likewise.
98958         * modules/xstrtod (Depends-on): Likewise.
98959         * modules/yesno (Depends-on): Likewise.
98961 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
98963         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
98964         needless checks.
98966 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
98968         Merge from coreutils.  Among other things,
98969         add bulletproofing for cases where stdin, stdout, or stderr are closed.
98970         * lib/fd-safer.c: New file.
98971         * lib/fcntl-safer.h, open-safer.c: Remove.
98972         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
98973         * lib/dup-safer.c: Include unistd-safer.h first.
98974         Don't include errno.h.
98975         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
98976         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
98977         * lib/file-type.c: Rely on file-type.h change.
98978         * lib/getloadavg.c: Include unistd-safer.h.
98979         (getloadavg): Use safer open.
98980         * lib/getusershell.c: Include "stdio-safer.h".
98981         (getusershell): Use safer fopen.
98982         * lib/long-options.c (long_options): Use NULL rather than 0.
98983         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
98984         'free'.
98985         * lib/modechange.c: Likewise.
98986         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
98987         (MODE_DONE): New constant.
98988         (struct mode_change): Remove 'next' member.
98989         (make_node_op_equals): New function; like the old one of the
98990         same name, except it allocates an array.
98991         (mode_compile, mode_create_from_ref): Use it.
98992         (mode_compile): Allocate result as an array, not a linked list.
98993         Parse octal string ourself, so that we catch mistakes like "+0".
98994         (mode_adjust): Arg is an array, not a linked list.
98995         * lib/modechange.c: Include stat-macros.h, xalloc.h.
98996         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
98997         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
98998         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
98999         Remove.  This is now stat-macros.h's job.
99000         (talloc): Remove.  All callers replaced by xalloc, so that
99001         our invokers don't have to worry about reporting memory failures.
99002         (make_node_op_equals): Remove.
99003         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
99004         New constants.
99005         (struct mode_change): Moved here from modechange.h.
99006         (mode_append_entry): Remove.
99007         (mode_compile): Remove MASKED_OPS arg, since it encouraged
99008         apps to have incorrect behavior.  Use simpler algorithm for head
99009         and tail.  Don't futz with umask; that's now the job of mode_adjust.
99010         Detect more invalid usages rather than having somewhat-random behavior.
99011         Don't insert an "a=" action, as that leads to incorrect behavior.
99012         (mode_compile, mode_create_from_ref): Return NULL on error instead
99013         of an enum, since now there's only one way to have an error.  All
99014         callers changed.
99015         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
99016         at the correct time.  Simplify calculation of "+u" and its ilk.
99017         Don't mishandle "+X".
99018         (mode_free): Remove "register" and localize decls.
99019         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
99020         (struct mode_change): Move to modechange.c; callers don't
99021         need to see this stuff.
99022         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
99023         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
99024         (mode_change, mode_adjust): Reflect the new signatures noted above.
99025         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
99026         that might redefine system include files.
99027         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
99028         (my_usleep): Use NULL rather than (void *) 0.
99029         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
99030         Use siginterrupt to specify that system calls should be interrupted.
99031         (rpl_nanosleep): Move initialization of suspended closer to call of
99032         my_usleep.
99033         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
99034         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
99035         (desirable_utmp_entry): New function.
99036         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
99037         using x2nrealloc, to simplify logic.
99038         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
99039         size calculation.  Do not assume utmp file is a regular file.
99040         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
99041         (READ_UTMP_CHECK_PIDS): New constant.
99042         * lib/save-cwd.c: Include unistd-safer.h.
99043         (save_cwd): Use fd_safer.
99044         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
99045         [!_LIBC] Include "stat-macros.h" instead.
99046         * lib/unistd-safer.h (fd_safer): New decl.
99048 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99050         * modules/getloadavg (Depends-on): Add unistd-safer.
99051         * modules/getusershell (Depends-on): Add stdio-safer.
99052         * modules/lstat (Depends-on): Remove xalloc.
99053         * modules/mkstemp (Depends-on): Add stat-macros.
99054         * modules/modechange (Depends-on): Remove xstrtol.
99055         Add stat-macros, xalloc.
99056         * modules/save-cwd (Depends-on): Add unistd-safer.
99057         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
99058         * modules/unistd-safer (Files): Add lib/fd-safer.c
99059         (Makefile.am): Remove lib_SOURCES.
99061         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
99062         Remove fcntl-safer; unistd-safer supersedes it.
99064 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99066         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
99067         AC_HEADER_STAT.
99068         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
99069         (gl_PREREQ_CHOWN): Remove.
99070         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
99071         it.  Don't require AC_HEADER_STAT.
99072         (gl_PREREQ_LSTAT): Remove.
99073         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
99074         Don't require AC_HEADER_STAT.
99075         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
99076         (gl_PREREQ_RMDIR): Remove.
99077         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
99078         mention stat-macros.h or AC_HEADER_STAT, since we'll make
99079         the stat-macros module a prerequisite.
99080         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
99081         * m4/filemode.m4 (gl_FILEMODE): Likewise.
99082         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
99083         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
99084         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
99085         variable names.
99086         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
99087         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
99088         variable prefixes.
99089         * m4/fcntl-safer.m4: Remove.
99090         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
99091         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
99092         Invoke gl_PREREQ_FD_SAFER.
99093         (gl_PREREQ_FD_SAFER): New macro.
99094         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
99095         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
99096         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
99097         Remove duplicate call to AC_LIBOBJ(readutmp).
99098         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
99100         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
99101         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
99103 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99105         * MODULES.html.sh (Misc): Add byteswap.
99107 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99109         * modules/getcwd (Depends-on): Add extensions.
99110         * modules/openat (Depends-on): Likewise.
99112 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99114         * modules/byteswap: New file.
99116 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99118         * m4/byteswap.m4: New file.
99120 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99122         * lib/byteswap_.h: New file.
99124 2005-04-25  Karl Berry  <karl@gnu.org>
99126         * m4/gettext.m4: Update from GNU gettext 0.14.4.
99128 2005-04-25  Albert Chin  <china@thewrittenword.com>
99130         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
99131         Toolkit C bug.
99133 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
99135         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
99136         (func_ln_if_changed): Remove forcibly for no error message
99137         in case file does not exist.
99139 2005-04-19  Simon Josefsson  <jas@extundo.com>
99141         * gnulib-tool (Options): Make --symlink mean --symbolic.
99143 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
99145         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
99147 2005-04-16  Simon Josefsson  <jas@extundo.com>
99149         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
99151 2005-04-15  Simon Josefsson  <jas@extundo.com>
99153         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
99155 2005-04-15  Simon Josefsson  <jas@extundo.com>
99157         * gnulib-tool: Rename --symlink to --symbolic.
99159 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
99161         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
99162         symbolic links to files instead of copying/moving.  Add --aux-dir,
99163         specifying directory relative --dir where auxiliary build tools
99164         are placed.
99166 2005-04-14  Bruno Haible  <bruno@clisp.org>
99168         * modules/allocsa (License): Change to LGPL.
99169         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
99171 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
99173         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
99174         that "UTC +1 second" continues to work.  Problem reported
99175         by Dmitry V. Levin.
99176         (relunit_snumber): New rule.
99177         (relunit): Use it.
99179 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99181         * lib/getdate.y (universal_time_zone_table): New constant.
99182         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
99183         universal_time_zone_table.
99184         (lookup_zone): Prefer universal_time_zone_table to
99185         local_time_zone_table, so that "GMT" time stamps are allowed in
99186         London during the summer.  Problem reported by Ian Abbott.
99188 2005-04-12  Jim Meyering  <jim@meyering.net>
99190         * lib/human.c (humblock): Set *options even when returning due to
99191         xstrtoumax conversion failure.  Thanks to a used-uninitialized
99192         warning from gcc-4.
99194 2005-04-09  Jim Meyering  <jim@meyering.net>
99196         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
99197         -Wuninitialized: initialize tm0.tm_year.
99199 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
99201         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
99202         count, since there's no maximum.  All uses changed.
99203         Add member dsts_seen.
99204         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
99205         not being INT_MAX.
99206         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
99207         Use pc_rels_seen to decide whether a date is absolute.
99209         * lib/getdate.y (number): Don't overwrite year.
99210         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
99211         check.
99213 2005-04-02  Simon Josefsson  <jas@extundo.com>
99215         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
99216         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
99218 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
99220         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
99221         where no absolute path name can be longer than PATH_MAX.
99223 2005-03-27  Jim Meyering  <jim@meyering.net>
99225         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
99227 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
99229         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
99230         "one's complement" -> "ones' complement" in comment, as per Knuth.
99231         "value of type" -> "type or expression" in comment.
99232         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
99234 2005-03-26  Jim Meyering  <jim@meyering.net>
99236         Comment nits.
99237         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
99238         Correct typos: s/or/of/.
99240 2005-03-26  Jim Meyering  <jim@meyering.net>
99242         * modules/check-include-files: Move to ../ and rename to...
99243         * check-module: ...this.
99245 2005-03-25  Jim Meyering  <jim@meyering.net>
99247         * modules/xvasprintf (Files): Add xalloc.h.
99249 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
99251         * modules/gettext (Files): config/config.rpath ->
99252         build-aux/config.rpath
99253         * modules/iconv (Files): Likewise.
99254         Problem reported by Oskar Liljeblad.
99256 2005-03-23  Jim Meyering  <jim@meyering.net>
99258         * modules/check-include-files: New script to check for
99259         missing dependencies, multiple includes, etc.
99261         * modules/c-strtold (Depends-on): Add xalloc.
99262         * modules/c-strtod (Depends-on): Add xalloc.
99263         * modules/hash (Depends-on): Add xalloc.
99264         (Files): Remove lib/xalloc.h.
99266         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
99267         * modules/userspec (Files): Add lib/inttostr.h.
99269 2005-03-23  Jim Meyering  <jim@meyering.net>
99271         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
99273 2005-03-22  Jim Meyering  <jim@meyering.net>
99275         * modules/stat-macros: New module.
99276         * modules/canonicalize, modules/euidaccess, modules/file-type,
99277         * modules/filemode, modules/lchown, modules/makepath,
99278         * modules/rmdir, modules/stat: Depend on new stat-macros module
99279         rather than listing lib/stat-macros.h manually.
99280         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
99282 2005-03-22  Jim Meyering  <jim@meyering.net>
99284         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
99286 2005-03-22  Bruno Haible  <bruno@clisp.org>
99288         * config/srclist.txt: Replace target directory 'config' with
99289         'build-aux'.
99290         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
99291         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
99292         ../build-aux/.
99294 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
99296         * modules/chdir-long (Depends-on): Add mempcpy.
99298         * modules/acl, modules/backupfile, modules/c-strtod,
99299         modules/c-strtold, modules/canon-host, modules/canonicalize,
99300         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
99301         modules/exclude, modules/exitfail, modules/file-type,
99302         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
99303         modules/getdate, modules/getline, modules/getpagesize,
99304         modules/getpass, modules/getugroups, modules/group-member,
99305         modules/hard-locale, modules/hash, modules/human, modules/idcache,
99306         modules/inttostr, modules/long-options, modules/makepath,
99307         modules/md5, modules/memcasecmp, modules/memcoll,
99308         modules/modechange, modules/mountlist, modules/path-concat,
99309         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
99310         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
99311         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
99312         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
99313         modules/strftime, modules/strndup, modules/strverscmp,
99314         modules/timespec, modules/unlocked-io, modules/userspec,
99315         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
99316         modules/yesno:
99317         Remove lib_SOURCES line from Makefile.am section, as this is now
99318         done automatically by the corresponding Autoconf macro.
99320 2005-03-21  Jim Meyering  <jim@meyering.net>
99322         Changes imported from coreutils.
99324         * lib/cycle-check.c: Don't include xalloc.h.
99326         * lib/path-concat.c: Don't include assert.h.
99327         (path_concat): Remove assertion that would have triggered
99328         for ABASE starting with more than one slash.
99329         Reported by Andreas Schwab.
99331         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
99332         properly when ABASE is an absolute file name.
99333         Correct the description of this function.
99334         Include <assert.h>.
99335         Add an assertion and a test driver.
99336         This fixes a bug introduced on 2004-07-02.
99337         Andreas Schwab reported the resulting failure of cp --parents:
99338         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
99340 2005-03-21  Jim Meyering  <jim@meyering.net>
99342         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
99343         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
99345 2005-03-21  Jim Meyering  <jim@meyering.net>
99346         and  Paul Eggert  <eggert@cs.ucla.edu>
99348         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
99349         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
99350         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
99351         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
99352         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
99353         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
99354         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
99355         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
99356         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
99357         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
99358         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
99359         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
99360         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
99361         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
99362         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
99363         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
99364         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
99365         for these modules.
99367 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
99369         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
99370         (which shouldn't happen), generate nothing instead of returning 0
99371         immediately, so that nstrftime (NULL, ...) doesn't return 0.
99373 2005-03-16  Bruno Haible  <bruno@clisp.org>
99375         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
99376         HAVE_LONGLONG_64BIT.
99378 2005-03-16  Bruno Haible  <bruno@clisp.org>
99380         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
99381         HAVE_LONGLONG_64BIT.
99383 2005-03-16  Bruno Haible  <bruno@clisp.org>
99385         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
99386         HAVE_LONGLONG_64BIT.
99388 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
99390         * lib/strftime.c (my_strftime): Prepend space to format so that we can
99391         reliably distinguish strftime failure from empty output on POSIX
99392         hosts.
99394 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
99396         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
99397         (iconv_string): Don't guess a size-zero buffer, as that might cause
99398         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
99399         result would be 'too large', where 'too large' is (heuristically)
99400         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
99401         overflow concerns.  This will prevent some unwanted malloc failures
99402         when the inputs are very large.
99404 2005-03-15  Karl Berry  <karl@gnu.org>
99406         * config/srclist.txt (config.rpath): from gettext.
99407         * config/config.rpath: update.
99409 2005-03-15  Bruno Haible  <bruno@clisp.org>
99411         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
99412         to 'negate'.
99414         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
99415         variable.
99417         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
99418         results.
99420 2005-03-14  Simon Josefsson  <jas@extundo.com>
99422         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
99423         <fx@gnu.org>.
99425 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
99427         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
99428         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
99429         intprops.h.
99430         * lib/strtol.c: Likewise.
99432 2005-03-14  Jim Meyering  <jim@meyering.net>
99434         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
99435         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
99436         to be nonzero so that we (and caller) can detect the difference
99437         between a valid zero-length expansion and an error return, even
99438         when the underlying strftime fails before writing anything into
99439         that location.
99441 2005-03-14  Bruno Haible  <bruno@clisp.org>
99443         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
99444         Update from GNU gettext 0.14.3.
99446 2005-03-10  Jim Meyering  <jim@meyering.net>
99448         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
99450 2005-03-10  Jim Meyering  <jim@meyering.net>
99452         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
99453         so that this module works on systems without fchdir.
99455 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
99457         Factor int-properties macros into a single file, except for
99458         glibc-related files.
99459         * lib/intprops.h: New file.
99460         * lib/getloadavg.c: Include it instead of limits.h.
99461         (INT_STRLEN_BOUND): Remove.
99462         * lib/human.c: Include intprops.h.
99463         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
99464         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
99465         302/1000.
99466         * lib/inttostr.h: Include intprops.h instead of limits.h.
99467         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
99468         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
99469         for consistency with intprops.h.
99470         (time_t_is_integer, twos_complement_arithmetic): Use them.
99471         * lib/sig2str.h: Include <signal.h>, intprops.h.
99472         (INT_STRLEN_BOUND): Remove.
99473         * lib/strftime.c (TYPE_SIGNED): Remove.
99474         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
99475         * lib/strtol.c: Adjust comments to match intprops.h.
99476         * lib/userspec.c: Include intprops.h.
99477         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
99478         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
99479         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
99480         instead of rolling our own expressions.
99481         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
99483         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
99484         instead of int.
99485         (my_strftime): Do not mishandle years close to INT_MAX, by doing
99486         the right thing even if adding 1900 would overflow.  Similarly
99487         for tm_mon + 1 and tm_yday + 1.
99488         Make %Y always equivalent to %C%y, and similarly for %G and %g.
99489         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
99490         (DO_SIGNED_NUMBER): New macro.
99491         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
99493 2005-03-07  Bruno Haible  <bruno@clisp.org>
99495         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
99497 2005-03-07  Bruno Haible  <bruno@clisp.org>
99499         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
99501 2005-03-04  Derek R. Price  <derek@ximbiot.com>
99503         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
99504         (func_import): Only replace files via --import when they have actually
99505         changed.
99507 2005-03-03  Derek R. Price  <derek@ximbiot.com>
99509         * m4/mmap-anon.m4: New file.
99510         * m4/pagealign_alloc.m4: New file.
99512 2005-03-03  Derek R. Price  <derek@ximbiot.com>
99513             Bruno Haible  <bruno@clisp.org>
99515         * modules/pagealign_alloc: New file.
99516         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
99518 2005-03-03  Derek R. Price  <derek@ximbiot.com>
99519             Bruno Haible  <bruno@clisp.org>
99521         * lib/pagealign_alloc.h: New file.
99522         * lib/pagealign_alloc.c: New file.
99524 2005-03-03  Bruno Haible  <bruno@clisp.org>
99526         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
99527         Use an all-permissive copyright notice, recommended by RMS.
99529 2005-03-02  Bruno Haible  <bruno@clisp.org>
99531         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
99532         of AIX, the replacement has to be done only after <string.h> is
99533         included, therefore not in config.h. stpncpy.h does the replacement,
99534         and stpncpy.c uses it.
99536 2005-03-02  Bruno Haible  <bruno@clisp.org>
99538         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
99539         stpncpy.c uses it.
99541 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99543         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
99544         The workaround isn't strictly needed for POSIX conformance, and
99545         it's too much of a pain to configure and maintain.  We'll ask
99546         people to fix their kernels instead.
99547         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
99548         (NANOSLEEP_BUG_WORKAROUND): Remove.
99549         (xnanosleep): Remove the workaround.
99551 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99553         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
99554         Reported by Derek Price.
99555         (Include): Add "timespec.h".
99557         * modules/xnanosleep (Depends-on): Remove gethrxtime.
99559 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99561         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
99562         to detect nanosleep bug.
99564 2005-03-01  Bruno Haible  <bruno@clisp.org>
99566         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
99568 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
99570         * modules/gethrxtime: New file.
99571         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
99572         (Depends-on): Add gethrxtime.
99573         (configure.ac): Add gl_XNANOSLEEP.
99574         (Makefile.am): Remove lib_SOURCES line.
99576 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
99578         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
99579         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
99581 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
99583         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
99584         * lib/timespec.h (gettime): Return void, since it always
99585         succeeds now.  All uses changed.
99586         * lib/gettime.c (gettime): Likewise.
99587         [HAVE_NANOTIME]: Prefer nanotime.
99588         Assume gettimeofday succeeds, as POSIX requires.
99589         Assime time () succeeds, since other code already does.
99590         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
99591         (timespec_subtract): Remove.
99592         (NANOSLEEP_BUG_WORKAROUND): New constant.
99593         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
99594         things considerably.  Use it only on GNU/Linux hosts, since the
99595         workaround shouldn't be needed elsewhere.
99597 2005-02-24  Bruno Haible  <bruno@clisp.org>
99599         * modules/gettext (Files): Add m4/glibc2.m4.
99601 2005-02-24  Bruno Haible  <bruno@clisp.org>
99603         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
99604         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
99605         * m4/progtest.m4:
99606         Update from GNU gettext 0.14.2.
99607         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
99609 2005-02-24  Bruno Haible  <bruno@clisp.org>
99611         * lib/localcharset.c: Update from GNU gettext 0.14.2.
99612         * lib/config.charset: Update from GNU gettext 0.14.2.
99614 2005-02-24  Bruno Haible  <bruno@clisp.org>
99616         * lib/gettext.h: Update from GNU gettext 0.14.2.
99618 2005-02-23  Simon Josefsson  <jas@extundo.com>
99620         * m4/iconvme.m4: New file.
99622 2005-02-23  Jim Meyering  <jim@meyering.net>
99624         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
99625         change.
99626         Thanks to Bruno Haible for catching it.
99628 2005-02-22  Simon Josefsson  <jas@extundo.com>
99630         * modules/iconvme: New file.
99632         * MODULES.html.sh: Add iconvme.
99634 2005-02-22  Simon Josefsson  <jas@extundo.com>
99636         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
99638 2005-02-22  Simon Josefsson  <jas@extundo.com>
99640         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
99642 2005-02-22  Jim Meyering  <jim@meyering.net>
99644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
99645         s/ifndef/ifdef/.
99647 2005-02-20  Neil Conway  <neilc@samurai.com>
99649         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
99650         returned by OSX/Darwin if the specified buffer is not large
99651         enough for the hostname.
99653 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99655         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
99656         pass it to _help, otherwise the latter coredumps trying to
99657         dereference state.root_argp.
99659 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
99661         * modules/chdir-long (Depends-on): Add memrchr.
99662         * modules/memrchr (Files): Add lib/memrchr.h.
99663         (Include): "memrchr.h".
99665 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
99667         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
99669 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
99671         * lib/memrchr.h: New file.
99672         * lib/chdir-long.c: Include it.
99673         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
99674         Don't bother including stddef.h.
99676 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
99678         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
99679         inclusion.
99680         Include <sys/types.h>, for dev_t.
99681         (ME_DUMMY, ME_REMOTE): Move from here....
99682         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
99683         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
99684         Dmitry V. Levin.
99685         Include mountlist.h first, to test the interface.
99687 2005-01-29  Bruno Haible  <bruno@clisp.org>
99689         * lib/progname.c (program_name): Initialize.
99690         Needed when linking statically on MacOS X.
99692 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
99694         Sync from coreutils.
99695         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
99696         (Depends-on): Add c-strtod.
99697         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
99699 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
99701         Sync from coreutils.
99702         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
99704         Remove files that are specific to coreutils.
99705         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
99707 2005-01-28  Bruno Haible  <bruno@clisp.org>
99709         * modules/javacomp: New file.
99710         * MODULES.html.sh (Java): Add javacomp.
99712 2005-01-28  Bruno Haible  <bruno@clisp.org>
99714         * m4/javacomp.m4: New file, from GNU gettext.
99716 2005-01-28  Bruno Haible  <bruno@clisp.org>
99718         * lib/javacomp.sh.in: New file, from GNU gettext.
99719         * lib/javacomp.h: New file, from GNU gettext.
99720         * lib/javacomp.c: New file, from GNU gettext.
99722 2005-01-26  Simon Josefsson  <jas@extundo.com>
99724         * lib/gai_strerror.c: Use GPL in header.
99726 2005-01-26  Bruno Haible  <bruno@clisp.org>
99728         * modules/javaexec: New file.
99729         * MODULES.html.sh (Java): Add javaexec.
99731 2005-01-26  Bruno Haible  <bruno@clisp.org>
99733         * m4/javaexec.m4: New file, from GNU gettext.
99735 2005-01-26  Bruno Haible  <bruno@clisp.org>
99737         * lib/javaexec.sh.in: New file, from GNU gettext.
99738         * lib/javaexec.h: New file, from GNU gettext.
99739         * lib/javaexec.c: New file, from GNU gettext.
99741 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99743         * modules/lchown (Depends-on): Remove lchown.h
99745 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99747         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
99748         must be defined if the header file was not found, in order
99749         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
99751 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99753         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
99754         initializers for struct pentry_state.
99755         (__argp_error): Check return value of __asprintf
99756         (__argp_failure): Translate error message
99758         * lib/argp-parse.c: Removed braces around the expansion of N_()
99760 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99762         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
99763         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
99764         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
99765         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
99766         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
99767         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
99768         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
99769         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
99770         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
99771         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
99772         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
99773         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
99774         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
99775         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
99776         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
99777         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
99778         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
99779         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
99780         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
99781         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
99782         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
99783         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
99784         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
99785         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
99786         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
99787         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
99788         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
99789         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
99790         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
99791         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
99792         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
99793         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
99794         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
99795         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
99796         xstrtol.m4, xstrtoumax.m4, yesno.m4:
99797         Use an all-permissive copyright notice, recommended by RMS.
99799 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
99801         * modules/chdir-long (Depends-on): Remove mempcpy.
99803 2005-01-21  Jim Meyering  <jim@meyering.net>
99805         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
99806         same value as for Solaris 9.
99808         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
99809         component length.  This included changing the parameter to be
99810         of type `char *' rather than `char const *'.
99811         * lib/chdir-long.h (chdir_long): Update prototype.
99813         * lib/openat.c (fdopendir, fstatat): New functions.
99814         * lib/openat.h: Include headers required for use of DIR and struct
99815         stat.
99816         [AT_SYMLINK_NOFOLLOW]: Define.
99817         (fdopendir, fstatat): Add prototypes.
99819 2005-01-21  Bruno Haible  <bruno@clisp.org>
99821         * modules/classpath: New file.
99822         * MODULES.html.sh (Java): Add classpath.
99824 2005-01-21  Bruno Haible  <bruno@clisp.org>
99826         * lib/classpath.h: New file, from GNU gettext.
99827         * lib/classpath.c: New file, from GNU gettext.
99829 2005-01-20  Simon Josefsson  <jas@extundo.com>
99831         * modules/version-etc-fsf: New file.
99833 2005-01-20  Simon Josefsson  <jas@extundo.com>
99835         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
99836         * lib/version-etc.c: Remove version_etc_copyright.
99837         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
99838         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
99840 2005-01-20  Simon Josefsson  <jas@extundo.com>
99842         * lib/base64.h (isbase64): Add.
99844         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
99845         using a unsigned prototype, don't inline.
99846         (base64_decode): Use it.
99848 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99850         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
99851         it.
99853 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99855         * lib/save-cwd.c (save_cwd): Remove code to support the case
99856         where fchdir is missing or flaky.
99858 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99860         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
99862 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
99864         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
99865         AC_LIBSOURCES now does this.
99866         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
99867         with new ullong_max module.
99869 2005-01-19  Bruno Haible  <bruno@clisp.org>
99871         * modules/sh-quote: New file.
99872         * MODULES.html.sh (Executing programs): Add sh-quote.
99874 2005-01-19  Bruno Haible  <bruno@clisp.org>
99876         * lib/sh-quote.h: New file, from GNU gettext.
99877         * lib/sh-quote.c: New file, from GNU gettext.
99879 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
99881         Merge from coreutils.
99882         * m4/ullong_max.m4: New file.
99883         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
99884         (gl_MACROS): Assume localeconv exists.
99886 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
99888         Merge changes from coreutils, as described below in several
99889         changelogs dated today.
99891         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
99892         (O_DIRECTORY): Remove; not needed here, since "." must be
99893         a directory.  All uses removed.
99894         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
99895         universal on Suns, and we also need to test for IRIX.
99896         Revamp code to use 'if' rather than '#if'.
99897         Avoid unnecessary comparison of cwd->desc to 0.
99899         * lib/utimens.c (futimens): Robustify the previous patch, by checking
99900         for known valid error numbers rather than observed invalid ones.
99902 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
99904         * modules/ullong_max: New file.
99906         * modules/chdir-long, modules/openat: New files.
99907         * modules/save-cwd (Depends-on): Depend on chdir-long.
99908         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
99910 2005-01-18  Jim Meyering  <jim@meyering.net>
99912         Merge from coreutils.
99913         * m4/chdir-long.m4, m4/openat.m4: New files.
99914         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
99915         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
99916         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
99917         is sane and DOES follow symlinks.  Besides, testing 20 different
99918         systems found no broken chown implementations.
99919         Prompted by a change in rsync's copy of this macro.
99920         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
99922         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
99924         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
99925         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
99926         NULL-means-set-to-current-time semantics.
99927         Remove temporary file immediately, rather than waiting
99928         for configure's at-exit trap code to do it.
99930 2005-01-18  Jim Meyering  <jim@meyering.net>
99932         * lib/version-etc.c (version_etc_copyright): Update copyright date.
99934         * lib/utimens.c (futimens): Account for the fact that futimes
99935         can also fail with errno == ENOSYS or errno == ENOENT.
99936         Patch from Dmitry V. Levin.
99938         Change the name of the robust chdir function from chdir to chdir_long.
99939         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
99940         (restore_cwd): Use chdir_long, not chdir.
99941         * lib/chdir-long.c: Renamed from chdir.c.
99942         * lib/chdir-long.h: Renamed from chdir.h.
99943         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
99944         Hurd.
99946 2005-01-18  Bruno Haible  <bruno@clisp.org>
99948         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
99949         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
99950         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
99951         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
99952         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
99953         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
99954         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
99955         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
99956         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
99957         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
99958         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
99959         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
99960         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
99961         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
99962         Use an all-permissive copyright notice, recommended by RMS.
99964 2005-01-18  Bob Proulx  <bob@proulx.com>
99966         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
99967         simplify offsetof() macro construct to avoid compile failure with
99968         native HP-UX 11.0 ANSI C compiler.
99970 2005-01-17  Bruno Haible  <bruno@clisp.org>
99972         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
99973         redundant because stpncpy.m4 takes care of it.
99975 2005-01-17  Bruno Haible  <bruno@clisp.org>
99977         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
99979 2005-01-17  Bruno Haible  <bruno@clisp.org>
99981         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
99982         used.
99984 2005-01-17  Bruno Haible  <bruno@clisp.org>
99986         * lib/fwriteerror.h (fwriteerror): Change specification to include
99987         fclose.
99988         * lib/fwriteerror.c: Include <stdbool.h>.
99989         (fwriteerror): At the end, close the file stream. Record whether
99990         stdout was already closed.
99992 2005-01-17  Bruno Haible  <bruno@clisp.org>
99994         * lib/execute.c (environ): Declare if needed.
99995         * lib/pipe.c (environ): Likewise.
99996         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
99998 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100000         * modules/argp: Depend on vsnprintf
100002 2005-01-10  Jim Meyering  <jim@meyering.net>
100004         * modules/closeout (Depends-on): Add atexit.
100006 2005-01-06  Bruno Haible  <bruno@clisp.org>
100008         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
100010 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100012         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
100013         definitions to be after all include files, to avoid collisions.
100014         Problem reported by Bob Proulx.
100016 2005-01-04  Jim Meyering  <jim@meyering.net>
100018         Changes imported from coreutils.
100019         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
100020         as the mkstemp template, use a temporary directory and an
100021         8.3-friendly template to avoid trouble on systems like DJGPP.
100022         Reported by Juan M. Guerrero via Stepan Kasal.
100023         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
100024         close. Remove the temporary directory right away, rather than waiting
100025         for configure's at-exit trap code to do it.
100026         Suggestion from Stepan Kasal.
100028 2005-01-01  Simon Josefsson  <jas@extundo.com>
100030         * gnulib-tool: Print #include directives when --import'ing.
100032 2004-12-28  Simon Josefsson  <jas@extundo.com>
100034         * tests/test-base64.c: Include required header files.  Remove
100035         unused variables.
100037 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
100039         * modules/error (Depends-on): Remove gettext.
100041 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
100043         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
100044         not needed.  This removes a dependency on the gettext module.
100045         [defined _LIBC]: Do not include <libintl.h>; not needed.
100047 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
100049         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
100050         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
100052 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
100054         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
100055         HAVE_DECL_STRTOLD.
100057 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100059         * modules/getdate (Depends-on): Remove alloca-opt.
100061 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100063         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
100065 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100067         * lib/argp-parse.c: Include <stddef.h>.
100068         (alignof, alignto): New macros.
100069         (parser_init): Don't assume that void * is aligned sufficiently
100070         for struct option.
100072         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
100073         need to extend the stack.
100074         (YYINITDEPTH): New macro, so that the initial stack isn't overly
100075         large.
100077 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100079         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
100081 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
100083         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
100084         (2004-10-24) change.  Apparently this was a false alarm.
100086         * modules/getdate: Depend on alloca-opt, not alloca.
100088 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
100090         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
100091         Remove now-obsolete comment about AIX.
100092         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
100093         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
100094         (YYMAXDEPTH): New macro.
100096 2004-12-18  Simon Josefsson  <jas@extundo.com>
100098         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
100100 2004-12-18  Bruno Haible  <bruno@clisp.org>
100102         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
100104 2004-12-18  Bruno Haible  <bruno@clisp.org>
100106         * lib/fatal-signal.c (fatal_signals): Make non-const.
100107         (init_fatal_signals): New function.
100108         (uninstall_handlers, install_handlers): Ignore signals that were set to
100109         SIG_IGN.
100110         (at_fatal_signal): Call init_fatal_signals.
100111         (init_fatal_signal_set): Likewise. Ignore signals that were set to
100112         SIG_IGN.
100113         Reported by Paul Eggert.
100115 2004-12-18  Bruno Haible  <bruno@clisp.org>
100117         * doc/alloca.texi: New file.
100118         * doc/alloca-opt.texi: New file.
100120 2004-12-17  Jim Meyering  <jim@meyering.net>
100122         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
100123         Otherwise, install-sh could exit with improper exit status when
100124         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
100126 2004-12-16  Simon Josefsson  <jas@extundo.com>
100128         * tests/test-base64.c: Add license.
100130 2004-12-15  Stepan Kasal  <address@hidden>
100132         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
100134 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
100136         * modules/getcwd (Files): Add m4/d-ino.m4.
100137         Suggested by Mark D. Baushke.
100139 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
100141         * lib/getdate.y (textint): New member "negative".
100142         (time_zone_hhmm): New function.
100143         Expect 14 shift-reduce conflicts, not 13.
100144         (o_colon_minutes): New rule.
100145         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
100146         (yylex): Set the "negative" member of signed numbers.
100148 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
100150         * doc/getdate.texi (Time of day items, Time zone items):
100151         Describe new formats +00:00, UTC+00:00.
100153 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100155         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
100156         spurious "-l"s.  Problem reported by Stepan Kasal.
100158 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
100160         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
100161         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
100163 2004-12-04  Simon Josefsson  <jas@extundo.com>
100165         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
100166         Vandoorselaere <yoann@prelude-ids.org>.
100168 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
100170         Changes imported from coreutils.
100171         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
100172         exist.
100173         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
100175 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
100177         Changes imported from coreutils.
100178         * lib/hard-locale.c: Assume <locale.h> exists.
100179         Include "strdup.h".
100180         (GLIBC_VERSION): New macro.
100181         (hard_locale): Assume setlocale exists.
100182         Rewrite to avoid #ifdef.
100183         Use strdup rather than malloc + strcpy.
100184         * lib/human.c: Assume <locale.h> exists.
100185         (human_readable): Assume localeconv exists.
100187 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
100189         * modules/hard-locale (Depends-on): Add strdup.
100191 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
100193         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
100194         convert T2, not T.  (Imported from libc.)
100196 2004-11-30  Simon Josefsson  <jas@extundo.com>
100198         * modules/restrict (License): Change to LGPL.
100200 2004-11-30  Simon Josefsson  <jas@extundo.com>
100202         * m4/restrict.m4: Add copyright and copying conditions.
100204 2004-11-30  Simon Josefsson  <jas@extundo.com>
100206         * m4/base64.m4: New file.
100208 2004-11-30  Simon Josefsson  <jas@extundo.com>
100210         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
100211         base64.
100213         * tests/test-base64.c: New file.
100215         * modules/base64: New file.
100217 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
100219         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
100220         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
100222         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
100224 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
100226         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
100227         (__getcwd.c): Don't restore errno; glibc doesn't.
100228         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
100229         first, falling back to our code only if its results look suspicious.
100230         Ensure that the resulting buffer is only as large as necessary.
100232         * lib/readutmp.c: Include readutmp.h first.
100233         Include <errno.h>, since readutmp.h no longer does that.
100234         * lib/readutmp.h: Don't include <errno.h>,
100235         <sys/param.h>, <time.h>; not needed to establish interface.
100236         (errno): Remove decl.
100237         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
100238         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
100239         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
100241 2004-11-28  Simon Josefsson  <jas@extundo.com>
100243         * lib/base64.h, base64.c: New file.
100245 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
100247         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
100249 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
100251         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
100252         (Depends-on): Remove pathmax, same.  Add mempcpy.
100253         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
100254         (Makefile.am): Append getcwd.h to lib_SOURCES.
100255         (Include): Add getcwd.h.
100256         (Maintainer): Change from Jim Meyering to "all, glibc",
100257         since getdate now uses intended-for-glibc code.
100258         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
100259         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
100261 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100263         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
100264         HP's ANSI C compiler.
100265         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
100266         Declaring int functions causes warnings on some modern systems and
100267         shouldn't be needed to compile on ancient ones.
100268         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
100269         defined.
100271         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
100272         with the following changes.
100273         (__set_errno): Parenthesize properly.
100274         Include <stdbool.h>.
100275         (MIN, MAX, MATCHING_INO): New macros.
100276         (__getcwd): Define with prototype, not K&R form.
100277         Use heuristics to allocate default buffer on stack if possible.
100278         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
100279         behavior, and to avoid the PATH_MAX limit when computing
100280         ../../../../...
100281         Use MATCHING_INO to compare inode number to file.
100282         Check for arithmetic overflow in size calculations.
100283         Fix bug in reallocation of dot array that caused getcwd to fail
100284         on directories nested deeper than 75.
100285         Be more careful about saving errno on error.
100286         Do not use realloc; use only free+malloc, as this is a bit
100287         more flexible and avoids a needless copy operation.
100288         Do not inspect st_dev and st_ino for symbolic links; POSIX
100289         doesn't specify the latter.
100290         Check for closedir errors.
100291         Avoid needless casts.
100292         Use "#ifdef weak_alias" around weak_alias, to be like other
100293         glibc code.
100294         The following changes to getcwd.c have effect only when used in
100295         gnulib; they have no effect inside glibc proper.
100296         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
100297         as alloca isn't used.
100298         (alloca, __alloca): Likewise.
100299         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
100300         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
100301         unconditionally, as gnulib assumes C89 or better.
100302         Do not include <sys/param.h>.
100303         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
100304         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
100305         better.
100306         (NULL) [!defined NULL]: Remove; we assume C89 or better.
100307         Include <dirent.h> in a way that is compatible with modern Autoconf.
100308         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
100309         New macros, if not already defined.
100310         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
100311         Use "_LIBC", not "defined _LIBC", for consistency.
100312         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
100313         a mempcpy module.
100314         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
100315         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
100316         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
100317         credit only to Jim Meyering and adjust the copyright dates.
100318         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
100319         <stdlib.h>, <unistd.h>, "pathmax.h".
100320         Instead, include "xgetcwd.h" (first) and "getcwd.h".
100321         (INITIAL_BUFFER_SIZE): Remove.
100322         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
100324 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100326         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
100327         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
100328         Use the _ONCE methods, for efficiency.
100329         Check for fcntl.h.  In test program, include <errno.h>
100330         and <fcntl.h> if available.  Remove old K&R cruft from
100331         test program.  Check for common errors in GNU/Linux,
100332         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
100333         don't do AC_LIBOBJ, as that's getcwd.m4's job.
100334         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
100335         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
100336         name accordingly.
100337         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
100338         accommodate new getcwd.c.
100339         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
100340         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
100341         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
100342         that's all we need now.
100344 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100346         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
100347         argp-parse.c depends on getopt internals, that means we should
100348         always use our getopt, to be on the safe side.
100349         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
100350         order not to spoil the result of an eventual previous invocation
100351         of gl_GETOPT_SUBSTITUTE.
100353 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100355         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
100356         redefinition warnings. To avoid them, include the defines
100357         in `#if !defined __need_getopt ... #endif'. The only place
100358         where __getopt_argv_const is used is in definitions
100359         of getopt_long and getopt_long_only below, which are as well
100360         protected by `#ifndef __need_getopt'.
100361         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
100362         __need_getopt after including <stdio.h> and <unistd.h> These
100363         headers might have defined it.
100365 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
100367         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
100369 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
100371         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
100372         (futimens): New function, which uses futimes if available.
100373         (futimens, utimens): Support timespec==NULL, with same semantics
100374         as utime and utimens.
100375         * lib/utimens.h (futimens): New decl.
100377 2004-11-23  Jim Meyering  <jim@meyering.net>
100379         * lib/getopt_.h: Remove trailing blanks.
100381 2004-11-23  Jim Meyering  <jim@meyering.net>
100383         * lib/__fpending.c: Add comment.
100385 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
100387         * modules/canonicalize (Depends-on): Add xreadlink.
100388         Problem reported by James Youngman.
100390 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
100392         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
100393         New macros.
100394         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
100395         optopt): Use them instead of invoking ## directly; otherwise, the
100396         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
100398 2004-11-19  Bruno Haible  <bruno@clisp.org>
100400         * lib/strtok_r.c: Move comments from here...
100401         * lib/strtok_r.h: ... to here.
100403 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
100405         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
100406         implementations that mishandle size_t overflow.
100408 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
100410         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
100411         might fail.  Problem reported by Yoann Vandoorselaere.
100412         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
100413         implementations that mishandle size_t overflow.
100415 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
100417         * modules/canon-host (Depends-on): Add strdup.
100419 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
100421         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
100423 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
100425         * lib/canon-host.c: Include "strdup.h".
100426         (canon_host): Use getaddrinfo if available, so that IPv6 works.
100427         Use strdup instead of malloc/strcpy to duplicate strings.
100429         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
100430         (human_space_before_unit): New constant.
100431         * lib/human.c (human_readable): Support it.
100433         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
100434         (xgetcwd): Set errno correctly when failing.
100435         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
100436         the failure is actually due to a PATH_MAX problem.
100438         Further getopt changes to make it more likely that glibc will
100439         buy the changes back.
100440         * lib/getopt.c (POSIXLY_CORRECT): New constant.
100441         (getopt): Use it, so to preserve glibc semantic
100442         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
100443         when compiling for libc.
100444         * lib/getopt_.h (__getopt_argv_const): Bring it back.
100445         (getopt_long, getopt_long_only): Use it.
100447         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
100448         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
100449         (getopt): Argv is now char * const *, as per standard.
100450         (_getopt_internal_r, _getopt_internal): Argv is now char **,
100451         not char *__getopt_argv_const *.
100452         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
100453         _getopt_long_only_r): Likewise.
100454         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
100455         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
100456         _getopt_long_r, _getopt_long_only_r): Likewise.
100457         * lib/getopt_.h (__getopt_argv_const): Remove.
100458         (getopt): Argv is now char * const *, as per standard.
100460         * lib/getdate.y (tORDINAL): New token.
100461         (day, relunit): Allow it for relative times.
100462         (relative_time_table): Use tORDINAL for ordinals.
100464 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
100466         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
100467         Document that "second" isn't allowed as an ordinal number.
100469 2004-11-16  Jim Meyering  <jim@meyering.net>
100471         * modules/closeout (Depends-on): Add fpending.
100473 2004-11-15  Jim Meyering  <jim@meyering.net>
100475         * lib/closeout.c: Include "__fpending.h" once again.
100476         Include <stdbool.h>.
100477         (close_stdout): Don't fail just because stdout was closed initially,
100478         since some programs don't write to stdout in the normal course of
100479         operation (other than --version and --help), and we don't want this
100480         function to make e.g. `touch file >&-' fail.
100481         But do fail if it was closed and someone has tried to write to it.
100482         E.g., `printf foo >&-' must fail.
100484 2004-11-13  Jim Meyering  <jim@meyering.net>
100486         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
100488 2004-11-12  Simon Josefsson  <jas@extundo.com>
100490         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
100491         small doc fix is still pending.
100493 2004-11-11  Simon Josefsson  <jas@extundo.com>
100495         * modules/strtok_r: New file.
100497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100498         strtok_r.
100500 2004-11-11  Simon Josefsson  <jas@extundo.com>
100502         * m4/strtok_r.m4: New file.
100504         * m4/getopt.m4: Replace opterr.
100506 2004-11-11  Simon Josefsson  <jas@extundo.com>
100508         * lib/strtok_r.h, strtok_r.c: New file.
100510 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
100512         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
100513         of replacing opterr, getopt, etc.  This should handle the
100514         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
100516 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
100518         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
100519         we can stop lying to compilers about the constness of argv when we
100520         are compiled outside glibc.
100521         (getopt, getopt_long, getopt_long_only): Use it.
100522         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
100523         _getopt_internal, getopt): Likewise.
100524         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
100525         _getopt_long_only_r): Likewise.
100526         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
100527         _getopt_long_r, _getopt_long_only_r): Likewise.
100529         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
100530         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
100531         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
100532         the other external symbols.
100533         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
100534         declaration, since the above renaming now works around collisions.
100536 2004-11-11  Jim Meyering  <jim@meyering.net>
100538         * lib/linebreak.c: Remove trailing blanks.
100539         * lib/alloca_.h: Likewise.
100540         * lib/acosl.c: Likewise.
100541         * lib/euidaccess.c: Likewise.
100542         * lib/allocsa.h: Likewise.
100544 2004-11-10  Simon Josefsson  <jas@extundo.com>
100546         * m4/getaddrinfo.m4: New file.
100548 2004-11-10  Simon Josefsson  <jas@extundo.com>
100550         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
100552 2004-11-10  Simon Josefsson  <jas@extundo.com>
100554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100555         getaddrinfo.
100557         * modules/getaddrinfo: New file.
100559 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100561         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
100563 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100565         * lib/mktime.c (SHR): New macro, which is a portable
100566         substitute for >> that should work even on Crays.
100567         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
100568         Problem reported by Mark D. Baushke in
100569         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
100570         * lib/getdate.y (SHR): Likewise.
100571         (tm_diff): Use it.
100572         * lib/strftime.c (SHR): Likewise.
100573         (tm_diff): Use it.
100574         * lib/quotearg.c (struct quoting_options): Use unsigned int for
100575         quote_these_too, so that right shifts are well defined.  All uses
100576         changed.
100578 2004-11-10  Jim Meyering  <jim@meyering.net>
100580         Ensure that no close failure goes unreported.
100581         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
100582         return early when it seems there's nothing to flush.
100583         Don't include __fpending.h.
100585 2004-11-10  Jim Meyering  <jim@meyering.net>
100587         * modules/closeout (Depends-on): Remove fpending.
100589 2004-11-10  Jim Meyering  <jim@meyering.net>
100591         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
100593 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100595         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
100596         gl_FUNC_STRFTIME.
100597         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
100598         and AC_REQUIRE when possible, to avoid duplicate checks.
100599         Check for <wchar.h>.
100601 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
100603         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
100605 2004-11-09  Bruno Haible  <bruno@clisp.org>
100607         * m4/sockpfaf.m4: New file.
100609 2004-11-05  Bruno Haible  <bruno@clisp.org>
100611         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
100612         Reported by Mark D. Baushke <mdb@cvshome.org>.
100614 2004-11-04  Bruno Haible  <bruno@clisp.org>
100616         2004-09-11  Bruno Haible  <bruno@clisp.org>
100617                 * allocsa.valgrind: New file.
100618         2004-02-06  Bruno Haible  <bruno@clisp.org>
100619                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
100620                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
100621                 Reported by Christopher Seip <chris.seip@hp.com>.
100623 2004-11-04  Bruno Haible  <bruno@clisp.org>
100625         * modules/allocsa (Files): Add lib/allocsa.valgrind.
100626         (Makefile.am): Distribute it.
100628 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
100630         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
100631         with errno == ERANGE if the buffer is too small.
100632         Problem reported by Mark D. Baushke.
100634 2004-11-03  Albert Chin  <china@thewrittenword.com>
100635             Paul Eggert  <eggert@cs.ucla.edu>
100637         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
100638         equivalent, substitute $ac_type for equivalent type rather than
100639         blindly using uint32_t *always* which won't work if uint32_t is not
100640         available.  Define _UINT32_T to work around typedef of uint32_t if
100641         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
100642         2.5.1.
100644 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
100646         * m4/jm-macros.m4: Sync from coreutils.
100647         (gl_MACROS): Check for mbrlen, for pathchk.
100648         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
100650 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
100652         * lib/xreadlink.c (MAXSIZE): New macro.
100653         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
100654         size does not exceed MAXSIZE.  Avoid cast.
100655         As suggested by Mark D. Baushke in
100656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
100657         if readlink fails with buffer size just under MAXSIZE, try again
100658         with MAXSIZE.
100660 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
100662         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
100664 2004-11-02  Derek R. Price  <derek@ximbiot.com>
100665         and  Paul Eggert  <eggert@cs.ucla.edu>
100667         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
100668         (get_date): Overparenthesize to avoid GCC warning.
100670 2004-11-02  Bruno Haible  <bruno@clisp.org>
100672         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
100673         returns void.
100675 2004-11-02  Bruno Haible  <bruno@clisp.org>
100677         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
100678         function returns void.
100680 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
100682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
100683         fflush_unlocked, flockfile, funlockfile, funlockfile,
100684         fputs_unlocked, putc_unlocked.
100686 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
100688         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
100689         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
100690         already declared.
100692 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100694         * modules/getdate (Files): Add doc/getdate.texi.
100695         (Depends-on): Add setenv, xalloc.
100697 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100699         * lib/getdate.y: Add support for TZ="foo" within a date string.
100700         Fix some bugs near time_t boundaries.  Reject dates with
100701         out-of-range components, e.g., "Sept 31".
100702         Include <stdlib.h>, "setenv.h", "xalloc.h".
100703         (ISDIGIT_LOCALE): Remove; unused.
100704         Note that the TZ and time functions used here are not reentrant.
100705         (mktime_ok, get_tz): New functions.
100706         (TZBUFSIZE): New constant.
100707         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
100708         This requires that we sometimes generate our own TZ="XXX..." setting.
100710 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100712         * doc/getdate.texi: New file, from coreutils with modifications for
100713         the new TZ parsing.
100715 2004-10-27  Derek R. Price  <derek@ximbiot.com>
100717         * lib/mktime.c (not_equal_tm): Remove redundant check.
100719 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100721         * modules/regex (lib_SOURCES): Add regex.c.
100722         Reported by James Youngman in
100723         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
100725 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100727         * lib/getdate.y: Use Bison 1.875 features, and some minor
100728         code cleanups.  This change does not affect semantics.
100729         Don't include <stdlib.h>; no longer needed.
100730         Don't include unlocked-io.h; only the "#if TEST" code uses
100731         stdio, and performance isn't crucial there.
100732         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
100733         Bison 1.875 features as described below.
100734         All uses of "PC." replaced by "pc->".
100735         (YYSTYPE): Add a forward declaration.
100736         (yylex, yyerror): Use full prototypes in forward decls.
100737         Use "%pure-parser" rather than obsolescent "%pure_parser".
100738         Use %parse-param and %lex-param instead of obsolescent
100739         YYPARSE_PARAM and YYLEX_PARAM.
100740         (meridian_table, month_and_day_table, time_units_table,
100741         relative_time_table, time_zone_table, military_table,
100742         lookup_zone, lookup_word, get_date):
100743         Use NULL instead of 0 where appropriate.
100744         (to_hour): Avoid abort (), to avoid a dependency on
100745         stdlib.h.
100746         (yyerror, yylex): Now accepts parser_control * arg.
100747         (main) [TEST]: Use '\0' rather than 0 for char.
100749 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100751         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
100753 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100755         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
100756         It's now the caller's responsibility to handle the case where
100757         !HAVE_GETPAGESIZE && !defined getpagesize.
100759         * lib/mktime.c (leapyear): Arg is long int, not int.
100761 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
100763         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
100765 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100767         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
100768         missing.  Problem reported by James Youngman.
100770 2004-10-16  Simon Josefsson  <jas@extundo.com>
100772         * gnulib-tool: Fix comments.  Fix parse problem.
100773         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
100775 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
100777         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
100778         implementation of getopt_long.  Problem reported by Alexander Taler in:
100779         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
100781 2004-10-15  Bruno Haible  <bruno@clisp.org>
100783         * gnulib-tool: Untabify. Initialize supplied_libname.
100784         (func_usage): More homogenous output.
100785         (func_modules_transitive_closure, func_modules_to_filelist,
100786         func_emit_lib_Makefile_am): New functions.
100787         (func_import): New function, extracted from big case statement. Use
100788         func_get_license, func_modules_transitive_closure,
100789         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
100790         opt_lgpl. Don't use test -a, as it's not portable.
100791         (func_create_testdir): Use func_modules_transitive_closure,
100792         func_modules_to_filelist, func_emit_lib_Makefile_am.
100794 2004-10-15  Bruno Haible  <bruno@clisp.org>
100796         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
100798 2004-10-15  Bruno Haible  <bruno@clisp.org>
100800         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
100801         the portions belonging to each module.
100802         Suggested by Derek Robert Price <derek@ximbiot.com>.
100804 2004-10-12  Simon Josefsson  <jas@extundo.com>
100806         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
100807         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
100808         to real functions.
100810 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100812         * modules/vsnprintf: New file.
100814 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100816         * m4/vsnprintf.m4: New file.
100818 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100820         * lib/vsnprintf.h: New file.
100821         * lib/vsnprintf.c: New file.
100823 2004-10-11  Bruno Haible  <bruno@clisp.org>
100825         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
100826         vsnprintf.
100828 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100830         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
100832 2004-10-07  Bruno Haible  <bruno@clisp.org>
100834         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
100835         fits into the provided buffer.
100837 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
100839         * lib/diacrit.c, diacrit.h: Add GPL notice.
100841         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
100842         notice.
100843         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
100844         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
100845         This avoids a potential constant-folding bug.
100847 2004-10-05  Bruno Haible  <bruno@clisp.org>
100849         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
100850         for the declaration of strsep.
100852 2004-10-05  Bruno Haible  <bruno@clisp.org>
100854         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
100856 2004-10-04  Simon Josefsson  <jas@extundo.com>
100858         * modules/memmem: New file.
100859         * tests/test-memmem.c: New file.
100860         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
100862 2004-10-04  Simon Josefsson  <jas@extundo.com>
100864         * m4/memmem.m4: New file.
100866 2004-10-04  Simon Josefsson  <jas@extundo.com>
100868         * lib/memmem.h: New file.
100869         * lib/memmem.c: New file, taken from glibc.
100871 2004-10-04  Simon Josefsson  <jas@extundo.com>
100873         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
100874         '#ifdef USE_UNLOCKED_IO'.
100876 2004-10-04  Simon Josefsson  <jas@extundo.com>
100878         * config/srclist.txt: Add memmem from glibc.
100880 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100882         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
100884         * modules/argmatch, modules/argp, modules/closeout, modules/error,
100885         modules/exclude, modules/getdate, modules/getline,
100886         modules/getndelim2, modules/getpass, modules/getpass-gnu,
100887         modules/getusershell, modules/linebuffer, modules/md5,
100888         modules/mountlist, modules/posixtm, modules/readtokens,
100889         modules/readutmp, modules/regex, modules/sha1,
100890         modules/version-etc, modules/yesno:
100891         Remove dependency on unlocked-io.
100893 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100895         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
100897         * m4/unlocked-io.m4: Add copyright notice.
100898         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
100900 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100902         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
100903         * lib/xmalloc.c (xmemdup): Likewise.
100904         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
100905         XFREE): Remove these long-obsolescent macros.
100906         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
100907         * lib/xstrdup.c: Remove.
100909         * lib/regex.c (re_comp): Cast gettext return value to char *,
100910         Problem reported by Martin Neitzel via Mark D. Baushke.
100912 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100914         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
100915         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
100916         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
100917         regex.c, sha1.c, version-etc.c, yesno.c:
100918         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
100919         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
100920         the includer's responsibility.
100922         Sync from coreutils.
100924         * lib/modechange.c (mode_compile): Don't decrement a pointer that
100925         points to the start of a string, as the C Standard says the
100926         resulting behavior is undefined.
100928         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
100929         simple -> simple_backups, numbered_existing ->
100930         numbered_existing_backups, numbered -> numbered_backups
100931         to avoid shadowing problems.  All uses changed.
100932         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
100933         * lib/backupfile.c (check_extension, numbered_backup):
100934         Rename locals to avoid shadowing 'basename'.
100935         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
100936         once.
100938         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
100939         * lib/.cvsignore: Add getopt.h.
100941 2004-10-04  Bruno Haible  <bruno@clisp.org>
100943         * modules/README: New file.
100944         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
100945         not a module.
100947 2004-10-02  Jim Meyering  <jim@meyering.net>
100949         * lib/dirfd.h, getpagesize.h: Add copyright notice.
100951 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100953         * modules/strsep: New file.
100955 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100957         * m4/strsep.m4: New file.
100959 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100961         * lib/strsep.h: New file.
100962         * lib/strsep.c: New file.
100964 2004-10-01  Simon Josefsson  <jas@extundo.com>
100966         * lib/snprintf.c (snprintf): Handle size==0.
100968 2004-10-01  Simon Josefsson  <jas@extundo.com>
100969             Bruno Haible  <bruno@clisp.org>
100971         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
100972         (snprintf): Declare 'args'.
100974 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
100976         * lib/snprintf.c: Remove comments as to why each header is needed.
100978 2004-10-01  Bruno Haible  <bruno@clisp.org>
100980         * MODULES.html.sh: Add strsep.
100982 2004-09-30  Simon Josefsson  <jas@extundo.com>
100984         * modules/snprintf: New file.
100986 2004-09-30  Simon Josefsson  <jas@extundo.com>
100988         * m4/snprintf.m4: New file.
100990 2004-09-30  Simon Josefsson  <jas@extundo.com>
100992         * lib/snprintf.h, lib/snprintf.c: New files.
100994 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100996         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
100997         (hol_entry_help): Never translate an empty string.
100998         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
100999         * lib/argp.h (OPTION_NO_TRANS): New option.
101001 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101003         * modules/argp (Maintainer): Replace Simon Josefsson
101004         by Sergey Poznyakoff.
101006 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101008         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
101009         changes merged back into glibc.
101011 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101013         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
101015 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101017         * lib/xvasprintf.c: Include xalloc.h.
101018         (xvasprintf): Use xalloc_die, not xmalloc_die.
101020 2004-09-29  Bruno Haible  <bruno@clisp.org>
101022         * modules/alloca-opt: New file, derived from modules/alloca.
101023         * modules/allocsa: Depend on alloca-opt instead of alloca.
101024         * modules/setenv: Likewise.
101025         * modules/vasnprintf: Likewise.
101026         * MODULES.html.sh: Add alloca-opt.
101028 2004-09-28  Simon Josefsson  <jas@extundo.com>
101030         * gnulib-tool: New parameter --lgpl, to asseert that modules are
101031         LGPL, and to replace license template from GPL to LGPL.
101033 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
101035         * modules/dummy: Change license to LGPL.
101037 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
101039         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
101041 2004-09-24  Simon Josefsson  <jas@extundo.com>
101043         * modules/minmax (License): Change from GPL to LGPL.
101045 2004-09-23  Simon Josefsson  <jas@extundo.com>
101047         * gnulib-tool (--import): Typo.
101049 2004-09-23  Simon Josefsson  <jas@extundo.com>
101051         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
101053 2004-09-22  Bruno Haible  <bruno@clisp.org>
101055         * modules/*: Add 'License' field.
101056         * gnulib-tool: Accept --extract-license option.
101057         (func_get_license): New function.
101059 2004-09-21  Bruno Haible  <bruno@clisp.org>
101061         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
101062         Reported by Simon Josefsson.
101064 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
101066         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
101067         gl_AC_TYPE_LONG_LONG.
101069 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
101071         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
101073 2004-09-18  Simon Josefsson  <jas@extundo.com>
101074         and  Paul Eggert  <eggert@cs.ucla.edu>
101076         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
101077         calls with autoreconf.  Define GL_LIB.
101079 2004-09-14  Karl Berry  <karl@gnu.org>
101081         * config/srclist.txt: unsync setenv.c, sigh.
101083 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
101085         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
101086         Problem reported by Bruno Haible in:
101087         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
101089 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
101091         * config/srclist.txt: Comment out argp-pvh.c.
101093 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
101095         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
101096         in case some system header has #define'd it.  Problem reported by
101097         Soeren D. Schulze in
101098         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
101100 2004-09-09  Karl Berry  <karl@gnu.org>
101102         * regex.[ch]: delete from the root.  These were supposed to be
101103                 synced with emacs cvs, but this has not happened for about
101104                 a year, and anyway nothing else uses emacs regex.[ch].
101105                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
101106                 lib/regex[.ch] is untouched.
101108 2004-09-09  Bruno Haible  <bruno@clisp.org>
101110         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
101112 2004-09-09  Bruno Haible  <bruno@clisp.org>
101114         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
101115         modifications.
101116         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
101118 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
101120         * modules/xvasprintf: New file.
101121         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
101123 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
101125         * lib/xvasprintf.h: New file.
101126         * lib/xvasprintf.c: New file.
101127         * lib/xasprintf.c: New file.
101129 2004-09-08  Bruno Haible  <bruno@clisp.org>
101131         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
101133 2004-09-08  Bruno Haible  <bruno@clisp.org>
101135         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
101136         length is > INT_MAX.
101137         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
101138         more.
101140 2004-09-08  Bruno Haible  <bruno@clisp.org>
101142         * lib/stdint_.h: New file, taken from GNU clisp.
101144 2004-09-08  Bruno Haible  <bruno@clisp.org>
101145             Oskar Liljeblad  <oskar@osk.mine.nu>
101147         * modules/stdint: New file.
101148         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
101150 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101152         Import from coreutils.
101153         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
101154         strings on unbounded length.  alloca's performance benefits aren't
101155         that important here.
101156         (V_STRDUP): Remove.
101157         (parse_with_separator): New function, with most of the internals
101158         of the old parse_user_spec.  Allow user to omit both user and group,
101159         for compatibility with FreeBSD.
101160         Clone only the user name, not the entire spec.
101161         Do not set *uid, *gid unless entirely successful.
101162         Avoid memory leak in some failing cases.
101163         Fix regression for USER.GROUP reported by Dmitry V. Levin in
101164         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
101165         (parse_user_spec): Rewrite to use parse_with_separator.
101167 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101169         * modules/userspec: Don't depend on alloca.
101171 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101173         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
101175 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
101177         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
101178         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
101179         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
101181 2004-08-16  Simon Josefsson  <jas@extundo.com>
101183         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
101184         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
101185         Add --dry-run for --import.
101186         Let user provided command line parameters override configure.ac
101187         settings.
101189 2004-08-12  Simon Josefsson  <jas@extundo.com>
101191         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
101192         as discussed with Paul Eggert in threads rooted at
101193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
101194         and
101195         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
101196         Before, the test was empty, and relied on ELIDE_CODE in source
101197         code.)
101198         (gl_PREREQ_GETOPT): New macro.
101199         (gl_GETOPT): Use them.
101201 2004-08-12  Simon Josefsson  <jas@extundo.com>
101203         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
101204         * lib/getopt_.h: Renamed from getopt.h.
101206 2004-08-12  Simon Josefsson  <jas@extundo.com>
101208         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
101209         Change default library name from libfoo to libgnu.
101210         Now, if you have a configure.ac that says:
101211                 gl_SOURCE_BASE(gl)
101212                 gl_M4_BASE(gl/m4)
101213                 gl_MODULES(error getopt etcetera)
101214                 gl_INIT
101215         you can import all you need by running:
101216                 ../gnulib/gnulib-tool --import
101218         * modules/getopt (Files): Rename getopt.h to getopt_.h.
101219         (Makefile.am): Rewrite, use logic from argz.
101220         (Include): Use <getopt.h> instead of "getopt.h".
101222 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101224         * modules/argp (Files): Add m4/unlocked-io.m4.
101225         (Depends-on): Add extensions.
101227 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101229         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
101230         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
101231         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
101232         Check for program_invocation_name, program_invocation_short_name,
101233         flockfile, funlockfile, features.h, _getopt_long_only_r.
101235 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101237         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
101238         its complicated substitute.
101239         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
101240         and program_invocation_name.
101241         (__argp_basename) [!_LIBC]: Remove; the only use was
101242         replaced by its body.
101243         (__argp_short_program_name): Change condition from
101244         !defined __argp_short_program_name to
101245         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
101246         to match argp-namefrob.h.
101247         (__argp_failure): Don't assume strerror_r returns char *.
101248         * lib/argp-parse.c (N_): Define unconditionally.
101249         (argp_default_options): Fill out initializers with 0 to avoid
101250         gcc warnings.
101252 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101254         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
101255         getopt1.c.
101257 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
101259         Merge from coreutils.
101261         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
101263         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
101264         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
101266 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
101268         Merge from coreutils.
101270         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
101271         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
101272         for Reliant Unix 5.43.
101274         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
101275         (union fooround): Use uintmax_t, not long int.
101276         The rest is a merge from libc:
101277         [defined _LIBC]: Include <shlib-compat.h>.
101278         (_obstack) [defined _LIBC]: Remove after 2.3.4.
101280         * lib/settime.c (settime): Recode to avoid warning with
101281         Sun Forte C 6U2.
101283         * lib/strverscmp.c: Convert to UTF-8.
101285 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
101287         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101288         m4/uintmax_t.m4.
101290 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
101292         * modules/xalloc-die: New file.
101293         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
101295         * modules/md5 (Files): Add m4/uint32_t.m4.
101296         * modules/sha1: Renamed from modules/sha.
101297         (Files):
101298         Rename lib/sha.h to lib/sha1.h.
101299         Rename lib/sha.c to lib/sha1.c.
101300         Rename m4/sha.m4 to m4/sha1.m4.
101301         (lib_SOURCES): Likewise.
101302         (configure.ac): Rename gl_SHA to gl_SHA1.
101303         (Include): sha.h -> sha1.h.
101305 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
101307         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
101308         * m4/sha1.m4: Renamed from sha.m4.
101309         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
101311 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
101313         * lib/obstack.h (obstack_empty_p):
101314         Don't assume that chunk->contents is suitably aligned.
101315         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
101316         Likewise. Problem reported by Benno in
101317         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
101319         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
101320         readable.  This could be improved further but it'd take some work.
101322 2004-08-08  Simon Josefsson  <jas@extundo.com>
101324         * modules/xgethostname (Depends-on): Remove exit and error (not
101325         used).
101327         * modules/getpass-gnu: Add getpass.h.
101328         (Depends-on): Add stdbool.
101329         * modules/getpass: Add getpass.h.
101331 2004-08-08  Simon Josefsson  <jas@extundo.com>
101333         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
101334         Check getpass declaration.
101336 2004-08-08  Simon Josefsson  <jas@extundo.com>
101338         * lib/xgethostname.c: Don't include error.h (not used).
101340         * lib/getpass.h: Add.
101341         * lib/getpass.c: Include getpass.h first.
101343 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
101345         * lib/xalloc-die.c: New file.
101346         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
101347         All uses removed.
101348         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
101349         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
101350         xalloc-die.c.
101351         (_, N_, xalloc_die): Move to xalloc-die.c.
101352         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
101353         so that we needn't mess with xalloc_msg_memory_exhausted.
101355         * lib/sha1.h: Renamed from sha.h.
101356         (SHA1_H): Renamed from _SHA_H.
101357         (sha1_ctx): Renamed from sha_ctx.
101358         (sha1_init_ctx): Renamed from sha_init_ctx.
101359         (sha1_process_block): Renamed from sha_process_block.
101360         (sha1_process_bytes): Renamed from sha_process_bytes.
101361         (sha1_finish_ctx): Renamed from sha_finish_ctx.
101362         (sha1_read_ctx): Renamed from sha_read_ctx.
101363         (sha1_stream): Renamed from sha_stream.
101364         (sha1_buffer): Renamed from sha_buffer.
101365         * lib/sha1.c: Likewise; renamed from sha.c.
101366         Do not include <sys/types.h>.
101367         Include <stddef.h> rather than <stdlib.h>.
101369 2004-08-08  Bruno Haible  <bruno@clisp.org>
101371         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
101372         FILESYSTEM_PREFIX_LEN.
101373         * lib/progreloc.c: Likewise.
101374         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
101376 2004-08-06  Simon Josefsson  <jas@extundo.com>
101378         * modules/progname (Depends-on): Don't depend on stdbool.
101380 2004-08-06  Simon Josefsson  <jas@extundo.com>
101382         * modules/getsubopt: New file.
101383         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101384         getsubopt.
101386 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101388         More merge from coreutils.
101390         * m4/utimens.m4, m4/utimecmp.m4: New files.
101391         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
101392         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
101393         prereq.m4, sha.m4: Import changes from coreutils.
101395 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101397         More merge from coreutils.
101398         * modules/raise, modules/readtokens0, modules/utimens:
101399         * modules/utimecmp, module/xnanosleep: New files.
101400         * modules/strftime: Add lib/strftime.h.
101401         Change include from <time.h> to "strftime.h".
101402         * modules/yesno: Add lib/yesno.h.
101403         * modules/backupfile: Remove lib/addext.c.
101404         * modules/euidaccess: Add stat-macros.h.
101405         * modules/canonicalize, modules/euidaccess,
101406         modules/filemode, modules/lchown, modules/makepath,
101407         modules/rmdir, modules/stat: Likewise.
101409 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101411         Merge from tar.
101412         * lib/argp-help.c (make_hol, hol_append): Don't assume that
101413         SIZE_MAX is a valid preprocessor constant.
101414         (__argp_basename): Change from "#ifndef _LIBC"
101415         to "#ifndef __argp_short_program_name", so that
101416         we don't compile these functions for tar.
101418         More merges from coreutils.
101419         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
101420         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
101421         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
101422         * lib/addext.c: Remove; no longer needed.
101423         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
101424         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
101425         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
101426         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
101427         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
101428         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
101429         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
101430         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
101431         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
101432         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
101433         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
101434         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
101435         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
101436         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
101437         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
101438         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
101439         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
101440         Import changes from coreutils.
101442 2004-08-05  Simon Josefsson  <jas@extundo.com>
101444         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
101446 2004-08-05  Simon Josefsson  <jas@extundo.com>
101448         * m4/getsubopt.m4: New file.
101450 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
101452         Merge from coreutils.
101454         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
101455         * m4/getcwd-path-max.m4: New files.
101457         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
101458         FILESYSTEM_PREFIX_LEN ->
101459         FILE_SYSTEM_PREFIX_LEN.
101460         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
101461         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
101462         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
101463         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
101465         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
101466         prerequisite modules now handle the DOS stuff.
101467         Don't check for unistd.h.
101469 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
101471         Merge from coreutils.
101473         * lib/.gdb-history: Remove; this doesn't belong here.
101475         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
101476         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
101477         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
101478         * lib/getcwd.c: New files.
101480         * lib/dirname.h: Include <stdbool.h>.
101481         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
101482         for consistency with POSIX terminology.  All uses changed.
101483         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
101484         (strip_trailing_slashes): Use bool for booleans.
101485         * lib/stripslash.c (strip_trailing_slashes): Likewise.
101487         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
101488         sometimes returns a positive errno value even when it succeeds.
101489         (print_errno_message) [!LIBC]: Fall back on strerror if
101490         __strerror_r fails.
101492         * lib/path-concat.c (mempcpy): Don't define if a system header defines
101493         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
101494         (longest_relative_suffix): New function.
101495         (path_concat): Use it.  Assume first argument is not NULL.
101496         Port to DOS.  Omit redundant separators.
101497         Report an error instead of returning NULL.
101498         Use mempcpy instead of memcpy.
101499         (xpath_concat): Remove: not declared or used.
101501         * lib/same.h: Include <stdbool.h>
101502         (same_name): Return bool, not int.
101503         * lib/same.c (same_name): Likewise.
101504         (errno): Don't declare; we assume C89 or better now.
101506         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
101507         if not already defined.
101509         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
101510         * lib/dup-safer.c (errno): Likewise.
101512 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
101514         Merge from coreutils.
101515         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
101516         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
101517         * modules/path-concat: Don't depend on strdup.
101519 2004-08-03  Simon Josefsson  <jas@extundo.com>
101521         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
101522         * lib/progname.h: Don't include stdbool.h.
101524 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
101526         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
101527         * MODULES.html.sh (func_all_modules): Remove fatal.
101529 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
101531         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
101533 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
101535         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
101536         working.
101538 2004-08-02  Simon Josefsson  <jas@extundo.com>
101540         * lib/getsubopt.h: New file, with comments from Bruno Haible.
101541         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
101542         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
101544 2004-08-01  Simon Josefsson  <jas@extundo.com>
101546         * lib/xgetdomainname.c: Include stdlib.h, for free().
101548 2004-07-19  Bruno Haible  <bruno@clisp.org>
101550         * MODULES.html.sh (func_all_modules): Add dummy.
101552 2004-07-16  Simon Josefsson  <jas@extundo.com>
101554         * modules/dummy: New file.
101556 2004-07-16  Simon Josefsson  <jas@extundo.com>
101558         * lib/dummy.c: New file.
101560 2004-07-16  Bruno Haible  <bruno@clisp.org>
101562         * lib/backupfile.h: Add extern "C" for C++.
101563         * lib/closeout.h: Likewise.
101564         * lib/copy-file.h: Likewise.
101565         * lib/findprog.h: Likewise.
101566         * lib/full-write.h: Likewise.
101567         * lib/pathname.h: Likewise.
101568         * lib/progname.h: Likewise.
101569         * lib/stpcpy.h: Likewise.
101570         * lib/stpncpy.h: Likewise.
101571         * lib/strcase.h: Likewise.
101572         * lib/strstr.h: Likewise.
101573         * lib/xalloc.h: Likewise.
101575         * lib/mbswidth.h: Add extern "C" for C++.
101576         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
101578 2004-07-13  Robert Millan  <robertmh@gnu.org>
101580         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
101582 2004-07-09  Simon Josefsson  <jas@extundo.com>
101584         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
101585         failed without this.)
101587 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
101589         * modules/chown (Files): Add lib/fchown-stub.c, since
101590         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
101592 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
101594         * lib/fchown-stub.c: New file.
101596 2004-06-24  Jim Meyering  <jim@meyering.net>
101598         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
101600 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101602         * modules/argz: Omit "#include".
101604         * MODULES.html.sh (func_all_modules): Add calloc, to match
101605         2004-06-01 addition of calloc module.
101607 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101609         * m4/argz.m4: New file, which is autoupdated from libtool.
101611 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101613         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
101614         libtool.
101616 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101618         * config/srclist-update: Don't insist on "USA." before the
101619         close-comment, as libtool omits the period and puts the */ on a
101620         separate line.
101621         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
101622         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
101624 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
101626         * modules/argz: New file.
101627         * MODULES.html.sh (func_all_modules): Add argz.
101629 2004-06-12  Jim Meyering  <jim@meyering.net>
101630         and  Paul Eggert  <eggert@cs.ucla.edu>
101632         * modules/hash (Files): Add lib/xalloc.h.
101633         * modules/pipe (Depends-on): Add wait-process.
101634         * modules/stat (Depends-on): Add xalloc.
101635         * modules/userspec (Files): Add lib/userspec.h.
101636         * modules/xstrto
101638         Upgrade from gettext-0.13.
101639         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
101640         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
101641         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
101643 2004-06-10  Jim Meyering  <jim@meyering.net>
101645         * lib/calloc.c: New file.
101647 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
101649         * lib/getdate.y (yylex): Allow space between sign and number.
101650         Problem reported by Dan Jacobson.
101652 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
101654         Merge from coreutils CVS.
101656         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
101657         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
101658         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
101659         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
101660         xstrtol.m4: Fix copyright date and/or serial number.
101662         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
101663         See if we need an fchown replacement.
101664         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
101665         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
101666         and use the replacement function if we detect either defect.
101668         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
101669         gl_UTIMECMP.
101671 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
101672         and  Jim Meyering  <jim@meyering.net>
101674         Merge from coreutils CVS.
101676         * lib/stat-macros.h: New file, with contents from file-type.h
101677         and coreutils' system.h.
101678         * lib/file-type.c: Include "stat-macros.h".
101679         * lib/file-type.h (file_type): Move all macro definitions to new file,
101680         stat-macros.h.
101682         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
101683         Wrap old code with this conditional.
101684         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
101685         function that does not dereference symlinks.
101686         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
101688         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
101689         dependency problems.
101690         (xreadlink): Accept new arg SIZE, for efficiency.
101691         All decls and uses changed.
101692         * lib/xreadlink.h: Include <stddef.h>, for size_t.
101694         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
101695         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
101697         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
101698         sysexits.h.
101700 2004-06-01  Jim Meyering  <jim@meyering.net>
101702         * m4/calloc.m4: New file.
101704 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
101706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
101707         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
101708         Also, fix a typo in a diagnostic.
101710 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
101712         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
101713         or AC_FUNC_REALLOC.
101715 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
101717         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
101718         macros to be defined.
101719         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
101720         the allocator returns NULL because the requested size is zero.
101722 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101724         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
101725         var.  Add comment explaining why libc still defines it.  This
101726         merges the following patch from glibc:
101727         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
101729 2004-05-20  Andreas Schwab  <schwab@suse.de>
101731         * m4/free.m4: Replace free if it not known to work, not the other
101732         way round.
101734 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
101736         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
101737         present in glibc since revision 1.1 of this file.
101738         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
101739         obstack_alignment_mask, obstack_alloc, obstack_base,
101740         obstack_blank, obstack_blank_fast, obstack_chunk_size,
101741         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
101742         obstack_grow0, obstack_init, obstack_int_grow,
101743         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
101744         obstack_next_free, obstack_object_size, obstack_ptr_grow,
101745         obstack_ptr_grow_fast, obstack_room): Remove declarations of
101746         nonexistent functions.
101748 2004-05-18  Karl Berry  <karl@gnu.org>
101750         * config/srclist.txt: break link for vasnprintf.c.
101752 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101754         Port obstack to the AS/400, where pointers are 16 bytes wide and
101755         you cannot cast an integer to a valid pointer.  This patch is
101756         currently waiting to be integrated into glibc; see
101757         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
101759         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
101760         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
101761         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
101762         (struct obstack): temp member is now a union of a pointer and
101763         an integer, instead of an integer.  All integer uses changed.
101764         This does not affect the physical layout of struct obstack,
101765         except on hosts (like the AS/400) where the size or alignment of
101766         void * is greater than that of ptrdiff_t.
101767         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
101768         __STDC__)]: Store temporary in pointer member of union, not
101769         integer member.
101770         * lib/obstack.c: Include <stddef.h>, for offsetof.
101771         (struct fooalign): Remove; it doesn't need a name.
101772         (union fooround): Change double to long double, and add void *.
101773         (DEFAULT_ALIGNMENT): Use offsetof to compute.
101774         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
101775         not a macro.  Hence the values are always int; so remove all
101776         casts-to-int in uses.
101778 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101780         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
101781         we can get this patch merged into glibc.
101783 2004-05-17  Derek R. Price  <derek@ximbiot.com>
101784             Paul Eggert  <eggert@cs.ucla.edu>
101786         * m4/argp: Depend on alloca.
101788 2004-05-17  Derek R. Price  <derek@ximbiot.com>
101789             Paul Eggert  <eggert@cs.ucla.edu>
101791         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
101792         freecoding.
101794 2004-05-17  Bruno Haible  <bruno@clisp.org>
101796         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
101797         precision that consists of a '.' followed by an empty digit string.
101798         Patch by Tor Lillqvist <tml@iki.fi>.
101800 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101802         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
101803         for backward compatibility with older code.  We need our own
101804         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
101805         it under some other name, and our alloca.h will define it.
101807 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101808             Derek Price  <derek@ximbiot.com>
101810         * lib/alloca.c: Include <alloca.h>, to get our interface.
101811         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
101812         include <alloca.h> first.  Use C89 prototype for alloca; this
101813         requires including <stddef.h> for size_t.  Use extern "C" if C++.
101814         Use #elif for simplicity, since we can assume C89 now.
101815         Don't try to source the system alloca.h since it will not be found
101816         and to prevent recursively including its replacement.
101817         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
101818         * lib/regex.c: Likewise.
101820 2004-05-16  Derek Price  <derek@ximbiot.com>
101821             Paul Eggert  <eggert@cs.ucla.edu>
101823         getline cleanup.  This changes the getndelim2 API: both order of
101824         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
101825         no delimiter).
101827         * lib/getline.c: Don't include stddef.h or stdio.h, since our
101828         interface does that.
101829         (getline): Always use getdelim, so that we don't have two
101830         copies of this code.
101831         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
101832         if available.
101833         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
101834         (GETNDELIM2_MAXIMUM): New macro.
101835         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
101836         instead of the old practice of delim2==0.  All callers changed.
101837         Return -1 on overflow, instead of returning junk.
101838         Do not set *linesize unless allocation succeeds.
101839         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
101840         that we include sys/types.h.
101841         * lib/getnline.h: Likewise.
101842         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
101843         (getndelim2): Reorder arguments.
101844         * lib/getnline.c (getnline, getndelim):
101845         Don't discard the NMAX argument.
101846         (getnline): Invoke getndelim, to avoid code duplication.
101847         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
101848         of (size_t) -1 by callers of the getnline family.
101850 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101852         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
101853         Check for gettimeofday.
101854         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
101855         Check for settimeofday, stime.
101857 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101859         * lib/nanosleep.c (suspended): Change its type from int to
101860         sig_atomic_t volatile.
101861         (first_call): Make it private to rpl_nanosleep, and have it
101862         be zero initially as that's a bit faster.
101863         (my_usleep): Round up fractional times instead of truncating them,
101864         as this is the usual meaning for 'sleep'.
101866         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
101867         doesn't work.
101868         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
101869         (ENOSYS): Define if not defined.
101870         (settime): Fall back on stime if it exists and settimeofday fails.
101871         But don't bother with fallbacks if a method fails with errno == EPERM.
101873 2004-05-11  Jim Meyering  <jim@meyering.net>
101875         Prior to this change, the save_cwd caller required read access to the
101876         current directory on most systems (ones with the fchdir function).
101878         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
101879         fails, try write-only, and finally, resort to using xgetcwd.
101881 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
101883         * lib/obstack.c, obstack.h: Import changes from libc.
101885 2004-04-28  Bruno Haible  <bruno@clisp.org>
101887         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
101888         also implicitly appends .exe to executables.
101889         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
101890         accepts Windows pathnames.
101891         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
101892         Treat Cygwin like Windows, since it now accepts Windows pathnames.
101893         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
101894         Treat Cygwin like Windows, since it now accepts Windows pathnames.
101895         Reported by Derek Robert Price <derek@ximbiot.com>.
101897 2004-04-21  Karl Berry  <karl@gnu.org>
101899         * config/srclist.txt (localcharset.c): break sync.
101901 2004-04-20  Paul Eggert  <eggert@twinsun.com>
101903         * m4/host-os.m4: Add a copyright notice.
101905 2004-04-20  Jim Meyering  <jim@meyering.net>
101907         Change UTILS_ to gl_ in AC_DEFINE'd names.
101908         Change utils_- and jm_-prefixed variables, too.
101909         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
101910         UTILS_FUNC_MKDIR_TRAILING_SLASH.
101911         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
101913         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
101914         Don't emit trailing blanks.
101915         Also rename jm_-prefixed variables to have gl_ prefix.
101917         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
101918         Also rename jm_-prefixed variables to have gl_ prefix.
101920         * m4/jm-macros.m4: Reflect the renamings.
101921         * m4/prereq.m4: Likewise.
101923 2004-04-20  Jim Meyering  <jim@meyering.net>
101925         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
101926         memory.
101928 2004-04-20  Jim Meyering  <jim@meyering.net>
101929             Bruno Haible  <bruno@clisp.org>
101931         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
101932         memory when realloc fails.
101934 2004-04-19  Jim Meyering  <jim@meyering.net>
101936         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
101937         now that readutmp.c may call `free (0)'.
101939 2004-04-19  Bruno Haible  <bruno@clisp.org>
101941         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
101942         * m4/inttypes_h.m4: Likewise.
101943         * m4/stdint_h.m4: Likewise.
101944         * m4/intmax_t.m4: Likewise.
101945         * m4/uintmax_t.m4: Likewise.
101947 2004-04-18  Jim Meyering  <jim@meyering.net>
101949         * m4/prereq.m4: Don't forbid jm_ prefix.
101951         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
101952         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
101953         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
101954         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
101955         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
101956         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
101957         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
101958         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
101959         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
101960         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
101961         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
101962         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
101963         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
101964         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
101965         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
101966         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
101967         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
101968         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
101969         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
101971 2004-04-18  Jim Meyering  <jim@meyering.net>
101973         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
101974         failure, don't leak memory and do call END_UTMP_ENT.
101976 2004-04-16  Jim Meyering  <jim@meyering.net>
101978         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
101979         coreutils' stat program.
101980         (gl_PREREQ): Don't require jm_PREREQ_STAT.
101982 2004-04-11  Paul Eggert  <eggert@twinsun.com>
101984         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
101985         C89.
101986         (CHAR_BIT): Remove, since we assume C89.
101987         Include <stdint.h> if available, as per current Autoconf CVS advice.
101989 2004-03-31  Jim Meyering  <jim@meyering.net>
101991         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
101992         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
101993         * m4/xalloc.m4: Likewise.
101995 2004-03-30  Paul Eggert  <eggert@twinsun.com>
101997         Merge from coreutils.
101999         * m4/inttostr.m4: New file.
102000         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
102001         Require AM_STDBOOL_H and gl_TIMESPEC instead.
102002         Require gl_CLOCK_TIME.
102003         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
102005 2004-03-30  Paul Eggert  <eggert@twinsun.com>
102007         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
102008         not bool, to be more consistent with Unix conventions.
102009         Suggested by Bruno Haible.
102011         Merge from coreutils.
102013         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
102014         * lib/umaxtostr.c: New files.
102016         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
102017         the usual <time.h> dance.
102018         (get_date): Change signature to support fractional time stamps.
102019         All callers changed.
102020         * lib/getdate.y: Include "getdate.h" first, as we can now
102021         assume C89 and don't need to worry about 'const'.
102022         Similarly, include "unlocked-io.h" near start, not in middle.
102023         Include <limits.h>.
102024         (textint.value): Use long int rather than int.
102025         (textint.digits): Use size_t rather than int.
102026         (BILLION, LOG10_BILLION): New constants.
102027         (parser_control): New member rel_ns.  Members day_ordinal,
102028         time_zone, month, day, hour, minutes, rel_year, rel_month,
102029         rel_day, rel_hour, rel_minutes, rel_seconds
102030         are now long int, not int.  Member seconds is now struct timespec,
102031         not int.  New member timespec_seen.  Members dates_seen, days_seen,
102032         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
102033         not int.
102034         (%union.intval): Now long int, not int.
102035         New member timespec.
102036         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
102037         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
102038         (spec): Now is a timespec or an item list.
102039         (timespec, items): New nonterminals.
102040         (time, rel, relunit, number, get_date):
102041         Add support for fractional seconds.
102042         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
102043         (gmtime, localtime, mktime): Remove decls; not needed with C89.
102044         (to_hour): First arg is now long int, not int.
102045         (to_year): Returns long int, not int.
102046         Don't treat year -70 like 70.
102047         (tm_diff): Returns long int, not int.
102048         (lookup_word): Use bool instead of int when appropriate.
102049         (yylex): Use size_t for count, not int.
102050         Detect overflow when parsing large integer constants.
102051         Add support for fractions.
102052         (get_date): Make pointers 'const' if possible.
102053         Use more-portable code to detect integer overflow.
102054         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
102055         Don't use ctime; it's not reliable if the year has >4 digits.
102057         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
102058         This is for compatibility with BSD.
102060         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
102061         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
102062         From coreutils' system.h.
102064         * lib/userspec.c: Don't include "posixver.h".
102065         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
102066         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
102067         compatible extension.  Simplify code by removing a boolean int
102068         that was always nonzero if a string was nonnull.
102070 2004-03-30  Jim Meyering  <jim@meyering.net>
102072         Merge from coreutils.
102074         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
102075         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
102076         on some systems one must include <grp.h> before it.
102077         Reported by Christian Krackowizer.
102079 2004-03-30  Jim Meyering  <jim@meyering.net>
102081         Merge from coreutils.
102083         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
102085         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
102086         an empty input stream.
102088         * lib/readtokens.c: Include <stdbool.h>.
102089         (readtoken): Use `size_t' rather than int/long.
102090         All callers adjusted.
102091         Use `bool' rather than `int' where appropriate.
102092         Use memset rather than an explicit loop.
102093         Use x2nrealloc rather than xrealloc.
102094         Allow the use of `\0' as a delimiter.
102095         (readtokens): Likewise.
102096         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
102098 2004-03-30  Jim Meyering  <jim@meyering.net>
102100         * m4/realloc.m4: Remove file, since now it does no more than
102101         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
102102         the `configure.ac' section of module/realloc.
102103         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
102105 2004-03-30  Bruno Haible  <bruno@clisp.org>
102107         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
102108         nonnull.
102110 2004-03-29  Paul Eggert  <eggert@twinsun.com>
102112         Merge changes to getloadavg.c from coreutils and Emacs.
102114         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
102115         Define to an expression, not to the empty string.
102116         Include cloexec.h and xalloc.h.
102117         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
102118         Use set_cloexec_flag rather than rolling our own.
102119         * lib/cloexec.c, lib/cloexec.h: New files.
102121 2004-03-29  Paul Eggert  <eggert@twinsun.com>
102123         * m4/cloexec.m4: New file.
102125 2004-03-18  Paul Eggert  <eggert@twinsun.com>
102127         * lib/getopt.h: Sync with libc CVS.
102129 2004-03-18  Paul Eggert  <eggert@twinsun.com>
102130             Bruno Haible  <bruno@clisp.org>
102132         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
102133         mbswidth.
102135 2004-03-18  Paul Eggert  <eggert@twinsun.com>
102136             Bruno Haible  <bruno@clisp.org>
102138         * lib/mbswidth.h: Include <wchar.h> only if
102139         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
102140         <wchar.h>.
102141         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
102143 2004-03-09  Paul Eggert  <eggert@twinsun.com>
102145         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
102146         Sync with libc CVS.
102147         * lib/getopt_int.h: New file, also synced from libc.
102149 2004-03-09  Paul Eggert  <eggert@twinsun.com>
102151         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
102152         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
102153         Bring back getopt.c, getopt.h, getopt1.c.
102155 2004-03-07  Paul Eggert  <eggert@twinsun.com>
102157         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
102158         All uses changed.  Check for sa_sigaction member; this fixes
102159         a bug first reported by Jason Andrade in
102160         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
102162 2004-03-07  Paul Eggert  <eggert@twinsun.com>
102164         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
102165         '#if' expressions.  Unlike the code it replaces, it does not
102166         depend on (defined _SC_PAGESIZE).  However, it does depend on
102167         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
102168         first reported by Jason Andrade in
102169         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
102171 2004-02-25  Simon Josefsson  <jas@extundo.com>
102173         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
102175 2004-02-25  Simon Josefsson  <jas@extundo.com>
102177         * lib/strdup.h: New file.
102178         * lib/strdup.c: Include it.
102179         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
102180         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
102182 2004-02-23  Karl Berry  <karl@gnu.org>
102184         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
102185         (from fencepost.gnu.org:/gd/gnuorg).
102187 2004-02-23  Karl Berry  <karl@gnu.org>
102189         * config/srclistvars.sh (GNUORG) [karl]: redefine.
102190         * config/srclist.txt: add maintain/standards documents.
102192 2004-02-18  Bruno Haible  <bruno@clisp.org>
102194         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
102195         Reported by Derek Robert Price <derek@ximbiot.com>.
102197 2004-02-16  Karl Berry  <karl@gnu.org>
102199         * config/mkinstalldirs, install-sh: update from automake.
102201 2004-02-06  Karl Berry  <karl@gnu.org>
102203         * m4/po.m4: update from gettext 0.14.1.
102205 2004-02-06  Karl Berry  <karl@gnu.org>
102207         * lib/config.charset: update from gettext 0.14.1.
102209 2004-02-05  Paul Eggert  <eggert@twinsun.com>
102211         Add comments and code, prompted by suggestions from Bruno Haible
102212         for sh-quote.
102213         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
102214         describing the enum quoting_style values.
102215         * lib/quotearg.c (quotearg_alloc): New function.
102216         (quotearg_buffer_restyled): Treat lone { and } as special.
102217         Treat = as special.  Work around bug with older shells
102218         that "see" a '\' that is really the 2nd byte of a multibyte char.
102219         Quote empty string with shell_quoting_style.
102221 2004-02-03  Bruno Haible  <bruno@clisp.org>
102223         * m4/pipe.m4: New file, from GNU gettext.
102225 2004-02-03  Bruno Haible  <bruno@clisp.org>
102227         * lib/pipe.h: New file, from GNU gettext.
102228         * lib/pipe.c: New file, from GNU gettext.
102230 2004-01-27  Bruno Haible  <bruno@clisp.org>
102232         * m4/execute.m4: New file, from GNU gettext.
102234 2004-01-27  Bruno Haible  <bruno@clisp.org>
102236         * lib/execute.h: New file, from GNU gettext.
102237         * lib/execute.c: New file, from GNU gettext.
102238         * lib/w32spawn.h: New file, from GNU gettext.
102240 2004-01-24  Paul Eggert  <eggert@twinsun.com>
102242         Merge from diffutils.
102244         * lib/file-type.c (file_type): Add typed memory objects.
102245         * lib/file-type.h (S_TYPEISTMO): New macro.
102247         * lib/c-stack.h (c_stack_action): Remove argv argument.
102248         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
102249         (die): Don't calculate message unless segv_action returns.
102250         (get_stack_location, min_address_from_argv, max_address_from_argv,
102251         volatile stack_base, volatile_stack_size): Remove.
102252         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
102253         that every segmentation violation is a stack overflow.  (Ouch!)
102254         See Debian bug 136249 (still outstanding) for more info about why
102255         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
102257 2004-01-24  Paul Eggert  <eggert@twinsun.com>
102259         Exit-status fix from coreutils.
102261         Use exit_failure consistently in place of EXIT_FAILURE,
102262         so that program exit statuses are consistent on failure.
102264         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
102265         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
102266         * lib/argmatch.h: Comment fix to match the above.
102267         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
102268         Now a macro referring to exit_failure, instead of a separate
102269         variable.  Include "exitfail.h" to get it.
102270         * lib/xstrtol.h: Include "exitfail.h".
102271         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
102273         * lib/long-options.c (parse_long_options): Use prototype
102274         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
102275         for clarity.
102277 2004-01-21  Jim Meyering  <jim@meyering.net>
102279         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
102280         so as not to conflict with a different-sized __mktime_internal
102281         function in GNU libc.
102282         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
102283         Problem building statically-linked `ls' reported by Michael Brunnbauer.
102285 2004-01-20  Karl Berry  <karl@gnu.org>
102287         * config/config.guess: update from config.
102289         * config/srclistvars.sh: GNUWWWLICENSES for karl.
102291 2004-01-20  Bruno Haible  <bruno@clisp.org>
102293         Safer stack allocation.
102294         * lib/setenv.c: Include allocsa.h.
102295         (alloca): Remove fallback definition.
102296         (freea): Remove macro.
102297         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
102298         instead of freea.
102300 2004-01-20  Bruno Haible  <bruno@clisp.org>
102302         * m4/eealloc.m4: New file, from GNU gettext.
102304 2004-01-20  Bruno Haible  <bruno@clisp.org>
102306         * m4/allocsa.m4: New file, from GNU gettext.
102308 2004-01-20  Bruno Haible  <bruno@clisp.org>
102310         * lib/xallocsa.h: New file, from GNU gettext.
102311         * lib/xallocsa.c: New file, from GNU gettext.
102313 2004-01-20  Bruno Haible  <bruno@clisp.org>
102315         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
102317 2004-01-20  Bruno Haible  <bruno@clisp.org>
102319         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
102320         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
102321         specially.
102323 2004-01-20  Bruno Haible  <bruno@clisp.org>
102325         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
102326         patch.
102328 2004-01-20  Bruno Haible  <bruno@clisp.org>
102330         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
102332 2004-01-20  Bruno Haible  <bruno@clisp.org>
102334         * lib/eealloc.h: New file.
102336 2004-01-20  Bruno Haible  <bruno@clisp.org>
102338         * lib/binary-io.h: Avoid warnings on Cygwin.
102340 2004-01-20  Bruno Haible  <bruno@clisp.org>
102342         * lib/allocsa.h: New file, from GNU gettext.
102343         * lib/allocsa.c: New file, from GNU gettext.
102345 2004-01-18  Karl Berry  <karl@gnu.org>
102347         * doc/gpl.texi, doc/lgpl.texi: new files.
102349 2004-01-18  Karl Berry  <karl@gnu.org>
102351         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
102352         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
102354 2004-01-15  Paul Eggert  <eggert@twinsun.com>
102356         Merge from coreutils.
102358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
102359         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
102360         (gl_DEFAULT_POSIX2_VERSION): Move
102361         the documentation from 'configure' into 'config.hin',
102362         so that 'configure --help' isn't burdened by it and
102363         we don't have to worry about its formatting there.
102364         Reword the documentation so that it's more succinct
102365         and can be run together into a single paragraph.
102366         * m4/same.m4 (gl_SAME): Check for pathconf.
102368 2004-01-15  Paul Eggert  <eggert@twinsun.com>
102370         Merge from coreutils.
102372         * lib/posixver.c: Include posixver.h.
102374         * lib/same.c: Include <stdbool.h>, <limits.h>.
102375         (_POSIX_NAME_MAX): Define if not defined.
102376         (MIN): New macro.
102377         (same_name): If file names are silently truncated, report
102378         that the file names are the same if they are the same after
102379         the silent truncation.
102381         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
102382         conversion function.
102383         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
102384         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
102385         longer needed.
102387 2004-01-15  Jim Meyering  <jim@meyering.net>
102389         Merge from coreutils.
102391         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
102392         if no library is required.
102393         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
102394         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
102395         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
102396         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
102397         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
102398         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
102399         value, $ac_cv_search_crypt, if it's "none required".
102400         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
102401         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
102402         not gl_FUNC_GETLOADAVG.
102403         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
102404         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
102406 2004-01-15  Jim Meyering  <jim@meyering.net>
102408         Merge from coreutils.
102410         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
102411         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
102412         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
102414         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
102415         optional configure-time default.
102417         * lib/version-etc.c (version_etc_copyright): Update copyright date.
102419         * lib/xreadlink.c (xreadlink): Correct outdated comment.
102421 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
102423         Merge from coreutils.
102425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
102426         value, $ac_cv_search_nanosleep, if it's "none required".
102428 2004-01-14  Paul Eggert  <eggert@twinsun.com>
102430         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
102431         with like-named macro in fnmatch.c.
102432         (EXT): Use an internal constant instead.
102434         Merge fnmatch patches from glibc.
102435         * lib/fnmatch.c (mbsinit): Remove define.
102436         Add libc_hidden_ver (__fnmatch, fnmatch).
102437         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
102438         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
102440 2004-01-14  Karl Berry  <karl@gnu.org>
102442         * config/install-sh: update from automake.
102444 2004-01-13  Karl Berry  <karl@gnu.org>
102446         * config/install-sh: update from automake.
102448 2004-01-09  Karl Berry  <karl@gnu.org>
102450         * config/install-sh: update from automake.
102452 2004-01-05  Karl Berry  <karl@gnu.org>
102454         * config/config.{sub,guess}: update from config.
102456 2003-12-31  Karl Berry  <karl@gnu.org>
102458         * config/depcomp: update from automake.
102460 2003-12-14  Karl Berry  <karl@gnu.org>
102462         * lib/config.charset: update from gettext-runtime.
102464 2003-12-03  Paul Eggert  <eggert@twinsun.com>
102466         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
102467         Bug reported by Alfred M. Szmidt.
102469 2003-12-03  Bruno Haible  <bruno@clisp.org>
102471         * m4/gettext.m4: Upgrade from gettext-0.13.
102472         * m4/po.m4: Upgrade from gettext-0.13.
102473         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
102474         * m4/intmax.m4: New file, from gettext-0.13.
102475         * m4/printf-posix.m4: New file, from gettext-0.13.
102477 2003-11-29  Karl Berry  <karl@gnu.org>
102479         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
102481 2003-11-25  Paul Eggert  <eggert@twinsun.com>
102482             Bruno Haible  <bruno@clisp.org>
102484         * lib/printf-parse.h: Don't include sys/types.h.
102485         (ARG_NONE): New macro.
102486         (char_directive): Change type of *arg_index fields to size_t.
102487         * lib/printf-parse.c: Don't include sys/types.h.
102488         (SSIZE_MAX): Remove macro.
102489         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
102490         Remove unnecessary overflow check.
102491         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
102492         fields.
102494 2003-11-25  Bruno Haible  <bruno@clisp.org>
102496         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
102498 2003-11-25  Bruno Haible  <bruno@clisp.org>
102500         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
102501         gt_TYPE_SSIZE_T.
102503 2003-11-24  Paul Eggert  <eggert@twinsun.com>
102505         * modules/alloca: Remove dependency on xalloc.
102507 2003-11-24  Paul Eggert  <eggert@twinsun.com>
102509         * lib/alloca.c: Remove dependency on xalloc module.
102510         (xalloc_die): Remove.
102511         (memory_full) [!defined emacs]: New macro.
102512         [!defined emacs]: Don't include xalloc.h.
102513         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
102514         address arithmetic overflows.  Change datatypes a bit to avoid
102515         unnecessary casts.
102517 2003-11-22  Jim Meyering  <jim@meyering.net>
102519         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
102520         s/size/size_t/.
102522 2003-11-21  Karl Berry  <karl@gnu.org>
102524         * config/config.{sub,guess}: update from config.
102526 2003-11-18  Karl Berry  <karl@gnu.org>
102528         * config/config.{sub,guess}: update from config.
102530         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
102532 2003-11-17  Paul Eggert  <eggert@twinsun.com>
102534         * README: Mention that S+T cannot overflow if S is the size of
102535         an existing object and T is sufficiently small.
102537 2003-11-17  Jim Meyering  <jim@meyering.net>
102539         On systems without utime and without a utimes function capable of
102540         dealing with a NULL struct utimbuf* argument, this utime replacement
102541         could -- in unusual circumstances -- leak a file descriptor.
102542         * lib/utime.c: Include <unistd.h> and <errno.h>.
102543         (utime_null): Be sure to close `fd' and to preserve errno.
102544         Reported by Geoff Collyer via Arnold Robbins.
102546 2003-11-17  Bruno Haible  <bruno@clisp.org>
102548         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
102549         (Depends-on): Add xsize.
102551 2003-11-17  Bruno Haible  <bruno@clisp.org>
102553         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
102555 2003-11-17  Bruno Haible  <bruno@clisp.org>
102557         * lib/vasnprintf.c (alloca): Remove fallback definition.
102558         (freea): Remove definition.
102559         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
102560         Reported by Paul Eggert.
102562 2003-11-16  Paul Eggert  <eggert@twinsun.com>
102563             Bruno Haible  <bruno@clisp.org>
102565         Protect against address arithmetic overflow.
102566         * lib/printf-args.h: Include stddef.h.
102567         (arguments): Change type of field 'count' to size_t.
102568         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
102569         'unsigned int' where appropriate.
102570         * lib/printf-parse.h: Include sys/types.h.
102571         (char_directive): Change type of *arg_index fields to ssize_t.
102572         (char_directives): Change type of fields 'count', max_*_length to
102573         size_t.
102574         * lib/printf-parse.c: Include sys/types.h and xsize.h.
102575         (SSIZE_MAX): Define fallback value.
102576         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
102577         instead of 'int' where appropriate. Check a_allocated, d_allocated
102578         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
102579         * lib/vasnprintf.c: Include xsize.h.
102580         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
102581         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
102582         overflow. Avoid wraparound when converting a width or precision from
102583         decimal to binary.
102585 2003-11-16  Bruno Haible  <bruno@clisp.org>
102587         Update from GNU gettext.
102588         * lib/printf-parse.c: Generalize to it can be compiled for wide
102589         strings.
102590         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
102591         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
102592         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
102593         SNPRINTF): New macros.
102594         Don't include <alloca.h> if the file is used inside libintl.
102595         (local_wcslen): New function, for Solaris 2.5.1.
102596         (VASNPRINTF): Use it instead of wcslen.
102598 2003-11-16  Bruno Haible  <bruno@clisp.org>
102600         * lib/xsize.h (xmax): New function.
102601         (xsum, xsum3, xsum4): Declare as "pure" functions.
102603 2003-11-12  Paul Eggert  <eggert@twinsun.com>
102605         * modules/xalloc (Files): Undo latest change, since xalloc.h
102606         no longer needs SIZE_MAX or PTRDIFF_MAX.
102608 2003-11-12  Paul Eggert  <eggert@twinsun.com>
102610         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
102611         gl_PTRDIFF_MAX.
102613 2003-11-12  Paul Eggert  <eggert@twinsun.com>
102615         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
102616         "return", to pacify some unknown compiler.  Problem reported
102617         by Joerg Schilling.
102619 2003-11-12  Paul Eggert  <eggert@twinsun.com>
102621         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
102622         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
102623         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
102624         heuristic is just as accurate as far as we know, and it removes a
102625         dependency on size_max.m4 and ptrdiff_max.m4.
102627 2003-11-11  Bruno Haible  <bruno@clisp.org>
102629         * modules/xsize (Files): Add m4/size_max.m4.
102630         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
102632 2003-11-11  Bruno Haible  <bruno@clisp.org>
102634         * m4/size_max.m4: New file.
102635         * m4/ptrdiff_max.m4: New file.
102636         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
102637         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
102638         (gl_XALLOC): Invoke it.
102640 2003-11-11  Bruno Haible  <bruno@clisp.org>
102642         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
102643         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
102644         defined.
102646 2003-11-10  Paul Eggert  <eggert@twinsun.com>
102648         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
102649         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
102650         rejected some allocations of exactly SIZE_MAX - 2 bytes.
102651         From Bruno Haible.
102652         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
102653         not (size_t) -1, since it's defined here.
102655 2003-11-09  Karl Berry  <karl@gnu.org>
102657         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
102659 2003-11-06  Paul Eggert  <eggert@twinsun.com>
102661         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
102662         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
102663         Reject sizes of exactly SIZE_MAX bytes.
102664         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
102665         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
102667 2003-11-05  Bruno Haible  <bruno@clisp.org>
102669         * lib/xsize.h: Include limits.h, to avoid a possible collision with
102670         SIZE_MAX defined in <limits.h> on Solaris.
102672 2003-11-04  Jim Meyering  <jim@meyering.net>
102674         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
102675         variable names, rather than @VAR@.
102676         * modules/poll: Likewise.
102678 2003-11-04  Bruno Haible  <bruno@clisp.org>
102680         * modules/xsize: New file.
102681         * modules/linebreak: Depend on xsize.
102682         * MODULES.html.sh (func_all_modules): Add xsize.
102684 2003-11-04  Bruno Haible  <bruno@clisp.org>
102686         * m4/xsize.m4: New file.
102688 2003-11-04  Bruno Haible  <bruno@clisp.org>
102690         * lib/xsize.h: New file.
102691         * lib/linebreak.c: Include xsize.h.
102692         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
102693         argument for overflow.
102694         Suggested by Paul Eggert.
102696 2003-11-03  Karl Berry  <karl@gnu.org>
102698         * config/config.{guess,sub}: update from config.
102700 2003-11-03  Jim Meyering  <jim@meyering.net>
102702         * modules/userspec (lib_SOURCES): Add userspec.h.
102703         (Include): Add "userspec.h".
102704         Improve description.
102706 2003-11-03  Jim Meyering  <jim@meyering.net>
102708         * lib/userspec.c: Include "userspec.h".
102709         * lib/userspec.h: New file.
102711 2003-11-03  Bruno Haible  <bruno@clisp.org>
102713         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
102715 2003-11-03  Bruno Haible  <bruno@clisp.org>
102717         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
102718         available, to avoid (extremely rare) race condition.
102719         Suggested by Paul Eggert.
102721 2003-11-02  Karl Berry  <karl@gnu.org>
102723         * config/srclist.txt (vasprintf.c): sync broken, sigh.
102725 2003-10-31  Paul Eggert  <eggert@twinsun.com>
102727         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
102728         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
102729         (read_filesystem_list): Set and use me_type_malloced.
102730         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
102731         whatever the type happens to be), for brevity and consistency.
102732         Check for size calculation overflow on Alphas running OSF/1.
102734 2003-10-31  Jim Meyering  <jim@meyering.net>
102736         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
102738         * lib/linebuffer.c: Include <string.h> for declaration of memset.
102740 2003-10-30  Paul Eggert  <eggert@twinsun.com>
102741             Bruno Haible  <bruno@clisp.org>
102743         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
102744         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
102746 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102748         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
102749         netbsd*-gnu*.  Suggested by Robert Millan.
102751 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102753         * modules/group-member: Depend on stdbool.
102755 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102757         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
102759 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102761         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
102762         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
102763         after the 'gnu' in these cases.  This fixes some bugs in the
102764         previous change, and is based on suggestions by Robert Millan.
102766 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102768         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
102769         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
102770         no longer needed.
102771         * lib/quotearg.c (quotearg_n_options): Use it.
102772         * lib/group-member.c: Include <stdbool.h>.
102773         (free_group_info): Arg is now const *; don't free arg.
102774         (get_group_info): Now returns bool and accepts struct group_info *,
102775         rather than returning a malloc'ed struct group_info *.
102776         All uses changed.  Check for overflow in internal size calculation.
102778         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
102779         rather than xmalloc/xrealloc.
102780         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
102781         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
102782         conformance bug: the old code used a pointer after freeing the
102783         storage that it addressed.
102784         * lib/hash.c (hash_initialize): Simplify the code by using
102785         xalloc_oversized rather than doing it by hand.
102786         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
102787         the buffer preserved.  Use free and xmalloc instead.
102788         * lib/quotearg.c (quotearg_n_options): Likewise.
102789         Use a simpler test for size overflow.  Don't use xalloc_oversized
102790         because unsigned int might be wider than size_t (!); this suggests
102791         that we should switch from unsigned int to size_t for slot numbers.
102793 2003-10-28  Paul Eggert  <eggert@twinsun.com>
102795         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
102796         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
102797         NetBSD kernels.  Requested by Richard Stallman.
102799 2003-10-27  Paul Eggert  <eggert@twinsun.com>
102801         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
102802         to allocate the returned structure.  Do not allocate a subarray,
102803         as x2nrealloc will do that.
102804         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
102805         instead of xnrealloc.
102806         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
102808 2003-10-27  Bruno Haible  <bruno@clisp.org>
102810         * lib/stdbool_.h: Better support for BeOS.
102812 2003-10-26  Paul Eggert  <eggert@twinsun.com>
102814         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
102815         now uses inline.
102817 2003-10-26  Paul Eggert  <eggert@twinsun.com>
102819         * lib/xalloc.h (xalloc_oversized): New static inline function, for
102820         callers that want to do their own size-overflow checking.  Include
102821         <stdbool.h>, since xalloc_oversized returns bool.
102822         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
102823         to use xalloc_oversized.
102825         Add two functions x2realloc, x2nrealloc, for programs that grow
102826         arrays dynamically by doubling their sizes.
102827         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
102828         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
102829         New functions.
102831         Port to C99 semantics for 'inline' of external functions.
102832         Bug reported by Bruno Haible.
102833         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
102834         with the old contents of xnmalloc.
102835         (xnmalloc, xmalloc): Use it.
102836         (xnrealloc_inline): New static inline function,
102837         with the old contents of xnrealloc.
102838         (xnrealloc, xrealloc): Use it.
102840         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
102841         that.
102843 2003-10-26  Karl Berry  <karl@gnu.org>
102845         * config/srclist.txt (COPYING.DOC): no longer available from
102846         /gd/gnuorg; don't know where the ultimate source is.
102848 2003-10-25  Paul Eggert  <eggert@twinsun.com>
102850         Fix several address-calculation bugs in the hash modules,
102851         plus some minor code cleanup.
102853         * lib/hash.h: Include <stdbool.h>, for bool.
102854         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
102855         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
102856         hash_get_n_entries, hash_get_max_bucket_length,
102857         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
102858         hash_rehash): Use size_t rather than unsigned.
102859         * lib/hash.c (struct hash_table, hash_get_n_buckets,
102860         hash_get_n_buckets_used, hash_get_n_entries,
102861         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
102862         hash_get_entries, hash_do_for_each, hash_string, is_prime,
102863         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
102864         Likewise.
102865         (SIZE_MAX): Define if not defined.
102866         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
102867         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
102868         hash_print):
102869         Use const * when possible.
102870         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
102871         (check_tuning): Fix bug: if tuning parameters were very close to
102872         0 or 1, rounding errors could have caused subscript violations.
102873         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
102874         (hash_initialize): Add 'fail:' label
102875         to free table and return NULL, and use it to simplify code.
102876         Use calloc rather than clearing the storage ourself.
102877         (hash_initialize, hash_rehash): Check for arithmetic overflow in
102878         buffer size calculations.
102879         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
102880         Include <stddef.h>, for size_t.
102881         * lib/hash-pjw.c (hash_pjw): Likewise.
102882         Switch to method described by Bruno Haible.
102883         Include <limits.h>, for CHAR_BIT.
102884         (SIZE_BITS): New macro.
102886 2003-10-23  Paul Eggert  <eggert@twinsun.com>
102888         * m4/getline.m4 (AM_FUNC_GETLINE):
102889         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
102890         hosts.  Problem reported by Derek Robert Price in
102891         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
102892         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
102893         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
102895 2003-10-21  Paul Eggert  <eggert@twinsun.com>
102897         * lib/getndelim2.c (getndelim2): When size calculation overflows,
102898         ceiling the allocation at NMAX bytes rather than silently
102899         discarding input bytes before NMAX is reached.  This makes
102900         a difference only if NMAX exceeds SIZE_MAX / 2.
102902         * lib/obstack.c: Merge from glibc.
102903         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
102904         Add libc_hidden_def (_obstack_newchunk).
102905         (_obstack_free) [! defined _LIBC]: Remove.
102906         [defined _LIBC]: Make a strong alias from obstack_free, rather than
102907         a clone of the function body.
102908         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
102909         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
102911         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
102912         glibc.
102913         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
102914         arg to memcpy.
102916         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
102917         (obstack_ptr_grow_fast, obstack_int_grow_fast):
102918         Don't use lvalue casts, as GCC plans to remove support for them
102919         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
102920         was also present in the non-GCC version, indicating that this
102921         code had always been buggy and had never been widely used.
102922         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
102923         Use the fast variant of each macro, rather than copying the
102924         definiens of the fast variant; that way, we'll be more likely to
102925         catch future bugs in the fast variants.
102927 2003-10-20  Bruno Haible  <bruno@clisp.org>
102929         * modules/wait-process: New file.
102930         * MODULES.html.sh (func_all_modules): Add wait-process.
102932 2003-10-20  Bruno Haible  <bruno@clisp.org>
102934         * m4/wait-process.m4: New file.
102936 2003-10-20  Bruno Haible  <bruno@clisp.org>
102938         * lib/wait-process.h: New file, from GNU gettext.
102939         * lib/wait-process.c: New file, from GNU gettext.
102941 2003-10-19  Jim Meyering  <jim@meyering.net>
102943         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
102944         HPUX 10.20.
102946 2003-10-18  Karl Berry  <karl@gnu.org>
102948         * config/config.guess: update from config.
102950 2003-10-16  Paul Eggert  <eggert@twinsun.com>
102952         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
102953         (getgroups): First arg is int, not size_t.
102954         Don't let 'free' mangle errno.
102956 2003-10-16  Paul Eggert  <eggert@twinsun.com>
102958         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
102960 2003-10-16  Karl Berry  <karl@gnu.org>
102962         * config/config.{guess,sub}: update from config.
102964 2003-10-16  Jim Meyering  <jim@meyering.net>
102966         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
102967         memcpy.
102969 2003-10-15  Paul Eggert  <eggert@twinsun.com>
102971         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
102972         (SIZE_MAX): Remove.
102973         (new_exclude, add_exclude_file): Initial size no longer needs to
102974         be a power of 2.
102975         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
102976         our own address arithmetic overflow checking.
102978         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
102979         (fnmatch): Do not alloca more than 2000 wide characters;
102980         instead, use malloc for large buffers.
102981         Check for address arithmetic overflow, and return -1
102982         with errno set to ENOMEM in that case.
102983         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
102984         (NEW_PATTERN): Do not alloca more than 8000 bytes;
102985         instead, return -1.  Check for address arithmetic overflow.
102987 2003-10-14  Paul Eggert  <eggert@twinsun.com>
102989         Handle invalid suffixes and overflow independently, so that
102990         callers can treat them independently as needed.  Fix some bugs in
102991         suffix handling, e.g., "100k@" was not diagnosed as an invalid
102992         suffix for a human-readable blocksize.  The major caller-visible
102993         change is the addition of a new
102994         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
102995         that both overflow and suffix chars were found.
102997         * lib/human.c (humblock): Don't check separately for invalid suffix
102998         char; that is xstrtoumax's job (now that its bug is fixed).
102999         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
103000         INTMAX_MAX]: New macros.
103001         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
103002         TYPE_MAXIMUM): New macros.
103003         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
103004         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
103005         if overflow occurs, as it's what __strtol does and it's more useful
103006         in practice.
103007         (__xstrtol): If __strtol reports some error other than ERANGE,
103008         reflect it to the caller as LONGINT_INVALID.  If it reports
103009         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
103010         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
103011         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
103012         value.
103013         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
103014         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
103015         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
103016         [defined UINTMAX_MAX]: New macros.
103018 2003-10-14  Bruno Haible  <bruno@clisp.org>
103020         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
103022 2003-10-14  Bruno Haible  <bruno@clisp.org>
103024         * m4/sig_atomic_t: New file, from GNU gettext.
103025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
103027 2003-10-14  Bruno Haible  <bruno@clisp.org>
103029         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
103030         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
103031         Also use volatile where needed.
103033 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103035         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
103036         Change maintainer from Bruno Haible to 'all'.
103038 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103040         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
103042 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103044         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
103045         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
103046         and define in terms of the other primitives.
103047         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
103048         (SIZE_MAX): Define if not already defined.
103049         (array_size_overflow): New function.
103050         (xalloc_die): Abort instead of exiting if 'error' returns.
103051         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
103052         (xmalloc, xrealloc): Use them.
103053         (xcalloc): Check for address arithmetic overflow.
103054         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
103055         a bit faster than strcpy.
103057 2003-10-10  Simon Josefsson  <jas@extundo.com>
103059         * modules/argp (Depends-on): Add restrict and strcase.
103061 2003-10-10  Simon Josefsson  <jas@extundo.com>
103063         * m4/argp.m4: Add AC_C_INLINE.
103065 2003-10-08  Paul Eggert  <eggert@twinsun.com>
103067         Merge getpass from libc, plus a few fixes.
103069         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
103070         Include <stdbool.h>.
103071         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
103072         __fsetlocking to empty.
103073         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
103074         do include <bits/libc-lock.h>.
103075         Do not include <fcntl.h>; not needed.
103076         [_LIBC]: Include <wchar.h>.
103077         (NOTCANCEL_MODE): New macro.
103078         (flockfile, funlockfile) [_LIBC]: New macros.
103079         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
103080         [!_LIBC]: New macros.
103081         (call_fclose): New function.
103082         (getpass): Use it.  Save tty stream separately; this simplifies the
103083         code and makes it more reliable if stdin happens to equal stdout.
103084         Invoke __fsetlocking on tty.
103085         Handle thread cancellation if needed.
103086         Namespace cleanup (use __tcgetattr, __getline).
103087         Use bool for Booleans.
103088         [USE_IN_LIBIO]: Handle wide streams.
103089         [!_LIBC]: Unconditionally do the fseek, since we don't know what
103090         stream might go where.
103092         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
103093         doesn't have to include <stdio.h> before us.
103094         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
103095         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
103096         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
103097         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
103098         if not declared, so that we can use getpass.c code from libc without
103099         rewriting it.
103100         (flockfile, ftrylockfile, funlockfile): New macros.
103102 2003-10-08  Paul Eggert  <eggert@twinsun.com>
103104         * modules/getpass: Depend on stdbool.
103106 2003-10-08  Paul Eggert  <eggert@twinsun.com>
103108         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
103110 2003-10-07  Karl Berry  <karl@gnu.org>
103112         * config/config.{guess,sub}: update from config.
103114 2003-10-06  Jim Meyering  <jim@meyering.net>
103115             Bruno Haible  <bruno@clisp.org>
103117         This lets translators provide better translations for the
103118         "Written by ..." part of --version output.
103119         * lib/version-etc.h: Include stdarg.h.
103120         (version_etc_copyright): Declare as readonly.
103121         (version_etc): Make this function variadic with a NULL-terminated list
103122         of author name strings.
103123         (version_etc_va): New declaration.
103124         * lib/version-etc.c: Include stdarg.h, stdlib.h.
103125         (version_etc_copyright): Declare as readonly.
103126         (version_etc_va): New function. Provide a different translatable string
103127         for each possible number of authors < 10. Abbreviate when there are 10
103128         authors or more.
103129         (version_etc): Make this function variadic. Call version_etc_va.
103130         Suggestion from Gary V. Vaughan.
103132         * lib/long-options.h (parse_long_options): Change prototype: the
103133         authors string is moved to the end and becomes variadic.
103134         * lib/long-options.c: Include stdarg.h.
103135         (parse_long_options): Make this function variadic, too.
103136         Call version_etc_va, not version_etc.
103138 2003-10-06  Bruno Haible  <bruno@clisp.org>
103140         * modules/version-etc-2: Remove file.
103141         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
103143 2003-10-06  Bruno Haible  <bruno@clisp.org>
103145         * modules/fatal-signal: New file.
103146         * MODULES.html.sh (func_all_modules): Add fatal-signal.
103148 2003-10-06  Bruno Haible  <bruno@clisp.org>
103150         * m4/fatal-signal.m4: New file.
103151         * m4/signalblocking.m4: New file, from GNU gettext.
103153 2003-10-06  Bruno Haible  <bruno@clisp.org>
103155         * lib/version-etc-2.h: Remove file.
103156         * lib/version-etc-2.c: Remove file.
103158 2003-10-06  Bruno Haible  <bruno@clisp.org>
103160         * lib/fatal-signal.h: New file, from GNU gettext.
103161         * lib/fatal-signal.c: New file, from GNU gettext.
103163 2003-10-05  Paul Eggert  <eggert@twinsun.com>
103165         * README: Rework advice for preventing empty .o files.
103166         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
103167         not <sys/types.h>.
103169 2003-10-04  Karl Berry  <karl@gnu.org>
103171         * lib/argp*: update from libc.
103173 2003-10-04  Karl Berry  <karl@gnu.org>
103175         * config/config.{guess,sub}: update from config.
103177 2003-10-02  Bruno Haible  <bruno@clisp.org>
103179         * modules/lchown (Include): Add lchown.h.
103180         * modules/time_r (Include): Use "..." syntax.
103181         * modules/xgetdomainname (Include): Add xgetdomainname.h.
103183 2003-10-01  Simon Josefsson  <jas@extundo.com>
103185         * MODULES.html.sh (func_all_modules): Move gethostname from section
103186         'based on' to section 'lacking' POSIX:2001.
103188 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
103190         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
103191         to output mode on the same stream.
103193 2003-09-29  Paul Eggert  <eggert@twinsun.com>
103195         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
103196         Fix arg typo in previous patch.
103198 2003-09-28  Jim Meyering  <jim@meyering.net>
103200         * lib/error.c: Correct cpp indentation.
103202 2003-09-27  Paul Eggert  <eggert@twinsun.com>
103204         * modules/free: New file.
103206 2003-09-27  Paul Eggert  <eggert@twinsun.com>
103208         * m4/free.m4: New file.
103210 2003-09-27  Paul Eggert  <eggert@twinsun.com>
103212         * lib/minmax.h (MIN, MAX)
103213         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
103214         Omit the special code that used __typeof__, since we worry that
103215         it could be more trouble than it's worth.  See:
103216         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
103217         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
103219         * lib/free.c: New file.
103221 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
103223         Trivial fixes to Makefile.am parts of module listings.
103224         * modules/strstr: Append strstr.h to lib_SOURCES.
103225         * modules/strcase: Likewise, for strcase.h.
103227 2003-09-27  Karl Berry  <karl@gnu.org>
103229         * config/mkinstalldirs: update from automake.
103231 2003-09-26  Paul Eggert  <eggert@twinsun.com>
103233         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
103234         (error_tail): Do not loop, reallocating temporary buffer, since
103235         the output cannot contain more wide characters than the input
103236         contains bytes, the size must be big enough already.  This avoids
103237         one potential size overflow calculation.  Check for size overflow
103238         when calculating temporary buffer size.  Free temporary buffer
103239         when done, if it was allocated with malloc; this plugs a memory
103240         leak.  Remove casts from void * to pointers, that are no longer
103241         needed now that we're assuming C89 or better.
103243         Merge error changes from glibc.
103245         * lib/error.c, error.h: Update copyright notice header to match glibc.
103246         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
103247         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
103248         Disable cancellation while printing error.
103249         * lib/error.h: Prepend __ to parameter names.
103251 2003-09-26  Jim Meyering  <jim@meyering.net>
103253         * lib/error.c (error_tail): Move some declarations
103254         into inner scope where the local variables are used.
103256 2003-09-26  Bruno Haible  <bruno@clisp.org>
103258         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
103259         stpncpy().
103260         Don't define stpncpy through config.h; it's now done through stpncpy.h.
103262 2003-09-26  Bruno Haible  <bruno@clisp.org>
103264         * lib/stpncpy.h (gnu_stpncpy): New declaration.
103265         (stpncpy): Define as alias for gnu_stpncpy.
103266         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
103268 2003-09-25  Simon Josefsson  <jas@extundo.com>
103270         * lib/xgetdomainname.h: New file.
103271         * lib/xgetdomainname.c: New file.
103273 2003-09-25  Simon Josefsson  <jas@extundo.com>
103274             Bruno Haible  <bruno@clisp.org>
103276         * modules/getdomainname: New file.
103277         * modules/xgetdomainname: New file.
103278         * MODULES.html.sh (func_all_modules): Add getdomainname,
103279         xgetdomainname.
103281 2003-09-25  Simon Josefsson  <jas@extundo.com>
103282             Bruno Haible  <bruno@clisp.org>
103284         * m4/getdomainname.m4: New file.
103286 2003-09-25  Simon Josefsson  <jas@extundo.com>
103287             Bruno Haible  <bruno@clisp.org>
103289         * lib/getdomainname.h: New file.
103290         * lib/getdomainname.c: New file.
103292 2003-09-25  Karl Berry  <karl@gnu.org>
103294         * lib/argp-fmtstream.c, argp-help.c: update from libc.
103296 2003-09-25  Karl Berry  <karl@gnu.org>
103298         * config/install-sh: update from automake.
103300 2003-09-25  Bruno Haible  <bruno@clisp.org>
103302         * modules/version-etc-2: New file, from modules/version-etc with
103303         modifications.
103304         * MODULES.html.sh (func_all_modules): Add version-etc-2.
103306 2003-09-25  Bruno Haible  <bruno@clisp.org>
103308         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
103309         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
103311 2003-09-24  Simon Josefsson  <jas@extundo.com>
103313         * modules/xgethostname: Add xgethostname.h.
103315 2003-09-24  Paul Eggert  <eggert@twinsun.com>
103317         * lib/linebuffer.c (freebuffer): Don't free the argument, just
103318         the buffer associated with the argument.  Bug reported by
103319         Simon Josefsson.
103321 2003-09-24  Paul Eggert  <eggert@twinsun.com>
103323         * README: Document assumptions that 'int' is at least 32 bits
103324         wide, that integer arithmetic is 2's complement without overflow,
103325         that there are no holes in integer values, that adding sizes of
103326         two nonoverlapping objects can't overflow, and that all-bits-zero
103327         yields scalar zero.  Fix spelling and capitalization typos.
103329 2003-09-19  Karl Berry  <karl@gnu.org>
103331         * lib/argp.h: update from libc.
103333 2003-09-17  Paul Eggert  <eggert@twinsun.com>
103335         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
103336         to avoid spurious warnings like "AC_RUN_IFELSE was called before
103337         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
103339 2003-09-17  Paul Eggert  <eggert@twinsun.com>
103341         * gnulib-tool: Use "test -h", not "test -L", for portability
103342         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
103343         (tags_regexp): Remove, since \| doesn't conform to POSIX.
103344         (sed_extract_prog): Issue s commands one-by-one, rather than
103345         using \| in one s command.
103347 2003-09-16  Paul Eggert  <eggert@twinsun.com>
103349         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
103350         input error, instead of returning NULL the next time we are called
103351         (and therefore losing track of errno).
103353 2003-09-16  Bruno Haible  <bruno@clisp.org>
103355         * gnulib-tool (func_create_testdir): Warn about duplicated
103356         dependencies.
103358 2003-09-15  Paul Eggert  <eggert@twinsun.com>
103360         * modules/argmatch, modules/fatal, modules/obstack,
103361         modules/xalloc, modules/xgethostname: Sort dependencies by
103362         importance, not alphabetically.
103364 2003-09-15  Paul Eggert  <eggert@twinsun.com>
103366         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
103367         fails, so that the caller gets the proper errno.
103369         * lib/readutmp.c (read_utmp): Likewise.
103370         Check for fstat error.  Close stream and free storage
103371         when failing.
103373 2003-09-14  Karl Berry  <karl@gnu.org>
103375         * config/srclist.txt (strdup.c): disable for c89 changes.
103377 2003-09-14  Jim Meyering  <jim@meyering.net>
103379         * lib/getloadavg.c: Correct cpp indentation.
103380         * lib/strdup.c: Likewise.
103381         * lib/vasnprintf.c: Likewise.
103383 2003-09-14  Bruno Haible  <bruno@clisp.org>
103385         * modules/fwriteerror: New file.
103386         * MODULES.html.sh (func_all_modules): Add fwriteerror.
103388 2003-09-14  Bruno Haible  <bruno@clisp.org>
103390         * lib/fwriteerror.h: New file.
103391         * lib/fwriteerror.c: New file.
103393 2003-09-12  Paul Eggert  <eggert@twinsun.com>
103395         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
103396         modules/xgethostname, modules/xalloc: Depend on exit.
103398 2003-09-12  Paul Eggert  <eggert@twinsun.com>
103400         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
103402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
103403         and AC_MINIX, too, so that their extensions are available.
103405         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
103406         This macro has been superseded by gl_BACKUPFILE.
103408         More patches to assume C89 or better.
103410         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
103412         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
103413         unconditionally.
103414         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
103415         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
103416         Include <string.h>, <stdlib.h> unconditionally.
103417         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
103418         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
103419         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
103420         headers or for string.h.
103421         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
103422         or strtoul.
103424         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
103425         headers.
103426         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
103427         * m4/userspec.m4 (gl_USERSPEC): Likewise.
103428         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
103429         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
103430         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
103431         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
103432         memcpy, memset.
103433         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
103434         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
103435         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
103436         strtol.
103437         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
103438         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
103439         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
103440         strtoul.
103442 2003-09-12  Paul Eggert  <eggert@twinsun.com>
103444         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
103445         * lib/obstack.c [!defined _LIBC]: Likewise.
103446         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
103447         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
103448         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
103450         More changes to assume C89 or better.
103452         * lib/error.c (error_tail): Assume vprintf.
103454         * lib/argmatch.c (getenv): Remove decl.
103455         * lib/progreloc.c (get_full_program_name): Define via prototype.
103456         * lib/setenv.c (clearenv): Likewise.
103457         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
103458         needed.
103459         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
103460         (malloc, memcpy): Remove decls.
103461         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
103462         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
103463         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
103464         (memcpy): Remove macro.
103465         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
103466         (__P): Remove.  All uses removed.
103467         (PTR): Remove.  All uses changed to void *.
103468         (CHAR_BIT, NULL): Remove.
103469         (spaces, zeros, memset_space, memset_zero)
103470         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
103471         Remove.
103472         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
103473         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
103474         Define with prototype.
103475         Remove now-unnecessary prototype decl.
103476         (extra_args_spec): Assume ANSI C.  All uses changed.
103477         (extra_args_spec_iso): Remove.
103478         (my_strftime, emacs_strftimeu): Define via prototype.
103479         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
103480         unconditionally.
103481         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
103482         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
103483         (strtoul, strtol): Remove decls.
103484         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
103485         LONG_MAX): Remove.
103486         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
103487         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
103488         (LOCALE_PARAM_PROTO): New macro.
103489         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
103490         (INTERNAL (strtol), strtol): Define with a prototype.
103491         (PARAMS): Remove.  All uses removed.
103492         * lib/tempname.c: Include <string.h> unconditionally.
103493         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
103494         * lib/xgethostname.c (main): Define with a prototype.
103495         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
103496         Include <stdlib.h> unconditionally.
103497         (calloc, malloc, realloc, free): Remove decls.
103498         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
103499         Include <stdlib.h> unconditionally.  Sort include file names.
103500         (strtod): Remove.
103501         (xstrtod): Define with a prototype.
103502         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
103503         (strtol, strtoul): Remove decls.
103505 2003-09-11  Paul Eggert  <eggert@twinsun.com>
103507         More patches to assume C89 or better.
103508         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
103509         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
103510         string.h, memchr, STDC_HEADERS.
103512 2003-09-11  Paul Eggert  <eggert@twinsun.com>
103514         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
103515         Include <stdlib.h>, <string.h> unconditionally.
103516         Remove now-unnecessary cast to char *.
103517         * lib/strnlen.c: Include <string.h> unconditionally.
103518         * lib/yesno.c (yesno): Define with a prototype.
103520 2003-09-11  Bruno Haible  <bruno@clisp.org>
103522         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
103524 2003-09-10  Jim Meyering  <jim@meyering.net>
103526         * lib/error.c: Correct indentation of cpp directives.
103528 2003-09-10  Bruno Haible  <bruno@clisp.org>
103530         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
103531         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
103532         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
103533         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
103534         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
103535         <stdlib.h> and <string.h> checks.
103536         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
103537         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
103539 2003-09-10  Bruno Haible  <bruno@clisp.org>
103541         * lib/strcspn.c: Include <string.h> unconditionally.
103542         * lib/strpbrk.c: Include <string.h> unconditionally.
103543         * lib/strstr.c: Include <string.h> unconditionally.
103544         * lib/unicodeio.c: Include <string.h> unconditionally.
103545         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
103546         * lib/unsetenv.c: Likewise.
103547         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
103548         * lib/yesno.c: Include <stdlib.h> unconditionally.
103549         (rpmatch): Add prototype.
103551 2003-09-09  Paul Eggert  <eggert@twinsun.com>
103553         More patches to assume C89 or better.
103554         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
103555         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
103556         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
103557         or for string.h.
103558         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
103559         stdlib.h.
103560         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
103561         C headers.
103562         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
103563         string.h.
103564         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
103565         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
103566         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
103567         or for string.h.
103568         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
103569         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
103570         C headers.
103571         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
103572         memcpy.
103573         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
103574         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
103575         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
103576         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
103577         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
103578         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
103579         string.h, free.
103580         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
103581         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
103582         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
103583         C headers, or for string.h.
103584         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
103585         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
103586         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
103587         headers, memory.h, stdlib.h, string.h, strings.h.
103588         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
103589         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
103590         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
103591         strchr.
103592         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
103593         headers, memory.h, string.h.
103594         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
103595         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
103596         free.
103597         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
103598         headers.
103599         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
103600         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
103601         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
103602         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
103603         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
103605 2003-09-09  Paul Eggert  <eggert@twinsun.com>
103607         More K&R removal.
103609         * lib/acosl.c (main): Use a prototype.
103610         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
103611         tanl.c: Likewise.
103613         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
103615         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
103616         (getopt, etopt_long, getopt_long_only, _getopt_internal)
103617         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
103618         with a prototype.
103619         * lib/getopt.c (const): Remove macro.
103620         Include <string.h> unconditionally.
103621         (my_index): Remove; all uses changed to strchr.
103622         (strlen): Remove decl.
103623         (exchange): Remove forward decl; no longer needed.
103624         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
103625         Define with prototype.
103626         * lib/getopt1.c (const): Remove macro.
103627         (getopt_long, getopt_long_only, main): Define with prototype.
103629         * lib/getugroups.c: Include <string.h> unconditionally.
103631         * lib/getusershell.c: Include <stdlib.h> unconditionally.
103632         (getusershell, setusershell, endusershell, readname, main):
103633         Define with prototypes.
103635         * lib/group-member.c: Include group-member.h first.
103636         Include <stdlib.h> unconditionally.
103638         * lib/hard-locale.c: Include hard-locale.h first.
103639         Include <stdlib.h>, <string.h> unconditionally.
103641         * lib/hash.c (free, malloc): Remove decls.
103642         Include <stdlib.h> unconditionally.
103644         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
103645         (getenv): Do not declare.
103647         * lib/idcache.c: Include <string.h> unconditionally.
103649         * lib/long-options.c: Include long-options.h first, to test interface.
103650         Include <stdlib.h> unconditionally.
103652         * lib/makepath.c: Include makepath.h first, to test interface.
103653         Include <stdlib.h> and <string.h> unconditionally.
103655         * lib/linebuffer.c: Include <stdlib.h>.
103656         (free): Remove decl.
103658         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
103659         stddef.h. rpl_malloc returns void *, not char *.
103660         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
103661         prototype.
103663         * lib/md5.h: Include <limits.h> unconditionally.
103664         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
103665         (__P): Remove; all uses removed.
103666         * lib/md5.c: Include "md5.h" first.
103667         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
103668         md5_buffer, md5_process_bytes, md5_process_block):
103669         Define with prototypes.
103670         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
103671         * lib/sha.c: Include "sha.h" first.
103672         Include <stdlib.h>, <string.h> unconditionally.
103674         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
103675         * lib/memcmp.c (__ptr_t): Likewise.
103676         * lib/memrchr.c (__ptr_t): Likewise.
103677         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
103678         Include <string.h> unconditionally.
103679         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
103680         * lib/memchr.c: Include <stdlib.h> unconditionally.
103681         * lib/memchr.c (LONG_MAX): Remove.
103682         * lib/memrchr.c (LONG_MAX): Likewise.
103683         * lib/memchr.c (__memchr): Define via a prototype.
103684         * lib/memrchr.c (__memrchr): Likewise.
103685         * lib/memcmp.c (__P): Remove, and remove all uses.
103686         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
103687         Remove forward decls; no longer needed.
103688         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
103689         Use types required by C89 in prototype.
103691         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
103692         * lib/savedir.c: Likewise.
103693         * lib/mkdir.c (free): Remove decl.
103694         * lib/rmdir.c (rmdir): Define with a prototype.
103695         * lib/savedir.c: Include savedir.h first, to test interface.
103697         * lib/mktime.c (STDC_HEADERS): Remove.
103698         Include <stdlib.h>, <string.h> unconditionally.
103700         * lib/modechange.c: Include <stdlib.h> unconditionally.
103701         (malloc): Remove decl.
103703         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
103704         (free): Remove decl.
103706         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
103707         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
103708         (This type really should be intptr_t, but that's a C99ism.)
103709         (_obstack_memcpy): Remove: all uses changed to memcpy.
103710         Include <string.h> unconditionally.
103711         (struct obstack): Assume __STDC__ for types of members
103712         chunkfun, freefun, extra_arg.
103713         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
103714         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
103715         obstack_begin, obstack_specify_allocation,
103716         obstack_specify_allocation_with_arg, obstack_chunkfun,
103717         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
103718         Remove unprototyped decls and the macros that use them.
103719         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
103720         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
103721         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
103722         (defined __STDC__ && __STDC__)]:
103723         Remove nonprototyped code.
103724         Include <stdlib.h> unconditionally.
103725         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
103726         _obstack_allocated_p, _obstack_free, obstack_free,
103727         _obstack_memory_used, print_and_abort):
103728         Define using prototypes.
103729         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
103730         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
103731         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
103732         obstack_next_free, obstack_object_size, obstack_room) [0]:
103733         Remove unused, unprototyped code.
103735         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
103737         * lib/physmem.c (physmem_total, physmem_available, main): Define
103738         with prototypes.
103740         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
103741         (main): Define with a prototype.
103743         * lib/posixver.c (getenv): Remove decl.
103745         * lib/putenv.c (malloc): Returns void *, not char *.
103746         Include <string.h> unconditionally.
103747         (strchr, memcpy, NULL): Do not define.
103749         * lib/readtokens.c: Include readtokens.h first, to test interface.
103750         Include <stdlib.h>, <string.h> unconditionally.
103751         (init_tokenbuffer): Define with a prototype.
103753         * lib/regex.c (PARAMS): Remove.  All uses removed.
103754         All uses of _RE_ARGS removed, too.
103755         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
103756         unconditionally.
103757         (bzero): Assume memset exists.
103758         (memcmp, memcpy, NULL): Remove.
103759         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
103760         char, or assignments to local vars of type signed char.
103761         (init_syntax_once, PREFIX(extract_number_and_incr),
103762         PREFIX(print_partial_compiled_pattern),
103763         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
103764         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
103765         PREFIX(regex_grow_registers), PREFIX(regex_compile),
103766         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
103767         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
103768         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
103769         wcs_compile_range, byte_compile_range, truncate_wchar,
103770         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
103771         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
103772         count_mbs_length, wcs_re_match_2_internal,
103773         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
103774         PREFIX(alt_match_null_string_p),
103775         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
103776         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
103777         regfree, PREFIX(extract_number)): Define with prototype.  Remove
103778         now-unnecessary declaration, if any.
103779         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
103780         regcomp, regexec):
103781         Remove now-unnecessary casts among pointer types.
103782         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
103784         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
103785         (free): Remove decl.
103787         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
103789         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
103790         (free): Remove decl.
103792         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
103793         * lib/xgetcwd.c: Likewise.
103795         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
103796         (free): Remove decl.
103798         * lib/strchrnul.c (strchrnul): Define with a prototype.
103799         Fix bug: c_in was not converted to char before searching.
103801         The following changes are not K&R related:
103803         * lib/group-member.h: Include <sys/types.h>, so that this file is
103804         self-contained.
103805         * lib/makepath.h: Likewise.
103807         * lib/getusershell.c (readname, default_index, line_size, readname):
103808         Use size_t, not int, for sizes.
103809         (readname): If the size overflows, report an error instead of
103810         looping forever.
103812 2003-09-09  Paul Eggert  <eggert@twinsun.com>
103814         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
103815         libc.
103817 2003-09-09  Paul Eggert  <eggert@twinsun.com>
103819         * README: New section: portability guidelines.
103821 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
103823         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
103824         C89 spec.
103826 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
103828         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
103830 2003-09-08  Paul Eggert  <eggert@twinsun.com>
103832         Assume C89 or better; remove K&R cruft.
103833         A few of these changes were first proposed by Derek Robert Price
103834         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
103836         * lib/addext.c: Include <string.h> unconditionally.
103837         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
103838         Don't declare getenv or malloc.
103840         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
103841         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
103842         (NULL): Remove.
103843         (find_stack_direction, alloca): Use prototypes.
103845         * lib/atexit.c (atexit): Define using a prototype.
103847         * lib/basename.c, dirname.c, stripslash.c:
103848         Include <string.h> unconditionally.
103850         * lib/bcopy.c: Include <stddef.h>.
103851         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
103853         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
103855         * lib/error.h (error, error_at_line, error_print_progname)
103856         [! (defined (__STDC__) && __STDC__)]: Remove decls.
103857         * lib/error.c: Include error.h first, to check interface.
103858         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
103859         (VA_START): Remove; all uses changeed to va_start.
103860         (exit, strerror): Remove decls.
103861         (error_print_progname): Prototype uncondionally.
103862         Don't include <errno.h>; no longer needed.
103863         (private_strerror): Remove.
103864         (error_tail): Always define.
103865         (error, error_at_line): Assume C89 or better; always use prototypes.
103866         * lib/fatal.c: Include "fatal.h" first, to test interface.
103867         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
103868         (VA_START): Remove; all uses changed to va_start.
103869         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
103870         this case.
103871         (exit): Remove decl.
103872         (fatal): Prototype unconditionally.  Assume va_start works.
103873         Abort at end, to pacify gcc.
103875         * lib/euidaccess.c (main): Define with a prototype.
103877         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
103879         * lib/exitfail.c: Include <stdlib.h> unconditionally.
103881         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
103882         prototypes.
103883         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
103884         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
103885         (getenv): Remove decl.
103886         (fnmatch): Define using a prototype.
103887         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
103888         (FCT): Define using a prototype.
103890         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
103892         * lib/gethostname.c: Include <stddef.h>.
103893         (gethostname): Define with prototype.  Length is size_t, not int.
103895 2003-09-08  Paul Eggert  <eggert@twinsun.com>
103897         Assume C89 or better; remove K&R cruft.
103898         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
103899         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
103900         string.h, getenv, malloc.
103901         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
103902         headers.
103903         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
103904         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
103905         do not check for strerror.
103906         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
103907         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
103908         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
103909         do not check for doprnt or vprintf.
103910         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
103911         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
103913 2003-09-08  Paul Eggert  <eggert@twinsun.com>
103915         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
103916         getversion.c should have been removed then, but was accidentally
103917         preserved.
103919         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
103920         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
103922 2003-09-08  Karl Berry  <karl@gnu.org>
103924         * config/config.sub, config.guess, srclistvars.sh: update from savannah
103925                 config, forget about prep.
103927         * config/depcomp, missing: update from automake.
103929 2003-09-07  Paul Eggert  <eggert@twinsun.com>
103931         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
103932         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
103934 2003-09-07  Paul Eggert  <eggert@twinsun.com>
103936         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
103937         copy_tm_result.  Bug reported by Simon Josefsson in
103938         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
103940 2003-09-06  Paul Eggert  <eggert@twinsun.com>
103942         * m4/time_r.m4: New file.
103943         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
103944         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
103945         is. Check for timegm declaration.
103946         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
103947         Do not check for gmtime_r.
103948         Replace mktime if __mktime_internal does not exist and if mktime
103949         hasn't been replaced already.
103951 2003-09-06  Paul Eggert  <eggert@twinsun.com>
103953         * lib/time_r.c, lib/time_r.h: New files.
103955         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
103956         __localtime_r.
103957         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
103958         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
103960         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
103961         __gmtime_r.
103962         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
103963         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
103964         Include <time_r.h>.
103966         * lib/timegm.c: Switch to glibc implementation, with the following
103967         changes:
103968         [defined HAVE_CONFIG_H]: Include <config.h>.
103969         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
103970         (__mktime_internal) [!defined _LIBC]: New decl.
103971         (__gmtime_r) [!defined _LIBC]: New macro and function.
103972         (timegm): Use a prototype, since gnulib assumes C89.
103973         Do not bother declaring tmp to be const, as it's not really usefu.
103974         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
103975         (timegm): Declare only if HAVE_DECL_TIMEGM.
103977 2003-09-06  Paul Eggert  <eggert@twinsun.com>
103979         * MODULES.html.sh (func_all_modules): Add time_r.
103980         * modules/time_r: New file.
103981         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
103982         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
103984 2003-09-03  Paul Eggert  <eggert@twinsun.com>
103986         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
103987         Bug reported by Lute Kamstra in
103988         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
103990         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
103991         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
103992         course with correspondingly smaller numbers for tomorrow and
103993         yesterday.  From Tadayoshi Funaba.  Originally installed into
103994         sh-utils on 1999-08-07, but the patch got lost (I guess during the
103995         coreutils merge?).
103997 2003-08-31  Simon Josefsson  <jas@extundo.com>
103999         * modules/timegm: New file.
104000         * MODULES.html.sh (func_all_modules): Add timegm.
104002 2003-08-31  Simon Josefsson  <jas@extundo.com>
104004         * m4/timegm.m4: New file.
104006 2003-08-31  Simon Josefsson  <jas@extundo.com>
104008         * lib/timegm.h: New file.
104009         * lib/timegm.c: New file.  Based on
104010         wget-1.8.2/src/http.c:mktime_from_utc.
104012 2003-08-31  Karl Berry  <karl@gnu.org>
104014         * lib/argp.h: update from libc.
104016 2003-08-28  Bruno Haible  <bruno@clisp.org>
104018         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
104019         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
104020         followed by '#define fnmatch fnmatch_posix' gives an error.
104022 2003-08-28  Bruno Haible  <bruno@clisp.org>
104024         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
104025         warning on QNX, which defines O_BINARY to 000000.
104027 2003-08-27  Jim Meyering  <jim@meyering.net>
104029         * m4/mkstemp.m4: Require that the system mkstemp be able to create
104030         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
104031         would fail after 32.  Reported by Danny Levinson.  Details here:
104032         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
104034 2003-08-24  Bruno Haible  <bruno@clisp.org>
104036         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
104037         MSVC7 <stdio.h> is included later.
104039 2003-08-22  Simon Josefsson  <jas@extundo.com>
104041         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
104043 2003-08-20  Karl Berry  <karl@gnu.org>
104045         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
104047 2003-08-20  Bruno Haible  <bruno@clisp.org>
104049         * modules/progname: New file.
104050         * MODULES.html.sh (func_all_modules): Add progname.
104052 2003-08-20  Bruno Haible  <bruno@clisp.org>
104054         * lib/progname.h: New file, from GNU gettext.
104055         * lib/progname.c: New file, from GNU gettext.
104056         * lib/progreloc.c: New file, from GNU gettext.
104058 2003-08-19  Jim Meyering  <jim@meyering.net>
104060         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
104061         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
104063 2003-08-19  Bruno Haible  <bruno@clisp.org>
104065         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
104066         more.
104068 2003-08-19  Bruno Haible  <bruno@clisp.org>
104070         * lib/xstrdup.c: Assume <string.h> exists.
104072 2003-08-18  Paul Eggert  <eggert@twinsun.com>
104074         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
104075         in makefile rules.
104077 2003-08-18  Jim Meyering  <jim@meyering.net>
104079         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
104080         * m4/lib-ld.m4: Likewise.
104082 2003-08-18  Jim Meyering  <jim@meyering.net>
104084         * lib/setenv.h: Indent nested cpp directive.
104085         * lib/vasnprintf.c: Remove trailing blanks.
104087 2003-08-17  Simon Josefsson  <jas@extundo.com>
104089         * modules/xstrndup: New file.
104090         * MODULES.html.sh (func_all_modules): Add xstrndup.
104092 2003-08-17  Simon Josefsson  <jas@extundo.com>
104094         * modules/argp: Fix autoconf macro name. Add more dependencies.
104096 2003-08-17  Simon Josefsson  <jas@extundo.com>
104098         * m4/xstrndup.m4: New file.
104100 2003-08-17  Simon Josefsson  <jas@extundo.com>
104102         * m4/argp.m4: New file.
104104 2003-08-17  Simon Josefsson  <jas@extundo.com>
104105             Bruno Haible  <bruno@clisp.org>
104107         * lib/xstrndup.h: New file.
104108         * lib/xstrndup.c: New file.
104110 2003-08-17  Bruno Haible  <bruno@clisp.org>
104112         * modules/strndup (Files, Include): Add lib/strndup.h.
104114 2003-08-17  Bruno Haible  <bruno@clisp.org>
104116         * modules/euidaccess (Files): Add lib/euidaccess.h.
104118 2003-08-17  Bruno Haible  <bruno@clisp.org>
104120         * lib/strndup.h: New file.
104122 2003-08-17  Bruno Haible  <bruno@clisp.org>
104124         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
104125         like AC_GNU_SOURCE.
104126         * modules/extensions (configure.ac): Comment out the invocation of
104127         gl_USE_SYSTEM_EXTENSIONS.
104129 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104131         Merges from coreutils, etc.
104132         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
104133         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
104134         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
104135         fixing a typo.
104136         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
104137         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
104139 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104141         Document merge from coreutils.
104142         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
104143         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
104144         * modules/utime: Add m4/utimes-null.m4.
104146 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104148         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
104149         space, undoing this 2003-08-12 change:
104150         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
104152 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104154         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
104155         strtoul.c from libc, undoing this 2003-08-12 change:
104156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
104158 2003-08-16  Jim Meyering  <jim@meyering.net>
104160         Merges from coreutils.
104161         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
104162         prefix.  Adjust cache variables similarly.  Create 500 rather than
104163         just 300 files, to exercise bug on Darwin6.5, too.
104164         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
104165         $missing_dir.
104166         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
104167         AM_SYS_POSIX_TERMIOS.
104168         Reported by mkc@mathdogs.com.
104169         Also change use of $am_cv_sys_posix_termios
104170         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
104171         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
104172         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
104173         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
104174         in /proc/mounts until it finds one with matching device number.  This
104175         is unnecessary when the FILE argument *is* a mount point.  No stat call
104176         is necessary in that case.  So, disable the statvfs-testing code on
104177         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
104178         as RedHat bug# 84846.
104179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
104180         to 1MB, so as not to render systems with no stack size limit (e.g.,
104181         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
104182         Include <unistd.h>.  On some systems,
104183         it is required for the definition of _SC_PAGESIZE.
104185 2003-08-16  Jim Meyering  <jim@meyering.net>
104187         Merge from coreutils.
104188         * lib/xstrtoimax.c: #else #if -> #elif.
104189         * lib/xstrtoumax.c: Likewise.
104191 2003-08-16  Jim Meyering  <jim@meyering.net>
104193         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
104194         * m4/utimes.m4: Removed.
104195         * m4/utimes-null.m4: Renamed from utimes.m4.
104197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
104198         to 1MB, so as not to render systems with no stack size limit (e.g.,
104199         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
104200         Include <unistd.h>.  On some systems,
104201         it is required for the definition of _SC_PAGESIZE.
104203 2003-08-16  Jim Meyering  <jim@meyering.net>
104204         and Paul Eggert  <eggert@cs.ucla.edu>
104206         Merges from coreutils, etc.
104208         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
104209         using the latest version from cvs.  This avoids problems with #line
104210         directives using a vendor (Sun) compiler.
104211         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
104212         Don't set GETGROUPS_LIB here; now it's
104213         done via getgroups.m4's wrapper function.
104214         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
104215         rather than just in sh-util/configure.in, so that the
104216         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
104217         same.
104218         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
104219         AC_FUNC_GETLOADAVG where to find getloadavg.c.
104220         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
104221         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
104222         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
104223         Remove code that is now done by the newly-required macros.
104224         Append $(EXEEXT) to DF_PROG.
104225         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
104226         Do not invoke or require the following here,
104227         since prereq.m4 or some gnulib .m4 now does this for us:
104228         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
104229         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
104230         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
104231         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
104232         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
104233         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
104234         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
104235         AC_FUNC_OBSTACK.
104236         Do not replace the following functions, as this is now the job
104237         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
104238         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
104239         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
104240         atexit getpass, strdup, getpagesize.
104241         Replace 'raise'.
104242         Do not check for the following functions, as this is now the job
104243         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
104244         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
104245         setregid.
104246         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
104247         Check for sys/sysctl.h.
104248         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
104249         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
104250         of checking for ssize_t ourselves.
104252         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
104253         Require every macro that gnulib/modules/* suggests for us.
104254         (jm_PREREQ_ADDEXT): New macro.
104255         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
104256         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
104258         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
104259         (gl_PHYSMEM): Use it.
104260         Also check for `table' function.
104261         Check for new headers and functions.
104262         Add check for sys/sysmp.h.
104263         With suggestions from Kaveh Ghazi.
104264         Ignore headers that are present but cannot be compiled.  This
104265         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
104266         C 5.4.
104268 2003-08-15  Paul Eggert  <eggert@twinsun.com>
104270         Document merge from coreutils.
104271         * modules/userspec: Depend on posixver.
104272         * modules/strftime: Depend on tzset.
104274 2003-08-15  Paul Eggert  <eggert@twinsun.com>
104276         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
104277         rather than tab, after '#' in shell-script copyright notices.
104278         Suggested by Bruno Haible.
104280 2003-08-15  Paul Eggert  <eggert@twinsun.com>
104282         * config/srclist-update: Use three spaces, rather than tab, after '#'
104283         in shell-script copyright notices.  Suggested by Bruno Haible.
104284         Remove unnecessary parenthesization in regular expression.
104286 2003-08-15  Jim Meyering  <jim@meyering.net>
104288         Merge from coreutils.
104289         * lib/xgethostname.c: Include <stdlib.h>.
104290         (xghostname): Don't exit for anything other than memory-related
104291         failure; just return NULL.
104292         * lib/userspec.c: Include "posixver.h".
104293         (parse_user_spec): Accept `.' as a separator only
104294         in pre-POSIX-200112 mode.
104295         * lib/strtoimax.c: Use #elif rather than #else #if.
104296         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
104297         Remove function, now that we can rely on a working tzset function.
104298         [!_LIBC]: Ensure that the required autoconf test has been run.
104299         [!defined _NL_CURRENT && HAVE_STRFTIME]:
104300         Use underlying_strftime for %r.
104301         * lib/sha.c: Merge in some clean-up and optimization changes from
104302         glibc.
104303         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
104304         Ensure that it is a multiple of 64.
104305         Rearrange loop exit tests so as to avoid performing an
104306         additional fread after encountering an error or EOF.
104307         * lib/realloc.c: Update copyright date.
104309 2003-08-15  Jim Meyering  <jim@meyering.net>
104310         and Paul Eggert  <eggert@twinsun.com>
104312         Merge from coreutils.
104313         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
104314         member but strut utmpx does not.  Needed for AIX 4.3.3.
104315         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
104317 2003-08-15  Jim Meyering  <jim@meyering.net>
104318         and Paul Eggert  <eggert@cs.ucla.edu>
104320         Merges from coreutils, etc.
104321         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
104322         Require gl_FUNC_TZSET_CLOBBER.
104323         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
104324         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
104325         members.
104327 2003-08-14  Paul Eggert  <eggert@twinsun.com>
104329         Help the merge from coreutils.
104330         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
104331         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
104332         * m4/tzset.m4: Use it too.
104334 2003-08-14  Paul Eggert  <eggert@twinsun.com>
104336         * modules/tzset: New file.
104338 2003-08-14  Jim Meyering  <jim@meyering.net>
104340         Merges from coreutils.
104341         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
104342         variable names, rather than @FNMATCH_H@.
104343         * modules/alloca: Likewise for $(ALLOCA_H).
104345         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
104346         the three copies of the literal target, `fnmatch.h'.
104347         * modules/alloca (alloca.h): Likewise.
104349 2003-08-14  Jim Meyering  <jim@meyering.net>
104351         Merge from coreutils.
104352         * m4/tzset.m4: New file.
104353         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
104354         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
104355         otherwise, AIX 5.1 systems would end up using the latter.
104356         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
104357         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
104358         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
104359         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
104361 2003-08-14  Jim Meyering  <jim@meyering.net>
104363         Merge from coreutils.
104364         * lib/obstack.h: Whitespace changes.
104365         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
104366         and xcalloc return values.
104367         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
104368         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
104369         hang on OSF/1 5.1 for DIR on both local and remote file systems.
104370         Reported by (and fix confirmed by) Nelson H. F. Beebe.
104371         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
104372         error from mntctl.
104373         Use mntctl's return value to drive the entry-processing loop, since
104374         we can't rely on the value of the vmt_length member in the last
104375         entry.  On some systems doing so could result in exhausting
104376         virtual memory.  Based in part on a patch from Mike Jetzer.
104378 2003-08-14  Jim Meyering  <jim@meyering.net>
104379         and Paul Eggert  <eggert@twinsun.com>
104381         Merges from coreutils, plus other fixes.
104382         * lib/physmem.c: Merge in portability changes from gcc/libiberty
104383         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
104384         for credits and details.  Thanks to Kaveh Ghazi for helping
104385         to keep these files in sync.
104386         (ARRAY_SIZE): Define it.
104387         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
104388         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
104389         (memcasecmp): Don't assume size_t fits in unsigned int.
104390         Remove casts and duplicate code.
104391         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
104392         (memcpy): Remove definition.
104393         Merge in some clean-up and optimization changes from glibc.
104394         [BLOCKSIZE]: Move definition to top of file.
104395         Ensure that it is a multiple of 64.
104396         Rearrange loop exit tests so as to avoid performing an
104397         additional fread after encountering an error or EOF.
104398         * lib/md5.h (md5_uintptr): Define.
104399         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
104400         return to the initial working directory.  Preserve errno
104401         for caller.
104402         * lib/idcache.c: Include "xalloc.h".
104403         (xmalloc, xrealloc): Remove decls.
104404         (getuser): Remove casts no longer required in C89.
104405         * lib/human.c: Include stdio.h, for sprintf.
104406         * lib/group-member.c: Include "xalloc.h".
104407         (xmalloc, xrealloc): Remove decls.
104408         (get_group_info): Remove casts no longer required in C89.
104409         * lib/getusershell.c (readname): Remove casts no longer required in
104410         C89.
104411         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
104412         * lib/getline.c: Whitespace fix, from coreutils.
104414 2003-08-13  Paul Eggert  <eggert@twinsun.com>
104416         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
104417         Check for isascii.
104419         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
104420         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
104421         Undo previous (whitespace-only) change.
104423 2003-08-13  Paul Eggert  <eggert@twinsun.com>
104425         * lib/exclude.c: Include <ctype.h>
104426         (IN_CTYPE_DOMAIN): New macro.
104427         (is_space): New fn.
104428         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
104429         and empty lines.
104431         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
104432         Undo previous (whitespace-only) change.
104434 2003-08-13  Paul Eggert  <eggert@twinsun.com>
104436         * config/srclist-update: Change update back to the old behavior,
104437         leaving whitespace alone.  Use one 'sed' command rather than a
104438         pipeline.
104439         (fixlicense): Now a variable, not a function.
104440         (remove_trailing_blanks): Remove.
104441         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
104442         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
104443         Undo previous (whitespace-only) change.
104445 2003-08-12  Paul Eggert  <eggert@twinsun.com>
104447         Merge from coreutils.
104448         * modules/euidaccess: Add lib_SOURCES, include for new
104449         file euidaccess.h
104451 2003-08-12  Paul Eggert  <eggert@twinsun.com>
104453         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
104454         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
104455         Normalize leading white space and remove trailing white space.
104457         Merge from coreutils
104458         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
104460         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
104461         0.12.1.  These files are now being upgraded automatically by
104462         ../config/srclist-update.
104464 2003-08-12  Paul Eggert  <eggert@twinsun.com>
104466         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
104467         Normalize leading white space and remove trailing white space.
104468         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
104469         notice, as per ../config/srclist-update.
104471         Merge from coreutils.
104472         * lib/euidaccess.h: New file.
104473         * lib/euidaccess.c: Include it.
104474         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
104475         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
104476         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
104478 2003-08-12  Paul Eggert  <eggert@twinsun.com>
104480         * config/srclist-update: Add copyright notice.
104481         (remove_id_lines, remove_trailing_blanks): New constants.
104482         (fixfile): Use them to normalize spacing a bit in copied files.
104483         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
104484         Normalize leading white space and remove trailing white space.
104486         * config/texinfo.tex: Sync with texinfo.
104488         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
104489         strtoul.c from libc, to merge coreutils whitespace changes.
104491         * config/srclist.txt: Get the following m4 files from gettext:
104492         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
104493         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
104494         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
104495         wint_t.m4.
104497 2003-08-12  Karl Berry  <karl@gnu.org>
104499         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
104500         been made.
104502 2003-08-11  Paul Eggert  <eggert@twinsun.com>
104504         * modules/gnu-source, m4/gnu-source.m4:
104505         Remove; we're assuming Autoconf 2.54 or later now.
104506         Suggested by Bruno Haible.
104507         * MODULES.html.sh (func_all_modules): Remove gnu-source.
104509 2003-08-11  Bruno Haible  <bruno@clisp.org>
104511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
104513 2003-08-11  Bruno Haible  <bruno@clisp.org>
104515         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
104516         (vasnprintf): Use it instead of wcslen.
104518 2003-08-11  Bruno Haible  <bruno@clisp.org>
104520         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
104521         value to ensure that _Bool promotes to int. Use #define for _Bool when
104522         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
104524 2003-08-10  Karl Berry  <karl@gnu.org>
104526         * lib/regex.h: update from libc (whitespace fix).
104528 2003-08-09  Paul Eggert  <eggert@twinsun.com>
104530         Merge some files from coreutils.  These changes were
104531         originally made by Jim Meyering.
104532         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
104533         many older Unixes require this.
104534         * lib/alloca.c (alloca): Remove cast to argument of free;
104535         no longer needed in C89.
104536         * lib/alloca_.h, regex.h: Fix white space to match
104537         what GNU indent does.
104539 2003-08-09  Paul Eggert  <eggert@twinsun.com>
104541         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
104542         apparently Emacs's Unicode mode got confused before my 2003-08-05
104543         checkin.
104545 2003-08-08  Paul Eggert  <eggert@twinsun.com>
104547         * m4/extensions.m4: New file.
104548         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
104549         Require gl_USE_SYSTEM_EXTENSIONS.
104550         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
104551         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
104553 2003-08-08  Paul Eggert  <eggert@twinsun.com>
104555         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
104556         * modules/extensions, modules/gnu-source: New files.
104557         * modules/timespec, modules/unlocked-io: Depend on extensions.
104559 2003-08-07  Paul Eggert  <eggert@twinsun.com>
104561         * modules/restrict: New file.
104562         * MODULES.html.sh (func_all_modules): Add restrict.
104563         * modules/regex: Depend on restrict.
104565 2003-08-07  Paul Eggert  <eggert@twinsun.com>
104567         * m4/restrict.m4: New file.
104568         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
104570 2003-08-07  Bruno Haible  <bruno@clisp.org>
104572         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
104573         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
104575 2003-08-07  Bruno Haible  <bruno@clisp.org>
104577         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
104578         makes the module 'getndelim2' compatible with the module 'getline'.
104580 2003-08-05  Paul Eggert  <eggert@twinsun.com>
104582         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
104583         byte with "\201" to avoid glitches when editing that source file
104584         with multi-gnome-terminal.
104586 2003-08-05  Paul Eggert  <eggert@twinsun.com>
104588         * lib/bumpalloc.h: Remove.
104590 2003-08-05  Paul Eggert  <eggert@twinsun.com>
104592         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
104593         * modules/bumpalloc: Remove.
104595 2003-08-04  Paul Eggert  <eggert@twinsun.com>
104597         * lib/getloadavg.c: Change copyright notice and spacing to conform to
104598         GNU coding style.
104600         Merge from coreutils.
104601         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
104602         1. From glibc.
104603         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
104604         from Karl Berry, implemented by Jim Meyering.
104605         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
104606         from Dmitry V. Levin.
104607         Remove anachronistic cast of xrealloc.
104608         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
104609         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
104610         type. Otherwise, it wouldn't compile with at least /bin/cc on
104611         ymp-cray-unicos9.0.2.X.
104612         Combine two mostly-identical uses of alloca into one.
104613         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
104615 2003-08-04  Dave Love  <d.love@dl.ac.uk>
104617         [From Emacs.]
104619         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
104620         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
104621         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
104622         obsolete NLIST_NAME_UNION.
104623         [__GNU__]: Undef BSD and FSCALE.
104624         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
104626 2003-08-03  Paul Eggert  <eggert@twinsun.com>
104628         * lib/stdbool_.h (_Bool): Make it signed char, instead of
104629         an enum type, so that it's guaranteed to promote to int.  See:
104630         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
104632 2003-08-03  Karl Berry  <karl@gnu.org>
104634         * config/depcomp: update from automake.
104636 2003-07-31  Paul Eggert  <eggert@twinsun.com>
104638         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
104639         (strerror): Don't assume that a printable int fits in 14 bytes.
104641 2003-07-31  Bruno Haible  <bruno@clisp.org>
104643         * modules/getpass-gnu: New file.
104644         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
104646 2003-07-31  Bruno Haible  <bruno@clisp.org>
104648         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
104650 2003-07-24  Karl Berry  <karl@gnu.org>
104652         * config/missing: update from automake.
104654 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
104655             Bruno Haible  <bruno@clisp.org>
104657         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
104658         * lib/getline.c (getline, getdelim): Likewise.
104659         Remove _GNU_SOURCE define; now it's defined in config.h through
104660         m4/getline.m4.
104662 2003-07-23  Karl Berry  <karl@gnu.org>
104664         * config/config.sub: update from prep.
104666 2003-07-22  Paul Eggert  <eggert@twinsun.com>
104668         * modules/xalloc (Depends-on): Add exitfail.
104669         * modules/xmemcoll: Likewise.
104671 2003-07-22  Paul Eggert  <eggert@twinsun.com>
104673         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
104674         over-parenthesization in macros.
104676         Sync with coreutils.
104678         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
104679         required by C99.
104681         Use `exit_failure' for xalloc and xmemcoll instead of their own
104682         private exit-failure variables.
104683         * lib/xalloc.h (xalloc_exit_failure): Remove.
104684         * lib/xmalloc.c: Likewise.  Include exitfail.h.
104685         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
104686         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
104687         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
104688         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
104690 2003-07-20  Jim Meyering  <jim@meyering.net>
104692         * modules/closeout (Depends-on): Add exitfail.
104693         Suggestion from Bruno Haible.
104695 2003-07-19  Karl Berry  <karl@gnu.org>
104697         * config/config.sub: update from prep.
104699 2003-07-18  Paul Eggert  <eggert@twinsun.com>
104701         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
104702         Remove.
104703         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
104704         to test that it can stand by itself.  Include "exitfail.h".
104705         Clients should set exit_failure instead.
104706         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
104708 2003-07-18  Bruno Haible  <bruno@clisp.org>
104710         * modules/getndelim2: New file.
104711         * modules/getline: Share files with module getndelim2.
104712         * modules/getnline: Depend on getndelim2 instead of sharing files with
104713         it. Add getnline.c to lib_SOURCES.
104714         * MODULES.html.sh (func_all_modules): Add getndelim2.
104716 2003-07-18  Bruno Haible  <bruno@clisp.org>
104718         * m4/getndelim2.m4: New file.
104719         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
104720         invoke gl_PREREQ_GETNDELIM2.
104721         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
104722         gl_PREREQ_GETNDELIM2.
104723         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
104724         gl_GETNDELIM2.
104726 2003-07-18  Bruno Haible  <bruno@clisp.org>
104728         * lib/getndelim2.h: New file.
104729         * lib/getndelim2.c: Make into a module of its own. Include config.h,
104730         getndelim2.h.
104731         (getndelim2): Make non-static. Change return type to ssize_t.
104732         * lib/getline.h: Change argument names.
104733         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
104734         * lib/getnline.c: Include getndelim2.h.
104736 2003-07-18  Andreas Schwab  <schwab@suse.de>
104738         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
104740 2003-07-17  Karl Berry  <karl@gnu.org>
104742         * config/config.sub: update from prep.
104744 2003-07-17  Bruno Haible  <bruno@clisp.org>
104746         * modules/getnline: New file.
104747         * modules/getline: Add lib/getndelim2.c to source file list.
104748         * MODULES.html.sh (func_all_modules): Add getnline.
104750 2003-07-17  Bruno Haible  <bruno@clisp.org>
104752         * m4/getnline.m4: New file.
104754 2003-07-17  Bruno Haible  <bruno@clisp.org>
104756         * m4/Makefile.am.in: Remove file.
104757         * m4/Makefile.am: Remove file.
104758         * m4/Makefile.in: Remove file.
104760 2003-07-17  Bruno Haible  <bruno@clisp.org>
104762         * lib/getnline.h: New file.
104763         * lib/getnline.c: New file.
104764         * lib/getndelim2.c: New file, extracted from getline.c.
104765         (getndelim2): Renamed from getdelim2, with added nmax argument.
104766         * lib/getline.c: Include getndelim2.c.
104767         (getdelim2): Moved out to getndelim2.c.
104768         (getline, getdelim): Update.
104770 2003-07-17  Bruno Haible  <bruno@clisp.org>
104772         * lib/Makefile.am: Remove file.
104773         * lib/Makefile.in: Remove file.
104775 2003-07-17  Bruno Haible  <bruno@clisp.org>
104777         * configure.in: Remove file.
104778         * Makefile.in: Remove file.
104780 2003-07-17  Bruno Haible  <bruno@clisp.org>
104782         * MODULES.html.sh: Put the </BODY> right before </HTML>.
104784 2003-07-16  Karl Berry  <karl@gnu.org>
104786         * config/srclist-update: was running fixlicense twice, which caused
104787                 texinfo.tex to be nullified for some reason.  Simplify,
104788                 $gplsrc is no longer needed as far as I can see?
104790 2003-07-16  Jim Meyering  <jim@meyering.net>
104792         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
104794 2003-07-15  Paul Eggert  <eggert@twinsun.com>
104796         * config/srclist.txt: Get the following files from gettext-runtime/intl
104797         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
104798         ref-del.sin.  From Bruno Haible.
104799         * config/srclist-update (fixfile): Change grep pattern again, since the
104800         previous fix didn't work (there was another trailing $).  Use
104801         '[$]' to escape the $s.
104803 2003-07-15  Karl Berry  <karl@gnu.org>
104805         * lib/vasnprintf.c: update from gettext.
104807 2003-07-15  Karl Berry  <karl@gnu.org>
104809         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
104810         gets expanded when surrounded by '$'.
104812 2003-07-15  Jim Meyering  <jim@meyering.net>
104814         * modules/save-cwd: Don't depend on error.  From Derek Price.
104816 2003-07-15  Jim Meyering  <jim@meyering.net>
104818         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
104820 2003-07-14  Simon Josefsson  <jas@extundo.com>
104822         * modules/mempcpy: New file.
104823         * MODULES.html.sh (func_all_modules): Add mempcpy.
104825 2003-07-14  Simon Josefsson  <jas@extundo.com>
104827         * m4/mempcpy.m4: New file.
104829 2003-07-14  Simon Josefsson  <jas@extundo.com>
104831         * lib/mempcpy.h: New file.
104832         * lib/mempcpy.c: New file.
104834 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104836         * modules/getdate, modules/posixtm: Depend on mktime.
104838 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104840         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
104841         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
104842         unicodeio.c, unicodeio.h, unlocked-io.h:
104843         Switch from LGPL to GPL.
104845 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104847         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
104848         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
104849         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
104850         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
104851         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
104852         updated automatically by ../config/srclist-update.  This changes
104853         their license from LPGL to GPL.
104855 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104857         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
104858         assumed to refer to the root of the most recent stable gettext version.
104859         * config/srclistvars.sh: Add defaults for eggert.
104860         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
104861         Match "This program" as well as "The program".  This is needed
104862         for gettext.
104864 2003-07-14  Jim Meyering  <jim@meyering.net>
104866         Don't emit diagnostics.  Let callers do that.
104867         * lib/save-cwd.c: Don't include "error.h".
104868         (save_cwd): Don't call error.  Ensure that errno is valid
104869         when returning nonzero.
104871         * lib/save-cwd.h (restore_cwd): Update prototype.
104872         * lib/save-cwd.c (restore_cwd): Remove two parameters.
104873         Simplify.  Don't call error upon failure.  Let callers do that.
104874         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
104875         when auditing is enabled.  But don't bother updating the #if.
104877 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
104879         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
104880         it breaks C++ compilation.
104881         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
104883 2003-07-10  Simon Josefsson  <jas@extundo.com>
104885         * modules/strchrnul (Makefile.am): Add strchrnul.h.
104887 2003-07-10  Jim Meyering  <jim@meyering.net>
104889         * m4/clock_time.m4: Remove trailing blank.
104890         * m4/intmax_t.m4: Likewise.
104892 2003-07-10  Jim Meyering  <jim@meyering.net>
104894         * lib/vasnprintf.c: Remove trailing blanks.
104895         Make cpp indentation consistent.
104897 2003-07-09  Paul Eggert  <eggert@twinsun.com>
104899         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
104900         posixver.c, strftime.c, strnlen.c, strverscmp.c:
104901         Switch from LGPL to GPL.
104903 2003-07-09  Paul Eggert  <eggert@twinsun.com>
104905         * config/srclist.txt: Sort sublists.  Add
104906         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
104907         that differ from gnulib for one reason or another; we'd like this list
104908         to be smaller but for now let's document what we have.
104910 2003-07-08  Paul Eggert  <eggert@twinsun.com>
104912         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
104913         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
104914         and sweeter "eval x=$x".
104915         * config/srclist.txt: Get lib/argp* from glibc.
104917 2003-07-07  Paul Eggert  <eggert@twinsun.com>
104919         * lib/mktime.c: Fix some boundary cases and remove need for floating
104920         point.
104922         Issue a compile-time diagnostic if time_t is floating point, or if
104923         two's complement arithmetic is not in effect, or if arithmetic
104924         right shift does not propagate the sign.  These assumptions were
104925         all in the original code but they weren't checked.
104927         (TIME_T_MIDPOINT, verify): New macros.
104928         (__isleap): Remove; it has integer overflow problems.
104929         (leapyear): New function, without those problems.
104930         (ydhms_tm_diff): Remove; splitting into two parts.
104931         (ydhms_diff): New function, containing the arithmetic part of
104932         the old ydhms_tm_diff function.  Issue a compile-time
104933         diagnostic if we are not using C99 integer division.
104934         Avoid casts when possible.
104935         (guess_time_tm): New function, containing the checking part of
104936         the old ydhms_tm_diff function.  Return the new value, rather than
104937         the difference between it and the old.  Accept a new argument T
104938         so that *T specifies the old value.  Check for overflow in the result.
104940         (__mktime_internal): Use a time_t offset, not a long int offset.
104941         This undoes the 2003-06-04 change, which is no longer needed now
104942         that we have better overflow checking.
104943         (localtime_offset): Likewise.
104945         (__mktime_internal): Avoid harmful overflow on hosts where time_t
104946         and long are 64-bit but int is only 32-bit.
104947         (ydhms_diff): Use long int to store year1 and yday1.
104948         Issue a compile-time diagnostic if long int is not wide enough.
104950         (__mktime_internal): Use long int to store adjusted year and yday.
104951         Use plain C rather than preprocessor commands, if that doesn't
104952         affect efficiency.
104953         Check for overflow (and try to repair) after each probe
104954         rather than checking only at the very end.  This avoids some bugs
104955         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
104956         does not equal GMT offset at maximum time).
104957         Use integer to check for overflow rather than floating point; this
104958         is more portable to non-IEEE hosts, and is a tad faster.
104959         When we detect that we are oscillating between two values,
104960         don't check whether tm_isdst has the requested value, since
104961         we already know the answer.  When tm_isdst has the wrong value,
104962         use a different heuristic to find the right one, based on the
104963         extreme values actually observed in practice in tz2003a,
104964         rather than the (overly optimistic) "previous 3 calendar quarters".
104966         (not_equal_tm, print_tm, check_result): Use "const T" rather than
104967         "T const" to accommodate glibc style.
104968         (check_result): Use less-confusing report format.  "long" -> "long int.
104969         (main): Likewise.
104970         Don't loop if the iteration overflows time_t.
104971         Allow a negative step in the iteration.
104973 2003-07-06  Karl Berry  <karl@gnu.org>
104975         * config/depcomp: update from automake.
104976         * config/config.sub: update from prep.
104978 2003-07-03  Karl Berry  <karl@gnu.org>
104980         * config/config.guess: update from prep.
104982 2003-07-01  Paul Eggert  <eggert@twinsun.com>
104984         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
104985         xreadlink.c now includes it unconditionally.
104987 2003-07-01  Paul Eggert  <eggert@twinsun.com>
104989         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
104990         having it depend on HAVE_SYS_TYPES_H.
104992 2003-07-01  Bruno Haible  <bruno@clisp.org>
104994         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
104995         <sys/types.h> should be sufficient.
104996         Reported by Paul Eggert.
104998 2003-06-26  Karl Berry  <karl@gnu.org>
105000         * config/depcomp: update from automake.
105002 2003-06-26  Bruno Haible  <bruno@clisp.org>
105004         * modules/human: Depend on module stdbool.
105006 2003-06-25  Bruno Haible  <bruno@clisp.org>
105008         * modules/readlink: New file.
105009         * modules/xreadlink: Depend on it.
105010         * MODULES.html.sh (func_all_modules): Add readlink.
105012 2003-06-25  Bruno Haible  <bruno@clisp.org>
105014         * m4/readlink.m4: New file.
105016 2003-06-25  Bruno Haible  <bruno@clisp.org>
105018         * lib/readlink.c: New file.
105020 2003-06-22  Karl Berry  <karl@gnu.org>
105022         * config/srclist.txt: update mkinstalldirs from automake.
105023         * config/mkinstalldirs: update.
105025 2003-06-22  Bruno Haible  <bruno@clisp.org>
105027         Portability to mingw32.
105028         * m4/ssize_t.m4: New file, from GNU gettext.
105029         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
105030         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
105032 2003-06-22  Bruno Haible  <bruno@clisp.org>
105034         * modules/safe-read: Add m4/ssize_t.m4.
105035         * modules/xreadlink: Add m4/ssize_t.m4.
105037 2003-06-20  Bruno Haible  <bruno@clisp.org>
105039         Assume C89, so PARAMS isn't needed.
105040         * lib/unicodeio.h (PARAMS): Remove.
105041         * lib/unicodeio.c: Don't use PARAMS.
105043 2003-06-18  Karl Berry  <karl@gnu.org>
105045         * config/config.{guess,sub}: update from prep.
105047 2003-06-18  Jim Meyering  <jim@meyering.net>
105049         Merge changes from coreutils.
105050         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
105051         Remove explicit declarations of xmalloc and realloc.
105052         Include xalloc.h.
105053         (read_utmp): Remove anachronistic cast of xmalloc.
105055 2003-06-17  Paul Eggert  <eggert@twinsun.com>
105057         Assume C89, so PARAMS isn't needed.
105058         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
105059         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
105060         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
105061         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
105062         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
105063         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
105064         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
105065         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
105066         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
105067         lib/xstrtod.h, lib/xstrtol.h: Likewise.
105068         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
105069         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
105070         no longer needed. Anyway, config.h should always be included before any
105071         other file.
105073 2003-06-11  Simon Josefsson  <jas@extundo.com>
105075         * modules/sysexits: New file.
105076         * MODULES.html.sh (func_all_modules): Add sysexits.
105078 2003-06-11  Simon Josefsson  <jas@extundo.com>
105080         * lib/sysexit_.h: New file.
105082 2003-06-11  Derek Price  <derek@ximbiot.com>
105084         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
105085         necessary.
105087 2003-06-11  Bruno Haible  <bruno@clisp.org>
105089         * m4/sysexits.m4: New file.
105091 2003-06-10  Simon Josefsson  <jas@extundo.com>
105093         * lib/argp.h: New file, from glibc.
105094         * lib/argp-ba.c: New file, from glibc.
105095         * lib/argp-eexst.c: New file, from glibc.
105096         * lib/argp-fmtstream.c: New file, from glibc.
105097         * lib/argp-fmtstream.h: New file, from glibc.
105098         * lib/argp-fs-xinl.c: New file, from glibc.
105099         * lib/argp-help.c: New file, from glibc.
105100         * lib/argp-namefrob.h: New file, from glibc.
105101         * lib/argp-parse.c: New file, from glibc.
105102         * lib/argp-pv.c: New file, from glibc.
105103         * lib/argp-pvh.c: New file, from glibc.
105104         * lib/argp-xinl.c: New file, from glibc.
105106 2003-06-10  Simon Josefsson  <jas@extundo.com>
105108         * modules/strchrnul: New file.
105110 2003-06-10  Simon Josefsson  <jas@extundo.com>
105112         * modules/argp: New file.
105114 2003-06-10  Simon Josefsson  <jas@extundo.com>
105116         * m4/strchrnul.m4: New file.
105118 2003-06-10  Simon Josefsson  <jas@extundo.com>
105120         * lib/strchrnul.h: New file.
105121         * lib/strchrnul.c: New file.
105123 2003-06-10  Bruno Haible  <bruno@clisp.org>
105125         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
105127 2003-06-07  Karl Berry  <karl@gnu.org>
105129         * config/config.{guess,sub}: update from prep.
105131 2003-06-07  Jim Meyering  <jim@meyering.net>
105133         * modules/strtod: Use $(...) notation, not @...@ for
105134         AC_REPLACE'd variables.
105135         * modules/localcharset: Likewise.
105137 2003-06-07  Jim Meyering  <jim@meyering.net>
105139         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
105140         in place of my name in the copyright comment.
105141         Remove definition and uses of __P.
105143         From coreutils.
105144         * lib/stat.c: Don't declare xmalloc explicitly.
105145         Instead, include "xalloc.h".
105146         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
105147         xrealloc, and xcalloc return values.
105148         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
105149         Improve comment.
105150         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
105152 2003-06-07  Bruno Haible  <bruno@clisp.org>
105154         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
105155         avoid AC_CONFIG_LINKS.
105156         * modules/fnmatch (Makefile.am): Use explicit creation rule for
105157         fnmatch.h, to avoid AC_CONFIG_LINKS.
105158         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
105160 2003-06-07  Bruno Haible  <bruno@clisp.org>
105162         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
105163         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
105164         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
105165         directory.
105166         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
105167         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
105168         directory.
105170 2003-06-06  Jim Meyering  <jim@meyering.net>
105172         Merge from coreutils.
105173         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
105174         Consolidate declarations and initializations of *_base* locals.
105176         Merge from coreutils.
105177         This avoids a core dump on systems without GNU putenv,
105178         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
105179         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
105180         (unsetenv): New static function, from GNU libc.
105181         (rpl_putenv): Use it.
105183         * lib/modechange.c: Remove trailing blanks.
105185         Merge from coreutils.
105186         * lib/fsusage.c: Remove declaration of statfs.
105187         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
105189         * lib/posixtm.c: Include <stdbool.h> unconditionally.
105191 2003-06-06  Jim Meyering  <jim@meyering.net>
105193         * lib/stdbool_.h: Renamed from stdbool.h.in.
105195 2003-06-06  Jim Meyering  <jim@meyering.net>
105196             Bruno Haible  <bruno@clisp.org>
105198         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
105199         Adjust Makefile.am snippet not to redirect directly to target.
105200         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
105202 2003-06-05  Paul Eggert  <eggert@twinsun.com>
105204         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
105205         mismatch, look in future quarters as well as past.  This fixes a
105206         bug when processing fall-backwards gaps immediately after a long
105207         period of daylight-saving time.
105209         * lib/mktime.c: Assume freestanding C89 or better.
105210         (HAVE_LIMITS_H): Remove.  Assume it's 1.
105211         (__P): Remove; not used.
105212         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
105213         (mktime, not_equal_tm, print_tm, check_result,
105214         main): Use prototypes.  Use const * where appropriate.
105215         (main): Fix typo in testing code that uncovered by above changes.
105216         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
105218 2003-06-04  Paul Eggert  <eggert@twinsun.com>
105220         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
105221         locale.h, localeconv.  This merges changes from coreutils.
105223         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
105224         It can be removed after the next Autoconf is released.
105225         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
105226         needed.
105228 2003-06-04  Paul Eggert  <eggert@twinsun.com>
105230         * lib/mktime.c: Fix Debian bug 177940
105231         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
105232         (localtime_offset): Now long int, not time_t, because we want it
105233         to be guaranteed to be signed.  All uses changed.
105234         (__mktime_internal): If overflow would occur when adding offset,
105235         don't add it.
105237         Merge 'human' changes from coreutils.  Rewrite to support
105238         locale-specific notations like thousands separators.
105239         * lib/human.c: Simplify authorship notice.
105240         Include human.h immediately after config.h.
105241         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
105242         <limits.h>: Do not include, since human.h does.
105243         (SIZE_MAX, UINTMAX_MAX): New macros.
105244         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
105245         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
105246         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
105247         (power_letter): Renamed from suffixes.
105248         (generate_suffix_backwards): Remove.
105249         (adjust_value): Now takes int style (because of human.h changes)
105250         and long double value (for greater precision on some platforms).
105251         (group_number): New function.
105252         (human_readable): Use it.  Use integer options, not enum.
105253         Put the options before the sizes in the arg list.
105254         Support all the new options.
105255         The old human_readable function has been removed;
105256         use inttostr.h instead.
105257         (human_readable, default_block_size, humblock):
105258         Use uintmax_t, not int, for block sizes.
105259         (human_readable_inexact, block_size_types): Remove.
105260         (block_size_opts): New constant.
105261         (human_options): Renamed from human_block_size, with new signature
105262         that allows block sizes up to UINTMAX_MAX.  All callers changed.
105263         * lib/human.h: Add copyright and authorship notice.
105264         Include <limits.h> and <stdbool.h> unconditionally.
105265         (PARAMS): Remove.  All uses removed.
105266         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
105267         (enum human_inexact_style): Remove tag; now a nameless enum.
105268         (human_floor, human_ceiling, human_round_to_even): Now have
105269         values 2, 0, 1 rather than -1, 1, 0.
105270         (human_group_digits, human_suppress_point_zero, human_autoscale,
105271         human_base_1024, human_SI, human_B): New constants.
105272         (human_readable_inexact, human_block_size): Remove.
105273         (human_readable): Size args are now uintmax_t, not int.
105274         (human_options): New decl.
105276         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
105277         unnecessary now that we assume C89 or better.  This change
105278         imported from coreutils.
105280         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
105281         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
105282         in the 2003-05-30 sync from glibc.
105284         .h files should stand alone, but we shouldn't include <sys/types.h>
105285         if we can get away with just <stddef.h>.
105287         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
105288         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
105289         rather than <sys/types.h>, as we merely need size_t.
105290         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
105291         to get size_t.
105292         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
105293         Include <stdio.h>, to get FILE.
105294         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
105295         memcasecmp.h has included <stddef.h> and all we need is size_t.
105296         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
105297         our interface, instead of including <sys/types.h>
105299 2003-06-04  Paul Eggert  <eggert@twinsun.com>
105301         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
105302         now, as glibc mktime is buggy on non-glibc systems.
105304 2003-06-03  Karl Berry  <karl@gnu.org>
105306         * config/config.sub: update from prep.
105308 2003-06-02  Paul Eggert  <eggert@twinsun.com>
105310         [from coreutils]
105311         Fix some minor time-related bugs with POSIX time arguments.
105312         Some valid time stamps were being rejected (notably -1, and
105313         time stamps before 1900 on 64-bit hosts).  And some invalid
105314         time stamps were being accepted, e.g. September 31.
105316         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
105317         that we can return (time_t) -1 successfully.
105318         * lib/posixtm.c: Likewise.
105319         [HAVE_STDBOOL_H]: Include <stdbool.h>.
105320         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
105321         (t): Remove static var.
105322         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
105323         of static var.  All uses changed.
105324         (year): Do not reject years before 1900; they can occur with
105325         64-bit time_t.
105326         (posix_time_parse): Do not check for out-of-range components;
105327         that is now the caller's responsibility, since our checks were
105328         only approximations.
105329         (posixtime): Use mktime to check for out-of-range components,
105330         since it knows them exactly.
105331         If mktime returns (time_t) -1, check whether an error actually occurred
105332         by invoking localtime on -1.
105333         (main) [TEST_POSIXTIME]: Check for input data errors, and report
105334         posixtime failures better.
105335         Improve the test data (in comments only).
105337 2003-06-02  Karl Berry  <karl@gnu.org>
105339         * config/mkinstalldirs (version): new variable.
105340         (--version): new option.
105341         (usage): improve message.
105343 2003-05-30  Karl Berry  <karl@gnu.org>
105345         * lib/mktime.c: update from libc.
105347 2003-05-30  Bruno Haible  <bruno@clisp.org>
105349         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
105350         * config/config.rpath: Upgrade to gettext-0.12.1.
105352 2003-05-30  Bruno Haible  <bruno@clisp.org>
105354         * m4/gettext.m4: Upgrade to gettext-0.12.1.
105355         * m4/nls.m4: New file, from gettext-0.12.1.
105356         * m4/po.m4: New file, from gettext-0.12.1.
105357         * m4/progtest.m4: Upgrade to gettext-0.12.1.
105359 2003-05-30  Bruno Haible  <bruno@clisp.org>
105361         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
105362         * lib/localcharset.h: Likewise.
105363         * lib/localcharset.c: Likewise.
105365 2003-05-29  Karl Berry  <karl@gnu.org>
105367         * config/config.rpath: update from gettext.
105369 2003-05-28  Paul Eggert  <eggert@twinsun.com>
105371         Assume the headers required for C89 freestanding compilers.
105372         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
105373         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
105374         * m4/human.m4 (gl_HUMAN): Likewise.
105375         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
105376         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
105377         * m4/userspec.m4 (gl_USERSPEC): Likewise.
105378         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
105379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105380         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
105382 2003-05-28  Paul Eggert  <eggert@twinsun.com>
105384         Assume the headers required for C89 freestanding compilers.
105385         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
105386         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
105387         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
105388         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
105389         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
105390         define, since <limits.h> is guaranteed to do that.
105391         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
105392         * lib/exclude.c: Include <stdbool.h> unconditionally.
105393         * lib/tempname.c: Include <stddef.h> unconditionally.
105394         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
105395         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
105396         <stddef.h> does that.
105397         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
105398         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
105399         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
105400         needed.
105401         * lib/xstrtol.c: Likewise.
105402         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
105403         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
105405         * lib/addext.c (addext): Use assignment rather than cast, to avoid
105406         warnings on some platforms.
105408         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
105409         arbitrarily.
105411 2003-05-26  Jim Meyering  <jim@meyering.net>
105413         Merge in a change from coreutils:
105414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
105415         that is guaranteed to be `no'.  Use `no_such_member' to indicate
105416         that condition, rather than `-1' which is slightly misleading.
105417         Change the name of the cache variable to have the gl_ prefix.
105418         Prompted by a patch from Richard Dawe for DJGPP.
105420 2003-05-24  Karl Berry  <karl@gnu.org>
105422         * config/config.guess: update from prep.
105424 2003-05-22  Karl Berry  <karl@gnu.org>
105426         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
105428 2003-05-20  Karl Berry  <karl@gnu.org>
105430         * config/config.guess: update from prep.
105432 2003-05-18  Karl Berry  <karl@gnu.org>
105434         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
105435         might actually be set by the user.
105437         * config/depcomp, install-sh, mdate-sh: update from automake.
105439 2003-05-17  Bruno Haible  <bruno@clisp.org>
105441         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
105442         invalid expansion for AC_EGREP_CPP.
105443         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
105444         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
105445         Suggested by Akim Demaille <akim@epita.fr> in
105446         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
105448 2003-05-12  Jim Meyering  <jim@meyering.net>
105450         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
105451         the space-padded-by-default conversion specifiers, %e, %k, %l.
105453 2003-05-12  Bruno Haible  <bruno@clisp.org>
105455         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
105456         the string is longer than 4 KB.
105458 2003-05-11  Karl Berry  <karl@gnu.org>
105460         * config/config.{guess,sub}: update from prep.
105462 2003-05-09  Bruno Haible  <bruno@clisp.org>
105464         * modules/error: Add m4/strerror_r.m4 to file list.
105466 2003-05-03  Bruno Haible  <bruno@clisp.org>
105468         Upgrade to Unicode-4.0.
105469         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
105470         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
105471         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
105472         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
105473         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
105474         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
105475         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
105476         Change width of U+E0100..U+E01EF from 1 to 0.
105478 2003-04-25  Jim Meyering  <jim@meyering.net>
105480         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
105481         of type size_t, not int.
105483 2003-04-25  Bruno Haible  <bruno@clisp.org>
105485         * lib/copy-file.c: Include <stddef.h>, for size_t.
105487 2003-04-21  Paul Eggert  <eggert@twinsun.com>
105489         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
105490         code which expansion is under static control.  Patch imported from
105491         Akim Demaille's patch to Bison; see
105492         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
105494 2003-04-14  Bruno Haible  <bruno@clisp.org>
105496         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
105498 2003-04-11  Jim Meyering  <jim@meyering.net>
105500         Merge changes from Coreutils.
105502         2003-03-22  Jim Meyering  <jim@meyering.net>
105504         * lib/strftime.c (widen): Cast alloca return value to proper type.
105506         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
105508         From GNU libc.
105509         * lib/strftime.c (my_strftime): Handle very large width
105510         specifications for numeric values correctly.  Improve checks for
105511         overflow.
105513         2003-01-19  Jim Meyering  <jim@meyering.net>
105515         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
105516         definitions.
105517         (nl_get_alt_digit) [! defined my_strftime]: Define.
105518         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
105519         _nl_get_alt_digit and _nl_get_walt_digit.
105521         * lib/strftime.c (my_strftime): Merge in locale-related changes from
105522         libc. These changes have no effect outside of _LIBC.
105524 2003-04-10  Bruno Haible  <bruno@clisp.org>
105526         * modules/findprog: New file.
105527         * MODULES.html.sh (func_all_modules): Add it.
105529 2003-04-10  Bruno Haible  <bruno@clisp.org>
105531         * m4/findprog.m4: New file.
105532         * m4/eaccess.m4: New file.
105534 2003-04-10  Bruno Haible  <bruno@clisp.org>
105536         * lib/findprog.h: New file, from GNU gettext.
105537         * lib/findprog.c: New file, from GNU gettext.
105539 2003-04-05  Jim Meyering  <jim@meyering.net>
105541         Merge changes from Coreutils.
105543         * lib/exclude.h (PARAMS): Remove definition and uses.
105544         * lib/exclude.c: Remove uses of `PARAMS'.
105546         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
105547         Add test-cases for DOS filenames. Declare program_name.
105548         (main): Set up program_name.  Patch by Rich Dawe.
105550         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
105551         error from mntctl.
105552         Use mntctl's return value to drive the entry-processing loop, since
105553         we can't rely on the value of the vmt_length member in the last
105554         entry.  On some systems doing so could result in exhausting
105555         virtual memory.  Based in part on a patch from Mike Jetzer.
105557 2003-04-04  Bruno Haible  <bruno@clisp.org>
105559         * modules/linebreak: New file.
105560         * MODULES.html.sh (func_all_modules): Add it.
105562 2003-04-04  Bruno Haible  <bruno@clisp.org>
105564         * m4/linebreak.m4: New file.
105566 2003-04-04  Bruno Haible  <bruno@clisp.org>
105568         * lib/linebreak.h: New file, from GNU gettext.
105569         * lib/linebreak.c: New file, from GNU gettext with slight
105570         modifications.
105571         * lib/lbrkprop.h: New file, from GNU gettext.
105573 2003-04-03  Bruno Haible  <bruno@clisp.org>
105575         * modules/utf8-ucs4: New file.
105576         * modules/utf16-ucs4: New file.
105577         * modules/ucs4-utf8: New file.
105578         * modules/ucs4-utf16: New file.
105579         * MODULES.html.sh (func_all_modules): Add them.
105581 2003-04-03  Bruno Haible  <bruno@clisp.org>
105583         * m4/utf-ucs4.m4: New file.
105584         * m4/ucs4-utf.m4: New file.
105586 2003-04-03  Bruno Haible  <bruno@clisp.org>
105588         * lib/utf8-ucs4.h: New file, from GNU gettext.
105589         * lib/utf16-ucs4.h: New file, from GNU gettext.
105590         * lib/ucs4-utf8.h: New file, from GNU gettext.
105591         * lib/ucs4-utf16.h: New file, from GNU gettext.
105593 2003-04-02  Bruno Haible  <bruno@clisp.org>
105595         * modules/binary-io: New file.
105596         * MODULES.html.sh (func_all_modules): Add it.
105598 2003-04-02  Bruno Haible  <bruno@clisp.org>
105600         * lib/binary-io.h: New file, from GNU gettext.
105602 2003-04-01  Bruno Haible  <bruno@clisp.org>
105604         * modules/pathname: New file.
105605         * MODULES.html.sh (func_all_modules): Add it.
105607 2003-04-01  Bruno Haible  <bruno@clisp.org>
105609         * lib/pathname.h: New file, from GNU gettext.
105610         * lib/concatpath.c: New file, from GNU gettext.
105612 2003-03-30  Bruno Haible  <bruno@clisp.org>
105614         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
105616 2003-03-30  Bruno Haible  <bruno@clisp.org>
105618         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
105619         function chown() doesn't exist.
105621 2003-03-28  Bruno Haible  <bruno@clisp.org>
105623         * modules/copy-file: New file.
105624         * MODULES.html.sh (func_all_modules): Add it.
105626 2003-03-28  Bruno Haible  <bruno@clisp.org>
105628         * m4/copy-file.m4: New file.
105630 2003-03-28  Bruno Haible  <bruno@clisp.org>
105632         * lib/copy-file.h: New file, from GNU gettext.
105633         * lib/copy-file.c: New file, from GNU gettext.
105635 2003-03-18  Jim Meyering  <jim@meyering.net>
105637         * lib/quote.c (quote_n): Fix typo in comment.
105639 2003-03-18  Bruno Haible  <bruno@clisp.org>
105641         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
105642         checking.
105643         * m4/onceonly_2_57.m4: Likewise.
105645 2003-03-17  Bruno Haible  <bruno@clisp.org>
105647         * m4/onceonly.m4: Require autoconf 2.54 or newer.
105648         (m4_quote): Remove macro.
105649         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
105651 2003-03-14  Jim Meyering  <jim@meyering.net>
105653         Merge changes from Coreutils.
105654         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
105655         to be const, in order to avoid warnings.
105656         (obstack_room): Likewise.
105657         (obstack_empty_p): Likewise.
105659 2003-03-14  Bruno Haible  <bruno@clisp.org>
105661         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
105662         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
105664 2003-03-13  Paul Eggert  <eggert@twinsun.com>
105666         Merge changes from Bison.
105667         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
105668         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
105669         when compiling Bison 1.875's `bitset bset = obstack_alloc
105670         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
105671         * lib/hash.c: Include <stdbool.h> unconditionally.
105673 2003-03-13  Paul Eggert  <eggert@twinsun.com>
105675         * m4/onceonly.m4 (m4_quote): New macro.
105676         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
105677         Quote AC_FOREACH variable-expansions properly.
105679 2003-03-13  Paul Eggert  <eggert@twinsun.com>
105681         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
105683 2003-03-09  Paul Eggert  <eggert@twinsun.com>
105685         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
105686         Reported by Bruce Becker; see:
105687         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
105689 2003-03-03  Paul Eggert  <eggert@twinsun.com>
105690             Bruno Haible  <bruno@clisp.org>
105692         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
105693         Reported by John Hughes, see
105694         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
105696 2003-02-20  Bruno Haible  <bruno@clisp.org>
105698         * MODULES.html.sh (func_all_modules): Add poll.
105700 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
105702         * modules/poll: New file.
105704 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
105706         * lib/poll_.h: New file.
105707         * lib/poll.c: New file.
105709 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
105711         * m4/poll.m4: New file.
105713 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
105715         * modules/mathl: New file.
105717 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
105719         * lib/mathl.h: New file.
105720         * lib/acosl.c: New file.
105721         * lib/asinl.c: New file.
105722         * lib/atanl.c: New file.
105723         * lib/ceill.c: New file.
105724         * lib/cosl.c: New file.
105725         * lib/expl.c: New file.
105726         * lib/floorl.c: New file.
105727         * lib/frexpl.c: New file.
105728         * lib/ldexpl.c: New file.
105729         * lib/logl.c: New file.
105730         * lib/sincosl.c: New file.
105731         * lib/sinl.c: New file.
105732         * lib/sqrtl.c: New file.
105733         * lib/tanl.c: New file.
105734         * lib/trigl.c: New file.
105735         * lib/trigl.h: New file.
105737 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
105739         * m4/mathl.m4: New file.
105741 2003-02-18  Bruno Haible  <bruno@clisp.org>
105743         * MODULES.html.sh (func_all_modules): Add mathl.
105745 2003-02-17  Bruno Haible  <bruno@clisp.org>
105747         * modules/mkdtemp: New module.
105748         * MODULES.html.sh (func_all_modules): Add it.
105750 2003-02-17  Bruno Haible  <bruno@clisp.org>
105752         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
105754 2003-02-17  Bruno Haible  <bruno@clisp.org>
105756         * lib/mkdtemp.h: New file, from GNU gettext.
105757         * lib/mkdtemp.c: New file, from GNU gettext.
105759 2003-02-02  Jim Meyering  <jim@meyering.net>
105761         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
105762         e.g. glibc-2.2.93.
105764 2003-01-31  Bruno Haible  <bruno@clisp.org>
105766         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
105767         'rpl_rename'.
105768         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
105769         'rpl_strnlen'.
105770         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
105771         'rpl_strtod'.
105772         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
105773         'rpl_utime'.
105775 2003-01-31  Bruno Haible  <bruno@clisp.org>
105777         * lib/rename.c: #undef rename before defining rpl_rename.
105778         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
105780 2003-01-30  Bruno Haible  <bruno@clisp.org>
105782         * modules/vasnprintf, modules/vasprintf: New modules.
105783         * MODULES.html.sh (func_all_modules): Add them.
105785 2003-01-30  Bruno Haible  <bruno@clisp.org>
105787         * m4/signed.m4: New file, from GNU gettext.
105788         * m4/longdouble.m4: New file, from GNU gettext.
105789         * m4/wchar_t.m4: New file, from GNU gettext.
105790         * m4/wint_t.m4: New file, from GNU gettext.
105791         * m4/vasnprintf.m4: New file.
105792         * m4/vasprintf.m4: New file.
105794 2003-01-30  Bruno Haible  <bruno@clisp.org>
105796         * lib/printf-args.h: New file, from GNU gettext.
105797         * lib/printf-args.c: New file, from GNU gettext.
105798         * lib/printf-parse.h: New file, from GNU gettext.
105799         * lib/printf-parse.c: New file, from GNU gettext.
105800         * lib/vasnprintf.h: New file, from GNU gettext.
105801         * lib/vasnprintf.c: New file, from GNU gettext.
105802         * lib/asnprintf.c: New file, from GNU gettext.
105803         * lib/vasprintf.h: New file, from GNU gettext with modifications.
105804         * lib/vasprintf.c: New file, from GNU gettext.
105805         * lib/asprintf.c: New file, from GNU gettext.
105807 2003-01-29  Bruno Haible  <bruno@clisp.org>
105809         * modules/stpncpy: New module.
105810         * MODULES.html.sh (func_all_modules): Add it.
105812 2003-01-29  Bruno Haible  <bruno@clisp.org>
105814         * m4/stpncpy.m4: New file.
105816 2003-01-29  Bruno Haible  <bruno@clisp.org>
105818         * lib/stpncpy.h: New file, from GNU gettext with modifications.
105819         * lib/stpncpy.c: New file, from GNU gettext with modifications.
105821 2003-01-28  Bruno Haible  <bruno@clisp.org>
105823         * modules/c-ctype: New module.
105824         * MODULES.html.sh (func_all_modules): Add it.
105826 2003-01-28  Bruno Haible  <bruno@clisp.org>
105828         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
105829         Paul Eggert.
105830         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
105831         Paul Eggert.
105833 2003-01-27  Bruno Haible  <bruno@clisp.org>
105835         * modules/xsetenv: New module.
105836         * MODULES.html.sh (func_all_modules): Add it.
105838 2003-01-27  Bruno Haible  <bruno@clisp.org>
105840         * lib/xsetenv.h: New file, from GNU gettext.
105841         * lib/xsetenv.c: New file, from GNU gettext.
105843 2003-01-23  Jim Meyering  <jim@meyering.net>
105845         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
105846         from working on systems without dirfd (at least Irix and OSF1/Tru64).
105848 2003-01-23  Bruno Haible  <bruno@clisp.org>
105850         * modules/minmax: New module.
105851         * MODULES.html.sh (func_all_modules): Add it.
105853 2003-01-23  Bruno Haible  <bruno@clisp.org>
105855         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
105856         Eggert.
105858 2003-01-22  Bruno Haible  <bruno@clisp.org>
105860         * modules/exit: New module.
105861         * MODULES.html.sh (func_all_modules): Add it.
105863 2003-01-22  Bruno Haible  <bruno@clisp.org>
105865         * lib/exit.h: New file, from GNU gettext.
105867 2003-01-19  Bruno Haible  <bruno@clisp.org>
105869         * gnulib-tool: Recognize option --extract-maintainer.
105870         (func_get_maintainer): New function.
105871         * modules/*: Add Maintainer entry.
105873 2003-01-16  Jim Meyering  <jim@meyering.net>
105875         * m4/regex.m4: The `regex' struct is both input and output.
105876         Initialize it before each use.  Patch by Tim Waugh.
105878 2003-01-16  Bruno Haible  <bruno@clisp.org>
105880         * MODULES.html.sh: Add a table of contents. Add the module name as
105881         leftmost column. Add hyperlinks.
105883 2003-01-15  Bruno Haible  <bruno@clisp.org>
105885         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
105887 2003-01-15  Bruno Haible  <bruno@clisp.org>
105889         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
105890         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
105891         suffix.
105893 2003-01-15  Bruno Haible  <bruno@clisp.org>
105895         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
105897 2003-01-15  Bruno Haible  <bruno@clisp.org>
105899         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
105900         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
105902 2003-01-14  Jim Meyering  <jim@meyering.net>
105904         * lib/same.c (same_name): Tweak a comment.
105906 2003-01-14  Bruno Haible  <bruno@clisp.org>
105908         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
105909         when a string comparison is sufficient.
105911 2003-01-14  Bruno Haible  <bruno@clisp.org>
105913         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
105914         'unsigned int'.
105916 2003-01-14  Bruno Haible  <bruno@clisp.org>
105918         * lib/hash-pjw.c: Add comment about low quality of this function.
105920 2003-01-13  Bruno Haible  <bruno@clisp.org>
105922         * modules/stpcpy: Distribute lib/stpcpy.h.
105923         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
105925 2003-01-13  Bruno Haible  <bruno@clisp.org>
105927         * modules/*: Add a description.
105928         * modules/strpbrk: Fix Makefile.am snippet.
105929         * modules/strtoimax: Fix dependencies.
105930         * modules/strtoumax: Likewise.
105932 2003-01-13  Bruno Haible  <bruno@clisp.org>
105934         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
105935         * modules/alloca (Makefile.am): All object files depend on alloca.h.
105936         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
105938 2003-01-13  Bruno Haible  <bruno@clisp.org>
105940         * gnulib-tool (func_create_testdir): Store config/* files in the main
105941         directory.
105942         * config.rpath: Move to ...
105943         * config/config.rpath: ... here.
105944         * modules/gettext: Contains config/config.rpath, not config.rpath.
105945         * modules/iconv: Likewise.
105947 2003-01-12  Paul Eggert  <eggert@twinsun.com>
105949         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
105950         to avoid collisions with libcurses and libreadline.
105952         * m4/getstr.m4: Remove.
105953         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
105955 2003-01-12  Paul Eggert  <eggert@twinsun.com>
105957         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
105958         to avoid collisions with libcurses and libreadline.
105960         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
105961         * lib/getstr.h, getstr.c: Remove.
105962         * lib/getline.c: Include "getline.h", to check interface.
105963         Move body of old getstr.c here: this defines MIN_CHUNK and
105964         declares getdelim2, which is renamed from getstr.
105965         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
105967         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
105968         All uses changed.
105969         * lib/linebuffer.h: Likewise.
105970         (readline): Remove backward-compatibility macro.
105972 2003-01-12  Paul Eggert  <eggert@twinsun.com>
105974         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
105975         to avoid collisions with libcurses and libreadline.
105976         * getstr: Remove.
105977         * MODULES.html.sh: Remove getstr.
105978         * modules/getline: Depend on unlocked-io, not getstr.
105980 2003-01-12  Jim Meyering  <jim@meyering.net>
105982         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
105984 2003-01-10  Bruno Haible  <bruno@clisp.org>
105986         * modules/alloca: Change Makefile.am requirements. Simplify Include
105987         requirements. Add lib/alloca_.h to file list.
105989 2003-01-10  Bruno Haible  <bruno@clisp.org>
105991         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
105993 2003-01-10  Bruno Haible  <bruno@clisp.org>
105995         * lib/alloca_.h: New file.
105996         * lib/getdate.y: Unconditionally include alloca.h.
105997         * lib/makepath.c: Likewise.
105998         * lib/setenv.c: Likewise.
105999         * lib/userspec.c: Likewise.
106001 2003-01-09  Karl Berry  <karl@gnu.org>
106003         * MODULES.html.sh: include `dirname $0` in PATH, to find
106004         gnulib-tool.
106006 2003-01-09  Bruno Haible  <bruno@clisp.org>
106008         * modules/stdbool: Change configure.ac, Makefile.am requirements.
106009         Simplify Include requirements. Add lib/stdbool.h.in to file list.
106011 2003-01-09  Bruno Haible  <bruno@clisp.org>
106013         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
106015 2003-01-09  Bruno Haible  <bruno@clisp.org>
106017         * lib/stdbool.h.in: New file.
106019 2003-01-09  Bruno Haible  <bruno@clisp.org>
106021         * gnulib-tool (func_all_modules): Ignore files ending in ~.
106022         * MODULES.html.sh: Likewise.
106024 2003-01-08  Jim Meyering  <jim@meyering.net>
106026         * lib/full-write.c: Undefine and define-away `const' after inclusion
106027         of errno.h, not before.  Suggestion from Bruno Haible.
106029 2003-01-08  Bruno Haible  <bruno@clisp.org>
106031         * modules/full-read: Depend on full-write.
106033 2003-01-08  Bruno Haible  <bruno@clisp.org>
106035         * lib/safe-read.c: Include specification header first, to ensure its
106036         selfcontainedness.
106037         * lib/full-write.c: Likewise.
106039 2003-01-07  Jim Meyering  <jim@meyering.net>
106041         * lib/full-write.c: Rework so that it may serve to define full_read,
106042         too.
106043         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
106045 2003-01-07  Bruno Haible  <bruno@clisp.org>
106047         * lib/strtoimax.c: Include <stdint.h> as an alternative to
106048         <inttypes.h>.
106049         * lib/xstrtol.h: Likewise.
106050         * lib/xstrtoimax.c: Likewise.
106051         * lib/xstrtoumax.c: Likewise.
106052         * lib/human.h: Likewise.
106054         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
106055         on systems that have <inttypes.h> but not <stdint.h>.
106057 2003-01-07  Bruno Haible  <bruno@clisp.org>
106059         * MODULES.html.sh: Add copyright notice.
106060         (missed_files): Omit CVS directory entries.
106061         (func_module): Make it work with sed-3.02.
106062         * MODULES.txt: Remove file.
106064 2003-01-06  Jim Meyering  <jim@meyering.net>
106066         * lib/version-etc.c: Update year in translatable copyright string.
106068 2003-01-03  Karl Berry  <karl@gnu.org>
106070         * config/config.{guess,sub}: update from prep.
106072 2003-01-02  Karl Berry  <karl@gnu.org>
106074         * doc/COPYING.DOC: belatedly updated to 1.2.
106076 2003-01-01  Karl Berry  <karl@gnu.org>
106078         * gnulib-tool (func_verify_module): report module name $module in
106079         error message, not $1.
106080         * gnulib-tool (create-testdir): don't complain if destdir couldn't
106081         be created, only if it doesn't exist.
106082         * gnulib-tool (last_checkin_date): don't expand the $Date here.
106084 2002-12-31  Paul Eggert  <eggert@twinsun.com>
106086         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
106088 2002-12-31  Paul Eggert  <eggert@twinsun.com>
106090         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
106091         memcmp if strcoll doesn't work.
106093 2002-12-31  Bruno Haible  <bruno@clisp.org>
106095         * lib/utime.c (utime_null): No need to call ftruncate if the file was
106096         nonempty.
106098 2002-12-31  Bruno Haible  <bruno@clisp.org>
106100         * lib/memcoll.c (STRCOLL): New macro.
106101         (memcoll): Use it.
106103 2002-12-31  Bruno Haible  <bruno@clisp.org>
106105         * lib/localcharset.h: New file.
106106         * lib/localcharset.c: Include it.
106107         * lib/unicodeio.c: Likewise.
106109 2002-12-31  Bruno Haible  <bruno@clisp.org>
106111         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
106112         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
106114 2002-12-31  Bruno Haible  <bruno@clisp.org>
106116         * lib/getline.h: Include <stddef.h>, for size_t.
106118         * lib/unicodeio.h: Include <stddef.h>, for size_t.
106119         * lib/unicodeio.c: Don't include <stddef.h>.
106121 2002-12-31  Bruno Haible  <bruno@clisp.org>
106123         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
106124         HAVE_TM_ZONE.
106126 2002-12-24  Karl Berry  <karl@gnu.org>
106128         * config/config.guess: update from prep.
106130 2002-12-24  Bruno Haible  <bruno@clisp.org>
106132         General infrasructure.
106133         * m4/README: Rewritten.
106134         * m4/onceonly.m4: New file.
106135         * m4/onceonly_2_57.m4: New file.
106137         Module atexit.
106138         * m4/atexit.m4: New file.
106140         Module strtod.
106141         * m4/strtod.m4: New file.
106143         Module strtol.
106144         * m4/strtol.m4: New file.
106146         Module strtoul.
106147         * m4/strtoul.m4: New file.
106149         Module memchr.
106150         * m4/memchr.m4: New file.
106152         Module memcmp.
106153         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
106154         (jm_FUNC_MEMCMP): Invoke it.
106156         Module memcpy.
106157         * m4/memcpy.m4: New file.
106159         Module memmove.
106160         * m4/memmove.m4: New file.
106162         Module memset.
106163         * m4/memset.m4: New file.
106165         Module strcspn.
106166         * m4/strcspn.m4: New file.
106168         Module strpbrk.
106169         * m4/strpbrk.m4: New file.
106171         Module strstr.
106172         * m4/strstr.m4: New file.
106174         Module strerror.
106175         * m4/strerror.m4: New file.
106177         Module mktime.
106178         * m4/mktime.m4: Renamed from jm-mktime.m4.
106179         (gl_PREREQ_MKTIME): New macro.
106180         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
106182         Module malloc.
106183         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
106184         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
106185         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
106187         Module realloc.
106188         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
106189         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
106190         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
106192         Module strftime.
106193         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
106194         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
106195         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
106196         gl_TM_GMTOFF.
106197         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
106199         Module xalloc.
106200         * m4/xalloc.m4: New file.
106202         Module alloca.
106203         * m4/alloca.m4: New file.
106205         Module putenv.
106206         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
106207         (jm_FUNC_PUTENV): Invoke it.
106209         Module setenv.
106210         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
106211         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
106212         when invoked twice.
106213         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
106214         gt_FUNC_SETENV.
106216         Module memrchr.
106217         * m4/memrchr.m4: New file.
106219         Module stpcpy.
106220         * m4/stpcpy.m4: New file.
106222         Module strcase.
106223         * m4/strcase.m4: New file.
106225         Module strdup.
106226         * m4/strdup.m4: New file.
106228         Module strnlen.
106229         * m4/strnlen.m4: New file.
106231         Module strndup.
106232         * m4/strndup.m4: New file.
106234         Module xstrtod.
106235         * m4/xstrtod.m4: New file.
106237         Module xstrtol.
106238         * m4/xstrtol.m4: New file.
106240         Module getdate.
106241         * m4/getdate.m4: New file.
106243         Module unlocked-io.
106244         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
106245         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
106246         * m4/jm-glibc-io.m4n: Remove file.
106248         Module long-options.
106249         * m4/long-options.m4: New file.
106251         Module md5.
106252         * m4/md5.m4: New file.
106254         Module sha.
106255         * m4/sha.m4: New file.
106257         Module getstr.
106258         * m4/getstr.m4: New file.
106260         Module getline.
106261         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
106262         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
106263         <sys/types.h>, for size_t. Use the function name gnu_getline, not
106264         simply getline. Infoke gl_PREREQ_GETLINE.
106266         Module obstack.
106267         * m4/obstack.m4: New file.
106269         Module hash.
106270         * m4/hash.m4: New file.
106272         Module readtokens.
106273         * m4/readtokens.m4: New file.
106275         Module strverscmp.
106276         * m4/strverscmp.m4: New file.
106278         Module stdbool.
106279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
106280         OSF/1.
106282         Module strtoll.
106283         * m4/strtoll.m4: New file.
106285         Module strtoull.
106286         * m4/strtoull.m4: New file.
106288         Module strtoimax.
106289         * m4/strtoimax.m4: New file.
106291         Module strtoumax.
106292         * m4/strtoumax.m4: New file.
106294         Module xstrtoimax.
106295         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
106296         jm_AC_PREREQ_XSTRTOIMAX.
106297         Moved the strtol prerequisites to strtol.m4.
106298         Moved the strtoll prerequisites to strtoll.m4.
106299         Moved the strtoimax prerequisites to strtoimax.m4.
106301         Module xstrtoumax.
106302         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
106303         jm_AC_PREREQ_XSTRTOUMAX.
106304         Moved the strtoul prerequisites to strtoul.m4.
106305         Moved the strtoull prerequisites to strtoull.m4.
106306         Moved the strtoumax prerequisites to strtoumax.m4.
106308         Module chown.
106309         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
106310         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
106312         Module dup2.
106313         * m4/dup2.m4: New file.
106315         Module ftruncate.
106316         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
106317         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
106319         Module getgroups.
106320         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
106321         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
106323         Module gettimeofday.
106324         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
106325         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
106326         gl_PREREQ_GETTIMEOFDAY.
106328         Module mkdir.
106329         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
106330         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
106332         Module mkstemp.
106333         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
106334         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
106335         jm_AC_TYPE_UINTMAX_T.
106336         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
106338         Module stat.
106339         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
106340         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
106342         Module lstat.
106343         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
106344         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
106346         Module timespec.
106347         * m4/timespec.m4 (gl_TIMESPEC): New macro.
106348         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
106349         * m4/st_mtim.m4: Indentation.
106351         Module nanosleep.
106352         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
106353         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
106354         gl_PREREQ_NANOSLEEP.
106356         Module regex.
106357         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
106358         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
106359         (gl_REGEX): New macro.
106361         Module rename.
106362         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
106363         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
106365         Module rmdir.
106366         * m4/rmdir.m4: New file.
106368         Module utime.
106369         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
106370         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
106371         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
106373         Module dirname.
106374         * m4/dirname.m4: New file.
106376         Module getopt.
106377         * m4/getopt.m4: New file.
106379         Module unistd-safer.
106380         * m4/unistd-safer.m4: New file.
106382         Module fnmatch.
106383         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
106384         declaration.
106385         (gl_PREREQ_FNMATCH_EXTRA): New macro.
106386         (gl_FUNC_FNMATCH_POSIX): New macro.
106387         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
106388         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
106389         simply fnmatch.
106391         Module exclude.
106392         * m4/exclude.m4: New file.
106394         Module human.
106395         * m4/human.m4: New file.
106397         Module acl.
106398         * m4/acl.m4: Nop.
106400         Module backupfile.
106401         * m4/backupfile.m4: New file.
106402         * m4/d-ino.m4: Indentation.
106404         Module fsusage.
106405         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
106406         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
106407         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
106409         Module dirfd.
106410         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
106411         requirements.
106413         Module euidaccess.
106414         * m4/euidaccess.m4: New file.
106416         Module file-type.
106417         * m4/file-type.m4: New file.
106419         Module fileblocks.
106420         * m4/fileblocks.m4: New file.
106422         Module filemode.
106423         * m4/filemode.m4: New file.
106425         Module isdir.
106426         * m4/isdir.m4: New file.
106428         Module lchown.
106429         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
106430         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
106432         Module makepath.
106433         * m4/makepath.m4: New file.
106435         Module modechange.
106436         * m4/modechange.m4: New file.
106438         Module mountlist.
106439         * m4/mountlist.m4: New file.
106440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
106441         Indentation.
106443         Module path-concat.
106444         * m4/path-concat.m4: New file.
106446         Module pathmax.
106447         * m4/pathmax.m4: New file.
106449         Module same.
106450         * m4/same.m4: New file.
106452         Module save-cwd.
106453         * m4/save-cwd.m4: New file.
106455         Module savedir.
106456         * m4/savedir.m4: New file.
106458         Module xgetcwd.
106459         * m4/xgetcwd.m4: New file.
106460         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
106462         Module xreadlink.
106463         * m4/xreadlink.m4: New file.
106465         Module safe-read.
106466         * m4/safe-read.m4: New file.
106468         Module safe-write.
106469         * m4/safe-write.m4: New file.
106471         Module closeout.
106472         * m4/closeout.m4: New file.
106474         Module stdio-safer.
106475         * m4/stdio-safer.m4: New file.
106477         Module getpass.
106478         * m4/getpass.m4: New file.
106480         Module getugroups.
106481         * m4/getugroups.m4: New file.
106483         Module group-member.
106484         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
106485         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
106487         Module idcache.
106488         * m4/idcache.m4: New file.
106490         Module userspec.
106491         * m4/userspec.m4: New file.
106493         Module gettime.
106494         * m4/clock_time.m4: New file.
106495         * m4/gettime.m4: New file.
106497         Module settime.
106498         * m4/settime.m4: New file.
106500         Module posixtm.
106501         * m4/posixtm.m4: New file.
106503         Module gethostname.
106504         * m4/gethostname.m4: New file.
106506         Module canon-host.
106507         * m4/canon-host.m4: New file.
106509         Module gettext.
106510         * m4/codeset.m4: New file, from gettext-0.11.5.
106511         * m4/gettext.m4: New file, from gettext-0.11.5.
106512         * m4/glibc21.m4: New file, from gettext-0.11.5.
106513         * m4/iconv.m4: New file, from gettext-0.11.5.
106514         * m4/intdiv0.m4: New file, from gettext-0.11.5.
106515         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
106516         * m4/inttypes.m4: New file, from gettext-0.11.5.
106517         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
106518         * m4/isc-posix.m4: New file, from gettext-0.11.5.
106519         * m4/lcmessage.m4: New file, from gettext-0.11.5.
106520         * m4/lib-ld.m4: New file, from gettext-0.11.5.
106521         * m4/lib-link.m4: New file, from gettext-0.11.5.
106522         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
106523         * m4/progtest.m4: New file, from gettext-0.11.5.
106524         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
106525         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
106526         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
106528         Module localcharset.
106529         * m4/localcharset.m4: New file.
106531         Module hard-locale.
106532         * m4/hard-locale.m4: New file.
106534         Module mbswidth.
106535         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
106536         onceonly macros.
106537         * m4/mbrtowc.m4: Add comment.
106539         Module memcasecmp.
106540         * m4/memcasecmp.m4: New file.
106542         Module memcoll.
106543         * m4/memcoll.m4: New file.
106545         Module unicodeio.
106546         * m4/unicodeio.m4: New file.
106548         Module rpmatch.
106549         * m4/rpmatch.m4: New file.
106551         Module yesno.
106552         * m4/yesno.m4: New file.
106554         Module exitfail.
106555         * m4/exitfail.m4: New file.
106557         Module c-stack.
106558         * m4/c-stack.m4 (gl_C_STACK): New macro.
106559         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
106561         Module error.
106562         * m4/error.m4 (gl_ERROR): New macro.
106563         (jm_PREREQ_ERROR): Use onceonly macros.
106565         Module fatal.
106566         * m4/fatal.m4: New file.
106568         Module getloadavg.
106569         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
106570         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
106572         Module getpagesize.
106573         * m4/getpagesize.m4: New file.
106575         Module getusershell.
106576         * m4/getusershell.m4: New file.
106578         Module physmem.
106579         * m4/physmem.m4: New file.
106581         Module posixver.
106582         * m4/posixver.m4: New file.
106584         Module quotearg.
106585         * m4/quotearg.m4: New file.
106587         Module quote.
106588         * m4/quote.m4: New file.
106590         Module readutmp.
106591         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
106593         Module sig2str.
106594         * m4/sig2str.m4: New file.
106596         Other.
106597         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
106598         ulonglong.m4.
106599         * m4/intmax_t.m4: New file.
106600         * m4/d-type.m4: Indentation.
106601         * m4/jm-macros.m4: Update.
106602         * m4/prereq.m4 (jm_PREREQ): Update.
106603         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
106604         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
106605         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
106606         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
106607         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
106608         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
106609         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
106610         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
106611         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
106612         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
106613         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
106614         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
106615         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
106616         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
106617         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
106618         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
106619         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
106620         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
106621         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
106623 2002-12-24  Bruno Haible  <bruno@clisp.org>
106625         * MODULES.txt: Update according to m4/ changes.
106627         Module gettext.
106628         * config.rpath: New file, from gettext-0.11.5.
106630         * modules/*: New module descriptions.
106631         * gnulib-tool: New file.
106632         * MODULES.html.sh: New file.
106634 2002-12-21  Karl Berry  <karl@gnu.org>
106636         * doc/fdl.texi: update to version 1.2.
106638 2002-12-19  Karl Berry  <karl@gnu.org>
106640         * config/config.guess: update from prep.
106642 2002-12-18  Bruno Haible  <bruno@clisp.org>
106644         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
106645         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
106647 2002-12-17  Bruno Haible  <bruno@clisp.org>
106649         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
106650         stdlib.h, string.h.
106652 2002-12-17  Bruno Haible  <bruno@clisp.org>
106654         * lib/canon-host.c (strdup): Remove unused declaration.
106656         * lib/fsusage.c: Include full_read.h.
106657         (get_fs_usage): Use full_read instead of safe_read.
106659         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
106661 2002-12-12  Karl Berry  <karl@gnu.org>
106663         * config/config.guess: update from prep.
106665 2002-12-11  Bruno Haible  <bruno@clisp.org>
106667         * m4/setenv.m4: New file, from gettext-0.11.5.
106669 2002-12-11  Bruno Haible  <bruno@clisp.org>
106671         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
106672         not unsetenv().
106673         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
106674         modifications:
106676         2002-12-11  Bruno Haible  <bruno@clisp.org>
106678                 * setenv.c (alloca): Fall back to malloc.
106679                 (freea): New macro.
106680                 (setenv): Use freea() to free memory allocated with alloca().
106682         2002-11-13  Bruno Haible  <bruno@clisp.org>
106684                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
106685                 function declarations.
106686                 * unsetenv.c (unsetenv): Likewise.
106688         2002-03-04  Bruno Haible  <bruno@clisp.org>
106690                 Portability to AIX 4.3.3.
106691                 * unsetenv.c: New file, extracted from setenv.c.
106692                 * setenv.c: Move the unsetenv() function to unsetenv.c.
106694         2001-12-20  Bruno Haible  <bruno@clisp.org>
106696                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
106697                 use malloc instead. For SunOS 4.
106699         2001-12-11  Bruno Haible  <bruno@clisp.org>
106701                 * setenv.c: Declare alloca.
106702                 (compar_fn_t): New typedef.
106703                 (KNOWN_VALUE, STORE_VALUE): Use it.
106705         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
106706         setenv.h.
106708 2002-12-10  Paul Eggert  <eggert@twinsun.com>
106710         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
106711         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
106712         Choose values that are less likely to collide with system fnmatch
106713         options.
106714         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
106715         defined (e.g., a pure POSIX system).
106716         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
106717         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
106719 2002-12-06  Paul Eggert  <eggert@twinsun.com>
106721         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
106722         a pain in practice to deal with generated m4 files.  This change
106723         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
106725         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
106726         and jm-glibc-io.m4, as they are no longer a special case.
106727         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
106728         kludge and the auto-generation stuff.  Check only whether the
106729         functions are declared, not whether they exist, since older hosts
106730         that don't declare the functions can't use the optimization anyway.
106732 2002-12-06  Jim Meyering  <jim@meyering.net>
106734         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
106736         Merge in changes from libc's misc/error.c, in preparation
106737         for the merge of gnulib's changes back into libc.
106739         * lib/error.c (_): Define only if not already defined.
106740         Move definition to follow all #include directives.
106741         Include unlocked-io.h only if !_LIBC.
106742         [_LIBC]: Include <libio/libioP.h>.
106743         [USE_IN_LIBIO]: Include <libio/iolibio.h>
106744         (fflush): Tweak definition to use INTUSE.
106745         (putc): Define.
106747 2002-12-05  Paul Eggert  <eggert@twinsun.com>
106749         * lib/alloca.c [defined emacs]: Include "lisp.h".
106750         (xalloc_die) [defined emacs]: New macro.
106751         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
106752         [! defined emacs]: Include <xalloc.h>.
106753         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
106754         (pointer): Typedef to POINTER_TYPE *.
106755         (malloc): Remove decl; we now always use xmalloc.
106756         (alloca): Use old-style definition, since Emacs needs this.
106757         Check for arithmetic overflow when computing combined size.
106759 2002-12-04  Paul Eggert  <eggert@twinsun.com>
106761         Do not generate unlocked-io.h automatically, since it's easier to
106762         maintain it by hand.
106764         * lib/unlocked-io.h: New file, from GNU diffutils,
106765         but with proper copyright notice and attribution.
106766         * lib/gen-uio: Remove.
106767         * lib/Makefile.am: Add copyright notice.
106768         (libfetish_a_SOURCES): Add unlocked-io.h.
106769         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
106770         (DISTCLEANFILES, io_functions): Remove macros.
106771         (EXTRA_DIST): Remove gen_uio.
106772         (unlocked-io.h): Remove rule.
106774 2002-12-04  Jim Meyering  <jim@meyering.net>
106776         Reflect the fact that stat.c and lstat.c are no longer generated.
106777         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
106778         (DISTCLEANFILES): Likewise.
106779         (EXTRA_DIST): Likewise.
106780         (all_local): Don't depend on stat.c or lstat.c.
106781         (stat.c, lstat.c): Remove rules.
106782         (EXTRA_DIST): Remove xstat.in.
106784         * lib/xstat.in: Remove file.  Contents moved into stat.c.
106785         * lib/stat.c: New file.  Contents mostly from xstat.in.
106786         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
106787         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
106789         * lib/safe-read.c: Rework so that it may serve to define safe_write,
106790         too.
106791         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
106793 2002-12-03  Jim Meyering  <jim@meyering.net>
106795         * lib/safe-read.c, safe-write.c: Change variable names and comments,
106796         but not semantics, to minimize the differences between these two files.
106797         (safe_read): Change comment to mention SAFE_READ_ERROR.
106799         * lib/safe-read.c (IS_EINTR): Define.
106800         (safe_read): Use IS_EINTR in place of in-function cpp directives.
106802 2002-12-02  Jim Meyering  <jim@meyering.net>
106804         * lib/safe-read.c (EINTR): Define.
106805         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
106806         (INT_MAX): Provide fallback.
106807         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
106809         * lib/safe-read.h (SAFE_READ_ERROR): Define.
106811 2002-12-02  Bruno Haible  <bruno@clisp.org>
106813         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
106814         Define, taken from safe-read.c.
106815         (INT_MAX): Provide fallback.
106816         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
106817         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
106819         * lib/safe-read.c (EINTR): Remove definition.
106820         (safe_read): Don't use EINTR if it is absent.
106822 2002-12-01  Jim Meyering  <jim@meyering.net>
106824         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
106825         zero.
106826         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
106828 2002-11-27  Paul Eggert  <eggert@twinsun.com>
106830         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
106831         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
106832         with `if (! (value < limit)) abort ();', for readability.
106834 2002-11-26  Karl Berry  <karl@gnu.org>
106836         * lib/strdup.c: copy from libc again, with jim's ok.
106837         * lib/.cppi-disable: re-add strdup.c
106839 2002-11-25  Karl Berry  <karl@gnu.org>
106841         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
106842         instead of "strtol.c".
106844 2002-11-25  Karl Berry  <karl@gnu.org>
106846         * config/install-sh: update from automake for variable quoting, $0 in
106847         error msgs, etc.
106849         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
106850         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
106851         entry.
106853 2002-11-25  Jim Meyering  <jim@meyering.net>
106855         * lib/mktime.c: Sync from libc, now that it has the latest fix.
106857 2002-11-24  Karl Berry  <karl@gnu.org>
106859         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
106860         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
106862 2002-11-24  Jim Meyering  <jim@meyering.net>
106864         Update from coreutils:
106866         * lib/mktime.c: Merge in changes from libc.
106868         Avoid a link-time failure on some Linux systems.
106869         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
106870         (otherwise).
106871         (__mon_yday): Declare with the STATIC attribute.
106872         (__mktime_internal): Likewise.
106873         Based on a report from Greg Schafer.
106875 2002-11-23  Jim Meyering  <jim@meyering.net>
106877         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
106878         Use `unsigned', not `int', as type of index.
106880         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
106882         * lib/fsusage.c: Remove unneeded parentheses around operands of
106883         `defined'.
106885 2002-11-22  Paul Eggert  <eggert@twinsun.com>
106887         * lib/quotearg.h: Allow multiple inclusion by surrounding with
106888         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
106889         so that we can be included first.
106890         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
106891         * lib/quotearg.c: Include quotearg.h immediately after config.h.
106892         No need to include stddef.h or sys/types.h any more.
106893         Surround local include files with "", not "<>".
106894         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
106895         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
106896         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
106897         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
106898         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
106899         (ISPRINT): Remove; no longer needed now that we assume C89.
106901         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
106902         Preserve errno.
106904         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
106905         quotearg_char): Use SIZE_MAX rather than
106906         (size_t) -1 when we are talking about "infinity".
106908         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
106910 2002-11-22  Paul Eggert  <eggert@twinsun.com>
106912         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
106913         hint that one should use `if (! x) abort ();' rather than `assert
106914         (x);', and anyway it's one less thing to worry about configuring.
106915         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
106916         hash_rehash, hash_insert): Use abort rather than assert.
106918 2002-11-22  Bruno Haible  <bruno@clisp.org>
106920         * lib/safe-read.h: Assume C89. Add comments.
106921         (safe_read): Change return type to size_t.
106922         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
106923         byte counts > SSIZE_MAX correctly.
106924         * lib/safe-write.h: New file.
106925         * lib/safe-write.c: New file.
106926         * lib/full-read.h: New file.
106927         * lib/full-read.c: New file.
106928         * lib/full-write.h: Assume C89. Add comments.
106929         * lib/full-write.c: Include safe-write.h.
106930         (full_write): Rewritten to use safe_write.
106931         Suggested by Jim Meyering and Paul Eggert.
106933 2002-11-21  Jim Meyering  <jim@meyering.net>
106935         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
106937         Merge in changes from the coreutils.
106939         2002-09-25  Paul Eggert  <eggert@twinsun.com>
106940         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
106941         <stdint.h>.
106942         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
106943         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
106944         int.  Work more efficiently if X is the same width as uintmax_t.
106945         Do not compare X to -1, to avoid bogus compiler warning.
106946         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
106947         Don't assume that f_frsize and f_bsize are the same type.
106949         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
106950         warning on FreeBSD.
106952         * lib/makepath.c (make_path): Restore umask *before* creating the final
106953         component.
106954         (make_path): Minor reformatting.
106956         * lib/xmalloc.c: Adjust to work with new autoconf macros,
106957         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
106958         HAVE_MALLOC/HAVE_REALLOC.
106960         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
106961         dummy ones.  At least on GNU/Linux systems, `auto' means something
106962         else.
106963         From Michael Stone.
106965 2002-11-21  Bruno Haible  <bruno@clisp.org>
106967         Remove case insensitive option matching.
106968         * lib/argmatch.h (argcasematch): Remove declaration.
106969         (ARGCASEMATCH): Remove macro.
106970         (__xargmatch_internal): Remove case_sensitive argument.
106971         (XARGMATCH): Update.
106972         (XARGCASEMATCH): Remove macro.
106973         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
106974         case_sensitive argument.
106975         (argcasematch): Remove function.
106976         (__xargmatch_internal): Remove case_sensitive argument.
106977         (main): Use XARGMATCH instead of XARGCASEMATCH.
106979         * lib/xmalloc.c: Change compile-time error message. Add comment about
106980         required autoconf version.
106982 2002-11-20  Paul Eggert  <eggert@twinsun.com>
106984         Merge argmatch cleanups from Bison.  Assume C89.
106986         * lib/argmatch.c: Include config.h here, not in argmatch.h.
106987         Include stdlib.h, for EXIT_FAILURE.
106988         Always include <string.h>, since we assume C89.
106989         (EXIT_FAILURE): Remove pre-C89 bug workaround.
106990         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
106991         Include <stddef.h> instead, since it's all we need for size_t.
106992         (PARAMS): Remove.  All uses removed.
106993         (ARRAY_CARDINALITY): Do not bother to #undef.
106994         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
106995         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
106996         Remove unnecessary parentheses.
106997         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
106998         Insert necessary parentheses.
106999         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
107000         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
107002 2002-11-19  Bruno Haible  <bruno@clisp.org>
107004         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
107005         * lib/mbswidth.h: Include <stddef.h>, for size_t.
107007         * lib/mbswidth.h (PARAMS): Remove macro.
107008         (mbswidth, mbsnwidth): Use ANSI C function declarations.
107009         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
107011         * lib/gcd.h (PARAMS): Remove macro.
107012         (gcd): Use ANSI C function declarations.
107013         * lib/gcd.c (gcd): Likewise.
107015 2002-11-15  Bruno Haible  <bruno@clisp.org>
107017         * lib/strcspn.c: Include <stddef.h>.
107018         (strcspn): Use ANSI C function declaration. Change return type to
107019         size_t. Use NULL.
107020         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
107021         (strpbrk): Use NULL.
107022         * lib/strpbrk.h (PARAMS): Remove macro.
107023         (strpbrk): Use ANSI C function declaration.
107024         * lib/strstr.c: Don't include <sys/types.h>.
107025         * lib/strstr.h (PARAMS): Remove macro.
107026         (strstr): Use ANSI C function declarations.
107028 2002-11-14  Karl Berry  <karl@gnu.org>
107030         * config/mkinstalldirs: `do' on separate line, instead of
107031         `for var; do'.
107033 2002-11-06  Bruno Haible  <bruno@clisp.org>
107035         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
107036         * lib/gcd.c (gcd): Likewise.
107038 2002-11-05  Bruno Haible  <bruno@clisp.org>
107040         * lib/gcd.h: New file, from gettext-0.11.5.
107041         * lib/gcd.c: New file, from gettext-0.11.5.
107043 2002-11-05  Bruno Haible  <bruno@clisp.org>
107045         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107046         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107047         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107048         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107050         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
107051         <libintl.h>.
107052         * lib/makepath.c: Include gettext.h instead of <locale.h> and
107053         <libintl.h>.
107055         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
107056         * lib/human.c: Include gettext.h instead of <libintl.h>.
107057         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
107058         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
107059         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
107060         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
107061         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
107062         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
107063         (textdomain): Remove definition.
107064         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
107066         * lib/long-options.c: Remove include of <libintl.h> and definition of
107067         _.
107068         * lib/same.c: Remove include of <libintl.h> and definition of _.
107070 2002-11-04  Owen Taylor  <otaylor@redhat.com>
107072         * lib/config.charset: A few additions for Solaris.
107074 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
107076         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
107077         * lib/localcharset.c (locale_charset): Declare as extern "C".
107079 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
107081         * lib/config.charset: msdos in uk_UA uses CP1125.
107083 2002-11-04  Bruno Haible  <bruno@clisp.org>
107085         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
107086         * lib/strcase.h: New file, from GNU gettext-0.11.5.
107087         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
107088         * lib/strstr.h: New file, from GNU gettext-0.11.5.
107089         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
107091 2002-11-04  Bruno Haible  <bruno@clisp.org>
107093         * lib/localcharset.c (locale_charset): Don't return an empty string.
107095 2002-11-04  Bruno Haible  <bruno@clisp.org>
107097         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
107098         aliases.
107100 2002-11-04  Bruno Haible  <bruno@clisp.org>
107102         * lib/config.charset: Update for newest glibc. Add canonical names
107103         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
107105 2002-11-04  Bruno Haible  <bruno@clisp.org>
107107         * lib/config.charset: Add support for NetBSD.
107109 2002-11-04  Bruno Haible  <bruno@clisp.org>
107111         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
107113 2002-11-01  Bruno Haible  <bruno@clisp.org>
107115         * configure.in: Add AC_CONFIG_AUX_DIR call.
107116         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
107117         test/Makefile.
107118         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
107120 2002-09-28  Karl Berry  <karl@gnu.org>
107122         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
107123         installed automake until the next release, since changes have been
107124         made.
107126 2002-09-25  Karl Berry  <karl@gnu.org>
107128         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
107129         * lib/getopt*: copy from libc/posix.
107130         * lib/gettext.h: copy from gettext.
107131         * lib/.cppi-disable: add strdup.c, gettext.h.
107133 2002-09-25  Karl Berry  <karl@gnu.org>
107135         * config/srclist.txt: enable gettext.h check.
107136         * config/config.{guess,sub}: update from prep.
107137         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
107138                 from automake 1.6.3.
107139         See srclist*.
107141 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
107143         * regex.c (PATFETCH): Remove the translating fetch.
107144         (PATFETCH_RAW): Rename to PATFETCH.
107145         (set_image_of_range): New fun.
107146         (SET_RANGE_TABLE_WORK_AREA): Use it.
107147         (regex_compile): Don't translate the pattern chars so eagerly.
107148         Only do it when inserting an `exactn' bytecode or when handling
107149         a char-range.
107150         (mutually_exclusive_p): Avoid empty statement.
107152 2002-07-06  Jim Meyering  <meyering@lucent.com>
107154         * m4/README: Don't mention Makefile.am.in.
107155         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
107157 2002-07-01  Jim Meyering  <meyering@lucent.com>
107159         * lib/c-stack.c: Include sys/time.h.
107160         From Volker Borchert.
107162 2002-06-26  Paul Eggert  <eggert@twinsun.com>
107164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
107166 2002-06-26  Paul Eggert  <eggert@twinsun.com>
107168         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
107169         New macro.  Use it uniformly instead of
107170         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
107171         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
107172         reported by Vin Shelton.
107174 2002-06-22  Paul Eggert  <eggert@twinsun.com>
107176         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
107177         Do not assume SA_SIGINFO behavior.
107178         Bug reported by Jim Meyering on NetBSD 1.5.2.
107180 2002-06-22  Jim Meyering  <meyering@lucent.com>
107182         * m4/c-stack.m4: New file, from diffutils-2.8.2.
107183         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
107185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
107186         now that configure.ac uses AC_GNU_SOURCE.
107187         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
107188         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
107190         Update to latest tools.  Suggestions from Paul Eggert.
107191         * m4/stdbool.m4: New file, from diffutils-2.8.2.
107192         * m4/gnu-source.m4: Update from diffutils-2.8.2.
107193         * m4/fnmatch.m4: Likewise.
107194         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
107195         to AC_HEADER_STDBOOL
107197 2002-06-22  Jim Meyering  <meyering@lucent.com>
107199         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
107200         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
107202 2002-06-22  Jim Meyering  <meyering@lucent.com>
107204         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
107206         * lib/exitfail.c, exitfail.h: Likewise.
107207         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
107209         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
107210         of fnmatch.h.
107211         (EXTRA_DIST): Add fnmatch_loop.c.
107212         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
107214         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
107215         * lib/fnmatch.c: Update from diffutils-2.8.2.
107216         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
107217         * lib/fnmatch.h: Remove file.
107219 2002-06-21  Jim Meyering  <meyering@lucent.com>
107221         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
107222         * m4/mbrtowc.m4: Likewise.
107224         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
107225         * m4/mbswidth.m4: Reflect name change:
107226         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
107227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
107229         * m4/lib-link.m4: Update from gettext-0.11.2.
107230         * m4/gettext.m4: Likewise.
107232         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
107233         From Alfred M. Szmidt.
107235 2002-06-18  Paul Eggert  <eggert@twinsun.com>
107237         * lib/file-type.h: Report an error if neither S_ISREG nor
107238         S_IFREG is defined, instead of using a test specific to glibc
107239         2.2.  This should be safe, since POSIX requires S_ISREG and
107240         Unix Version 7 had S_IFREG.  We don't need to check for
107241         <sys/types.h> since we don't use any symbols that it defines.
107243 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
107245         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
107246         $@-t, so that each temporary file name is unique and valid in the first
107247         8 characters, for operation under DOS.
107249 2002-06-15  Paul Eggert  <eggert@twinsun.com>
107251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
107253 2002-06-15  Jim Meyering  <meyering@lucent.com>
107255         Work even with DJGPP 2.03, which lacks support for symlinks.
107256         From Richard Dawe.
107257         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
107258         is defined.
107259         * lib/lchown.c (S_ISLNK): Likewise.
107261 2002-06-15  Jim Meyering  <meyering@lucent.com>
107263         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
107264         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
107265         have been included before this file.
107267 2002-06-14  Jim Meyering  <meyering@lucent.com>
107269         * lib/file-type.h: Use the version from diffutils-2.8.2.
107270         * lib/file-type.c: Likewise.
107272 2002-06-07  Jim Meyering  <meyering@lucent.com>
107274         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
107275         They're needed at least for NetBSD 1.5.2.
107276         ($statxfs_includes): Include those same headers.
107277         ($statxfs_includes): Include sys/vfs.h if available.
107278         ($statxfs_includes): Likewise for sys/statvfs.h.
107279         Check for the following members in both structs statfs and statvfs:
107280         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
107282 2002-06-01  Jim Meyering  <meyering@lucent.com>
107284         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
107285         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
107287 2002-05-28  Jim Meyering  <meyering@lucent.com>
107289         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
107290         Reported by Volker Borchert.
107292 2002-05-27  Jim Meyering  <meyering@lucent.com>
107294         Fix a problem seen only on nonconforming systems whereby ls.c's
107295         use of localtime, and then of gettimeofday would cause trouble:
107296         the localtime call used to initialize rpl_gettimeofday's save
107297         mechanism would clobber ls's current local time information so
107298         that in any long listing the first file would always be listed
107299         with date 1970-01-01.  Analysis by Volker Borchert.
107301         * lib/gettimeofday.c (localtime): Undefine.
107302         (rpl_localtime): New function.
107304 2002-05-27  Jim Meyering  <meyering@lucent.com>
107306         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
107307         localtime.
107309         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
107310         use the replacement function; it wouldn't resolve at link time.
107311         Reported by Volker Borchert.
107313 2002-05-22  Jim Meyering  <meyering@lucent.com>
107315         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
107316         file-type.h.
107317         * lib/file-type.h: New file.
107318         * lib/file-type.c (file_type): New file/function.  Extracted from
107319         diffutils.
107321 2002-04-30  Jim Meyering  <meyering@lucent.com>
107323         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
107325 2002-04-29  Paul Eggert  <eggert@twinsun.com>
107327         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
107329 2002-04-29  Paul Eggert  <eggert@twinsun.com>
107331         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
107332         Do not check for alloca.h (no longer used) or stdbool.h (was never
107333         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
107335 2002-04-29  Paul Eggert  <eggert@twinsun.com>
107337         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
107339 2002-04-29  Jim Meyering  <meyering@lucent.com>
107341         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
107342         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
107343         Use AC_FUNC_STRNLEN here instead.
107345         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
107346         With autoconf-2.53a, it's part of AC_PROG_CC.
107348 2002-04-28  Paul Eggert  <eggert@twinsun.com>
107350         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
107351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
107353 2002-04-28  Paul Eggert  <eggert@twinsun.com>
107355         * lib/sig2str.h, lib/sig2str.c: New files.
107356         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
107358 2002-04-28  Paul Eggert  <eggert@twinsun.com>
107360         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
107361         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
107362         of 127, since 64 is the largest conceivable number for ancient
107363         nonstandard hosts.
107364         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
107366 2002-04-28  Jim Meyering  <meyering@lucent.com>
107368         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
107370 2002-04-24  Jim Meyering  <meyering@lucent.com>
107372         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
107373         (jm_PREREQ): Use it.
107375         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
107376         mach/mach.h fcntl.h.
107377         Check for this function: setlocale.
107379 2002-04-24  Jim Meyering  <meyering@lucent.com>
107381         * lib/gettext.h: New file, from Gettext.
107382         * lib/Makefile.am (INCLUDES): Remove -I../intl.
107383         (libfetish_a_SOURCES): Add gettext.h.
107385 2002-04-16  Jim Meyering  <meyering@lucent.com>
107387         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
107388         ut_pid, ut_id, ut_exit.
107390 2002-04-16  Jim Meyering  <meyering@lucent.com>
107392         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
107393         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
107394         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
107396 2002-04-12  Jim Meyering  <meyering@lucent.com>
107398         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
107399         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
107400         existence of the getmntinfo function.  Needed for Darwin 5.3.
107402         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
107403         This is necessary at least on Darwin 5.3.
107405         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
107406         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
107407         strnlen.o in the library, and that makes some versions of ranlib
107408         object.
107410 2002-04-12  Jim Meyering  <meyering@lucent.com>
107412         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
107414 2002-04-09  Jim Meyering  <meyering@lucent.com>
107416         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
107417         to be more precise.  Rather than saying we're checking whether the
107418         function `works', say what we're testing.
107419         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
107420         Reported by Bruno Haible.
107422 2002-03-10  Jim Meyering  <meyering@lucent.com>
107424         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
107425         Suggestion from Santiago Vila.
107427 2002-03-08  Jim Meyering  <meyering@lucent.com>
107429         * lib/rename.c: Mention that this wrapper is needed also on
107430         mips-dec-ultrix4.4 systems.
107432 2002-03-02  Jim Meyering  <meyering@lucent.com>
107434         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
107435         not HAVE_CLOCK_SETTIME.
107437 2002-02-27  Paul Eggert  <eggert@twinsun.com>
107439         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
107440         Check for clock_settime.
107442 2002-02-27  Paul Eggert  <eggert@twinsun.com>
107444         * lib/nanosleep.h: Rename to....
107445         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
107447         * lib/gettime.c: New file.
107448         * lib/settime.c: New file.
107449         * lib/stime.c: Remove.
107451         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
107452         timespec.h.  Remove nanosleep.h.
107454 2002-02-25  Paul Eggert  <eggert@twinsun.com>
107456         * m4/acl.m4: New file.
107457         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
107458         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
107460 2002-02-25  Paul Eggert  <eggert@twinsun.com>
107462         * lib/acl.c, lib/acl.h: New files.
107463         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
107465 2002-02-24  Jim Meyering  <meyering@lucent.com>
107467         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
107468         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
107469         cause trouble.  Reported by Nelson Beebe.
107471 2002-02-23  Paul Eggert  <eggert@twinsun.com>
107473         * lib/path-concat.c (xpath_concat): Reorder code to pacify
107474         compilers that don't know that xalloc_die never returns.
107476 2002-02-20  Jim Meyering  <meyering@lucent.com>
107478         * lib/getdate.c: Regenerate using bison-1.33.
107480 2002-02-17  Jim Meyering  <meyering@lucent.com>
107482         * config/config.guess (main): Don't use `head -1'; it's no longer
107483         portable. Use `sed 1q' instead.
107485 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
107487         * m4/codeset.m4: Upgrade to gettext-0.11.
107488         * m4/gettext.m4: Upgrade to gettext-0.11.
107489         * m4/glibc21.m4: Upgrade to gettext-0.11.
107490         * m4/iconv.m4: Upgrade to gettext-0.11.
107491         * m4/isc-posix.m4: Upgrade to gettext-0.11.
107492         * m4/lcmessage.m4: Upgrade to gettext-0.11.
107493         * m4/lib-ld.m4: New file, from gettext-0.11.
107494         * m4/lib-link.m4: New file, from gettext-0.11.
107495         * m4/lib-prefix.m4: New file, from gettext-0.11.
107496         * m4/progtest.m4: Upgrade to gettext-0.11.
107498 2002-02-15  Paul Eggert  <eggert@twinsun.com>
107500         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
107501         (jm_PREREQ): Use it.
107503 2002-02-15  Paul Eggert  <eggert@twinsun.com>
107505         * lib/posixver.c, lib/posixver.h: New files.
107506         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
107508 2002-02-02  Paul Eggert  <eggert@twinsun.com>
107509             Bruno Haible  <bruno@clisp.org>
107511         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
107512         (fwrite_success_callback): New declaration.
107513         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
107514         print_unicode_char. Call failure callback instead of error.
107515         (fwrite_success_callback): New function.
107516         (exit_failure_callback): New function.
107517         (fallback_failure_callback): New function.
107518         (print_unicode_char): Call unicode_to_mb.
107520 2002-01-26  Jim Meyering  <meyering@lucent.com>
107522         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
107523         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
107525 2002-01-26  Jim Meyering  <meyering@lucent.com>
107527         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
107529 2002-01-22  Paul Eggert  <eggert@twinsun.com>
107531         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
107533 2002-01-22  Jim Meyering  <meyering@lucent.com>
107535         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
107536         Otherwise, some versions of automake would omit the rule that makes
107537         Makefile from Makefile.in.
107539 2002-01-21  Paul Eggert  <eggert@twinsun.com>
107541         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
107542         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
107543         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
107544         (memcoll): Set errno to zero if there is no error.
107546         * lib/quotearg.c (quotearg_buffer_restyled):
107547         Fix bug with quoting buffers containing NUL when backslashing escapes.
107548         This bug was exposed by the other changes in this patch.
107549         (quotearg_n_options): New arg ARGSIZE.
107550         All callers changed.
107551         (quoting_options_from_style): New function.
107552         (quotearg_n_style): Use it.
107553         (quotearg_n_style_mem): New function.
107555         * lib/quotearg.h (quotearg_n_style_mem): New function.
107557 2002-01-19  Jim Meyering  <meyering@lucent.com>
107559         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
107560         Remove useless quotes: DF_PROG="df".
107561         * m4/strnlen.m4: New file.
107563 2002-01-16  Paul Eggert  <eggert@twinsun.com>
107565         * lib/backupfile.c (ISDIGIT): Comment fix.
107566         * lib/getdate.y (ISDIGIT): Likewise.
107567         * lib/posixtm.c (ISDIGIT, year): Likewise.
107568         * lib/strverscmp.c (ISDIGIT): Likewise.
107569         * lib/userspec.c (ISDIGIT): Likewise.
107571 2002-01-16  Jim Meyering  <meyering@lucent.com>
107573         * lib/getdate.y: Add three semicolons, each just before a closing
107574         brace. Bison (as of version 1.31) no longer papers over that mistake.
107576 2002-01-05  Jim Meyering  <meyering@lucent.com>
107578         * lib/version-etc.c (version_etc_copyright): Update copyright year.
107580 2001-12-19  Paul Eggert  <eggert@twinsun.com>
107582         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
107583         not silently exit merely because the output buffer happens to
107584         have nothing pending.
107586 2001-12-18  Paul Eggert  <eggert@twinsun.com>
107588         See the big note in ../ChangeLog.
107589         * lib/human.c (suffixes): Prefer K to k for 1024.
107590         (generate_suffix_backwards): New function.
107591         (human_readable_inexact): Use it.
107592         * lib/xstrtol.c (__xstrtol): If there is no number but there
107593         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
107594         Accept 'K' as well as 'k'.
107596 2001-12-15  Jim Meyering  <meyering@lucent.com>
107598         * lib/regex.h (__restrict_arr): Update from libc.
107600         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
107601         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
107602         (STREQ): Define.
107604 2001-12-14  Jim Meyering  <meyering@lucent.com>
107606         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
107607         Suggestion from Bruno Haible.
107609 2001-12-10  Jim Meyering  <meyering@lucent.com>
107611         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
107612         xrealloc, Instead, include "xalloc.h".
107613         (initbuffer): Don't cast xmalloc return value to char*.
107614         (readline): Reword comment.
107615         Don't cast xrealloc return value to char*
107616         Return NULL, not 0.
107618 2001-12-09  Jim Meyering  <meyering@lucent.com>
107620         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
107621         about `signed and unsigned type in conditional expression'.
107622         * lib/posixtm.c (posix_time_parse): Likewise.
107624         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
107626         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
107627         to avoid a pedantic warning.
107629         * lib/getstr.c: Don't include assert.h.
107630         (getstr): Remove warning-evoking assertions.
107631         Return -1 if offset parameter is out of bounds.
107632         Change the type of a local from int to size_t.
107634         * lib/strftime.c (my_strftime_localtime_r): Include this function
107635         definition in the `#if ! HAVE_TM_GMTOFF' block.
107637         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
107638         Include xalloc.h instead.
107640 2001-12-02  Jim Meyering  <meyering@lucent.com>
107642         * lib/tempname.c: Don't declare getenv, thus reverting the change of
107643         2001-11-18.  It's no longer necessary, now that stdlib.h is always
107644         included.
107646         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
107647         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
107649 2001-11-30  Akim Demaille  <akim@epita.fr>
107651         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
107652         before being defined.
107654 2001-11-27  Paul Eggert  <eggert@twinsun.com>
107656         * lib/quotearg.h (quotearg_n, quotearg_n_style):
107657         First arg is int, not unsigned.
107658         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
107659         (SIZE_MAX, UINT_MAX): New macros.
107660         (quotearg_n_options): Abort if N is negative.
107661         Avoid overflow check on hosts where size_t is 64 bits and int
107662         is 32 bits, as overflow is impossible there.
107663         Fix off-by-one typo that caused unnecessary reallocation.
107665 2001-11-27  Jim Meyering  <meyering@lucent.com>
107667         * lib/tempname.c: Merge with version from libc.
107668         * lib/regex.c: Likewise.
107670         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
107671         systems for which STDC_HEADERS is 0, it was not included, resulting in
107672         a warning about an integer-to-pointer conversion problem with getenv.
107673         Reported by Volker Borchert.
107675 2001-11-26  Jim Meyering  <meyering@lucent.com>
107677         * lib/gtod.h: Remove file.
107678         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
107679         * lib/gettimeofday.c: Don't include gtod.h.
107680         (GTOD_init): Remove function.
107681         (rpl_gettimeofday): Do its job here instead, rather than aborting.
107682         Suggestion from Volker Borchert.
107684 2001-11-23  Jim Meyering  <meyering@lucent.com>
107686         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
107687         it.
107688         * lib/hash.c (struct hash_table): Define it here instead.
107690 2001-11-22  Jim Meyering  <meyering@lucent.com>
107692         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
107694 2001-11-20  Jim Meyering  <meyering@lucent.com>
107696         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
107697         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
107699 2001-11-19  Jim Meyering  <meyering@lucent.com>
107701         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
107702         directory.  Use "conftestXXXXXX" as the template.
107703         Suggestion from Paul Eggert.
107705         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
107706         immediately, so the test doesn't mistakenly hit the max-open-files
107707         limit.
107709 2001-11-18  Paul Eggert  <eggert@twinsun.com>
107711         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
107712         (TEMPORARIES): New macro.
107713         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
107714         removes an artificial limitation (e.g. HP-UX 10.20, where
107715         TMP_MAX is 17576).
107717 2001-11-18  Jim Meyering  <meyering@lucent.com>
107719         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
107721 2001-11-18  Jim Meyering  <meyering@lucent.com>
107723         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
107724         on SunOS 4.
107726         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
107727         files will be created before anything else.
107729 2001-11-17  Paul Eggert  <eggert@twinsun.com>
107731         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
107732         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
107734 2001-11-17  Jim Meyering  <meyering@lucent.com>
107736         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
107737         Prompted by a report from Bob Proulx.
107739         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
107740         Instead, require UTILS_FUNC_MKSTEMP.
107742 2001-11-17  Jim Meyering  <meyering@lucent.com>
107744         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
107745         Now, that's done as part of AC_FUNC_STRTOD.
107747 2001-11-17  Jim Meyering  <meyering@lucent.com>
107749         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
107750         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
107751         rather than group writable.  Patch by Juan F. Codagnone.
107753         * lib/readtokens.c: Remove explicit declarations of xmalloc and
107754         xrealloc, Instead, include "xalloc.h".
107756         * lib/mountlist.c: Include unlocked-io.h after all system headers.
107757         Remove explicit declarations of xmalloc, xrealloc,
107758         and xstrdup.  Instead, include "xalloc.h".
107760         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
107761         unlocked-io.h.
107762         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
107763         Likewise.
107764         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
107766         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
107767         Reported by Padraig Brady.
107769         * lib/mkstemp.c: #undef mkstemp.
107770         Include config.h.
107771         (rpl_mkstemp): Rename from mkstemp.
107772         Protoize.
107774 2001-11-16  Jim Meyering  <meyering@lucent.com>
107776         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
107777         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
107778         determine the amount of total physical memory, use pstat_getstatic.
107779         HPUX-11 doesn't define _SC_PHYS_PAGES.
107780         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
107781         If sysconf couldn't be used to determine the amount of available
107782         physical memory, use both pstat_getstatic and pstat_getdynamic.
107783         Based on a patch from Bob Proulx.
107785 2001-11-10  Jim Meyering  <meyering@lucent.com>
107787         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
107788         (jm_PREREQ): Use it.
107790 2001-11-09  Jim Meyering  <meyering@lucent.com>
107792         * m4/jm-macros.m4: Require autoconf-2.52f.
107793         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
107794         Use these AC_-prefixed names, not the AM_-prefixed ones.
107796         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
107798 2001-11-05  Jim Meyering  <meyering@lucent.com>
107800         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
107802 2001-11-04  Jim Meyering  <meyering@lucent.com>
107804         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
107805         $DEFS.
107807 2001-11-03  Jim Meyering  <meyering@lucent.com>
107809         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
107810         of AC_DEFUN.
107812         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
107813         know the name of the variable in the macro definition.
107815 2001-11-03  Jim Meyering  <meyering@lucent.com>
107817         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
107818         in argmatch_to_argument call.
107820         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
107821         argument.
107823         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
107824         e.g., a fault due to an attempt to free a NULL pointer.
107826 2001-11-01  Jim Meyering  <meyering@lucent.com>
107828         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
107829         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
107831 2001-11-01  Jim Meyering  <meyering@lucent.com>
107833         * lib/dirfd.c, lib/dirfd.h: New files.
107834         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
107836         * lib/hash.c (hash_print) [TESTING]: Clean up.
107838 2001-10-22  Paul Eggert  <eggert@twinsun.com>
107840         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
107841         to avoid a warning if -Wall.
107843 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
107845         * README: New file
107846         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
107847         (per RMS's instructions, this is now the canonical source)
107848         * lgpl/, gpl/: New directories.
107850 2001-10-21  Paul Eggert  <eggert@twinsun.com>
107852         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
107854 2001-10-21  Jim Meyering  <meyering@lucent.com>
107856         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
107857         this code would end up calling gettext even in packages built
107858         with --disable-nls.
107859         * lib/getopt.c (_): Likewise.
107860         * lib/regex.c (_): Likewise.
107862 2001-10-20  Paul Eggert  <eggert@twinsun.com>
107864         * m4/error.m4 (jm_PREREQ_ERROR):
107865         Do not invoke AC_CHECK_FUNCS with strerror_r, as
107866         AC_FUNC_STRERROR_R does that.
107867         Check for strerror declaration.
107869         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
107870         are supposed to have them these days.
107871         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
107872         Merge changes from latest Autoconf CVS.
107873         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
107874         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
107875         POSIX decided to standardize on the int flavor of strerror_r.
107877 2001-10-20  Paul Eggert  <eggert@twinsun.com>
107879         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
107880         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
107881         Use strerror_r that is only a macro, even if it is not a function.
107882         (strerror): Check for HAVE_DECL_STRERROR before declaring.
107883         (private_strerror): Use prototypes, not old-style function definition.
107884         (print_errno_message): New function.
107885         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
107886         char*-flavored one.
107887         (error_tail, error, error_at_line): Use it.
107889 2001-10-11  Jim Meyering  <meyering@lucent.com>
107891         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
107892         and quote_n (1, ... to avoid clobbering a buffer.
107894 2001-10-05  Jim Meyering  <meyering@lucent.com>
107896         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
107897         hash-pjw.h.
107898         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
107899         * lib/hash-pjw.h: New file.
107901 2001-09-30  Jim Meyering  <meyering@lucent.com>
107903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
107904         `struct fsstat' has the `f_fstypename' member.
107905         Use that to define FS_TYPE, which is now used to make
107906         the getfsstat link test tighter.
107908 2001-09-30  Jim Meyering  <meyering@lucent.com>
107910         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
107911         Include <sys/ucred.h>, for Apple Darwin.
107912         Include sys/mount.h and sys/fs_types.h only if available.
107913         (FS_TYPE): Define.
107914         (read_filesystem_list): Use FS_TYPE.
107916 2001-09-29  Paul Eggert  <eggert@twinsun.com>
107918         * lib/exclude.c (excluded_filename): 0 -> false, since it's
107919         a boolean context.
107921 2001-09-29  Jim Meyering  <meyering@lucent.com>
107923         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
107924         [one-argument getmntent function]): Include stdio.h before mntent.h.
107925         SunOS 4.1.x needs it for the declaration of `FILE'.
107926         Patch by Volker Borchert.
107928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
107929         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
107930         sys/fs_types.h, and make the link-test for getfsstat guard #include
107931         directives with appropriate #if HAVE_*_H tests so that we can
107932         detect getfsstat on Apple Darwin1.3.7 systems.
107933         Reported by Nelson Beebe.
107934         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
107936 2001-09-28  Paul Eggert  <eggert@twinsun.com>
107938         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
107939         #defines strtoimax.  Also treat the other strto* functions
107940         like strtoimax.
107942         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
107943         Check for strtoul and strtoumax,
107944         as those declarations are made even in the signed case.
107945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
107946         Likewise, for strtol and strtoimax.
107948 2001-09-28  Paul Eggert  <eggert@twinsun.com>
107950         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
107951         #defines strtoimax.  Also treat the other strto* functions
107952         like strtoimax.
107954         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
107955         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
107956         (strtoimax, strtoumax): Do not declare if already defined as a macro.
107958 2001-09-26  Jim Meyering  <meyering@lucent.com>
107960         Most macros in unlocked-io.h had the wrong number of arguments.
107961         * lib/gen-uio: New script.
107962         (USE_UNLOCKED_IO): Define to 1 if not already defined.
107963         * lib/unlocked-io.hin: Remove file.
107964         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
107965         rather than trying to embed it here.
107966         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
107967         Reported by Padraig Brady.
107969 2001-09-25  Volker Borchert  <bt@teknon.de>
107971         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
107972         `result'.
107974 2001-09-24  Jim Meyering  <meyering@lucent.com>
107976         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
107978 2001-09-23  Jim Meyering  <meyering@lucent.com>
107980         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
107981         instead of the mere test for existence of mntent.h.  The latter
107982         would get a false-positive on AIX 3.4 systems.
107983         In the outer getmntent if-block, don't die if neither of the getmntent
107984         tests succeeds.  Instead, just fall through and continue with the
107985         remaining tests.
107987 2001-09-23  Jim Meyering  <meyering@lucent.com>
107989         * lib/mountlist.c: Remove useless parentheses in #if directives.
107990         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
107991         the deprecated MOUNTED symbol is no longer defined in mntent.h.
107993 2001-09-22  Jim Meyering  <meyering@lucent.com>
107995         * m4/gettext.m4: New file.  From gettext.
107996         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
107997         * m4/progtest.m4: Likewise
107998         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
107999         * m4/glibc21.m4: Likewise.
108001         * m4/libintl.m4: Remove.  No longer used.
108003 2001-09-22  Jim Meyering  <meyering@lucent.com>
108005         * lib/localcharset.c: Update from latest gettext.
108006         * lib/config.charset: Likewise.
108008 2001-09-20  Jim Meyering  <meyering@lucent.com>
108010         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
108011         strtoimax.
108012         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
108013         strtoumax.
108015 2001-09-20  Jim Meyering  <meyering@lucent.com>
108017         * lib/xstrtol.c (strtoimax): Guard declaration with
108018         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
108019         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
108020         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
108021         (strtoumax): Likewise, for completeness (it wasn't necessary).
108023 2001-09-17  Paul Eggert  <eggert@twinsun.com>
108025         * lib/strtoimax.c (HAVE_LONG_LONG):
108026         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
108027         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
108028         to work around bug in IBM C compiler.
108030 2001-09-17  Jim Meyering  <meyering@lucent.com>
108032         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
108033         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
108034         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
108035         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
108036         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
108037         whenever the right hand side need not be expanded by the shell.
108039 2001-09-16  Paul Eggert  <eggert@twinsun.com>
108041         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
108042         library.  It's not correct, as some older glibcs are buggy.
108043         fnmatch wasn't fixed until glibc 2.2.
108045         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
108046         special shell magic here.
108048 2001-09-16  Jim Meyering  <meyering@lucent.com>
108050         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
108051         * m4/jm-macros.m4: Require it.
108053 2001-09-16  Jim Meyering  <meyering@lucent.com>
108055         * lib/mkdir.c: New file.
108057 2001-09-15  Jim Meyering  <meyering@lucent.com>
108059         * m4/jm-macros.m4: Check for help2man.
108061 2001-09-11  Jim Meyering  <meyering@lucent.com>
108063         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
108064         The body, by Paul Eggert, was moved here from configure.in.
108065         * m4/jm-macros.m4: Require UTILS_HOST_OS.
108067 2001-09-04  Paul Eggert  <eggert@twinsun.com>
108069         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
108070         (jm_PREREQ): Use it.
108072 2001-09-04  Paul Eggert  <eggert@twinsun.com>
108074         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
108075         Use ssize_t, not int, to store result of readlink.
108076         Check for ssize_t overflow as well as size_t overflow,
108077         as POSIX says the result of readlink is implementation-defined
108078         when ssize_t overflows.
108079         Remove unnecessary cast to char*.
108080         Use free+malloc instead of realloc, as the storage doesn't need
108081         to be preserved and it's clearer and can be more efficient that way.
108082         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
108083         * lib/xreadlink.h (xreadlink): Update prototype.
108085 2001-09-04  Paul Eggert  <eggert@twinsun.com>
108087         * lib/xgetcwd.c: Revert some of the previous change; intead,
108088         fix the HAVE_GETCWD_NULL code to behave more like the
108089         !HAVE_GETCWD_NULL code used to.
108091         Include "xalloc.h".
108092         (xgetcwd): Do not return NULL when memory is exhausted; instead,
108093         invoke xalloc_die.
108095 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108097         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
108098         sys/param.h, as pathmax.h includes them.
108100 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
108103         (jm_PREREQ_XGETCWD): New macro.
108105         * m4/getcwd.m4: New file.
108107 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108109         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
108110         like the HAVE_GETCWD_NULL code.
108111         Include pathmax.h if not HAVE_GETCWD.
108112         Do not include xalloc.h.
108113         (INITIAL_BUFFER_SIZE): New symbol.
108114         Do not use xmalloc / xrealloc, since the caller is responsible for
108115         handling errors.  Preserve errno around `free' during failure.
108116         Do not overrun buffer when using getwd.
108118 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108120         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
108121         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
108122         getcwd (NULL, 0).
108124 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108126         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
108127         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
108128         spotted by Jim Meyering.
108130 2001-09-03  Jim Meyering  <meyering@lucent.com>
108132         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
108133         failure.
108135 2001-09-02  Jim Meyering  <meyering@lucent.com>
108137         * lib/error.c: Update from GNU libc.
108139 2001-09-01  Jim Meyering  <meyering@lucent.com>
108141         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
108142         Used by df.
108144 2001-09-01  Jim Meyering  <meyering@lucent.com>
108146         * lib/xreadlink.c: New file.
108147         * lib/xreadlink.h: New file.
108148         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
108149         xreadlink.h.
108151         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
108152         doesn't conflict with sparc Solaris 7's definition in
108153         /usr/include/sys/int_types.h.
108155         * lib/exclude.c: Use `""', not `<>' to #include non-system header
108156         files.
108157         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
108158         and strncasecmp as r-values.  Unixware didn't have declarations.
108160 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108162         * lib/xstrtol.h: Add copyright notice.
108163         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
108164         LONGINT_INVALID_SUFFIX_CHAR.
108166 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108168         * lib/xstrtol.c (strtoimax): New decl.
108170 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108172         * lib/xgetcwd.c: Don't include pathmax.h.
108173         Include stdlib.h and unistd.h if available.
108174         Include xalloc.h.
108175         (xmalloc, xstrdup, free): Remove decls.
108176         (xgetcwd): Don't assume sizes fit in unsigned.
108177         Check for overflow when computing sizes.
108178         Simplify reallocation code.
108180 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108182         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
108183         a directory's st_size can have an arbitrary value, so the old
108184         usage could waste an arbitrary amount of memory.  All uses
108185         changed.
108186         * lib/savedir.h: Update prototype.
108188 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108190         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
108192         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
108193         old strtoimax.c.
108195         Also, make the following further changes to make this file's
108196         configuration more similar to that of strtol.c:
108197         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
108198         (strtoumax, uintmax_t, strtoull, strtol): Remove.
108199         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
108200         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
108201         changed to signed values.
108203         And make the following changes as well:
108204         Fix copyright notice, as 1999 was missing.
108205         (verify): New macro.
108206         (strtoimax): Check sizes at compile-time, not run-time.
108207         Prefer strtol to strtoll if both work.
108208         (main): Remove; it was not that useful and was a pain to maintain.
108210         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
108212 2001-08-31  Jim Meyering  <meyering@lucent.com>
108214         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
108215         Use an initial, malloc'd, buffer of length 128 rather than
108216         a statically allocated one of length 1024.
108218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108220         Simplify code, partly by assuming autoconf 2.52 semantics.
108222         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
108224         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
108225         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
108226         All uses removed.
108227         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
108228         Move AC_REQUIRE to next-to-top level, to avoid confusion.
108229         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
108230         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
108231         jm_AC_HEADER_INTTYPES_H.
108232         * m4/jm-macros.m4 (jm_MACROS): Likewise.
108234         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
108236         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
108237         Quote first arg of AC_DEFUN.
108238         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
108239         since they are needed to parse the include file even if we need
108240         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
108241         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
108242         but with opposite signedness.
108244 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108246         Merge 'exclude' changes from tar 1.13.22.
108247         This fixes one or two unlikely storage allocation overflow bugs,
108248         but doesn't change user-visible behavior otherwise.
108250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108252         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
108253         (jm_PREREQ_EXCLUDE): New macro.
108255 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108257         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
108258         tm to be declared.
108260 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108262         * lib/hash.c: Remove '2001' from copyright notice.
108264 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108266         * lib/full-write.h: New file.
108267         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
108268         * lib/full-write.c: Correct credits, as cccp.c no longer
108269         exists and anyway it was so heavily changed from the old cccp
108270         code as to be unrecognizable.  Include full-write.h.
108271         (full_write): Return size_t, with short writes meaning failure.
108272         All callers changed.  This fixes a bug with large buffers
108273         on 64-bit hosts.
108274         * lib/utime.c: Include full-write.h.
108276 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108278         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
108279         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
108280         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
108281         Include if available.
108282         (<xalloc.h>): Include
108283         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
108284         (verify): New macro.  Use it to verify that EXCLUDE macros do not
108285         collide with FNM macros.
108286         (struct patopts): New struct.
108287         (struct exclude): Use it, as exclude patterns now come with options.
108288         (new_exclude): Support above changes.
108289         (new_exclude, add_exclude_file):
108290         Initial size must now be a power of two to simplify overflow checking.
108291         (free_exclude, fnmatch_no_wildcards): New function.
108292         (excluded_filename): No longer requires options arg, as the options
108293         are determined by add_exclude.  Now returns bool, not int.
108294         (excluded_filename, add_exclude):
108295         Add support for the fancy new exclusion options.
108296         (add_exclude, add_exclude_file): Now takes int options arg.
108297         Check for arithmetic overflow when computing sizes.
108298         (add_exclude_file): xrealloc might modify errno, so don't
108299         realloc until after errno might be used.
108301         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
108302         New macros.
108303         (free_exclude): New decl.
108304         (add_exclude, add_exclude_file): Now takes int options arg.
108305         (excluded_filename): No longer requires options arg, as the options
108306         are determined by add_exclude.  Now returns bool, not int.
108308 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108310         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
108312 2001-08-27  Jim Meyering  <meyering@lucent.com>
108314         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
108316         * lib/version-etc.c (N_): Remove definition.
108317         Revert most of last change.
108318         Instead, simply don't mark the `Copyright...' string for translation.
108319         Based on advice from Paul Eggert.
108321         * lib/strtoxmax.c: Tweak comment.
108323 2001-08-26  Jim Meyering  <meyering@lucent.com>
108325         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
108327         * m4/xstrtoimax.m4: New file.
108328         * m4/xstrtoumax.m4: Add comments explaining why we
108329         AC_REPLACE_FUNCS(strtol).
108331 2001-08-26  Jim Meyering  <meyering@lucent.com>
108333         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
108334         of copyright with `%s' so translators don't get an untranslated
108335         message in 2002.
108336         (COPYRIGHT_YEAR): Define.
108337         (version_etc): Use fprintf rather than fputs.
108338         Suggestion from Ulrich Drepper.
108340         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
108342         * lib/strtoll.c: New file, from GNU libc.
108343         * lib/xstrtoimax.c: New file.
108345         * lib/xstrtol.h: Add xstrtoimax.
108346         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
108347         * lib/strtoimax.c: New file.  Likewise, but first define
108348         STRTOUXMAX_SIGNED.
108350         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
108351         ...
108352         * lib/strtoxmax.c: ... then renamed to this.
108354 2001-08-18  Paul Eggert  <eggert@twinsun.com>
108356         * m4/inttypes.m4: Add AC_PREREQ(2.13).
108357         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
108358         (jm_AC_TYPE_INTMAX_T): New macro.
108359         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
108361         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
108363         * m4/longlong.m4: Renamed from ulonglong.m4.
108364         * m4/inttypes.m4: Renamed from inttypes_h.m4.
108365         * m4/uintmax_t.m4: Removed.
108367 2001-08-13  Paul Eggert  <eggert@twinsun.com>
108369         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
108370         Port to Solaris 8, where 'sed' requires a space after the 'r'
108371         command, and where sh dislikes "$/".  Clean up the spacing a bit.
108372         Redirect output to $tmp just once.
108374 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
108376         * lib/addext.c (<errno.h>): Include.
108377         (errno): Declare if not defined.
108378         (addext): Work correctly when pathconf returns -1 and leaves
108379         errno alone because there is no limit.  Also, work even if
108380         pathconf returns a value greater than SIZE_MAX.
108382 2001-08-12  Jim Meyering  <meyering@lucent.com>
108384         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
108385         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
108386         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
108387         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
108388         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
108389         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
108390         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
108391         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
108392         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
108393         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
108394         utime.m4, utimes.m4, xstrtoumax.m4:
108395         Quote the first argument in each use of AC_DEFUN.
108397 2001-08-12  Jim Meyering  <meyering@lucent.com>
108399         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
108400         Simply `return getcwd (NULL, 0);'.
108401         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
108402         Use 1300 as initial value for length, not PATH_MAX.
108404         * lib/pathmax.h: Clean up cpp syntax.
108406 2001-08-12  Jim Meyering  <meyering@lucent.com>
108408         * lib/gettimeofday.c: New file.
108409         * lib/gtod.h: New file.
108410         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
108412 2001-08-05  Jim Meyering  <meyering@lucent.com>
108414         * m4/jm-macros.m4: Require autoconf-2.52.
108416 2001-08-04  Jim Meyering  <meyering@lucent.com>
108418         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
108419         stmt, to get in sync with glibc.
108421 2001-08-03  Paul Eggert  <eggert@twinsun.com>
108423         The following changes are from gettext 0.10.39 as maintained by
108424         Bruno Haible.
108426         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
108427         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
108428         with inverted sense.  All uses changed.
108430         * lib/mbswidth.c: Don't include <limits.h>.
108431         Include <stdlib.h> and <string.h> unconditionally.
108432         (iswcntrl, mbsinit, ISCNTRL): New macros.
108433         (mbsnwidth): Use K&R style function declarations.
108434         Don't bother checking for MB_LEN_MAX == 1, since the compiler
108435         can optimize it when MB_CUR_MAX == 1.
108436         The width of control characters is zero, not 1.
108438 2001-08-03  Paul Eggert  <eggert@twinsun.com>
108440         The following changes are from gettext 0.10.39 as maintained by
108441         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
108443         * m4/codeset.m4: Upgrade to serial AM1.
108444         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
108445         all uses changed.  Quote first arg of AC_DEFUN.
108446         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
108448         * m4/iconv.m4: Upgrade to serial AM2.
108449         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
108450         Add --with-libconv-prefix.
108451         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
108452         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
108453         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
108454         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
108455         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
108457         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
108458         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
108459         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
108460         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
108461         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
108462         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
108463         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
108464         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
108465         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
108467         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
108468         string.h any more.
108470         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
108471         not the default value.
108473         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
108474         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
108475         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
108476         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
108477         Also check for iswcntrl, used for wcwidth fallback.
108478         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
108479         to Autoconf 2.13.
108481 2001-08-03  Jim Meyering  <meyering@lucent.com>
108483         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
108484         as it was in the original.  Reported by Paul Eggert.
108486 2001-07-16  Jim Meyering  <meyering@lucent.com>
108488         * m4/gettimeofday.m4: New file.
108489         Prompted by a report from Bernhard Baehr.
108491 2001-07-15  Jim Meyering  <meyering@lucent.com>
108493         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
108494         stuff. Now it's in ../Makefile.cfg.
108496 2001-07-15  Jim Meyering  <meyering@lucent.com>
108498         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
108499         (BUILT_SOURCES): Add unlocked-io.h.
108500         (io_functions): Define.
108501         (unlocked-io.h): New rule.
108502         (DISTCLEANFILES): Add unlocked-io.h.
108503         (all-local): Depend on unlocked-io.h, to ensure it is created.
108505         * lib/unlocked-io.hin: New file
108507         * lib/regex.c: Update from glibc.
108509 2001-07-05  Jim Meyering  <meyering@lucent.com>
108511         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
108512         recommendation.
108513         (libfetish_a_SOURCES): Put all .h files here instead.
108514         Remove a thus-exposed (better checks in automake) duplicate and
108515         two unnecessary .h files.
108517 2001-07-04  Jim Meyering  <meyering@lucent.com>
108519         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
108520         that generates jm-glibc-io.m4 so that it doesn't trigger any make
108521         distcheck failure.
108523 2001-07-02  Jim Meyering  <meyering@lucent.com>
108525         The following changes were prompted by suggestions from Bruno Haible.
108527         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
108528         is now generated.
108529         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
108530         definition of EXTRA_DIST.
108531         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
108532         ensure that the generated file is created/updated whenever the list
108533         of $(unlocked_functions) is changed.
108534         (jm-glibc-io.m4): New rule.
108535         (unlocked-io.h): New rule -- currently unused.
108537 2001-06-24  Jim Meyering  <meyering@lucent.com>
108539         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
108540         unmatched right bracket, rather than kludging it with an extra,
108541         falsely-matching quote in a comment.  Patch by Akim Demaille.
108543 2001-06-11  Jim Meyering  <meyering@lucent.com>
108545         * lib/regex.c: Update from GNU libc.
108547 2001-05-27  Jim Meyering  <meyering@lucent.com>
108549         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
108550         Check for ut_type in struct utmp.
108552 2001-05-27  Jim Meyering  <meyering@lucent.com>
108554         * lib/readutmp.h (UT_TYPE): Define.
108556 2001-05-24  Jim Meyering  <meyering@lucent.com>
108558         * lib/argmatch.c: Include "quote.h".
108559         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
108560         quote function.  Reported by Göran Uddeborg.
108562 2001-05-22  Jim Meyering  <meyering@lucent.com>
108564         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
108565         now that we use the package-supplied version unconditionally.
108566         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
108568 2001-05-21  Jim Meyering  <meyering@lucent.com>
108570         * m4/regex.m4: Change a couple backticks to single quotes to avoid
108571         shell syntax errors.
108573 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
108575         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
108577 2001-05-20  Paul Eggert  <eggert@twinsun.com>
108579         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
108580         Don't bother to check library strftime, since
108581         we'll be using our own my_strftime function anyway.
108582         Define my_strftime instead of strftime.
108584 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
108586         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
108587         which is not yet declared.
108589 2001-05-15  Jim Meyering  <meyering@lucent.com>
108591         * m4/regex.m4: Use proper quoting so brackets appear in the test
108592         program.
108593         Reported by, and with help from, Bruno Haible.
108595 2001-05-13  Jim Meyering  <meyering@lucent.com>
108597         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
108598         undefined.
108600 2001-05-11  Paul Eggert  <eggert@twinsun.com>
108602         dirname code cleanup.  base_name now behaves more compatibly
108603         with POSIX basename when given file names that have trailing
108604         slashes, and similarly for dir_name.  Add new primitives
108605         base_len and dir_len.  Put the directory-name-related decls
108606         into dirname.h.
108608         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
108609         * lib/backupfile.c (base_name): Likewise.
108610         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
108611         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
108612         * lib/makepath.c (strip_trailing_slashes): Likewise.
108613         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
108614         ISSLASH): Likewise.
108615         * lib/rename.c (strip_trailing_slashes): Likewise.
108616         * lib/same.c (base_name): Likewise.
108617         * lib/stripslash.c (ISSLASH): Likewise.
108619         * lib/addext.c: Include <dirname.h> after size_t is defined.
108620         * lib/backupfile.c: Likewise.
108622         * lib/addext.c (addext): Use base_len to trim redundant
108623         trailing slashes instead of doing it ourselves.
108624         But do not trim the last slash if it is not redundant.
108626         * lib/backupfile.c (find_backup_file_name,
108627         max_backup_version): Use base_len instead of rolling it ourselves.
108628         Handle the case of "" and (on DOS) "C:" correctly.
108630         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
108631         needed. Include <string.h>, <dirname.h>.
108632         (base_name): Allow file names ending in slashes, other than names
108633         that are all slashes.  In this case, return the basename followed
108634         by the slashes.  This is more general, and can be used in places
108635         where the original base_name purposely had an assertion failure.
108636         (base_len): New function.
108638         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
108639         Do not include <assert.h>; no longer needed.
108640         Include xalloc.h.
108641         (memrchr): Remove decl.
108642         (dir_name_r): Remove.
108643         (dir_len): Renamed from dirlen.  All callers changed.
108644         Rewrite in terms of base_name, for simplicity and consistency.
108645         (dir_name): Never return NULL.  All callers changed.
108646         Do not include <stdlib.h> in test program; no longer needed.
108647         return 0; is fine for test program.
108649         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
108650         New macros.
108651         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
108653         * lib/path-concat.c (path_concat): Use base_len to compute
108654         base length, not strlen; this means we cannot rely on memcpy
108655         to null-terminate.
108657         * lib/same.c (STREQ): Remove.
108658         (same_name): Handle the case where the basename ends in trailing '/'.
108660         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
108661         a slash was stripped.  Do not strip the last slash after a
108662         file system prefix.
108664 2001-05-11  Paul Eggert  <eggert@twinsun.com>
108666         * lib/Makefile.am (libfetish_a_SOURCES):
108667         Add strftime.c, since we now compile it on all hosts.
108669         * lib/strftime.c (my_strftime):
108670         Define to nstrftime if emacs, but only if my_strftime is not defined.
108671         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
108672         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
108673         Add one more extra argument: a nanoseconds value.
108674         All uses changed.
108675         (ns): New macro.
108676         (my_strftime function): Add %N format.
108677         (emacs_strftimeu): Renamed from emacs_strftime,
108678         with extra ut argument.
108680 2001-05-09  Paul Eggert  <eggert@twinsun.com>
108682         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
108684 2001-04-21  Jim Meyering  <meyering@lucent.com>
108686         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
108687         doesn't interfere.
108689 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
108691         * m4/ftruncate.m4: Check for chsize.
108692         Link with ftruncate.o unconditionally if ftruncate is missing.
108693         This was required when cross-compiling to i586-mingw32msvc.
108695 2001-04-08  Jim Meyering  <meyering@lucent.com>
108697         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
108698         recomputed; that's necessary when the offset spans a DST transition.
108699         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
108701 2001-04-02  Jim Meyering  <meyering@lucent.com>
108703         * lib/regex.h, regex.c: Update from GNU libc.
108705 2001-03-24  Jim Meyering  <meyering@lucent.com>
108707         * m4/jm-macros.m4: Require autoconf-2.49d.
108709 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
108711         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
108713 2001-03-19  Paul Eggert  <eggert@twinsun.com>
108715         * lib/version-etc.c (version_etc_copyright): Update to 2001.
108717 2001-03-17  Jim Meyering  <meyering@lucent.com>
108719         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
108720         now that the version in autoconf is equivalent.
108721         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
108723         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
108724         Suggestion from Akim Demaille.
108726         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
108727         (jm_PREREQ_TEMPNAME): New function.
108729 2001-03-16  Paul Eggert  <eggert@twinsun.com>
108731         * lib/tempname.c (uint64_t): Define to uintmax_t if
108732         not defined, and if UINT64_MAX is not defined.
108733         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
108734         Reported by John David Anglin.
108736 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
108738         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
108739         resolve alias if codeset is empty.
108740         * lib/config.charset (BeOS): Use wildcard syntax.
108742 2001-03-13  Jim Meyering  <meyering@lucent.com>
108744         * lib/path-concat.c (path_concat)
108745         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
108746         concatenating e.g., `C:' and `foo'.
108747         From Bruno Haible.
108749 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
108751         * lib/localcharset.c (locale_charset): Don't use
108752         setlocale(LC_CTYPE,NULL). Don't return NULL.
108753         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
108755 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
108757         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
108758         support for DOS/DJGPP.
108760 2001-03-01  Paul Eggert  <eggert@twinsun.com>
108762         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
108763         lacks mkstemp.  Compile our own tempname.c if we compile our own
108764         mkstemp.c, as mkstemp relies on tempname.
108766 2001-03-01  Jim Meyering  <meyering@lucent.com>
108768         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
108769         AH_VERBATIM really does output its argument verbatim.
108771 2001-02-28  Paul Eggert  <eggert@twinsun.com>
108773         * lib/Makefile.am (libfetish_a_SOURCES):
108774         Add dup-safer.c, fopen-safer.c.
108775         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
108777         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
108778         * lib/unistd-safer.h: New files.
108780 2001-02-25  Paul Eggert  <eggert@twinsun.com>
108782         The mkstemp replacement is taken from glibc 2.2.2, with some
108783         portability fixes for use outside glibc, as follows:
108785         * lib/tempname.c (struct_stat64): New macro.
108786         (direxists, __gen_tempname): Use it.
108787         This avoids a portability problem with Solaris 8.
108789         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
108790         (<stddef.h>, <stdint.h>, <string.h>):
108791         Include only if STDC_HEADERS || _LIBC.
108792         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
108793         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
108794         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
108795         (__set_errno): Define this macro if <errno.h> doesn't.
108796         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
108797         Define these macros if <stdio.h> doesn't.
108798         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
108799         Define these macros if <sys/stat.h>
108800         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
108801         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
108802         __xstat64): Define if not _LIBC.
108803         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
108804         (__gen_tempname): Invoke gettimeofday only if
108805         HAVE_GETTIMEOFDAY || _LIBC;
108806         otherwise, fall back on plain "time".
108807         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
108809         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
108811         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
108813 2001-02-18  Paul Eggert  <eggert@twinsun.com>
108815         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
108817 2001-02-17  Paul Eggert  <eggert@twinsun.com>
108819         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
108820         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
108821         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
108822         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
108824 2001-02-17  Paul Eggert  <eggert@twinsun.com>
108826         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
108827         Remove workaround macros for hosts that have mbrtowc but not
108828         mbstate_t, as we now insist on proper declarations for both
108829         before using mbrtowc.
108831 2001-02-17  Jim Meyering  <meyering@lucent.com>
108833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
108834         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
108835         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
108836         UnixWare 7.1.1.
108838         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
108839         rather than AC_CACHE_VAL.
108841 2001-02-17  Jim Meyering  <meyering@lucent.com>
108843         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
108844         around included file name.
108846         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
108848         * lib/strftime.c: Update from GNU libc (the only changes were to
108849         comments).
108851 2001-02-17  Jim Meyering  <meyering@lucent.com>
108853         * lib/regex.c: Update from libc.
108855 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
108857         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
108858         clash.
108860 2001-02-16  Paul Eggert  <eggert@twinsun.com>
108862         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
108863         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
108864         Reported by Mark Hounschell via Paul Eggert.
108866 2001-02-07  Jim Meyering  <meyering@lucent.com>
108868         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
108870 2001-02-05  Jim Meyering  <meyering@lucent.com>
108872         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
108873         it includes the patch required for `large file' support with at least
108874         HP-UX's 10.20 /bin/cc.
108876 2001-02-03  Jim Meyering  <meyering@lucent.com>
108878         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
108879         AS_IF, now that it works once again (mysteriously).
108880         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
108882 2001-01-30  Jim Meyering  <meyering@lucent.com>
108884         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
108885         * m4/chown.m4: Rename conftestchown to conftest.chown.
108886         * m4/rename.m4: s/conftestdir/conftest.d1/ and
108887         s/conftestdir2/conftest.d2/.
108888         * m4/utimes.m4: s/conftestdata/conftest.data/
108889         Inspired by Pavel Roskin's change in autoconf.
108891 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
108893         * lib/config.charset: Update for FreeBSD 4.2.
108895 2001-01-27  Jim Meyering  <meyering@lucent.com>
108897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
108898         a use of AS_IF.
108899         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
108901 2001-01-26  Jim Meyering  <meyering@lucent.com>
108903         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
108904         quotearg.c includes it.
108906 2001-01-26  Jim Meyering  <meyering@lucent.com>
108908         * lib/quotearg.c: Include stddef.h.
108909         * lib/quote.c: Include stddef.h.
108910         Reported by Axel Kittenberger.
108912         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
108913         line in double quotes so that it evokes a better diagnostic.
108914         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
108915         Reported by Axel Kittenberger.
108917 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
108919         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
108920         as if it was a `charset'.
108922 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
108924         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
108925         has const.
108927 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
108929         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
108930         to avoid a warning.  Add back 'const' to inptr.
108932 2001-01-20  Jim Meyering  <meyering@lucent.com>
108934         Be sure that headers are checked before used in code compiled
108935         for the type checks.
108936         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
108937         In place of that, invoke jm_CHECK_ALL_TYPES.
108938         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
108939         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
108940         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
108941         The check for ssize_t was mistakenly run before the test for unistd.h.
108943         The configure-time check for stdbool.h was missing.
108944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
108945         (jm_PREREQ_HASH): New function.
108947 2001-01-17  Jim Meyering  <meyering@lucent.com>
108949         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
108950         for autoconf-2.49c.
108951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
108953 2001-01-16  Jim Meyering  <meyering@lucent.com>
108955         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
108956         From Bruno Haible.
108958 2001-01-14  Jim Meyering  <meyering@lucent.com>
108960         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
108961         foo and bar.  Create conftestdir/ in the script, not in the C code.
108962         Remove directories in the script, not in the C code.
108963         Remove conftestdir{,2} before trying to create the directory.
108964         Make the entire configure script fail if the mkdir fails.
108966 2001-01-14  Jim Meyering  <meyering@lucent.com>
108968         * lib/rename.c: New file.  From Volker Borchert.
108969         Include stdlib.h, string.h or strings.h, and xalloc.h.
108970         Use strip_trailing_slashes rather than open-coding it.
108972 2001-01-03  Paul Eggert  <eggert@twinsun.com>
108974         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
108976 2001-01-03  Jim Meyering  <meyering@lucent.com>
108978         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
108979         of local `inptr' to avoid warning with some system declarations of
108980         iconv.
108982 2001-01-02  Volker Borchert  <bt@teknon.de>
108984         * m4/rename.m4: New file.
108985         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
108987 2001-01-01  Jim Meyering  <meyering@lucent.com>
108989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
108990         even on systems with utmpx.h.  It's necessary for the declaration of
108991         utmp's ut_user member.  Reported by Andreas Jaeger.
108993         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
108994         available. They are required for the declarations of getgrgid and
108995         getpwuid resp.
108996         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
108997         Reported by Andreas Jaeger.
108999 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
109001         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
109002         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
109003         so `make install' also works in VPATH builds.
109005 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
109007         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
109008         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
109009         can be used in subdirectories.
109011 2000-12-29  Paul Eggert  <eggert@twinsun.com>
109013         * lib/modechange.c: Do not assume that mode_t uses the
109014         traditional octal encoding.  E.g. "chmod 1 FOO" should set
109015         the other-execute bit of FOO even if S_IXOTH != 1.
109017         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
109018         WOTH, XOTH, ALLM): New macros.
109019         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
109020          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
109021         Use them.
109022         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
109023         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
109024         (mode_compile):
109025         No need to use uintmax_t; unsigned long is long enough.
109026         Don't bother to get suffix since we don't use it.
109028 2000-12-26  Jim Meyering  <meyering@lucent.com>
109030         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
109031         better with autoheader.
109033 2000-12-24  Jim Meyering  <meyering@lucent.com>
109035         * lib/hash.c (is_prime): Return explicit boolean values.
109036         (hash_get_first): Return NULL to appease Irix5.6's 89.
109037         Reported by Nelson Beebe.
109039 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
109041         * lib/localcharset.c (locale_charset): Add support for Win32.
109043 2000-12-18  Paul Eggert  <eggert@twinsun.com>
109045         * lib/physmem.h, lib/physmem.c: New files.
109047         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
109048         (noinst_HEADERS): Add physmem.h.
109050         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
109051         't' for compatibility with Solaris 8 sort.
109053 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
109055         * lib/config.charset: Add support for BeOS.
109057 2000-12-17  Jim Meyering  <meyering@lucent.com>
109059         * m4/dos.m4 (jm_AC_DOS): New file and macro.
109060         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
109062 2000-12-16  Jim Meyering  <meyering@lucent.com>
109064         This bug had a serious impact on chown: `chown N:M FILE' (for integer
109065         N and M) would have treated it like `chown N:N FILE'.
109067         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
109069 2000-12-16  Jim Meyering  <meyering@lucent.com>
109071         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
109072         SHELLS_FILE to a file name that's useful on djgpp systems.
109073         Include stdlib.h.
109074         (ADDITIONAL_DEFAULT_SHELLS): Define.
109075         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
109076         Based mostly on a patch from Prashant TR.
109078 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
109080         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
109081         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
109082         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
109084 2000-12-08  Andreas Schwab  <schwab@suse.de>
109086         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
109087         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
109089 2000-12-07  Jim Meyering  <meyering@lucent.com>
109091         * lib/stripslash.c (ISSLASH): Define.
109092         (strip_trailing_slashes): Use ISSLASH rather than comparing against
109093         `/'.
109094         From Prashant TR.
109096         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
109097         (dir_name_r): Declare this function as static.
109098         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
109099         manifest itself on a name containing a mix of slashes and
109100         backslashes.
109101         Make this function work with names starting with a DOS-style
109102         drive letter and colon prefix.
109103         (dir_name): Append `.' if necessary.
109104         Based mostly on patches from Prashant TR and Eli Zaretskii.
109106         * lib/dirname.h (dir_name_r): Remove prototype.
109108 2000-12-06  Paul Eggert  <eggert@twinsun.com>
109110         * m4/off_t-format.m4: Remove this file.
109111         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
109113 2000-12-06  Jim Meyering  <meyering@lucent.com>
109115         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
109116         replacement strtoull, we may well need the replacement strtoul, too.
109117         Check for declarations of strtoul and strtoull.
109118         Check for strtol.  Mainly as a cue to cause automake to include
109119         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
109120         Check for limits.h -- strtol.c needs it.
109122 2000-12-05  Jim Meyering  <meyering@lucent.com>
109124         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
109126 2000-12-04  Jim Meyering  <meyering@lucent.com>
109128         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
109129         Also include memory.h, stdlib.h, unistd.h if appropriate.
109130         Reported by Andreas Jaeger (conflicting declaration of malloc).
109132 2000-12-02  Jim Meyering  <meyering@lucent.com>
109134         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
109135         * m4/jm-macros.m4 (jm_MACROS): require it.
109137 2000-12-02  Jim Meyering  <meyering@lucent.com>
109139         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
109141 2000-12-01  Paul Eggert  <eggert@twinsun.com>
109143         * lib/memrchr.c: Include <config.h> before any system include file.
109145 2000-11-30  Jim Meyering  <meyering@lucent.com>
109147         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
109149 2000-11-30  Jim Meyering  <meyering@lucent.com>
109151         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
109153 2000-11-29  Paul Eggert  <eggert@twinsun.com>
109155         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
109157 2000-11-26  Jim Meyering  <meyering@lucent.com>
109159         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
109161 2000-11-22  Paul Eggert  <eggert@twinsun.com>
109163         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
109164         size of (size_t) -1; it's not portable.
109166 2000-11-17  Jim Meyering  <meyering@lucent.com>
109168         * lib/strstr.c: Update from GNU libc.
109170 2000-11-17  Akim Demaille  <akim@epita.fr>
109172         * lib/obstack.h: Formatting changes.
109173         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
109174         prevent type checking.
109175         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
109176         cast the value to (void *): assigning a `foo *' to a `void *'
109177         variable is valid.
109178         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
109180 2000-11-16  Jim Meyering  <meyering@lucent.com>
109182         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
109184 2000-11-11  Jim Meyering  <meyering@lucent.com>
109186         * lib/error.c: Add a couple #includes, merging from GNU libc version.
109188 2000-11-10  Jim Meyering  <meyering@lucent.com>
109190         * lib/obstack.h: Update from GNU libc.
109191         * lib/obstack.c: Likewise.
109193 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
109195         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
109197 2000-11-06  Paul Eggert  <eggert@twinsun.com>
109199         * lib/getusershell.c (setusershell): Use rewind rather than
109200         fseek/fseeko, to avoid configuration hassles with fseeko.
109201         Don't bother opening SHELLS_FILE if shellstream is NULL;
109202         it's not necessary.
109204 2000-11-05  Jim Meyering  <meyering@lucent.com>
109206         * lib/makepath.h (make_dir): Declare.
109207         * lib/makepath.c (make_dir): Remove `static' attribute.
109208         Tweak a comment.
109210 2000-11-04  Jim Meyering  <meyering@lucent.com>
109212         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
109214 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
109216         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
109217         last one in a bucket, advance to the next bucket.
109219 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
109221         * lib/fnmatch.c: Do not comment out all the code if we are using
109222         the GNU C library, because in some cases we are replacing buggy
109223         code in the GNU C library itself.
109225 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
109227         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
109228         (regex_compile): Catch bogus \(\1\).
109230 2000-10-30  Paul Eggert  <eggert@twinsun.com>
109232         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
109233         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
109234         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
109236 2000-10-30  Paul Eggert  <eggert@twinsun.com>
109238         * lib/error.h, getline.h, modechange.h:
109239         Remove "2000" from Copyright line, as the file hasn't been
109240         changed this year other than in the copyright notice.
109242         * lib/xalloc.h: Add "2000" to Copyright line, as this file
109243         was changed this year.
109245 2000-10-29  Jim Meyering  <meyering@lucent.com>
109247         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
109248         renaming.
109249         * m4/ls-mntd-fs.m4: Likewise
109251 2000-10-29  Jim Meyering  <meyering@lucent.com>
109253         * lib/xstat.in: Fix grammar in comment.
109255 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
109257         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
109258         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
109259         doesn't define __restrict_arr.
109261 2000-10-28  Jim Meyering  <meyering@lucent.com>
109263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
109264         (jm_PREREQ_MEMCHR): New function.
109266 2000-10-28  Jim Meyering  <meyering@lucent.com>
109268         * lib/memchr.c: Update from libc.
109269         Adjust for portability:
109270         [HAVE_STDLIB_H]: Include stdlib.h.
109271         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
109272         Undef __memchr, too.
109273         [!weak_alias]: Define __memchr to memchr.
109275         * lib/regex.c: Update from libc.
109276         * lib/regex.h: Likewise.
109277         * lib/getopt1.c: Likewise.
109278         * lib/memcmp.c: Likewise.
109280         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
109281         Avoid using fseek, when possible -- it's broken by design.
109282         Patch by Ulrich Drepper.
109284 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
109286         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
109287         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
109288         Giving in to popular pressure to shut up the compiler with casts.
109290 2000-10-26  Jim Meyering  <meyering@lucent.com>
109292         * lib/strftime.c: Update from libc.
109294 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
109296         * regex.c: More `unsigned char' -> `re_char' changes.
109297         Also change several `int' into `re_wchar_t'.
109298         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
109299         (PUSH_FAILURE_POINTER): Don't cast any more.
109300         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
109301         We want GCC to complain, since this piece of code makes
109302         re_match non-reentrant, which *should* be fixed.
109303         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
109304         (EXTEND_BUFFER): Use RETALLOC.
109305         (SET_LIST_BIT): Don't cast.
109306         (re_wchar_t): New type.
109307         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
109308         that those two functions will always properly return.
109309         (IMMEDIATE_QUIT_CHECK): Cast to void.
109310         (analyse_first): Use recursion rather than an explicit stack.
109311         (re_compile_fastmap): Can't fail anymore.
109312         (re_search_2): Don't check re_compile_fastmap for failure.
109313         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
109314         Now also sets the new value (passed in a new argument).
109315         (re_match_2_internal): Use it.
109316         Also, use a new var `reg' of type size_t when looping through regs
109317         rather than reuse the inappropriate `mcnt'.
109319 2000-10-25  Jim Meyering  <meyering@lucent.com>
109321         * lib/obstack.c: Update from libc.
109323 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
109325         * regex.c (regex_compile): Change the way of handling a range from
109326         a char less than 256 to a char not less than 256.
109328 2000-10-24  Andrew Innes  <andrewi@gnu.org>
109330         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
109331         NT-Emacs only.
109332         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
109333         so that re_search functions only quit when callers expect them to.
109335 2000-10-23  Jim Meyering  <meyering@lucent.com>
109337         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
109338         wrong.  That set_locale call must not have any side effects.
109339         From Paul Eggert.
109341 2000-10-22  Jim Meyering  <meyering@lucent.com>
109343         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
109344         [CYCLIC]: Remove now-unused definition.
109346         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
109347         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
109348         Suggestion from Ulrich Drepper.
109350 2000-10-21  Jim Meyering  <meyering@lucent.com>
109352         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
109353         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
109354         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
109356 2000-10-21  Jim Meyering  <meyering@lucent.com>
109358         * lib/dirname.c (memrchr): Declare if necessary.
109359         (dir_name): Remove the restriction that there be no
109360         trailing slashes.  Now, this code skips past them, effectively
109361         ignoring them.
109362         [TEST_DIRNAME] (main): New unit tests.
109364         * lib/memrchr.c: New file from GNU libc.
109365         Undef __memrchr, too.
109366         [!weak_alias]: Define __memrchr to memrchr.
109367         Guard weak_alias use with `#ifdef weak_alias'.
109369 2000-10-21  Jim Meyering  <meyering@lucent.com>
109371         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
109372         (dir_name): Use dir_name_r.
109373         * lib/dirname.h (dir_name_r): Declare it.
109375 2000-10-17  Jim Meyering  <meyering@lucent.com>
109377         * lib/quote.h (PARAMS): Define and use.
109378         Reported by Akim Demaille.
109380         * lib/getopt.c: Update from libc.
109382 2000-10-16  Jim Meyering  <meyering@lucent.com>
109384         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
109385         setlocale.
109386         From Jan Fedak.
109388 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
109390         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
109392 2000-09-25  Jim Meyering  <meyering@lucent.com>
109394         * lib/md5.h (rol): Define (from GnuPG).
109396         * lib/sha.c: Give credit (GnuPG) where due.
109397         (M): Use rol rather than open-coding it.
109398         Add a FIXME comment.
109400 2000-09-21  Jim Meyering  <meyering@lucent.com>
109402         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
109403         Reported by Michael Stone.
109405 2000-09-20  Jim Meyering  <meyering@lucent.com>
109407         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
109408         (noinst_HEADERS): Add sha.h.
109409         Based on code from Scott G. Miller and from GnuPG.
109411 2000-09-18  Jim Meyering  <meyering@lucent.com>
109413         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
109414         LIBS. Otherwise, everyone ends up linking with -lelf for some
109415         configurations.
109416         Reported by Mike Stone.
109418 2000-09-15  Jim Meyering  <meyering@lucent.com>
109420         * lib/regex.c: Update from libc.
109422 2000-09-10  Jim Meyering  <meyering@lucent.com>
109424         * lib/getopt.c (_getopt_internal): Update from glibc.
109426 2000-09-09  Jim Meyering  <meyering@lucent.com>
109428         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
109429         think it should be used as a general replacement for isascii.
109430         * lib/fnmatch.c: Likewise.
109431         * lib/mbswidth.c: Likewise
109432         * lib/regex.c: Likewise.
109434         Don't use atoi.
109435         * lib/userspec.c: Include sys/param.h and limits.h.
109436         Include xstrtol.h.
109437         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
109438         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
109439         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
109440         UID, GID.  Check range.
109442 2000-09-06  Jim Meyering  <meyering@lucent.com>
109444         * lib/getopt.c (_getopt_internal): Update from glibc.
109446 2000-08-30  Jim Meyering  <meyering@lucent.com>
109448         * lib/strftime.c: Merge in changes from GNU libc.
109450 2000-08-26  Jim Meyering  <meyering@lucent.com>
109452         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
109453         * m4/fpending.m4: New file.
109455 2000-08-26  Jim Meyering  <meyering@lucent.com>
109457         * lib/closeout.c: Include "__fpending.h".
109458         (close_stdout_status): Return right away if there's nothing to flush.
109460         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
109461         * lib/__fpending.c: New file.
109462         * lib/__fpending.h: New file.
109464 2000-08-20  Jim Meyering  <meyering@lucent.com>
109466         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
109467         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
109468         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
109470 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
109472         Improve fileutils installation on systems where running
109473         programs (like install) can't be unlinked.
109474         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
109475         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
109477 2000-08-07  Paul Eggert  <eggert@twinsun.com>
109479         Standardize on "memory exhausted" instead of "Memory exhausted"
109480         or "virtual memory exhausted".
109481         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
109482         "virtual memory exhausted".
109483         * lib/same.c (same_name): Invoke xalloc_die instead of printing
109484         our own message.
109485         * lib/userspec.c (parse_user_spec): Likewise.
109486         * lib/bumpalloc.h: comment fix
109487         * lib/same.c, userspec.c: Include xalloc.h.
109489         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
109490         not char *const and pointing to a constant array.
109491         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
109492         (xrealloc): Comment fix.
109494         * lib/userspec.c (parse_user_spec):
109495         Don't translate a message until just before returning,
109496         to avoid unnecessary translation.
109498 2000-08-07  Jim Meyering  <meyering@lucent.com>
109500         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
109501         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
109502         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
109503         getgroups.c, gethostname.c, getopt.h, group-member.c,
109504         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
109505         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
109506         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
109507         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
109508         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
109509         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
109510         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
109511         yesno.c: Back out Copyright date changes for each file with no change
109512         this year.  This eases coordination with other programs using the same
109513         source code modules.  From Paul Eggert.
109515 2000-08-06  Paul Eggert  <eggert@twinsun.com>
109517         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
109518         not char, for compatibility with glibc 2.1.3 strftime.c.
109520 2000-08-03  Greg McGary  <greg@mcgary.org>
109522         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
109523         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
109524         (EXTEND_BUFFER): Use them.
109526 2000-08-01  Jim Meyering  <meyering@lucent.com>
109528         * lib/dirname.c (ISSLASH): Define.
109529         (BACKSLASH_IS_PATH_SEPARATOR): Define.
109530         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
109531         both `\' and `/' may be use as path separators.
109532         Based on a patch from Prashant TR.
109534 2000-07-31  Paul Eggert  <eggert@twinsun.com>
109536         * lib/quotearg.c (quotearg_n_options): Don't make the initial
109537         slot vector a constant, since it might get modified.
109539 2000-07-31  Jim Meyering  <meyering@lucent.com>
109541         * lib/xmalloc.c: Use `virtual memory exhausted', not
109542         `Memory exhausted'.
109543         * lib/obstack.c (print_and_abort): Likewise.
109545 2000-07-30  Paul Eggert  <eggert@twinsun.com>
109547         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
109548         buffer, so that the caller can always quote one small
109549         component of a "memory exhausted" message in slot 0.
109550         From a suggestion by Jim Meyering.
109552 2000-07-30  Jim Meyering  <meyering@lucent.com>
109554         * lib/makepath.c (make_path): Quote the other instance, too.
109556         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
109557         (STATIC_BUF_SIZE): Define.
109558         (quotearg_n_options): Use only statically allocated storage when
109559         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
109560         than STATIC_BUF_SIZE.
109562 2000-07-29  Jim Meyering  <meyering@lucent.com>
109564         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
109565         * lib/dirname.c (dir_name): Likewise.
109567         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
109568         `/'.
109570         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
109571         (dir_name): Assert that there are no trailing slashes.
109573 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
109575         * lib/mbswidth.h (mbswidth): Add a flags argument.
109576         (mbswidth): New declaration.
109577         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
109578         * lib/mbswidth.c (mbswidth): Add a flags argument.
109579         (mbsnwidth): New function.
109581 2000-07-24  Jim Meyering  <meyering@lucent.com>
109583         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
109585 2000-07-23  Paul Eggert  <eggert@twinsun.com>
109587         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
109589 2000-07-23  Paul Eggert  <eggert@twinsun.com>
109591         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
109592         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
109593         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
109594         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
109595         invoke multibyte primitives.
109597 2000-07-23  Paul Eggert  <eggert@twinsun.com>
109599         * lib/quotearg.c:
109600         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
109601         so that mbstate_t is always defined.
109603         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
109604         be 1 in at least one GCC installation, and this configuration
109605         error is likely to be common.  Ignoring MB_LEN_MAX hurts
109606         performance on hosts that have mbrtowc but have only unibyte
109607         locales, but I assume these hosts are rare.
109609 2000-07-23  Paul Eggert  <eggert@twinsun.com>
109611         * lib/mbswidth.c (_XOPEN_SOURCE):
109612         Don't define; this causes problems on Solaris 7.
109613         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
109615 2000-07-23  Jim Meyering  <meyering@lucent.com>
109617         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
109618         too: getgrgid, getpwuid, getuid.
109620 2000-07-23  Jim Meyering  <meyering@lucent.com>
109622         * lib/basename.c (base_name): Add an assertion.
109624 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
109626         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
109627         shadow its mbsinit function.
109629 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
109631         * lib/mbswidth.h: New file.
109632         * lib/mbswidth.c: New file.
109633         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
109634         (noinst_HEADERS): Add mbswidth.h.
109636 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
109638         * lib/config.charset: Add support for FreeBSD. Improve support for
109639         HP-UX and IRIX 6.
109641 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
109643         * m4/mbswidth.m4: New file.
109644         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
109646 2000-07-15  Jim Meyering  <meyering@lucent.com>
109648         * lib/makepath.c: Include quote.h.
109649         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
109650         corresponding argument in a `quote (...)' call.
109651         Give better diagnostics.
109653         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
109654         (noinst_HEADERS): Add quote.h.
109656         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
109657         from tar's src/misc.c.
109658         * lib/quote.h: New file.  Prototypes for same.
109660 2000-07-14  Paul Eggert  <eggert@twinsun.com>
109662         From a suggestion by Bruno Haible.
109663         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
109664         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
109665         to decide whether to define the BeOS workaround macro;
109666         this adjusts to the change to AC_MBSTATE_T.
109668 2000-07-14  Jim Meyering  <meyering@lucent.com>
109670         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
109671         jm_AC_TYPE_UINTMAX_T.
109673 2000-07-13  Paul Eggert  <eggert@twinsun.com>
109675         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
109677         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
109678         quotearg_buffer_restyled): Add support for
109679         clocale_quoting_style.  Undo previous change to
109680         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
109681         and "{RIGHT QUOTATION MARK}" msgids.
109683 2000-07-10  Paul Eggert  <eggert@twinsun.com>
109685         From a suggestion by Bruno Haible.
109686         * m4/mbstate_t.m4 (AC_MBSTATE_T):
109687         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
109688         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
109689         and mbstate_t, to a single-part test that simply defines mbstate_t.
109690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
109691         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
109693 2000-07-10  Jim Meyering  <meyering@lucent.com>
109695         * m4/strerror_r.m4: Mirror the correction made in autoconf.
109697         * m4/gnu-source.m4: Output to confdefs.h directly.
109698         Suggestion from Akim Demaille.
109700 2000-07-09  Paul Eggert  <eggert@twinsun.com>
109702         The old behavior of quoting `like this' doesn't look good with
109703         newer, ISO-style fonts.  See:
109704         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
109706         Instead, quote "like this" by default.  Let the translator
109707         tailor the locale-specific quoting behavior by providing
109708         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
109710         * lib/quotearg.c (N_): New macro.
109711         (gettext_default): New function.
109712         (quotearg_buffer_restyled): Use
109713         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
109714         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
109716 2000-07-09  Jim Meyering  <meyering@lucent.com>
109718         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
109719         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
109721         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
109722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
109724 2000-07-09  Jim Meyering  <meyering@lucent.com>
109726         * lib/Most files: Update copyright dates to include 2000.
109728 2000-07-08  Jim Meyering  <meyering@lucent.com>
109730         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
109731         if not defined.
109732         (xgethostname): Remove now-unnecessary #ifdef.
109733         Move declaration of `err' into loop where it's used.
109735 2000-07-05  Paul Eggert  <eggert@twinsun.com>
109736         and Bruno Haible  <haible@clisp.cons.org>
109738         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
109739         only if the test for an object-type mbstate_t fails.  This
109740         prevents us from mistakenly reporting that mbstate_t is a
109741         system object type after we "#define mbstate_t int" to work
109742         around its lack.
109744 2000-07-05  Paul Eggert  <eggert@twinsun.com>
109745         and Bruno Haible  <haible@clisp.cons.org>
109747         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
109749 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
109751         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
109752         to strerror_r.
109753         Include <ctype.h> for use of isalpha.
109755 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
109757         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
109758         by allocating a larger buffer. Test the gethostname return value for
109759         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
109760         returns an error and ENAMETOOLONG isn't defined.
109762 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
109764         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
109765         dimension.
109767 2000-07-04  Jim Meyering  <meyering@lucent.com>
109769         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
109770         of the deprecated AC_CHECKING.
109772 2000-07-04  Jim Meyering  <meyering@lucent.com>
109774         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
109775         Reported by Bruno Haible.
109777 2000-07-04  Jim Meyering  <meyering@lucent.com>
109779         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
109780         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
109781         lacks mbrtowc.
109783 2000-07-03  Paul Eggert  <eggert@twinsun.com>
109785         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
109786         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
109788 2000-07-03  Paul Eggert  <eggert@twinsun.com>
109789         and Bruno Haible  <haible@clisp.cons.org>
109791         * lib/quotearg.c (mbrtowc):
109792         Assign to *pwc, and return 1 only if result is nonzero.
109793         (iswprint): Use ISPRINT when substituting our own mbrtowc.
109795 2000-07-03  Jim Meyering  <meyering@lucent.com>
109797         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
109799 2000-07-03  Jim Meyering  <meyering@lucent.com>
109801         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
109802         This is necessary to get a definition of e.g., UTMP_FILE on
109803         HP-UX 10.20.
109804         From Bob Proulx.
109806 2000-07-02  Jim Meyering  <meyering@lucent.com>
109808         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
109810         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
109811         AC_LIBOBJ(function_name).
109812         * m4/chown.m4: Likewise.
109813         * m4/fnmatch.m4: Likewise.
109814         * m4/ftruncate.m4: Likewise.
109815         * m4/getgroups.m4: Likewise.
109816         * m4/getline.m4: Likewise.
109817         * m4/group-member.m4: Likewise.
109818         * m4/jm-macros.m4: Likewise.
109819         * m4/lstat.m4: Likewise.
109820         * m4/malloc.m4: Likewise.
109821         * m4/memcmp.m4: Likewise.
109822         * m4/nanosleep.m4: Likewise.
109823         * m4/putenv.m4: Likewise.
109824         * m4/realloc.m4: Likewise.
109825         * m4/regex.m4: Likewise.
109826         * m4/stat.m4: Likewise.
109827         * m4/strftime.m4: Likewise.
109829 2000-07-02  Jim Meyering  <meyering@lucent.com>
109831         * lib/quotearg.c (mbstate_t): Don't define here.
109833 2000-07-02  Jim Meyering  <meyering@lucent.com>
109835         * lib/nanosleep.c (SIGCONT): Define if not already defined.
109837 2000-07-01  Jim Meyering  <meyering@lucent.com>
109839         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
109841 2000-07-01  Jim Meyering  <meyering@lucent.com>
109843         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
109844         problem.
109846 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
109848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
109849         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
109851 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
109853         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
109854         per change in ../m4/ls-mntd-fs.m4.
109855         (read_filesystem_list): Ignore symbolic links.
109857 2000-06-29  Jim Meyering  <meyering@lucent.com>
109859         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
109860         for declaration of strcmp.
109862         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
109864         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
109865         Avoid warning by casting result to `char *' to remove `const'.
109867 2000-06-28  Jim Meyering  <meyering@lucent.com>
109869         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
109870         included by quotearg.c, for which we perform this test.  From
109871         Bruno Haible.
109873 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
109875         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
109876         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
109877         <utmpx.h> exists, put readutmp.o into LIBOBJS.
109879 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
109881         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
109883 2000-06-26  Paul Eggert  <eggert@twinsun.com>
109885         savedir now sets errno on failure and invokes xmalloc to get memory.
109886         Fix a couple of other minor bugs while we're at it.
109888         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
109889         (NAMLEN): Remove macro.
109890         (malloc, realloc): Remove decls.
109891         (stpcpy): Likewise.
109892         ("xalloc.h"): Include.
109893         (NAME_SIZE_DEFAULT): New macro.
109894         (savedir): Use xmalloc / xrealloc to allocate memory.
109895         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
109896         Skip "" directory entries.
109897         Use strlen to calculate directory entry length, since the old method
109898         is rarely used these days and isn't worth supporting.
109899         Don't use a pointer after freeing it.
109900         Check for integer overflow when calculating allocation size.
109901         Use memcpy to copy entries, instead of stpcpy.
109902         Set errno properly when returning NULL.
109903         Check for readdir error.
109905 2000-06-26  Jim Meyering  <meyering@lucent.com>
109907         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
109909 2000-06-25  Jim Meyering  <meyering@lucent.com>
109911         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
109912         Linux header bug when _XOPEN_SOURCE is defined to 500.
109914 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
109916         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
109917         deficiency.
109919 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
109921         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
109922         Include xalloc.h.
109923         Don't include <stdlib.h>.  Don't declare malloc, realloc.
109925 2000-06-24  Jim Meyering  <meyering@lucent.com>
109927         * m4/strerror_r.m4: Revive this file -- to try out an experimental
109928         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
109929         for which strerror does return char*, but which lacks a conveniently
109930         accessible declaration of the function.  If the compile-test says
109931         strerror_r doesn't work, then resort to a `run'-test that works on
109932         BeOS and segfaults on DEC Unix.
109934 2000-06-24  Jim Meyering  <meyering@lucent.com>
109936         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
109938 2000-06-23  Paul Eggert  <eggert@twinsun.com>
109940         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
109941         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
109943 2000-06-23  Paul Eggert  <eggert@twinsun.com>
109945         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
109946         (mbrtowc, mbstate_t): Define substitutes if
109947         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
109948         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
109949         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
109951 2000-06-23  Jim Meyering  <meyering@lucent.com>
109953         * m4/afs.m4: Add missing AC_MSG_RESULT.
109954         Reported by Bruno Haible.
109956         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
109957         Suggestion from Bruno Haible.
109959 2000-06-23  Jim Meyering  <meyering@lucent.com>
109961         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
109963 2000-06-21  Jim Meyering  <meyering@lucent.com>
109965         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
109967 2000-06-21  Jim Meyering  <meyering@lucent.com>
109969         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
109970         (noinst_HEADERS): Add getstr.h.
109972         * lib/getline.c (getstr): Move into a separate file.
109973         * lib/getstr.c (getstr): New file, extracted from getline.c, with
109974         the following changes: new parameter, delim2; both delim[12]
109975         parameters have type `int', not `char'.  The latter would lose
109976         with 8-bit delimiters.
109977         * lib/getstr.h: New file.
109979 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
109981         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
109982         than 1024, return a memory chunk of least possible size, instead
109983         of size PATH_MAX + 2. In the loop, increment the size proportionally.
109984         Use free/xmalloc instead of xrealloc to avoid copying for very long
109985         paths.
109987 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
109989         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
109990         the empty string.
109992 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
109994         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
109995         address, not strdup.  Include <stdlib.h> and don't declare free().
109997 2000-06-19  Jim Meyering  <meyering@lucent.com>
109999         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
110001 2000-06-18  Jim Meyering  <meyering@lucent.com>
110003         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
110005         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
110006         `checking whether...' message to be consistent with that of the
110007         lstat test.
110009 2000-06-18  Jim Meyering  <meyering@lucent.com>
110011         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
110012         Besides, these days every porting target provides a mkdir function.
110014         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
110015         needed. (this snippet comes from src/system.h).
110017 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
110019         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
110021 2000-06-15  Paul Eggert  <eggert@twinsun.com>
110023         * lib/human.c (adjust_value): New function.
110024         (human_readable_inexact): Apply rounding style even when
110025         printing approximate values.
110027 2000-06-14  Paul Eggert  <eggert@twinsun.com>
110029         * lib/human.c (human_readable_inexact): Allow an input block
110030         size that is not a multiple of the output block size, and vice versa.
110031         Reported by Piergiorgio Sartor.
110033 2000-06-14  Paul Eggert  <eggert@twinsun.com>
110035         * lib/getdate.y (get_date): Apply relative times after time
110036         zone indicator, not before.  Reported by Todd A. Jacobs.
110038 2000-06-13  Jim Meyering  <meyering@lucent.com>
110040         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
110042         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
110044 2000-06-12  Paul Eggert  <eggert@twinsun.com>
110046         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
110048 2000-06-12  Jim Meyering  <meyering@lucent.com>
110050         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
110051         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
110052         optional argument.
110053         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
110054         the optional argument, `lib'.
110056 2000-06-08  Jim Meyering  <meyering@lucent.com>
110058         * m4/largefile.m4: Remove file (now that it's part of autoconf).
110060 2000-06-04  Paul Eggert  <eggert@twinsun.com>
110062         Rewrite largefile configuration so that we don't need to run
110063         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
110064         AC_CANONICAL_HOST in configure.in -- jmm]
110066         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
110067         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
110068         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
110069         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
110070         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
110071         All uses changed.
110072         Instead of inspecting the output of getconf, try to compile the
110073         test program without and with the macro definition.
110074         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
110075         for getconf.  Instead, check for the needed flags by compiling
110076         test programs.
110078 2000-06-04  Paul Eggert  <eggert@twinsun.com>
110080         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
110082 2000-06-04  Jim Meyering  <meyering@lucent.com>
110084         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
110085         SunOS 4.1.4 for which gid_t is an unsigned type.
110087 2000-06-03  Jim Meyering  <meyering@lucent.com>
110089         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
110090         now that autoconf requires that.
110092         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
110093         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
110094         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
110096 2000-06-03  Jim Meyering  <meyering@lucent.com>
110098         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
110100 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
110102         * m4/glibc21.m4: New file.
110103         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
110105 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
110107         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
110108         newer, don't install charset.alias.
110109         * lib/config.charset: Change the Linux/glibc rules so they become empty
110110         on glibc-2.1 or newer.
110112 2000-06-02  Jim Meyering  <meyering@lucent.com>
110114         * lib/mountlist.c: Back out last change.  Instead, do this...
110115         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
110116         me_dummy member using the same `ignore'-testing code.
110117         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
110118         fs_type strings.
110119         From Mark D. Roth.
110121 2000-05-29  Jim Meyering  <meyering@lucent.com>
110123         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
110124         mounts with the `ignore' attribute.  Based on a patch from
110125         Mark D. Roth.
110127 2000-05-28  Jim Meyering  <meyering@lucent.com>
110129         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
110130         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110131         * m4/stat.m4: Likewise.
110132         * m4/lstat.m4: Likewise.
110133         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
110135         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
110136         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
110138 2000-05-26  Jim Meyering  <meyering@lucent.com>
110140         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
110142 2000-05-24  Jim Meyering  <meyering@lucent.com>
110144         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
110145         autoconf requires that.
110146         * m4/lib-check.m4: Likewise.
110147         * m4/jm-macros.m4: Likewise.
110148         * m4/strftime.m4: Likewise.
110150         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
110151         AC_CHECK_DECLS, now that autoconf requires that.
110153 2000-05-22  Jim Meyering  <meyering@lucent.com>
110155         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110156         * m4/lstat.m4: Likewise.
110158 2000-05-22  Jim Meyering  <meyering@lucent.com>
110160         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
110162 2000-05-20  Jim Meyering  <meyering@lucent.com>
110164         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
110165         (jm_PREREQ): Use it.
110167 2000-05-18  Jim Meyering  <meyering@lucent.com>
110169         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
110170         back, too, since it may have been modified by allocate_entry.
110171         (hash_delete): Rewrite to use neither the assignment operator
110172         nor the comma operator in an if-expression.
110174 2000-05-15  Paul Eggert  <eggert@twinsun.com>
110176         * lib/closeout.c:
110177         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
110178         Remove; no longer needed.
110179         "quotearg.h": Add include.
110180         (file_name): Do not bother to explicitly initialize to NULL; it's less
110181         efficient on some hosts.
110182         (close_stdout_status): Remove test as to whether stdout was already
110183         closed; it breaks for the case "echo x | sort >&-".
110184         Quote file name colons.
110185         Do not assume that _("write error") lacks format strings.
110187 2000-05-15  Jim Meyering  <meyering@lucent.com>
110189         * lib/version-etc.c (version_etc_copyright): Update the copyright
110190         string used in all --version output.
110192 2000-05-14  Jim Meyering  <meyering@lucent.com>
110194         * lib/closeout.c (close_stdout_set_file_name): New function.
110195         (close_stdout_status): Use new file-scoped global.
110196         Return right away if fstat says the stdout file descriptor is invalid.
110197         * lib/closeout.h (close_stdout_set_file_name): Declare.
110199 2000-05-10  Jim Meyering  <meyering@lucent.com>
110201         * lib/closeout.c [default_exit_status]: New file-scoped variable.
110202         (close_stdout_set_status): New function.
110203         * lib/closeout.h (close_stdout_set_status): Declare.
110205 2000-05-09  Jim Meyering  <meyering@lucent.com>
110207         * m4/gettext.m4: Rename this...
110208         * m4/libintl.m4: ...to this.
110210 2000-05-08  Jim Meyering  <meyering@lucent.com>
110212         * lib/long-options.c: Don't include closeout.h.
110213         (parse_long_options): Don't call close_stdout for --version.
110215 2000-05-06  Paul Eggert  <eggert@twinsun.com>
110217         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
110218         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
110219         2.1.3 bug.  This avoids a clash when files like regex.c define
110220         _GNU_SOURCE.
110222 2000-05-06  Jim Meyering  <meyering@lucent.com>
110224         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
110225         (AC_REPLACE_FUNCS): Add strnlen.
110227         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
110228         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
110230         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
110231         AC_SEARCH_LIBS call for nanosleep.
110232         (LIB_NANOSLEEP): Set and AC_SUBST.
110234 2000-05-06  Jim Meyering  <meyering@lucent.com>
110236         * lib/strnlen.c: Undefine __strnlen and strnlen.
110237         [!weak_alias]: Define __strnlen to strnlen.
110239         * lib/atexit.c: New file, from libiberty.
110241 2000-05-06  Jim Meyering  <meyering@lucent.com>
110243         * lib/closeout.c (close_stdout_status): Also check for errors on the
110244         stderr stream.
110246 2000-05-05  Jim Meyering  <meyering@lucent.com>
110248         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
110249         AC_SEARCH_LIBS call for clock_gettime.
110250         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
110252         * m4/search-libs.m4: Update from autoconf.
110254         su doesn't work on Solaris 2.6.
110255         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
110256         <shadow.h>.  Reported by Dragos Harabor.
110258 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
110260         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
110261         memcpy instead of xmalloc, xrealloc, path_concat.
110262         (locale_charset): Treat empty environment variables as absent.
110263         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
110265 2000-05-04  Jim Meyering  <meyering@lucent.com>
110267         * lib/getopt.c: Update from glibc.
110268         * lib/obstack.c: Likewise.
110269         * lib/obstack.h: Likewise.
110270         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
110271         file
110273         * lib/regex.h: Likewise.
110274         * lib/strndup.c: Likewise.
110275         * lib/strnlen.c: New file, from glibc.
110277 2000-05-03  Jim Meyering  <meyering@lucent.com>
110279         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
110281 2000-05-02  Paul Eggert  <eggert@twinsun.com>
110283         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
110284         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
110285         compile-time test, rather than inspecting host and OS, to
110286         decide whether to define _LARGEFILE_SOURCE.
110288 2000-05-01  Jim Meyering  <meyering@lucent.com>
110290         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
110292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
110293         Based on a patch from Bruno Haible.
110295 2000-05-01  Jim Meyering  <meyering@lucent.com>
110297         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
110299 2000-04-29  Jim Meyering  <meyering@lucent.com>
110301         * lib/path-concat.c: Declare strdup only if it's not defined.
110302         * lib/canon-host.c: Likewise.
110304 2000-04-28  Jim Meyering  <meyering@lucent.com>
110306         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
110307         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
110308         is included first, then limits.h is included by locale.h by libintl.h.
110309         From John David Anglin.
110311 2000-04-25  Jim Meyering  <meyering@lucent.com>
110313         * lib/makepath.c (S_IRWXUGO): Define.
110314         (make_path): Always perform explicit chmod if MODE specifies any
110315         of the `special' permission bits.  Prompted by a bug report against
110316         install from Mate Wierdl and Joost van Baal.
110318 2000-04-18  Jim Meyering  <meyering@lucent.com>
110320         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
110321         (jm_PREREQ): Use it.
110323 2000-04-18  Jim Meyering  <meyering@lucent.com>
110325         * lib/README: New file.
110327         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
110328         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
110330 2000-04-17  Jim Meyering  <meyering@lucent.com>
110332         Get it right :-)
110333         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
110334         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
110335         Suggestion from Akim Demaille.
110337 2000-04-17  Jim Meyering  <meyering@lucent.com>
110339         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
110340         the definition of it to rpl_strftime also defined-away the system's
110341         declaration.
110343 2000-04-15  Jim Meyering  <meyering@lucent.com>
110345         Use `C' to denote so-called `contiguous' files, the same way
110346         that tar does.
110347         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
110348         (ftypelet): Use S_ISCTG.
110349         From Michael Deutschmann.
110351 2000-04-14  Jim Meyering  <meyering@lucent.com>
110353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
110354         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
110355         clobbered.
110357 2000-04-14  Jim Meyering  <meyering@lucent.com>
110359         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
110361 2000-04-13  Jim Meyering  <meyering@lucent.com>
110363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
110364         AH_VERBATIM to insert required #ifndef into config.h.in.
110365         Suggestion from Akim Demaille.
110367 2000-04-12  Jim Meyering  <meyering@lucent.com>
110369         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
110370         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
110371         Christian Krackowizer.
110373         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
110374         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
110375         (AC_SYS_LARGEFILE): Require.
110376         (AM_C_PROTOTYPES): Require.
110378 2000-04-08  Jim Meyering  <meyering@lucent.com>
110380         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
110381         names don't conflict.  Reported by Eli Zaretskii.
110383 2000-04-07  Jim Meyering  <meyering@lucent.com>
110385         * lib/putenv.c: Move inclusion of errno.h so it follows that of
110386         sys/types.h, to work around system header problems on AIX 3.2.5.
110387         From Bruno Haible.
110389 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
110391         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
110392         bug.  Deal with the different error behavior of Irix iconv.
110394 2000-04-05  Paul Eggert  <eggert@twinsun.com>
110396         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
110397         IRIX if the installer said otherwise.
110399 2000-04-05  Jim Meyering  <meyering@lucent.com>
110401         Portability tweaks required for ultrix4.3.
110402         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
110403         (jm_CHECK_DECLS): Add getutent to the list of functions.
110404         (_jm_DECL_HEADERS): Add utmpx.h.
110405         From John David Anglin.
110407         * m4/strftime.m4: Back out the 2000-04-02 change.
110408         Instead of that change, simply undefine putenv in the test program.
110410 2000-04-05  Jim Meyering  <meyering@lucent.com>
110412         Portability tweaks required for ultrix4.3.
110413         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
110414         getutent.
110415         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
110416         * lib/canon-host.c: Declare strdup.
110417         * lib/path-concat.c: Likewise.
110418         From John David Anglin.
110420 2000-04-04  Jim Meyering  <meyering@lucent.com>
110422         Be more DOS 8.3-friendly.
110423         * lib/ref-add.sin: Renamed from ref-add.sed.in.
110424         * lib/ref-del.sin: Renamed from ref-del.sed.in.
110425         * lib/Makefile.am: Reflect renaming.
110426         Reported by Eli Zaretskii.
110428         Use a temporary file name that won't clash with `charset.alias'
110429         in the DOS 8.3 name space.
110430         * lib/Makefile.am (charset_tmp): Define.
110431         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
110432         (uninstall-local): Likewise.
110433         Reported by Eli Zaretskii.
110435 2000-04-03  Jim Meyering  <meyering@lucent.com>
110437         * m4/gettext.m4: Fix typo in comment.
110439         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
110440         textutils/configure.in).  Suggestion from Paul Eggert.
110441         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
110443 2000-04-02  Paul Eggert  <eggert@twinsun.com>
110445         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
110446         variable in the shell rather than using putenv, which isn't
110447         portable.  This avoids the configure-time inter-test dependency
110448         on the potentially-renamed putenv function.
110450 2000-03-30  Paul Eggert  <eggert@twinsun.com>
110452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
110453         before checking struct stat.st_blksize, so that
110454         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
110456 2000-03-29  Paul Eggert  <eggert@twinsun.com>
110458         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
110459         since strftime.c uses HAVE_STRFTIME to decide whether to use
110460         the underlying strftime.
110462 2000-03-29  Paul Eggert  <eggert@twinsun.com>
110464         * lib/time/strftime.c (my_strftime): Make sure we call the system
110465         strftime, not ourselves, when invoking the underlying strftime.
110467 2000-03-24  Jim Meyering  <meyering@lucent.com>
110469         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
110470         (charset_alias): Define.
110471         (install-exec-local): Factor out common code.
110472         (uninstall-local): Split lines longer than 80.
110473         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
110474         (SUFFIXES): Define.
110475         (.sed.in.sed): New rule.  Don't redirect directly to $@.
110476         (CLEANFILES): Add ref-add.sed and ref-del.sed.
110478 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
110480         * lib/config.charset: Output a line containing "Packages using this
110481         file".
110482         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
110483         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
110484         ref-del.sed): New rules.
110486 2000-03-17  Jim Meyering  <meyering@lucent.com>
110488         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
110489         Otherwise, include <strings.h>
110491 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
110493         * lib/unicodeio.c (utf8_wctomb): New function.
110494         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
110495         format instead of in UCS-4 with platform dependent endianness.
110497 2000-03-10  Jim Meyering  <meyering@lucent.com>
110499         * m4/lib-check.m4: Look for getspnam in -lgen, too.
110500         From Marco Franzen.
110502 2000-03-07  Paul Eggert  <eggert@twinsun.com>
110504         * lib/savedir.c (savedir): Work even if directory size is
110505         negative; this can happen with some screwy NFS configurations.
110507 2000-03-06  Jim Meyering  <meyering@lucent.com>
110509         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
110510         if it's NULL (because we ran out of memory).  From Bruno Haible.
110512 2000-03-05  Jim Meyering  <meyering@lucent.com>
110514         * lib/localcharset.c ("path-concat.h"): Include.
110515         (get_charset_aliases): Use path_concat instead of ANSI string
110516         concatenation.
110518         * lib/unicodeio.h (PARAMS): Define.
110519         Use it to guard prototype.
110521 2000-03-04  Jim Meyering  <meyering@lucent.com>
110523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
110524         for lib/localcharset.c.
110526 2000-03-04  Jim Meyering  <meyering@lucent.com>
110528         * lib/Makefile.am (install-exec-local): Create $(libdir) before
110529         installing into it.
110530         (uninstall-local): Uncomment this rule so `make distcheck' works
110531         once again.
110533         * lib/unicodeio.c (<errno.h>): Include it.
110534         (errno): Declare if not defined.
110536         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
110538         * lib/config.charset: New version, incorporating remarks from a linux
110539         i18n mailing list.  From Bruno Haible.
110541 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
110543         * m4/codeset.m4: New file.
110544         * m4/iconv.m4: New file.
110545         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
110547 2000-03-03  Jim Meyering  <meyering@lucent.com>
110549         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
110551 2000-03-02  Jim Meyering  <meyering@lucent.com>
110553         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
110554         the messages come out on separate lines.
110556         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
110557         rather than jm_CHECK_DECLARATIONS.
110558         * m4/decl.m4: Remove now-unused file.
110560         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
110561         geteuid.
110563 2000-03-02  Jim Meyering  <meyering@lucent.com>
110565         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
110567 2000-03-01  Jim Meyering  <meyering@lucent.com>
110569         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
110570         * lib/unicodeio.c: Likewise.
110572 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
110574         * lib/config.charset: New file.
110575         * lib/localcharset.c: New file.
110576         * lib/unicodeio.h, lib/unicodeio.c: New files.
110577         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
110578         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
110579         (noinst_HEADERS): Add unicodeio.h.
110580         (all-local, install-exec-local, charset.alias): New targets.
110582 2000-02-28  Paul Eggert  <eggert@twinsun.com>
110584         * lib/quotearg.c (ALERT_CHAR): New macro.
110585         (quotearg_buffer_restyled): Use it.
110587 2000-02-27  Jim Meyering  <meyering@lucent.com>
110589         * m4/check-decl.m4: Add getenv to the list.
110591 2000-02-27  Jim Meyering  <meyering@lucent.com>
110593         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
110594         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
110596         * lib/backupfile.c: Guard inclusion of stdlib.h with
110597         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
110598         Declare malloc if needed.
110600         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
110601         `#ifndef HAVE_DECL..'
110602         now that autoconf always defines the HAVE_DECL_ symbols.
110603         * lib/human.c: Likewise.
110604         * lib/same.c: Likewise.
110605         * lib/strtoumax.c: Likewise.
110607         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
110608         declaration check was not run.
110609         * lib/hash.c: Likewise.
110610         * lib/human.c: Likewise.
110611         * lib/same.c: Likewise.
110612         * lib/strtoumax.c: Likewise.
110614         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
110615         `.', then first look up the entire `.'-containing string as a login
110616         name.
110618 2000-02-23  Jim Meyering  <meyering@lucent.com>
110620         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
110621         in place of my hack.
110623 2000-02-18  Paul Eggert  <eggert@twinsun.com>
110625         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
110626         (textint): New typedef.
110627         (parser_control): Member year changed from int to textint.
110628         All uses changed.
110629         (YYSTYPE): Removed; replaced by %union with int and textint members.
110630         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
110631         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
110632         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
110633         (tSNUMBER, tUNUMBER): Now of type <textintval>.
110634         (date, number, to_year): Use width of number in digits, not its value,
110635         to determine whether it's a 2-digit year, or a 2-digit time.
110636         (yylex): Store number of digits of numeric tokens.
110637         Reported by John Kendall.
110639         (parser_control): Changed from struct parser_control to typedef (for
110640         consistency).  All uses changed.
110642         (tID): Removed; not used.
110643         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
110645 2000-02-14  Paul Eggert  <eggert@twinsun.com>
110647         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
110648         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
110650 2000-02-12  Jim Meyering  <meyering@lucent.com>
110652         * lib/userspec.c (ISDIGIT): Define it.
110653         (isdigit): Remove definition.
110654         (is_number): Use ISDIGIT, not isdigit.
110655         <libintl.h>: Include.
110656         (_ and N_): Define.
110657         (parse_user_spec): Mark translatable strings.
110659 2000-02-10  Jim Meyering  <meyering@lucent.com>
110661         With these changes, nanosleep.[ch] are finally enough like the other
110662         lib/* replacement files to compile on a few more losing systems.
110664         * lib/nanosleep.h: Don't include config.h.
110665         Remove prototype from declaration of nanosleep.
110666         (PARAMS): Remove now-unneeded definition.
110667         * lib/nanosleep.c: #undef nanosleep.
110668         (rpl_nanosleep): Rename from nanosleep.
110670 2000-02-10  Jim Meyering  <meyering@lucent.com>
110672         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
110673         gnu_nanosleep to rpl_nanosleep.
110675 2000-02-09  Jim Meyering  <meyering@lucent.com>
110677         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
110678         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
110680 2000-02-08  Akim Demaille  <akim@epita.fr>
110682         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
110683         `[' and `]' and remove uses of `changequote'.
110684         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
110685         (AC_SYS_LARGEFILE): Likewise.
110686         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
110687         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
110688         of changequote.
110689         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
110690         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
110691         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
110692         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
110694 2000-02-05  Jim Meyering  <meyering@lucent.com>
110696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
110697         Remove explicit use of AC_HEADER_TIME.  It is required by
110698         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
110699         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
110700         in autoconf whereby the expansion of the latter ended up preceding
110701         the expansion of its prerequisite, AC_HEADER_TIME.
110702         Reported by Volker Borchert.
110704 2000-02-03  Jim Meyering  <meyering@lucent.com>
110706         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
110708 2000-02-03  Jim Meyering  <meyering@lucent.com>
110710         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
110711         rather than with `#if HAVE_UTMPNAME'.
110713 2000-02-02  Jim Meyering  <meyering@lucent.com>
110715         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
110716         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
110717         Reported by Eli Zaretskii.
110719 2000-02-01  Jim Meyering  <meyering@lucent.com>
110721         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
110723 2000-01-31  Jim Meyering  <meyering@lucent.com>
110725         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
110726         functions.  Add the time.h and sys/time.h headers along with the
110727         AC_REQUIRE'ment of AC_HEADER_TIME.
110729 2000-01-31  Jim Meyering  <meyering@lucent.com>
110731         * lib/nanosleep.h (nanosleep): Guard declaration with
110732         `#if ! HAVE_DECL_NANOSLEEP'.
110733         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
110734         the declaration in that vendor's sys/timers.h.
110735         Reported by Christian Krackowizer.
110737         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
110738         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
110739         (ISPRINT): Likewise.
110740         Reported by Tom Tromey.
110742 2000-01-30  Jim Meyering  <meyering@lucent.com>
110744         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
110746         * m4/prereq.m4 (utmp_includes): Define.
110747         Check for ut_user and ut_name members in both struct utmpx
110748         and struct utmp.
110750 2000-01-30  Jim Meyering  <meyering@lucent.com>
110752         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
110753         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
110754         header files where only utmpx.ut_user is declared.
110756         * lib/readutmp.h (UT_USER): Define.
110758 2000-01-29  Jim Meyering  <meyering@lucent.com>
110760         * m4/lib-check.m4: New file containing library-related checks from
110761         fileutils and sh-utils (textutils had none).
110763 2000-01-28  Jim Meyering  <meyering@lucent.com>
110765         * m4/perl.m4: Change format of warning message to look more like that
110766         from the missing script.  Suggestion from François Pinard.
110768 2000-01-25  Jim Meyering  <meyering@lucent.com>
110770         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
110771         well as time.h in the compile check.
110772         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
110773         Fix typo in cross-compiling case: s/yes/no/.
110775 2000-01-23  Jim Meyering  <meyering@lucent.com>
110777         * m4/jm-macros.m4: Move df-related tests here from
110778         fileutils/configure.in
110780         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
110781         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
110783         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
110784         s/space/ac_fsusage_space/.
110785         (jm_FILE_SYSTEM_USAGE): Take two parameters.
110787         * m4/ftruncate.m4: New file (derived from part of
110788         fileutils/configure.in).
110789         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
110790         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
110792         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
110793         AC_SUBST these here, rather than just in sh-util/configure.in, so
110794         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
110795         all the same.
110796         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
110797         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
110798         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
110799         (AC_SUBST(POW_LIBM)): Likewise.
110800         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
110802 2000-01-23  Jim Meyering  <meyering@lucent.com>
110804         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
110805         obstack.c.
110807 2000-01-22  Jim Meyering  <meyering@lucent.com>
110809         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
110811         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
110813         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
110814         configure.in
110815         (AC_CHECK_HEADERS): Likewise for sh-utils.
110816         (AC_CHECK_HEADERS): Likewise for textutils.
110817         Merge the three lists of headers.
110819         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
110820         from fileutils' configure.in.
110822         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
110823         code. Moved tests into their own function (_jm_DECL_HEADERS) in
110824         check-decl.m4.
110826         * m4/check-decl.m4: Use #if rather than #ifdef.
110827         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
110828         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
110829         (_jm_DECL_HEADERS): Define new function.
110830         (jm_CHECK_DECLARATIONS): Require it.
110832 2000-01-22  Jim Meyering  <meyering@lucent.com>
110834         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
110835         [! HAVE_DECL_STRTOULL]: Declare strtoull.
110836         Required for some AIX systems.  Reported by Christian Krackowizer.
110837         [TESTING] (main): New function.
110839         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
110840         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
110841         letters.
110843         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
110844         iswprint.
110846         * lib/strverscmp.c (ISDIGIT): Define.
110847         (strverscmp): Use ISDIGIT, not isdigit.
110849 2000-01-19  Jim Meyering  <meyering@lucent.com>
110851         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
110852         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
110853         defines `struct timespec' in <sys/time.h>
110855         * m4/c-bs-a.m4: Remove uses of changequote altogether.
110856         Thanks to Akim for explaining.
110858 2000-01-17  Paul Eggert  <eggert@twinsun.com>
110860         * lib/nanosleep.c (nanosleep):
110861         Don't use SA_INTERRUPT to decide whether to call sigaction, as
110862         POSIX.1 doesn't require SA_INTERRUPT and some systems
110863         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
110864         it's been part of POSIX.1 since day 1 (in 1988).
110866 2000-01-17  Jim Meyering  <meyering@lucent.com>
110868         * lib/interlock: Remove unused file.  Reported by François Pinard.
110870 2000-01-16  Paul Eggert  <eggert@twinsun.com>
110872         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
110873         alert, backslash, formfeed, and vertical tab unnecessarily in
110874         shell quoting style.
110876 2000-01-16  Jim Meyering  <meyering@lucent.com>
110878         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
110879         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
110880         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
110881         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
110883 2000-01-16  Jim Meyering  <meyering@lucent.com>
110885         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
110886         because the latter didn't work.
110888 2000-01-15  Jim Meyering  <meyering@lucent.com>
110890         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
110891         (AC_REPLACE_FUNCS): Add memcpy and memset.
110892         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
110893         Add strpbrk.
110894         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
110896 2000-01-12  Jim Meyering  <meyering@lucent.com>
110898         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
110899         (jm_PREREQ): Use it.
110900         (jm_PREREQ_READUTMP): New macro.
110901         (jm_PREREQ): Use it.
110903 2000-01-11  Paul Eggert  <eggert@twinsun.com>
110905         Quote multibyte characters correctly.
110906         * m4/c-bs-a.m4: New file.
110907         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
110908         (jm_PREREQ): Use it.
110910 2000-01-11  Paul Eggert  <eggert@twinsun.com>
110912         * m4/uintmax_t.m4: Port to autoconf 2.13.
110914 2000-01-08  Jim Meyering  <meyering@ascend.com>
110916         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
110917         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
110919 2000-01-04  Jim Meyering  <meyering@ascend.com>
110921         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
110922         jm_STRUCT_DIRENT_D_TYPE.
110923         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
110924         jm_STRUCT_DIRENT_D_INO.
110925         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
110926         jm_STRUCT_UTIMBUF.
110927         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
110928         renamings.
110929         * m4/utime.m4: Likewise.
110931         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
110932         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
110934 2000-01-03  Paul Eggert  <eggert@twinsun.com>
110936         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
110937         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
110939 2000-01-02  Jim Meyering  <meyering@ascend.com>
110941         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
110942         remember if this is necessary.
110944 1999-12-26  Jim Meyering  <meyering@ascend.com>
110946         * m4/jm-macros.m4: Use it here.
110947         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
110949 1999-12-23  Jim Meyering  <meyering@ascend.com>
110951         * m4/jm-macros.m4: Check for clock_gettime (moved from
110952         fileutils/configure.in)
110953         Check for gettimeofday.
110955 1999-12-20  Jim Meyering  <meyering@ascend.com>
110957         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
110958         autoconf-2.14a-1999-12-20.
110960 1999-12-19  Jim Meyering  <meyering@ascend.com>
110962         * m4/lstat-slash.m4: New file.
110963         * m4/jm-macros.m4: Use the new macro:
110964         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110966 1999-12-07  Jim Meyering  <meyering@ascend.com>
110968         * m4/perl.m4: Require that File::Compare be available, too.
110969         Too many systems seem to lack it.
110971         * m4/strftime.m4: Add checks for most of the cpp macros tested in
110972         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
110974 1999-11-18  Paul Eggert  <eggert@twinsun.com>
110976         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
110977         problem with the QNX 4.25 shell, which doesn't propagate exit
110978         status of failed commands inside shell assignments.
110980 1999-11-17  Jim Meyering  <meyering@ascend.com>
110982         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
110984 1999-11-07  Jim Meyering  <meyering@ascend.com>
110986         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
110988 1999-11-06  Jim Meyering  <meyering@ascend.com>
110990         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
110991         * m4/jm-macros.m4 (jm_MACROS): Use it here.
110993 1999-11-05  Jim Meyering  <meyering@ascend.com>
110995         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
110996         configure.in of textutils, fileutils, and sh-utils into this one
110997         (shared between those packages) file.
110998         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
110999         AC_STRUCT_ST_BLKSIZE.
111001 1999-11-03  Jim Meyering  <meyering@ascend.com>
111003         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
111004         of AC_CHECK_TYPE checks includes unistd.h.
111005         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
111006         Suggestion from Akim Demaille.
111008 1999-10-30  Jim Meyering  <meyering@ascend.com>
111010         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
111011         m4-quoted string.
111012         * m4/ls-mntd-fs.m4: Likewise.
111013         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
111014         * m4/jm-winsz1.m4: Likewise.
111016         * m4/const.m4: Remove file, since the fix made it into the experimental
111017         version of autoconf.
111018         * m4/mktime.m4: Likewise.
111020         * m4/check-type.m4: Remove file, now that the latest version of
111021         AC_CHECK_TYPE takes a third arg to specify additional #includes.
111023         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
111024         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
111025         AC_CHECK_TYPE.
111027 1999-10-04  Jim Meyering  <meyering@ascend.com>
111029         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
111031 1999-09-22  Paul Eggert  <eggert@twinsun.com>
111033         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
111034         2.95.1 bug with HP-UX 10.20.
111036 1999-09-17  Jim Meyering  <meyering@ascend.com>
111038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
111039         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
111040         due to missing strdup (against sh-utils-2.0).
111042 1999-08-29  Jim Meyering  <meyering@ascend.com>
111044         * m4/jm-macros.m4: Require jm_BISON.
111045         * m4/bison.m4: New file.
111047 1999-08-17  Paul Eggert  <eggert@twinsun.com>
111049         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
111050         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
111052 1999-08-05  Jim Meyering  <meyering@ascend.com>
111054         * m4/getline.m4: Rename test file from conftestdata to conftest.data
111055         to avoid conflicts with `conftest' on 8+3 filesystems.
111056         Suggestion from Eli Zaretskii.
111058 1999-08-04  Jim Meyering  <meyering@ascend.com>
111060         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
111061         fileutils and sh-utils (textutils's getline test was inadequate).
111062         (AM_FUNC_GETLINE): Run this test.
111063         (AC_CHECK_FUNCS): Check for getdelim.
111064         Reported by Bob Proulx.
111066 1999-08-02  Jim Meyering  <meyering@ascend.com>
111068         * m4/jm-macros.m4: Add a comment.
111070 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111072         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
111073         <inttypes.h> defines strtoumax as a macro (and not as a
111074         function).
111076 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111078         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
111079         that we can shift, multiply and divide unsigned long long
111080         values; Ultrix cc can't do it.
111082 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111084         * m4/mktime.m4: New file, which is a preview of what should appear
111085         in the next public autoconf release.
111087 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111089         * m4/lfs.m4: Remove this file.
111090         * m4/largefile.m4: New file.  It contains the old contents of
111091         lfs.m4, except that all names with prefix AC_LFS have been
111092         changed to use the prefix AC_SYS_LARGEFILE instead, to be
111093         compatible with future autoconf versions.  Also, some minor m4
111094         quoting problems have been fixed.
111096 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111098         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
111099         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
111100         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
111101         and simplify the shell code.
111103 1999-08-01  Jim Meyering  <meyering@ascend.com>
111105         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
111106         m4.
111108 1999-07-20  Jim Meyering  <meyering@ascend.com>
111110         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
111112 1999-07-15  Jim Meyering  <meyering@ascend.com>
111114         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
111116 1999-05-22  Jim Meyering  <meyering@ascend.com>
111118         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
111120 1999-05-20  Jim Meyering  <meyering@ascend.com>
111122         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
111123         Add a colon after each `then' in case $4 is empty.
111125 1999-05-16  Jim Meyering  <meyering@ascend.com>
111127         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
111129 1999-05-10  Jim Meyering  <meyering@ascend.com>
111131         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
111133         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
111134         AC_FUNC_MKTIME.
111136 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
111138         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
111140 1999-05-04  Paul Eggert  <eggert@twinsun.com>
111142         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
111143         not CPPFLAGS, so that linking works correctly in IRIX.
111145 1999-04-30  Paul Eggert  <eggert@twinsun.com>
111147         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
111149 1999-04-20  Paul Eggert  <eggert@twinsun.com>
111151         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
111152         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
111153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
111154         jm_AC_TYPE_UNSIGNED_LONG_LONG.
111155         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
111157         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
111159 1999-04-20  Jim Meyering  <meyering@ascend.com>
111161         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
111162         AC_REPLACE xstroull if necessary.  From Paul Eggert.
111163         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
111165 1999-04-18  Jim Meyering  <meyering@ascend.com>
111167         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
111168         * m4/jm-macros.m4: Use it.
111170 1999-04-06  Jim Meyering  <meyering@ascend.com>
111172         * m4/strftime.m4: Remove test for %f.
111174 1999-03-29  Jim Meyering  <meyering@ascend.com>
111176         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
111177         superset of the AC_TYPE_* checks in the textutils, fileutils,
111178         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
111179         AC_TYPE_PID_T.
111181 1999-03-28  Jim Meyering  <meyering@ascend.com>
111183         * m4/jm-macros.m4: Define GNU_PACKAGE here.
111184         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
111185         replaced e.g., in the *.sh files of the sh-utils.
111187 1999-03-20  Jim Meyering  <meyering@ascend.com>
111189         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
111190         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
111191         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
111193 1999-03-19  Jim Meyering  <meyering@ascend.com>
111195         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
111197 1999-03-12  Jim Meyering  <meyering@ascend.com>
111199         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
111201 1999-03-07  Jim Meyering  <meyering@ascend.com>
111203         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
111204         declared.
111206 1999-02-17  Jim Meyering  <meyering@ascend.com>
111208         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
111209         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
111211 1999-02-07  Jim Meyering  <meyering@ascend.com>
111213         * m4/group-member.m4: New file -- extracted from sh-utils'
111214         configure.in.
111216         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
111217         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
111219 1999-02-06  Jim Meyering  <meyering@ascend.com>
111221         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
111222         * m4/fnmatch.m4: Likewise.
111223         * m4/getgroups.m4: Likewise.
111224         * m4/lstat.m4: Likewise.
111225         * m4/malloc.m4: Likewise.
111226         * m4/putenv.m4: Likewise.
111227         * m4/realloc.m4: Likewise.
111228         * m4/regex.m4: Likewise.
111229         * m4/stat.m4: Likewise.
111230         * m4/strftime.m4: Likewise.
111231         Suggestion from Alain Magloire.
111233         * m4/chown.m4: Use `.$ac_objext', not `.o'.
111234         * m4/fnmatch.m4: Likewise.
111235         * m4/getgroups.m4: Likewise.
111236         * m4/getline.m4: Likewise.
111237         * m4/lstat.m4: Likewise.
111238         * m4/malloc.m4: Likewise.
111239         * m4/memcmp.m4: Likewise.
111240         * m4/putenv.m4: Likewise.
111241         * m4/realloc.m4: Likewise.
111242         * m4/regex.m4: Likewise.
111243         * m4/stat.m4: Likewise.
111244         * m4/strftime.m4: Likewise.
111245         Suggestion from Alain Magloire.
111247         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
111248         an argument.
111250         * m4/regex.m4: Add a run-time Test for proper operation of
111251         re_compile_pattern.
111253 1999-01-31  Jim Meyering  <meyering@ascend.com>
111255         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
111257 1999-01-30  Jim Meyering  <meyering@ascend.com>
111259         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
111261         * m4/jm-mktime.m4: Make this a wrapper around the official
111262         AM_FUNC_MKTIME rather than my private copy, now that the official one
111263         is up to date.
111264         * m4/mktime.m4: Remove file.
111266         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
111267         * m4/uptime.m4: Likewise.
111268         * m4/uintmax_t.m4: Likewise.
111270 1999-01-28  Jim Meyering  <meyering@ascend.com>
111272         * m4/jm-macros.m4: Use jm_AFS.
111273         * m4/afs.m4: New file (from fileutils' configure.in).
111275         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
111276         * m4/chown.m4: Likewise.
111277         * m4/d-ino.m4: Likewise.
111278         * m4/d-type.m4: Likewise.
111279         * m4/fnmatch.m4: Likewise.
111280         * m4/getgroups.m4: Likewise.
111281         * m4/gettext.m4: Likewise.
111282         * m4/jm-mktime.m4: Likewise.
111283         * m4/jm-winsz2.m4: Likewise.
111284         * m4/lcmessage.m4: Likewise.
111285         * m4/ls-mntd-fs.m4: Likewise.
111286         * m4/malloc.m4: Likewise.
111287         * m4/memcmp.m4: Likewise.
111288         * m4/putenv.m4: Likewise.
111289         * m4/realloc.m4: Likewise.
111290         * m4/st_mtim.m4: Likewise.
111291         * m4/strftime.m4: Likewise.
111293 1999-01-16  Jim Meyering  <meyering@ascend.com>
111295         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
111296         (ARGMATCH_DIE_DECL): Define.
111298 1999-01-12  Jim Meyering  <meyering@ascend.com>
111300         * m4/Makefile.am.in: Rewrite to avoid using fmt.
111301         Reported by Lars Hecking.
111303 1999-01-10  Jim Meyering  <meyering@ascend.com>
111305         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
111306         gross kludge.
111307         * m4/inttypes_h.m4: Likewise.
111308         * m4/lstat.m4: Likewise.
111309         * m4/malloc.m4: Likewise.
111310         * m4/readdir.m4: Likewise.
111311         * m4/realloc.m4: Likewise.
111312         * m4/st_dm_mode.m4: Likewise.
111313         * m4/stat.m4: Likewise.
111314         * m4/utimbuf.m4: Likewise.
111315         * m4/utimes.m4: Likewise.
111317         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
111318         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
111319         comments in config.h.in are meaningful.
111321         * m4/jm-macros.m4: Require autoconf-2.13 here.
111323         * m4/regex.m4: By default, don't use the included regex.c on systems
111324         with glibc 2.  Suggestion from Uli Drepper.
111326 1999-01-02  Jim Meyering  <meyering@ascend.com>
111328         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
111330 1998-12-18  Jim Meyering  <meyering@ascend.com>
111332         * m4/Makefile.am.in (Makefile.am): Simplify rule.
111333         Based on a suggestion from Lars Hecking.
111335 1998-11-16  Paul Eggert  <eggert@twinsun.com>
111337         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
111339 1998-11-16  Jim Meyering  <meyering@ascend.com>
111341         * m4/lfs.m4: Double-quote the `uname...` expression.
111343 1998-11-14  Jim Meyering  <meyering@ascend.com>
111345         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
111346         * m4/stat.m4: Likewise.
111348 1998-11-03  Jim Meyering  <meyering@ascend.com>
111350         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
111351         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
111353 1998-10-18  Jim Meyering  <meyering@ascend.com>
111355         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
111357 1998-10-17  Jim Meyering  <meyering@ascend.com>
111359         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
111360         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
111361         calls for those previously hard-coded headers.  Instead, take a new
111362         parameter.
111363         (jm_CHECK_DECLARATIONS): Reflect interface change.
111364         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
111365         (jm_CHECK_DECL_LOCALTIME_R): New macro.
111367         * m4/mktime.m4: Test for spring-forward gap before long-running test.
111369 1998-10-14  Jim Meyering  <meyering@ascend.com>
111371         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
111372         instead of "TZ=America/Vancouver".  From Paul Eggert.
111374 1998-10-11  Jim Meyering  <meyering@ascend.com>
111376         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
111377         This adds a test for a recently added compatibility fix for mktime.c.
111378         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
111380 1998-09-27  Jim Meyering  <meyering@ascend.com>
111382         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
111384         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
111385         ../configure.in, including a change from Gordon Matzigkeit to allow
111386         cross-compiling for the Hurd.
111388         * m4/glibc.m4: New file/macro to test for the GNU C Library
111389         versions 1 and 2.  From Gordon Matzigkeit.
111390         Indent.
111392 1998-09-21  Jim Meyering  <meyering@ascend.com>
111394         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
111396 1998-08-18  Paul Eggert  <eggert@twinsun.com>
111398         Port nanosecond-resolution times to UnixWare 2.1.2 and
111399         pedantic Solaris 2.6.
111401         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
111402         AC_STRUCT_ST_MTIM.
111403         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
111404         Generate name of ns member, instead of just 1 or undef.
111405         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
111407 1998-08-15  Jim Meyering  <meyering@ascend.com>
111409         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
111410         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
111411         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
111412         instead of jm_TYPE_SSIZE_T.
111414 1998-08-12  Jim Meyering  <meyering@ascend.com>
111416         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
111418 1998-08-02  Jim Meyering  <meyering@ascend.com>
111420         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
111421         in acconfig.h manually.
111423 1998-07-31  Paul Eggert  <eggert@twinsun.com>
111425         * m4/st_mtim.m4: New file.
111427 1998-07-28  Jim Meyering  <meyering@ascend.com>
111429         * m4/utimes.m4: Undef stat.
111431 1998-07-25  Jim Meyering  <meyering@ascend.com>
111433         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
111434         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
111436 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
111438         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
111439         uid and gid actually remain unchanged.
111441 1998-07-07  Jim Meyering  <meyering@ascend.com>
111443         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
111445 1998-07-04  Jim Meyering  <meyering@ascend.com>
111447         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
111448         to prove that this macro can be used in packages without regex.c.
111450 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
111452         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
111453         is to be used.
111455 1998-07-03  Jim Meyering  <meyering@ascend.com>
111457         * m4/gettext.m4: Add -lintl if it's found to be necessary.
111459         * m4/gettext.m4: New file -- from gettext-0.10.35.
111460         * m4/lcmessage.m4: Likewise.
111461         * m4/progtest.m4: Likewise.
111463         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
111464         * m4/jm-macros.m4: Require the new macro.
111466 1998-06-29  Jim Meyering  <meyering@ascend.com>
111468         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
111469         for the definition of NGROUPS (used in a system header included
111470         by sys/mount.h).
111472 1998-06-28  Jim Meyering  <meyering@ascend.com>
111474         * m4/ls-mntd-fs.m4: New file.
111475         * m4/fstypename.m4: New file.
111477         * m4/jm-macros.m4: Require the new macro.
111478         * m4/jm-glibc-io.m4: New file.
111480 1998-05-19  Jim Meyering  <meyering@ascend.com>
111482         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
111483         * m4/lchown.m4: New file.
111485         * m4/Makefile.am.in: New file.
111486         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
111488 1998-05-14  Jim Meyering  <meyering@ascend.com>
111490         * m4/Makefile.am (EXTRA_DIST): Add them.
111491         * m4/jm-macros.m4: New file.
111492         * m4/utimbuf.m4: New file.
111494 1998-05-12  Jim Meyering  <meyering@ascend.com>
111496         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
111498 1998-05-11  Jim Meyering  <meyering@ascend.com>
111500         * m4/isc-posix.m4: New file.
111502 1998-05-10  Jim Meyering  <meyering@ascend.com>
111504         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
111506 1998-05-09  Jim Meyering  <meyering@ascend.com>
111508         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
111509         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
111510         with automake.
111512         * m4/ssize_t.m4: New file.
111513         * m4/mktime.m4: Remove file -- the new automake has this now.
111515 1998-04-26  Jim Meyering  <meyering@ascend.com>
111517         * m4/assert.m4: New file.
111518         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
111520 1998-04-05  Jim Meyering  <meyering@ascend.com>
111522         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
111523         (jm_PREREQ): Use it here.
111525 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
111527         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
111528         in acconfig.h.
111530 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
111532         * m4/prereq.m4: New file.
111533         * m4/error.m4: New file.
111534         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
111536 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
111538         * m4/getline.m4: Don't set am_cv_func_working_getline before the
111539         cache-check for the same variable -- that defeated the purpose of
111540         the test; the test program was never run.  This was a problem only
111541         on systems with losing getline functions -- HP-UX 10.20 is one.
111542         Reported by Bjorn Helgaas.
111544 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
111546         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
111548 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
111550         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
111552         * m4/const.m4: New file.  Use an initializer in this declaration
111553         typedef int charset[2]; const charset x;
111554         Reported by Bob Glickstein.
111556 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
111558         * m4/chown.m4: Fix reversed types on -1 args to chown.
111559         From Kaveh Ghazi.
111561 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
111563         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
111564         Add lseek and memchr.
111566         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
111567         T.E.Dickey <dickey@clark.net> said that some older preprocessors
111568         have a 20-character limit on names.
111570 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
111572         * m4/inttypes_h.m4: New file.
111573         * m4/uintmax_t.m4: New file.
111574         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
111577         -----
111579         Local Variables:
111580         coding: utf-8
111581         End:
111583         Copyright (C) 1997-2017 Free Software Foundation, Inc.
111585         Copying and distribution of this file, with or without
111586         modification, are permitted provided the copyright notice
111587         and this notice are preserved.